aboutsummaryrefslogtreecommitdiff
path: root/sass/sitestyle.scss
blob: f3e2f098984375f822598a98e3162b8e716ecb34 (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
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
@import "colors.scss";

// Generate light-scheme and dark-scheme colors from the '$colors' list
:root {
    @each $key, $value in map-get($colors, 'light') {
        #{compose-color-variable($key)}: #{$value};
    }
    @at-root @media (prefers-color-scheme: dark) {
        & {
            @each $key, $value in map-get($colors, 'dark') {
                #{compose-color-variable($key)}: #{$value};
            }

        }
    }
}

body {
    margin: 0;
    background-color: $carbs-color-bg;
    font-family: $font-text;
    font-size: $font-size;
    color: $carbs-color-fg;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-overflow-style: scrollbar;
    -webkit-tap-highlight-color: transparent;
}

/* Reasonable line-height for better readability. */
p, pre, li, dt, dd, table, code, address { line-height: 1.5em; }

p {
    margin-top: 1em;
    margin-bottom: 1em;
}

#content {
    width: 95%;
    margin: 0 auto;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    max-width: 50em;
}

.subtitle {
    color: $carbs-color-fg;
    font-weight: normal;
    font-size: $font-size;
    font-style: italic;
}

code, pre.src {
    padding: .2em .4em;
    margin: 0;
    font-size: 85%;
}

code {
    background-color: $carbs-highlight;
    border-radius: 3px;
}

h1, h2, h3, h4, h5, h6 {
    a {
        color: inherit;
        &:hover { text-decoration: none ;}
    }
}

h1 {
    color: $carbs-pink;
    font-weight: 800;
    a:hover { @include theme-adjust-hue(color, carbs-pink, 30deg) ;}
}

h2 {
    color: $carbs-blue;
    font-weight: 700;
    a:hover { color: $carbs-purple; }
}

h3 {
    color: $carbs-color-fg;
    font-weight: 600;
    a:hover { color: $carbs-blue; }
}

pre {
    font: monospace;
    border-radius: 3px;
    border: 1px solid $carbs-highlight;
    background-color: $carbs-highlight;
    padding: 0.5em;
    margin: 1em;
    code, &.src {
        display: block;
        overflow: auto;
    }
    code { background: transparent; }
}

a {
    text-decoration: none;
    font-weight: bold;
    color: $link;
}

a:hover {
    text-decoration: underline;
    color: $link-alt;
}

blockquote {
    border-left: 1px solid $carbs-highlight;
    font-style: italic;
}