blob: 976d1cda2b46e9f91e6021485a0eec4c6f8fc468 [file] [log] [blame]
pR0Psae71ee12015-03-05 01:03:27 -05001@charset "UTF-8";
2
pR0Psa9f82032015-03-11 21:36:35 -04003$black: #000000;
4$white: #ffffff;
5$light-grey: #eeeeee;
6$med-grey: #5f5f5f;
7$dark-grey: #202020;
Carey Metcalfe76e251e2016-03-12 15:36:12 -05008$bg-grey: #FAFAFA;
pR0Ps0aea77e2015-01-21 21:55:39 -05009
pR0Psa9f82032015-03-11 21:36:35 -040010$code-border: #c7c7c7;
11$code-background: #f6f6f6;
12$code-linebg: #dddddd;
pR0Ps0aea77e2015-01-21 21:55:39 -050013
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040014$accent: #0e94ec;
15$danger: red;
pR0Ps61e10042014-04-07 18:10:00 -040016
Carey Metcalfefbcb7512019-01-23 04:22:57 -050017$sans: -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
18$mono: monospace;
Giulio Fidente44ccac72013-03-21 18:51:03 +010019
pR0Psa9f82032015-03-11 21:36:35 -040020$border_color: #c2c2c2;
21$pag_label_size: 60px;
22$logo_size: 150px;
pR0Psa6d15c32013-12-05 20:36:35 -050023
pR0Psa9f82032015-03-11 21:36:35 -040024$content_size: 640px;
25$horiz_pad: 40px;
pR0Ps5fd3a0f2014-09-27 00:56:41 -040026
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040027$main_font_size: 1rem;
28$nav_font_size: 1rem;
29$subtitle_font_size: 0.9rem;
Carey Metcalfe4a365052019-01-23 04:19:51 -050030$code_font_size: 1rem;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040031$article_meta_font_size: 0.8rem;
32$pagination_font_size: 0.9rem;
33$footer_font_size: 0.7rem;
34
Carey Metcalfe0c84fdb2014-09-29 09:51:00 -040035//The minimum size the screen can be without scaling the main content
pR0Psa9f82032015-03-11 21:36:35 -040036$min_screen: floor((($content_size + $horiz_pad * 2) * 1.33));
pR0Ps0a59c1a2014-01-31 01:15:49 -050037
Giulio Fidente44ccac72013-03-21 18:51:03 +010038body {
39 margin: 0;
40 padding: 0;
Carey Metcalfe76e251e2016-03-12 15:36:12 -050041 background-color: $bg-grey;
pR0Psa9f82032015-03-11 21:36:35 -040042 color: $dark-grey;
43 font-family: $sans;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040044 font-size: $main_font_size;
pR0Ps69c71b22014-10-01 20:32:38 -040045 min-width: 300px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010046}
47
48a {
pR0Psa9f82032015-03-11 21:36:35 -040049 color: $black;
Giulio Fidente44ccac72013-03-21 18:51:03 +010050 text-decoration: none;
51}
52
pR0Ps41bf7d32013-12-05 16:33:55 -050053a[href]:not(.nohover) {
54 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -040055 color: $accent;
pR0Ps41bf7d32013-12-05 16:33:55 -050056 }
57}
58
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010059hr {
pR0Psa9f82032015-03-11 21:36:35 -040060 background-color: $border_color;
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010061 height: 1px;
62 border: none;
63}
64
Carey Metcalfe07235a22015-08-24 22:39:36 -040065img {
66 max-width: 100%;
67}
68
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010069aside {
Giulio Fidente44ccac72013-03-21 18:51:03 +010070 div#user_meta {
pR0Psa9f82032015-03-11 21:36:35 -040071 padding: $horiz_pad 20px $horiz_pad 20px;
Giulio Fidentee3776082013-03-27 15:21:32 +010072 text-align: center;
Giulio Fidente44ccac72013-03-21 18:51:03 +010073
pR0Ps27341772013-12-20 09:20:32 -050074 img#logo {
pR0Psa9f82032015-03-11 21:36:35 -040075 width: $logo_size;
76 height: $logo_size;
Carey Metcalfe4bc468b2014-09-25 13:50:13 -040077 border-radius: 50%;
Carey Metcalfe76e251e2016-03-12 15:36:12 -050078 border: 5px solid $black;
79 background-color: $black;
80 box-shadow: 0px 0px 1px $black;
pR0Ps27341772013-12-20 09:20:32 -050081 }
82
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020083 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +010084 margin: 15px 0 5px 0;
Giulio Fidente44ccac72013-03-21 18:51:03 +010085 }
Giulio Fidentea6c58672013-03-30 14:55:03 +010086
87 p {
pR0Ps58acb372015-03-05 00:18:35 -050088 margin: 0px;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -040089 font-size: $subtitle_font_size;
Giulio Fidente44ccac72013-03-21 18:51:03 +010090 }
Giulio Fidentee88666d2013-04-29 12:25:51 +020091
pR0Ps58acb372015-03-05 00:18:35 -050092 i {
93 width: 30px;
94 text-align: center;
95 vertical-align: middle;
96 }
97
98 div.social {
99 margin-top:15px;
100
101 a {
102 display: inline-block;
103 height: 30px;
104 }
105 }
106
Giulio Fidente44ccac72013-03-21 18:51:03 +0100107 ul {
pR0Ps58acb372015-03-05 00:18:35 -0500108 margin: 0px;
109 padding-left: 0px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100110 list-style-type: none;
Giulio Fidentee88666d2013-04-29 12:25:51 +0200111
Giulio Fidente44ccac72013-03-21 18:51:03 +0100112 li {
pR0Psfee52252013-12-11 11:47:26 -0500113 line-height: 2em;
Giulio Fidentee3776082013-03-27 15:21:32 +0100114
Giulio Fidente44ccac72013-03-21 18:51:03 +0100115 a {
pR0Psfee52252013-12-11 11:47:26 -0500116 i {
pR0Ps8dbfbd82013-12-18 17:46:54 -0500117 padding-left: 5px;
pR0Psfee52252013-12-11 11:47:26 -0500118 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100119 }
120 }
121 }
Giulio Fidentee88666d2013-04-29 12:25:51 +0200122 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100123}
124
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100125main {
pR0Psa6d15c32013-12-05 20:36:35 -0500126 position: relative;
127 width: 100%;
pR0Ps44330eb2013-12-06 02:02:23 -0500128 margin: auto;
pR0Psa6d15c32013-12-05 20:36:35 -0500129
Giulio Fidente44ccac72013-03-21 18:51:03 +0100130 header {
pR0Psa9f82032015-03-11 21:36:35 -0400131 padding: 0px $horiz_pad 0px $horiz_pad;
132 border-top: $border_color 1px solid;
133 border-bottom: $border_color 1px solid;
pR0Ps44330eb2013-12-06 02:02:23 -0500134 text-align: center;
pR0Psa9f82032015-03-11 21:36:35 -0400135 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100136
Giulio Fidentea6c58672013-03-30 14:55:03 +0100137 p {
138 font-weight: bold;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400139 font-size: $nav_font_size;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100140 text-transform: uppercase;
141 }
pR0Ps09af9c42013-12-06 04:51:29 -0500142
143 p#header {
pR0Psa9f82032015-03-11 21:36:35 -0400144 color: $black;
pR0Ps09af9c42013-12-06 04:51:29 -0500145 }
146
147 p:not(#header){
148 a {
pR0Psa9f82032015-03-11 21:36:35 -0400149 color: $med-grey;
pR0Ps09af9c42013-12-06 04:51:29 -0500150 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -0400151 color: $accent;
pR0Ps09af9c42013-12-06 04:51:29 -0500152 }
153 }
154 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100155 }
156
157 article {
pR0Psa9f82032015-03-11 21:36:35 -0400158 padding: 10px $horiz_pad 10px $horiz_pad;
159 max-width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400160 margin: auto;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100161
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100162 div.article_title {
Giulio Fidente44ccac72013-03-21 18:51:03 +0100163 }
164
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100165 div.article_text {
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200166 line-height: 1.375em;
Giulio Fidente5b174192013-03-22 23:40:00 +0100167 a {
168 text-decoration: underline;
169 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100170
Luigi Santivetti006efe12020-07-20 00:19:37 +0100171 .field {
172 border: 0;
173 }
174
pR0Psa9f82032015-03-11 21:36:35 -0400175 @mixin codeformat {
pR0Ps0aea77e2015-01-21 21:55:39 -0500176 color: black;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400177 font-size: $code_font_size;
pR0Psa9f82032015-03-11 21:36:35 -0400178 font-family: $mono;
179 }
pR0Ps0aea77e2015-01-21 21:55:39 -0500180
181 code {
pR0Psa9f82032015-03-11 21:36:35 -0400182 @include codeformat;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400183 padding: 1px 3px;
pR0Psa9f82032015-03-11 21:36:35 -0400184 background: $light-grey;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100185 }
186
187 pre {
pR0Psa9f82032015-03-11 21:36:35 -0400188 @include codeformat;
Carey Metcalfe4a365052019-01-23 04:19:51 -0500189 line-height: 1.25;
pR0Ps0aea77e2015-01-21 21:55:39 -0500190 margin-bottom: 0px;
191 margin-top: 0px;
192 padding-top: 5px;
193 padding-bottom: 10px;
194 }
195
Carey Metcalfe4a365052019-01-23 04:19:51 -0500196 div.highlight {
197 overflow: auto;
198 }
199
pR0Ps0aea77e2015-01-21 21:55:39 -0500200 div.highlight pre {
Carey Metcalfe4a365052019-01-23 04:19:51 -0500201 display: inline-block;
pR0Ps0aea77e2015-01-21 21:55:39 -0500202 padding-left: 10px;
Giulio Fidente28d79642013-04-14 02:48:44 +0200203 overflow-x: auto;
pR0Psa9f82032015-03-11 21:36:35 -0400204 border: 1px solid $code-border;
205 border-left: 3px solid $accent;
206 background: $code-background;
pR0Ps0aea77e2015-01-21 21:55:39 -0500207 }
208
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400209 /* Line numbers are enabled */
pR0Ps0aea77e2015-01-21 21:55:39 -0500210 table.highlighttable {
211 table-layout: fixed;
212 width: 100%;
pR0Psa9f82032015-03-11 21:36:35 -0400213 border: 1px solid $code-border;
pR0Ps0aea77e2015-01-21 21:55:39 -0500214 border-collapse: collapse;
215
216 pre {
217 border: none;
218 }
219
pR0Psd883e122015-01-22 16:20:30 -0500220 td {
221 padding: 0px;
222 }
223
pR0Ps0aea77e2015-01-21 21:55:39 -0500224 td.linenos {
225 width: 30px;
226 overflow: hidden;
227 text-align: right;
pR0Psa9f82032015-03-11 21:36:35 -0400228 border-left: 3px solid $accent;
229 border-right: 1px solid $code-border;
230 background: $code-linebg;
pR0Ps0aea77e2015-01-21 21:55:39 -0500231 vertical-align:top;
232
233 div.linenodiv pre {
234 padding-right: 4px;
235 float: right;
236 }
237 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100238 }
239
pR0Pse889f472015-01-22 00:50:31 -0500240 div.admonition {
241
242 border-width: 1px 1px 1px 7px;
243 border-radius: 10px;
244 border-style: solid;
pR0Psa9f82032015-03-11 21:36:35 -0400245 border-color: $code-border;
246 border-left-color: $dark-grey;
247 background-color: $code-background;
pR0Pse889f472015-01-22 00:50:31 -0500248
249 &.update, &.hint, &.important, &.note, &.tip {
pR0Psa9f82032015-03-11 21:36:35 -0400250 border-left-color: $accent;
pR0Pse889f472015-01-22 00:50:31 -0500251 }
252
253 &.warning, &.attention, &.caution, &.danger {
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400254 border-left-color: $danger;
pR0Pse889f472015-01-22 00:50:31 -0500255 }
256
257 p {
258 margin: 0px;
259 padding: 10px 15px;
260 }
261
262 p.admonition-title{
263 text-transform: uppercase;
264 font-weight: bold;
265 padding: 5px 15px;
pR0Psa9f82032015-03-11 21:36:35 -0400266 border-bottom: 1px solid $code-border;
pR0Pse889f472015-01-22 00:50:31 -0500267 }
268 }
269
Giulio Fidentea6c58672013-03-30 14:55:03 +0100270 blockquote {
Giulio Fidente0161f712013-04-13 02:55:10 +0200271 margin: 22px 2px 22px 2px;
pR0Psa9f82032015-03-11 21:36:35 -0400272 padding-left: $horiz_pad;
273 color: $med-grey;
Giulio Fidente0161f712013-04-13 02:55:10 +0200274 font-style: italic;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100275 }
Giulio Fidentefe93c232013-10-05 14:42:43 +0200276 }
277
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100278 div.article_meta {
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400279 font-size: $article_meta_font_size;
pR0Psa9f82032015-03-11 21:36:35 -0400280 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100281 }
pR0Ps032e7d82015-02-07 01:43:51 -0500282
283 div#article_comments{
284 padding-top: 10px;
285 padding-bottom: 10px;
286
287 i {
288 padding-right: 10px;
289 }
290 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100291 }
292
293 footer {
pR0Psa9f82032015-03-11 21:36:35 -0400294 border-top: $border_color 1px solid;
295 padding: 30px $horiz_pad 30px $horiz_pad;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100296
Giulio Fidenteebb4c7a2013-10-20 01:45:10 +0200297 div#paginator {
pR0Ps721949b2013-12-11 13:09:22 -0500298 font-weight: bold;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400299 font-size: $pagination_font_size;
pR0Ps721949b2013-12-11 13:09:22 -0500300 text-transform: uppercase;
301 overflow: auto;
302 text-align: center;
303
pR0Ps69c71b22014-10-01 20:32:38 -0400304 div{
305 display: inline-block;
306 }
307
pR0Ps981a8392013-12-11 13:11:32 -0500308 span {
pR0Psa9f82032015-03-11 21:36:35 -0400309 width: $pag_label_size;
pR0Ps721949b2013-12-11 13:09:22 -0500310 }
311
pR0Ps981a8392013-12-11 13:11:32 -0500312 span#left {
313 float: left;
314 text-align: left;
315 }
316
317 span#right {
pR0Ps721949b2013-12-11 13:09:22 -0500318 float: right;
pR0Ps981a8392013-12-11 13:11:32 -0500319 text-align: right;
pR0Ps721949b2013-12-11 13:09:22 -0500320 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100321 }
322 }
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100323
324 div#ending_message {
pR0Psa9f82032015-03-11 21:36:35 -0400325 border-top: $border_color 1px solid;
326 padding: 0 $horiz_pad 0 $horiz_pad;
327 color: $med-grey;
Carey Metcalfecccb4ec2016-10-19 02:48:15 -0400328 font-size: $footer_font_size;
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100329 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100330}
Giulio Fidentee3776082013-03-27 15:21:32 +0100331
pR0Psa9f82032015-03-11 21:36:35 -0400332@media screen and (min-width: $min_screen) {
Giulio Fidentee3776082013-03-27 15:21:32 +0100333 aside {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400334 width: 25%;
Giulio Fidentee3776082013-03-27 15:21:32 +0100335 height: 100%;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500336 position: absolute;
Giulio Fidentee3776082013-03-27 15:21:32 +0100337 top: 0;
338 left: 0;
Giulio Fidentee3776082013-03-27 15:21:32 +0100339
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200340 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +0100341 margin: 10px 0 0 0;
342 }
343
Giulio Fidentee3776082013-03-27 15:21:32 +0100344 div#user_meta {
Giulio Fidentee3776082013-03-27 15:21:32 +0100345 max-width: 192px;
Giulio Fidentea9b63512013-06-21 03:50:46 +0200346 text-align: right;
pR0Psa6d15c32013-12-05 20:36:35 -0500347 margin: 0 20px 0 auto;
Giulio Fidentee3776082013-03-27 15:21:32 +0100348 }
349 }
350
351 main {
Giulio Fidentee3776082013-03-27 15:21:32 +0100352 position: absolute;
353 top: 0;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400354 left: 25%;
355 width: 75%;
356 margin-left: -1px;
pR0Psa9f82032015-03-11 21:36:35 -0400357 border-left: $border_color 1px solid;
Giulio Fidentee3776082013-03-27 15:21:32 +0100358 overflow-x: hidden;
359 overflow-y: hidden;
360
361 header {
pR0Psa9f82032015-03-11 21:36:35 -0400362 padding: 10px $horiz_pad 10px $horiz_pad;
Giulio Fidentee3776082013-03-27 15:21:32 +0100363 border-top: 0;
pR0Ps44330eb2013-12-06 02:02:23 -0500364 text-align: left;
Giulio Fidentee3776082013-03-27 15:21:32 +0100365 }
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400366
367 article {
pR0Psa9f82032015-03-11 21:36:35 -0400368 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400369 margin: 0;
370 }
371
372 footer{
373 div#paginator {
pR0Psa9f82032015-03-11 21:36:35 -0400374 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400375 }
376 }
Giulio Fidentee3776082013-03-27 15:21:32 +0100377 }
pR0Psba37f022013-12-05 16:46:27 -0500378}