aboutsummaryrefslogtreecommitdiffstats
path: root/stylesheets/index.scss
blob: 7ee708a7c336b7bd7bbc946eaa1316a2b8f0aaaf (plain) (blame)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
@import 'base';
@import 'footer';

main {

    min-height: 100vh;
    @extend %flexbox;
    @include flex-dir(column);

    /* Render the `main` element consistently in IE. */
    display: block;
    box-sizing: border-box;

    margin: auto;
    max-width: $max-page-width;

    @include breakpoint-min($max-page-width) {
	    padding-top: 3 * $default-spacing;
    }
}

h1, h2 {
    font-weight: $normal-font-weight;
    line-height: 1.3;
}

h1 {
    font-size: 200%;
}

h2 {
    @extend %flexbox;

    margin: $default-spacing 0 0;
    padding: 0;

    font-size: 150%;

    page-break-after: avoid;
}

span {

    &.yr {
    }

    &.mo {
	    /* move the month to the right */
	    margin-left: auto;
    }

    &.tag {
        @include order(1);
        @extend %bold-font-extends;
    }

    &.title {
        @include order(2);
    }
}

time {
        @include order(4);
}

ul.article li {
    @extend %flexbox;

    margin: 0;
    padding: 0;

    &::after {
        @include flex-grow(1);
        @include order(3);

        content: "";
        border-bottom: 1px dotted $secondary-color;
        margin: -0.5em 0.5em 0.5em;
    }
}