blob: 23b80ff8b57b83e83c92dfbc7c6f666b1fdb27d4 [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;
pR0Ps0aea77e2015-01-21 21:55:39 -05008
pR0Psa9f82032015-03-11 21:36:35 -04009$code-border: #c7c7c7;
10$code-background: #f6f6f6;
11$code-linebg: #dddddd;
pR0Ps0aea77e2015-01-21 21:55:39 -050012
pR0Psa9f82032015-03-11 21:36:35 -040013$blue: #0e94ec;
14$accent: $blue;
pR0Ps61e10042014-04-07 18:10:00 -040015
Carey Metcalfe3f00eb12016-03-09 20:04:43 -050016@import url("https://fonts.googleapis.com/css?family=Ubuntu|Ubuntu+Mono");
pR0Psa9f82032015-03-11 21:36:35 -040017$sans: 'Ubuntu', sans-serif;
18$mono: 'Ubuntu 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 Metcalfe0c84fdb2014-09-29 09:51:00 -040027//The minimum size the screen can be without scaling the main content
pR0Psa9f82032015-03-11 21:36:35 -040028$min_screen: floor((($content_size + $horiz_pad * 2) * 1.33));
pR0Ps0a59c1a2014-01-31 01:15:49 -050029
Giulio Fidente44ccac72013-03-21 18:51:03 +010030body {
31 margin: 0;
32 padding: 0;
pR0Psa9f82032015-03-11 21:36:35 -040033 background-color: $white;
34 color: $dark-grey;
35 font-family: $sans;
pR0Pseae22672014-04-07 19:17:02 -040036 font-size: 16px;
pR0Ps69c71b22014-10-01 20:32:38 -040037 min-width: 300px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010038}
39
40a {
pR0Psa9f82032015-03-11 21:36:35 -040041 color: $black;
Giulio Fidente44ccac72013-03-21 18:51:03 +010042 text-decoration: none;
43}
44
pR0Ps41bf7d32013-12-05 16:33:55 -050045a[href]:not(.nohover) {
46 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -040047 color: $accent;
pR0Ps41bf7d32013-12-05 16:33:55 -050048 }
49}
50
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010051hr {
pR0Psa9f82032015-03-11 21:36:35 -040052 background-color: $border_color;
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010053 height: 1px;
54 border: none;
55}
56
Carey Metcalfe07235a22015-08-24 22:39:36 -040057img {
58 max-width: 100%;
59}
60
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010061aside {
Giulio Fidente44ccac72013-03-21 18:51:03 +010062 div#user_meta {
pR0Psa9f82032015-03-11 21:36:35 -040063 padding: $horiz_pad 20px $horiz_pad 20px;
Giulio Fidentee3776082013-03-27 15:21:32 +010064 text-align: center;
Giulio Fidente44ccac72013-03-21 18:51:03 +010065
pR0Ps27341772013-12-20 09:20:32 -050066 img#logo {
pR0Psa9f82032015-03-11 21:36:35 -040067 width: $logo_size;
68 height: $logo_size;
Carey Metcalfe4bc468b2014-09-25 13:50:13 -040069 border-radius: 50%;
pR0Ps27341772013-12-20 09:20:32 -050070 }
71
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020072 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +010073 margin: 15px 0 5px 0;
Giulio Fidente44ccac72013-03-21 18:51:03 +010074 }
Giulio Fidentea6c58672013-03-30 14:55:03 +010075
76 p {
pR0Ps58acb372015-03-05 00:18:35 -050077 margin: 0px;
Giulio Fidentefe93c232013-10-05 14:42:43 +020078 font-size: 14px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010079 }
Giulio Fidentee88666d2013-04-29 12:25:51 +020080
pR0Ps58acb372015-03-05 00:18:35 -050081 i {
82 width: 30px;
83 text-align: center;
84 vertical-align: middle;
85 }
86
87 div.social {
88 margin-top:15px;
89
90 a {
91 display: inline-block;
92 height: 30px;
93 }
94 }
95
Giulio Fidente44ccac72013-03-21 18:51:03 +010096 ul {
pR0Ps58acb372015-03-05 00:18:35 -050097 margin: 0px;
98 padding-left: 0px;
Giulio Fidentefe93c232013-10-05 14:42:43 +020099 font-size: 16px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100100 list-style-type: none;
Giulio Fidentee88666d2013-04-29 12:25:51 +0200101
Giulio Fidente44ccac72013-03-21 18:51:03 +0100102 li {
pR0Psfee52252013-12-11 11:47:26 -0500103 line-height: 2em;
Giulio Fidentee3776082013-03-27 15:21:32 +0100104
Giulio Fidente44ccac72013-03-21 18:51:03 +0100105 a {
pR0Psfee52252013-12-11 11:47:26 -0500106 i {
pR0Ps8dbfbd82013-12-18 17:46:54 -0500107 padding-left: 5px;
pR0Psfee52252013-12-11 11:47:26 -0500108 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100109 }
110 }
111 }
Giulio Fidentee88666d2013-04-29 12:25:51 +0200112 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100113}
114
Giulio Fidentefc3b4d02013-03-26 15:23:42 +0100115main {
pR0Psa6d15c32013-12-05 20:36:35 -0500116 position: relative;
117 width: 100%;
pR0Ps44330eb2013-12-06 02:02:23 -0500118 margin: auto;
pR0Psa6d15c32013-12-05 20:36:35 -0500119
Giulio Fidente44ccac72013-03-21 18:51:03 +0100120 header {
pR0Psa9f82032015-03-11 21:36:35 -0400121 padding: 0px $horiz_pad 0px $horiz_pad;
122 border-top: $border_color 1px solid;
123 border-bottom: $border_color 1px solid;
pR0Ps44330eb2013-12-06 02:02:23 -0500124 text-align: center;
pR0Psa9f82032015-03-11 21:36:35 -0400125 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100126
Giulio Fidentea6c58672013-03-30 14:55:03 +0100127 p {
128 font-weight: bold;
pR0Pseae22672014-04-07 19:17:02 -0400129 font-size: 16px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100130 text-transform: uppercase;
131 }
pR0Ps09af9c42013-12-06 04:51:29 -0500132
133 p#header {
pR0Psa9f82032015-03-11 21:36:35 -0400134 color: $black;
pR0Ps09af9c42013-12-06 04:51:29 -0500135 }
136
137 p:not(#header){
138 a {
pR0Psa9f82032015-03-11 21:36:35 -0400139 color: $med-grey;
pR0Ps09af9c42013-12-06 04:51:29 -0500140 &:hover{
pR0Psa9f82032015-03-11 21:36:35 -0400141 color: $accent;
pR0Ps09af9c42013-12-06 04:51:29 -0500142 }
143 }
144 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100145 }
146
147 article {
pR0Psa9f82032015-03-11 21:36:35 -0400148 padding: 10px $horiz_pad 10px $horiz_pad;
149 max-width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400150 margin: auto;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100151
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100152 div.article_title {
Giulio Fidente44ccac72013-03-21 18:51:03 +0100153 }
154
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100155 div.article_text {
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200156 line-height: 1.375em;
Giulio Fidente5b174192013-03-22 23:40:00 +0100157 a {
158 text-decoration: underline;
159 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100160
pR0Psa9f82032015-03-11 21:36:35 -0400161 @mixin codeformat {
pR0Ps0aea77e2015-01-21 21:55:39 -0500162 color: black;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200163 font-size: 14px;
pR0Psa9f82032015-03-11 21:36:35 -0400164 font-family: $mono;
165 }
pR0Ps0aea77e2015-01-21 21:55:39 -0500166
167 code {
pR0Psa9f82032015-03-11 21:36:35 -0400168 @include codeformat;
pR0Ps89c43aa2015-01-22 23:00:03 -0500169 padding: 2px 3px;
pR0Psa9f82032015-03-11 21:36:35 -0400170 background: $light-grey;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100171 }
172
173 pre {
pR0Psa9f82032015-03-11 21:36:35 -0400174 @include codeformat;
Giulio Fidente0161f712013-04-13 02:55:10 +0200175 line-height: 1.125em;
pR0Ps0aea77e2015-01-21 21:55:39 -0500176 margin-bottom: 0px;
177 margin-top: 0px;
178 padding-top: 5px;
179 padding-bottom: 10px;
180 }
181
182 div.highlight pre {
183 padding-left: 10px;
Giulio Fidente28d79642013-04-14 02:48:44 +0200184 overflow-x: auto;
pR0Psa9f82032015-03-11 21:36:35 -0400185 border: 1px solid $code-border;
186 border-left: 3px solid $accent;
187 background: $code-background;
pR0Ps0aea77e2015-01-21 21:55:39 -0500188 }
189
190 /* Line numbers are enabled*/
191 table.highlighttable {
192 table-layout: fixed;
193 width: 100%;
pR0Psa9f82032015-03-11 21:36:35 -0400194 border: 1px solid $code-border;
pR0Ps0aea77e2015-01-21 21:55:39 -0500195 border-collapse: collapse;
196
197 pre {
198 border: none;
199 }
200
pR0Psd883e122015-01-22 16:20:30 -0500201 td {
202 padding: 0px;
203 }
204
pR0Ps0aea77e2015-01-21 21:55:39 -0500205 td.linenos {
206 width: 30px;
207 overflow: hidden;
208 text-align: right;
pR0Psa9f82032015-03-11 21:36:35 -0400209 border-left: 3px solid $accent;
210 border-right: 1px solid $code-border;
211 background: $code-linebg;
pR0Ps0aea77e2015-01-21 21:55:39 -0500212 vertical-align:top;
213
214 div.linenodiv pre {
215 padding-right: 4px;
216 float: right;
217 }
218 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100219 }
220
pR0Pse889f472015-01-22 00:50:31 -0500221 div.admonition {
222
223 border-width: 1px 1px 1px 7px;
224 border-radius: 10px;
225 border-style: solid;
pR0Psa9f82032015-03-11 21:36:35 -0400226 border-color: $code-border;
227 border-left-color: $dark-grey;
228 background-color: $code-background;
pR0Pse889f472015-01-22 00:50:31 -0500229
230 &.update, &.hint, &.important, &.note, &.tip {
pR0Psa9f82032015-03-11 21:36:35 -0400231 border-left-color: $accent;
pR0Pse889f472015-01-22 00:50:31 -0500232 }
233
234 &.warning, &.attention, &.caution, &.danger {
235 border-left-color: red;
236 }
237
238 p {
239 margin: 0px;
240 padding: 10px 15px;
241 }
242
243 p.admonition-title{
244 text-transform: uppercase;
245 font-weight: bold;
246 padding: 5px 15px;
pR0Psa9f82032015-03-11 21:36:35 -0400247 border-bottom: 1px solid $code-border;
pR0Pse889f472015-01-22 00:50:31 -0500248 }
249 }
250
Giulio Fidentea6c58672013-03-30 14:55:03 +0100251 blockquote {
Giulio Fidente0161f712013-04-13 02:55:10 +0200252 margin: 22px 2px 22px 2px;
pR0Psa9f82032015-03-11 21:36:35 -0400253 padding-left: $horiz_pad;
254 color: $med-grey;
Giulio Fidente0161f712013-04-13 02:55:10 +0200255 font-style: italic;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100256 }
Giulio Fidentefe93c232013-10-05 14:42:43 +0200257 }
258
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100259 div.article_meta {
Giulio Fidentefe93c232013-10-05 14:42:43 +0200260 font-size: 12px;
pR0Psa9f82032015-03-11 21:36:35 -0400261 color: $med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100262 }
pR0Ps032e7d82015-02-07 01:43:51 -0500263
264 div#article_comments{
265 padding-top: 10px;
266 padding-bottom: 10px;
267
268 i {
269 padding-right: 10px;
270 }
271 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100272 }
273
274 footer {
pR0Psa9f82032015-03-11 21:36:35 -0400275 border-top: $border_color 1px solid;
276 padding: 30px $horiz_pad 30px $horiz_pad;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100277
Giulio Fidenteebb4c7a2013-10-20 01:45:10 +0200278 div#paginator {
pR0Ps721949b2013-12-11 13:09:22 -0500279 font-weight: bold;
280 font-size: 15px;
281 text-transform: uppercase;
282 overflow: auto;
283 text-align: center;
284
pR0Ps69c71b22014-10-01 20:32:38 -0400285 div{
286 display: inline-block;
287 }
288
pR0Ps981a8392013-12-11 13:11:32 -0500289 span {
pR0Psa9f82032015-03-11 21:36:35 -0400290 width: $pag_label_size;
pR0Ps721949b2013-12-11 13:09:22 -0500291 }
292
pR0Ps981a8392013-12-11 13:11:32 -0500293 span#left {
294 float: left;
295 text-align: left;
296 }
297
298 span#right {
pR0Ps721949b2013-12-11 13:09:22 -0500299 float: right;
pR0Ps981a8392013-12-11 13:11:32 -0500300 text-align: right;
pR0Ps721949b2013-12-11 13:09:22 -0500301 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100302 }
303 }
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100304
305 div#ending_message {
pR0Psa9f82032015-03-11 21:36:35 -0400306 border-top: $border_color 1px solid;
307 padding: 0 $horiz_pad 0 $horiz_pad;
308 color: $med-grey;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200309 font-size: 10px;
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100310 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100311}
Giulio Fidentee3776082013-03-27 15:21:32 +0100312
pR0Psa9f82032015-03-11 21:36:35 -0400313@media screen and (min-width: $min_screen) {
Giulio Fidentee3776082013-03-27 15:21:32 +0100314 aside {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400315 width: 25%;
Giulio Fidentee3776082013-03-27 15:21:32 +0100316 height: 100%;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500317 position: absolute;
Giulio Fidentee3776082013-03-27 15:21:32 +0100318 top: 0;
319 left: 0;
Giulio Fidentee3776082013-03-27 15:21:32 +0100320
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200321 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +0100322 margin: 10px 0 0 0;
323 }
324
Giulio Fidentee3776082013-03-27 15:21:32 +0100325 div#user_meta {
Giulio Fidentee3776082013-03-27 15:21:32 +0100326 max-width: 192px;
Giulio Fidentea9b63512013-06-21 03:50:46 +0200327 text-align: right;
pR0Psa6d15c32013-12-05 20:36:35 -0500328 margin: 0 20px 0 auto;
Giulio Fidentee3776082013-03-27 15:21:32 +0100329 }
330 }
331
332 main {
Giulio Fidentee3776082013-03-27 15:21:32 +0100333 position: absolute;
334 top: 0;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400335 left: 25%;
336 width: 75%;
337 margin-left: -1px;
pR0Psa9f82032015-03-11 21:36:35 -0400338 border-left: $border_color 1px solid;
Giulio Fidentee3776082013-03-27 15:21:32 +0100339 overflow-x: hidden;
340 overflow-y: hidden;
341
342 header {
pR0Psa9f82032015-03-11 21:36:35 -0400343 padding: 10px $horiz_pad 10px $horiz_pad;
Giulio Fidentee3776082013-03-27 15:21:32 +0100344 border-top: 0;
pR0Ps44330eb2013-12-06 02:02:23 -0500345 text-align: left;
Giulio Fidentee3776082013-03-27 15:21:32 +0100346 }
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400347
348 article {
pR0Psa9f82032015-03-11 21:36:35 -0400349 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400350 margin: 0;
351 }
352
353 footer{
354 div#paginator {
pR0Psa9f82032015-03-11 21:36:35 -0400355 width: $content_size;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400356 }
357 }
Giulio Fidentee3776082013-03-27 15:21:32 +0100358 }
pR0Psba37f022013-12-05 16:46:27 -0500359}