aboutsummaryrefslogtreecommitdiff
path: root/static/_small-calendar.scss
blob: c481428578f0271b4005bf43190ca5ba65ad3bed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.small-calendar {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: auto;

    grid-auto-flow: dense;

    > * {
        text-align: center;
        > time {
            width: 100%;
            text-align: right;
            /* padding place in <time> instead on parent block element
               to allow a border radius without making the link area
               smaller
           */
            padding: 5px;
        }
    }
    > *:not(.column-head) {
        display: flex;
        align-items: center; /* vertically center */
        text-align: right;
    }
    a {
        color: initial;
        text-decoration: none;
    }

    .row-head {
        grid-column: 1;
        border-right: 1px solid black;

        /* Sort of hack to get week numbers looking ok */
        justify-content: right;
        padding-right: 5px;
    }

    .column-head {
        grid-row: 1;
        border-bottom: 1px solid black;
    }

    .next, .prev {
        color: $gray;
    }

    .today {
        border: 1px solid black;
    }
}