blob: 37bdbc6698c31d25a3ce4d142edb5a589988348f [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
pR0Psa9f82032015-03-11 21:36:35 -040014$blue: #0e94ec;
15$accent: $blue;
pR0Ps61e10042014-04-07 18:10:00 -040016
Carey Metcalfe76e251e2016-03-12 15:36:12 -050017@import url(https://fonts.googleapis.com/css?family=Roboto|Roboto+Mono);
18$sans: 'Roboto', sans-serif;
19$mono: 'Roboto Mono';
Giulio Fidente44ccac72013-03-21 18:51:03 +010020
pR0Psa9f82032015-03-11 21:36:35 -040021$border_color: #c2c2c2;
22$pag_label_size: 60px;
23$logo_size: 150px;
pR0Psa6d15c32013-12-05 20:36:35 -050024
pR0Psa9f82032015-03-11 21:36:35 -040025$content_size: 640px;
26$horiz_pad: 40px;
pR0Ps5fd3a0f2014-09-27 00:56:41 -040027
Carey Metcalfe0c84fdb2014-09-29 09:51:00 -040028//The minimum size the screen can be without scaling the main content
pR0Psa9f82032015-03-11 21:36:35 -040029$min_screen: floor((($content_size + $horiz_pad * 2) * 1.33));
pR0Ps0a59c1a2014-01-31 01:15:49 -050030
Giulio Fidente44ccac72013-03-21 18:51:03 +010031body {
32 margin: 0;
33 padding: 0;
Carey Metcalfe76e251e2016-03-12 15:36:12 -050034 background-color: $bg-grey;
pR0Psa9f82032015-03-11 21:36:35 -040035 color: $dark-grey;
36 font-family: $sans;
pR0Pseae22672014-04-07 19:17:02 -040037 font-size: 16px;
pR0Ps69c71b22014-10-01 20:32:38 -040038 min-width: 300px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010039}
40
41a {
pR0Psa9f82032015-03-11 21:36:35 -040042 color: $black;
Giulio Fidente44ccac72013-03-21 18:51:03 +010043 text-decoration: none;
44}
45
pR0Ps41bf7d32013-12-05 16:33:55 -050046a[href]:not(.nohover) {
47 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -040048 color: $accent;
pR0Ps41bf7d32013-12-05 16:33:55 -050049 }
50}
51
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010052hr {
pR0Psa9f82032015-03-11 21:36:35 -040053 background-color: $border_color;
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010054 height: 1px;
55 border: none;
56}
57
Carey Metcalfe07235a22015-08-24 22:39:36 -040058img {
59 max-width: 100%;
60}
61
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010062aside {
Giulio Fidente44ccac72013-03-21 18:51:03 +010063 div#user_meta {
pR0Psa9f82032015-03-11 21:36:35 -040064 padding: $horiz_pad 20px $horiz_pad 20px;
Giulio Fidentee3776082013-03-27 15:21:32 +010065 text-align: center;
Giulio Fidente44ccac72013-03-21 18:51:03 +010066
pR0Ps27341772013-12-20 09:20:32 -050067 img#logo {
pR0Psa9f82032015-03-11 21:36:35 -040068 width: $logo_size;
69 height: $logo_size;
Carey Metcalfe4bc468b2014-09-25 13:50:13 -040070 border-radius: 50%;
Carey Metcalfe76e251e2016-03-12 15:36:12 -050071 border: 5px solid $black;
72 background-color: $black;
73 box-shadow: 0px 0px 1px $black;
pR0Ps27341772013-12-20 09:20:32 -050074 }
75
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020076 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +010077 margin: 15px 0 5px 0;
Giulio Fidente44ccac72013-03-21 18:51:03 +010078 }
Giulio Fidentea6c58672013-03-30 14:55:03 +010079
80 p {
pR0Ps58acb372015-03-05 00:18:35 -050081 margin: 0px;
Giulio Fidentefe93c232013-10-05 14:42:43 +020082 font-size: 14px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010083 }
Giulio Fidentee88666d2013-04-29 12:25:51 +020084
pR0Ps58acb372015-03-05 00:18:35 -050085 i {
86 width: 30px;
87 text-align: center;
88 vertical-align: middle;
89 }
90
91 div.social {
92 margin-top:15px;
93
94 a {
95 display: inline-block;
96 height: 30px;
97 }
98 }
99
Giulio Fidente44ccac72013-03-21 18:51:03 +0100100 ul {
pR0Ps58acb372015-03-05 00:18:35 -0500101 margin: 0px;
102 padding-left: 0px;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200103 font-size: 16px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100104 list-style-type: none;
Giulio Fidentee88666d2013-04-29 12:25:51 +0200105
Giulio Fidente44ccac72013-03-21 18:51:03 +0100106 li {
pR0Psfee52252013-12-11 11:47:26 -0500107 line-height: 2em;
Giulio Fidentee3776082013-03-27 15:21:32 +0100108
Giulio Fidente44ccac72013-03-21 18:51:03 +0100109 a {
pR0Psfee52252013-12-11 11:47:26 -0500110 i {
pR0Ps8dbfbd82013-12-18 17:46:54 -0500111 padding-left: 5px;
pR0Psfee52252013-12-11 11:47:26 -0500112 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100113 }
114 }
115 }
Giulio Fidentee88666d2013-04-29 12:25:51 +0200116 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100117}
118
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100119main {
pR0Psa6d15c32013-12-05 20:36:35 -0500120 position: relative;
121 width: 100%;
pR0Ps44330eb2013-12-06 02:02:23 -0500122 margin: auto;
pR0Psa6d15c32013-12-05 20:36:35 -0500123
Giulio Fidente44ccac72013-03-21 18:51:03 +0100124 header {
pR0Psa9f82032015-03-11 21:36:35 -0400125 padding: 0px $horiz_pad 0px $horiz_pad;
126 border-top: $border_color 1px solid;
127 border-bottom: $border_color 1px solid;
pR0Ps44330eb2013-12-06 02:02:23 -0500128 text-align: center;
pR0Psa9f82032015-03-11 21:36:35 -0400129 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100130
Giulio Fidentea6c58672013-03-30 14:55:03 +0100131 p {
132 font-weight: bold;
pR0Pseae22672014-04-07 19:17:02 -0400133 font-size: 16px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100134 text-transform: uppercase;
135 }
pR0Ps09af9c42013-12-06 04:51:29 -0500136
137 p#header {
pR0Psa9f82032015-03-11 21:36:35 -0400138 color: $black;
pR0Ps09af9c42013-12-06 04:51:29 -0500139 }
140
141 p:not(#header){
142 a {
pR0Psa9f82032015-03-11 21:36:35 -0400143 color: $med-grey;
pR0Ps09af9c42013-12-06 04:51:29 -0500144 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -0400145 color: $accent;
pR0Ps09af9c42013-12-06 04:51:29 -0500146 }
147 }
148 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100149 }
150
151 article {
pR0Psa9f82032015-03-11 21:36:35 -0400152 padding: 10px $horiz_pad 10px $horiz_pad;
153 max-width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400154 margin: auto;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100155
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100156 div.article_title {
Giulio Fidente44ccac72013-03-21 18:51:03 +0100157 }
158
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100159 div.article_text {
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200160 line-height: 1.375em;
Giulio Fidente5b174192013-03-22 23:40:00 +0100161 a {
162 text-decoration: underline;
163 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100164
pR0Psa9f82032015-03-11 21:36:35 -0400165 @mixin codeformat {
pR0Ps0aea77e2015-01-21 21:55:39 -0500166 color: black;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200167 font-size: 14px;
pR0Psa9f82032015-03-11 21:36:35 -0400168 font-family: $mono;
169 }
pR0Ps0aea77e2015-01-21 21:55:39 -0500170
171 code {
pR0Psa9f82032015-03-11 21:36:35 -0400172 @include codeformat;
pR0Ps89c43aa2015-01-22 23:00:03 -0500173 padding: 2px 3px;
pR0Psa9f82032015-03-11 21:36:35 -0400174 background: $light-grey;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100175 }
176
177 pre {
pR0Psa9f82032015-03-11 21:36:35 -0400178 @include codeformat;
Giulio Fidente0161f712013-04-13 02:55:10 +0200179 line-height: 1.125em;
pR0Ps0aea77e2015-01-21 21:55:39 -0500180 margin-bottom: 0px;
181 margin-top: 0px;
182 padding-top: 5px;
183 padding-bottom: 10px;
184 }
185
186 div.highlight pre {
187 padding-left: 10px;
Giulio Fidente28d79642013-04-14 02:48:44 +0200188 overflow-x: auto;
pR0Psa9f82032015-03-11 21:36:35 -0400189 border: 1px solid $code-border;
190 border-left: 3px solid $accent;
191 background: $code-background;
pR0Ps0aea77e2015-01-21 21:55:39 -0500192 }
193
194 /* Line numbers are enabled*/
195 table.highlighttable {
196 table-layout: fixed;
197 width: 100%;
pR0Psa9f82032015-03-11 21:36:35 -0400198 border: 1px solid $code-border;
pR0Ps0aea77e2015-01-21 21:55:39 -0500199 border-collapse: collapse;
200
201 pre {
202 border: none;
203 }
204
pR0Psd883e122015-01-22 16:20:30 -0500205 td {
206 padding: 0px;
207 }
208
pR0Ps0aea77e2015-01-21 21:55:39 -0500209 td.linenos {
210 width: 30px;
211 overflow: hidden;
212 text-align: right;
pR0Psa9f82032015-03-11 21:36:35 -0400213 border-left: 3px solid $accent;
214 border-right: 1px solid $code-border;
215 background: $code-linebg;
pR0Ps0aea77e2015-01-21 21:55:39 -0500216 vertical-align:top;
217
218 div.linenodiv pre {
219 padding-right: 4px;
220 float: right;
221 }
222 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100223 }
224
pR0Pse889f472015-01-22 00:50:31 -0500225 div.admonition {
226
227 border-width: 1px 1px 1px 7px;
228 border-radius: 10px;
229 border-style: solid;
pR0Psa9f82032015-03-11 21:36:35 -0400230 border-color: $code-border;
231 border-left-color: $dark-grey;
232 background-color: $code-background;
pR0Pse889f472015-01-22 00:50:31 -0500233
234 &.update, &.hint, &.important, &.note, &.tip {
pR0Psa9f82032015-03-11 21:36:35 -0400235 border-left-color: $accent;
pR0Pse889f472015-01-22 00:50:31 -0500236 }
237
238 &.warning, &.attention, &.caution, &.danger {
239 border-left-color: red;
240 }
241
242 p {
243 margin: 0px;
244 padding: 10px 15px;
245 }
246
247 p.admonition-title{
248 text-transform: uppercase;
249 font-weight: bold;
250 padding: 5px 15px;
pR0Psa9f82032015-03-11 21:36:35 -0400251 border-bottom: 1px solid $code-border;
pR0Pse889f472015-01-22 00:50:31 -0500252 }
253 }
254
Giulio Fidentea6c58672013-03-30 14:55:03 +0100255 blockquote {
Giulio Fidente0161f712013-04-13 02:55:10 +0200256 margin: 22px 2px 22px 2px;
pR0Psa9f82032015-03-11 21:36:35 -0400257 padding-left: $horiz_pad;
258 color: $med-grey;
Giulio Fidente0161f712013-04-13 02:55:10 +0200259 font-style: italic;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100260 }
Giulio Fidentefe93c232013-10-05 14:42:43 +0200261 }
262
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100263 div.article_meta {
Giulio Fidentefe93c232013-10-05 14:42:43 +0200264 font-size: 12px;
pR0Psa9f82032015-03-11 21:36:35 -0400265 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100266 }
pR0Ps032e7d82015-02-07 01:43:51 -0500267
268 div#article_comments{
269 padding-top: 10px;
270 padding-bottom: 10px;
271
272 i {
273 padding-right: 10px;
274 }
275 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100276 }
277
278 footer {
pR0Psa9f82032015-03-11 21:36:35 -0400279 border-top: $border_color 1px solid;
280 padding: 30px $horiz_pad 30px $horiz_pad;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100281
Giulio Fidenteebb4c7a2013-10-20 01:45:10 +0200282 div#paginator {
pR0Ps721949b2013-12-11 13:09:22 -0500283 font-weight: bold;
284 font-size: 15px;
285 text-transform: uppercase;
286 overflow: auto;
287 text-align: center;
288
pR0Ps69c71b22014-10-01 20:32:38 -0400289 div{
290 display: inline-block;
291 }
292
pR0Ps981a8392013-12-11 13:11:32 -0500293 span {
pR0Psa9f82032015-03-11 21:36:35 -0400294 width: $pag_label_size;
pR0Ps721949b2013-12-11 13:09:22 -0500295 }
296
pR0Ps981a8392013-12-11 13:11:32 -0500297 span#left {
298 float: left;
299 text-align: left;
300 }
301
302 span#right {
pR0Ps721949b2013-12-11 13:09:22 -0500303 float: right;
pR0Ps981a8392013-12-11 13:11:32 -0500304 text-align: right;
pR0Ps721949b2013-12-11 13:09:22 -0500305 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100306 }
307 }
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100308
309 div#ending_message {
pR0Psa9f82032015-03-11 21:36:35 -0400310 border-top: $border_color 1px solid;
311 padding: 0 $horiz_pad 0 $horiz_pad;
312 color: $med-grey;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200313 font-size: 10px;
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100314 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100315}
Giulio Fidentee3776082013-03-27 15:21:32 +0100316
pR0Psa9f82032015-03-11 21:36:35 -0400317@media screen and (min-width: $min_screen) {
Giulio Fidentee3776082013-03-27 15:21:32 +0100318 aside {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400319 width: 25%;
Giulio Fidentee3776082013-03-27 15:21:32 +0100320 height: 100%;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500321 position: absolute;
Giulio Fidentee3776082013-03-27 15:21:32 +0100322 top: 0;
323 left: 0;
Giulio Fidentee3776082013-03-27 15:21:32 +0100324
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200325 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +0100326 margin: 10px 0 0 0;
327 }
328
Giulio Fidentee3776082013-03-27 15:21:32 +0100329 div#user_meta {
Giulio Fidentee3776082013-03-27 15:21:32 +0100330 max-width: 192px;
Giulio Fidentea9b63512013-06-21 03:50:46 +0200331 text-align: right;
pR0Psa6d15c32013-12-05 20:36:35 -0500332 margin: 0 20px 0 auto;
Giulio Fidentee3776082013-03-27 15:21:32 +0100333 }
334 }
335
336 main {
Giulio Fidentee3776082013-03-27 15:21:32 +0100337 position: absolute;
338 top: 0;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400339 left: 25%;
340 width: 75%;
341 margin-left: -1px;
pR0Psa9f82032015-03-11 21:36:35 -0400342 border-left: $border_color 1px solid;
Giulio Fidentee3776082013-03-27 15:21:32 +0100343 overflow-x: hidden;
344 overflow-y: hidden;
345
346 header {
pR0Psa9f82032015-03-11 21:36:35 -0400347 padding: 10px $horiz_pad 10px $horiz_pad;
Giulio Fidentee3776082013-03-27 15:21:32 +0100348 border-top: 0;
pR0Ps44330eb2013-12-06 02:02:23 -0500349 text-align: left;
Giulio Fidentee3776082013-03-27 15:21:32 +0100350 }
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400351
352 article {
pR0Psa9f82032015-03-11 21:36:35 -0400353 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400354 margin: 0;
355 }
356
357 footer{
358 div#paginator {
pR0Psa9f82032015-03-11 21:36:35 -0400359 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400360 }
361 }
Giulio Fidentee3776082013-03-27 15:21:32 +0100362 }
pR0Psba37f022013-12-05 16:46:27 -0500363}