~cdv/chris.vittal.dev

ref: ae323b4931edc60680f4b0c0fb8cef6cdf5010f5 chris.vittal.dev/sass/style.scss -rw-r--r-- 2.7 KiB View raw
ae323b49Chris Vittal More necessary styling. 7 months ago
                                                                                
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/* this is a nightmare of organization, abandon all hope designers who enter here */
$bdy-font-stack: 'IBM Plex Mono', 'Fira Mono', monospace;
$fg: #222;
$bg: #EEE;
$subheading-light: #666;
$subheading-dark: #999;

body{
  font-family: $bdy-font-stack;
  font-size: 16px;
  max-width: 850px;
  padding: 4px;
  margin: 0 auto;
}

footer#copyright {
  hr {
    min-width: 100%;
  }

  line-height: 1.1;
  font-size: 12px;

  img {
    vertical-align: middle;
  }
}

footer#article-footer {
  margin: 4rem auto;
  color: #555;
  font-size: 0.95rem;
  max-width: 800px;

  a {
    color: inherit;
  }

  hr {
    margin: 2rem auto;
    border: none;
    border-top: 1px solid grey;
    max-width: 40px;
  }
}

ul.post-list {
  list-style-type: none;
  padding: 0;

  li {
    h3 {
      line-height: 1.5;
    }

    time {
      font-size: 1rem;
      font-weight: normal;
      padding-right: 1em;
    }
  }
}

.footnotes::before {
  content: "Footnotes:";
}

.footnotes {
  margin-top: 3rem;
  font-size: 0.75rem;

  p {
    font-size: 0.95rem;
  }
}

code {
  padding: 0.1em 0.2em;
  background-color: #fcf0ca;
  color: #407959;
}


@media only screen and (min-width: 520px) {
  header.top-level {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;

    .subheading {
      grid-row: 2;
      grid-column: 1;
    }

    h1 {
      grid-row: 1;
      grid-column: 1 / -1;
    }

    nav#external-links {
      grid-column: 2;
      grid-row: 2;
      justify-content: flex-end;
    }
  }
}

@media only screen and (max-width: 519px) {
  header.top-level nav#external-links {
    justify-content: flex-start;
  }
}

header.top-level {
  h1 {
    margin-bottom: 0px;
    a {
      text-decoration: none;
    }
  }

  nav#external-links {
    font-size: 90%;
    display: flex;

    span.sep {
      padding: 0 0.5em;
    }
  }

  margin-bottom: 2 * 0.67em;
}

article {
  header.post {
    h1 { margin: 0px; }

    margin: (1.5*0.83em) 0;
    display: flex;
    justify-content: space-between;

    time {
      align-self: flex-end;
    }
  }


}

time {
  color: $subheading-light;
}

body {
  color: $fg;
  background-color: $bg;
}

a {
  color: #0266bf
}

p {
  text-align: justify;
}

pre {
  padding: 0.5em 1ex;
}

.subheading {
  color: $subheading-light;
}

blockquote {
  border-left: 2px solid grey;
  color: $subheading-light;
}

@media (prefers-color-scheme: dark) {
  body {
    color: $bg;
    background-color: $fg;
  }

  time {
    color: $subheading-dark;
  }

  a {
    color: #70bcff;
  }

  .subheading {
    color: $subheading-dark;
  }

   code {
     background-color: #28282888;
     color: #8ec07c;
   }

   blockquote {
     color: $subheading-dark;
   }

  footer#article-footer {
    color: #AAA;
  }
}