blob: 09eecadea04a91bbe489773d39d249a971cfaad0 [file] [log] [blame]
pR0Ps69cebd62014-04-07 18:11:01 -04001@red: #ff0000;
2@black: #000000;
3@white: #ffffff;
4@light-grey: #eeeeee;
pR0Pseae22672014-04-07 19:17:02 -04005@med-grey: #5f5f5f;
pR0Ps69cebd62014-04-07 18:11:01 -04006@dark-grey: #202020;
7@blue: #0e94ec;
8@accent: @blue;
pR0Ps61e10042014-04-07 18:10:00 -04009
Vincent Cheng8d10ff22014-04-30 19:12:51 -070010@import (css) "//fonts.googleapis.com/css?family=Ubuntu|Ubuntu+Mono";
pR0Ps2faeb222014-04-07 18:23:39 -040011@sans: 'Ubuntu', sans-serif;
12@mono: 'Ubuntu Mono', monospace;
Giulio Fidente44ccac72013-03-21 18:51:03 +010013
Carey Metcalfe4bc468b2014-09-25 13:50:13 -040014@border_color: #c2c2c2;
pR0Psd351cde2013-12-29 14:32:17 -050015@pag_label_size: 60px;
pR0Ps27341772013-12-20 09:20:32 -050016@logo_size: 150px;
pR0Psa6d15c32013-12-05 20:36:35 -050017
pR0Ps5fd3a0f2014-09-27 00:56:41 -040018@content_size: 640px;
19@horiz_pad: 40px;
20
Carey Metcalfe0c84fdb2014-09-29 09:51:00 -040021//The minimum size the screen can be without scaling the main content
22@min_screen: floor(((@content_size + @horiz_pad * 2) * 1.33));
pR0Ps0a59c1a2014-01-31 01:15:49 -050023
Giulio Fidente44ccac72013-03-21 18:51:03 +010024body {
25 margin: 0;
26 padding: 0;
27 background-color: @white;
28 color: @dark-grey;
Giulio Fidentea6c58672013-03-30 14:55:03 +010029 font-family: @sans;
pR0Pseae22672014-04-07 19:17:02 -040030 font-size: 16px;
pR0Ps69c71b22014-10-01 20:32:38 -040031 min-width: 300px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010032}
33
34a {
35 color: @black;
36 text-decoration: none;
37}
38
pR0Ps41bf7d32013-12-05 16:33:55 -050039a[href]:not(.nohover) {
40 &:hover{
41 color: @accent;
42 }
43}
44
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010045hr {
pR0Ps5a6e4f02013-12-10 21:11:44 -050046 color: @border_color;
47 background-color: @border_color;
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010048 height: 1px;
49 border: none;
50}
51
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010052aside {
Giulio Fidente44ccac72013-03-21 18:51:03 +010053 div#user_meta {
pR0Ps5fd3a0f2014-09-27 00:56:41 -040054 padding: @horiz_pad 20px @horiz_pad 20px;
Giulio Fidentee3776082013-03-27 15:21:32 +010055 text-align: center;
Giulio Fidente44ccac72013-03-21 18:51:03 +010056
pR0Ps27341772013-12-20 09:20:32 -050057 img#logo {
58 width: @logo_size;
59 height: @logo_size;
Carey Metcalfe4bc468b2014-09-25 13:50:13 -040060 border-radius: 50%;
pR0Ps27341772013-12-20 09:20:32 -050061 }
62
Giulio Fidenteda4d95b2013-04-29 15:59:35 +020063 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +010064 margin: 15px 0 5px 0;
Giulio Fidente44ccac72013-03-21 18:51:03 +010065 }
Giulio Fidentea6c58672013-03-30 14:55:03 +010066
67 p {
Giulio Fidente68c65412013-03-30 15:22:42 +010068 margin: 0 0 15px 0;
Giulio Fidentefe93c232013-10-05 14:42:43 +020069 font-size: 14px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010070 }
Giulio Fidentee88666d2013-04-29 12:25:51 +020071
Giulio Fidente44ccac72013-03-21 18:51:03 +010072 ul {
pR0Pse5f49ca2014-03-04 01:47:54 -050073 margin: 20px 0 0 0;
Giulio Fidente44ccac72013-03-21 18:51:03 +010074 padding-left: 0;
Giulio Fidentefe93c232013-10-05 14:42:43 +020075 font-size: 16px;
Giulio Fidente44ccac72013-03-21 18:51:03 +010076 list-style-type: none;
Giulio Fidentee88666d2013-04-29 12:25:51 +020077
Giulio Fidente44ccac72013-03-21 18:51:03 +010078 li {
pR0Psfee52252013-12-11 11:47:26 -050079 display: block;
80 line-height: 2em;
Giulio Fidentee3776082013-03-27 15:21:32 +010081
Giulio Fidente44ccac72013-03-21 18:51:03 +010082 a {
pR0Psfee52252013-12-11 11:47:26 -050083 i {
pR0Ps8dbfbd82013-12-18 17:46:54 -050084 padding-left: 5px;
pR0Psfee52252013-12-11 11:47:26 -050085 color: @black;
pR0Ps8dbfbd82013-12-18 17:46:54 -050086 width: 30px;
pR0Psfee52252013-12-11 11:47:26 -050087 text-align: center;
88 vertical-align: middle;
89 }
Giulio Fidente44ccac72013-03-21 18:51:03 +010090 }
91 }
92 }
Giulio Fidentee88666d2013-04-29 12:25:51 +020093 }
Giulio Fidente44ccac72013-03-21 18:51:03 +010094}
95
Giulio Fidentefc3b4d02013-03-26 15:23:42 +010096main {
pR0Psa6d15c32013-12-05 20:36:35 -050097 position: relative;
98 width: 100%;
pR0Ps44330eb2013-12-06 02:02:23 -050099 margin: auto;
pR0Psa6d15c32013-12-05 20:36:35 -0500100
Giulio Fidente44ccac72013-03-21 18:51:03 +0100101 header {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400102 padding: 20px @horiz_pad 20px @horiz_pad;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500103 border-top: @border_color 1px solid;
104 border-bottom: @border_color 1px solid;
pR0Ps44330eb2013-12-06 02:02:23 -0500105 text-align: center;
pR0Pseae22672014-04-07 19:17:02 -0400106 color: @med-grey;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100107
Giulio Fidentea6c58672013-03-30 14:55:03 +0100108 p {
109 font-weight: bold;
pR0Pseae22672014-04-07 19:17:02 -0400110 font-size: 16px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100111 text-transform: uppercase;
112 }
pR0Ps09af9c42013-12-06 04:51:29 -0500113
114 p#header {
115 color: @black;
116 }
117
118 p:not(#header){
119 a {
pR0Pseae22672014-04-07 19:17:02 -0400120 color: @med-grey;
pR0Ps09af9c42013-12-06 04:51:29 -0500121 &:hover{
122 color: @accent;
123 }
124 }
125 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100126 }
127
128 article {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400129 padding: 10px @horiz_pad 10px @horiz_pad;
130 max-width: @content_size;
131 margin: auto;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100132
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100133 div.article_title {
Giulio Fidente44ccac72013-03-21 18:51:03 +0100134 }
135
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100136 div.article_text {
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200137 line-height: 1.375em;
Giulio Fidente5b174192013-03-22 23:40:00 +0100138 a {
139 text-decoration: underline;
140 }
Giulio Fidentea6c58672013-03-30 14:55:03 +0100141
142 code {
143 margin: 2px;
Giulio Fidente0161f712013-04-13 02:55:10 +0200144 padding: 0;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100145 color: @black;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200146 font-size: 14px;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100147 font-family: @mono;
148 background: @light-grey;
149 }
150
151 pre {
Giulio Fidente0161f712013-04-13 02:55:10 +0200152 margin: 22px 2px 22px 2px;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100153 padding: 2px;
154 color: @black;
155 border-left: 3px solid @accent;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200156 font-size: 14px;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100157 font-family: @mono;
158 background: @light-grey;
Giulio Fidente0161f712013-04-13 02:55:10 +0200159 line-height: 1.125em;
Giulio Fidente28d79642013-04-14 02:48:44 +0200160 overflow-x: auto;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100161 }
162
163 blockquote {
Giulio Fidente0161f712013-04-13 02:55:10 +0200164 margin: 22px 2px 22px 2px;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400165 padding-left: @horiz_pad;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100166 color: @med-grey;
Giulio Fidente0161f712013-04-13 02:55:10 +0200167 font-style: italic;
Giulio Fidentea6c58672013-03-30 14:55:03 +0100168 }
pR0Psba37f022013-12-05 16:46:27 -0500169
170 .footnote-reference {
171 vertical-align: super;
172 font-size: 12px;
173 text-decoration: none;
174 line-height: 1;
175 }
176
177 .footnote {
178 font-size: smaller;
179 .fn-backref{
180 margin-right: 5px;
181 text-decoration: none;
182 }
183 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100184 }
185
Giulio Fidentefe93c232013-10-05 14:42:43 +0200186 div.gist {
187 line-height: .875em;
188 }
189
Giulio Fidente0bc1f0e2013-11-05 16:23:23 +0100190 div.article_meta {
Giulio Fidentefe93c232013-10-05 14:42:43 +0200191 font-size: 12px;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100192 color: @med-grey;
193 }
194 }
195
196 footer {
pR0Ps5a6e4f02013-12-10 21:11:44 -0500197 border-top: @border_color 1px solid;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400198 padding: 30px @horiz_pad 30px @horiz_pad;
Giulio Fidente44ccac72013-03-21 18:51:03 +0100199
Giulio Fidenteebb4c7a2013-10-20 01:45:10 +0200200 div#paginator {
pR0Ps721949b2013-12-11 13:09:22 -0500201 font-weight: bold;
202 font-size: 15px;
203 text-transform: uppercase;
204 overflow: auto;
205 text-align: center;
206
pR0Ps69c71b22014-10-01 20:32:38 -0400207 div{
208 display: inline-block;
209 }
210
pR0Ps981a8392013-12-11 13:11:32 -0500211 span {
212 width: @pag_label_size;
pR0Ps721949b2013-12-11 13:09:22 -0500213 }
214
pR0Ps981a8392013-12-11 13:11:32 -0500215 span#left {
216 float: left;
217 text-align: left;
218 }
219
220 span#right {
pR0Ps721949b2013-12-11 13:09:22 -0500221 float: right;
pR0Ps981a8392013-12-11 13:11:32 -0500222 text-align: right;
pR0Ps721949b2013-12-11 13:09:22 -0500223 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100224 }
225 }
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100226
227 div#ending_message {
pR0Ps5a6e4f02013-12-10 21:11:44 -0500228 border-top: @border_color 1px solid;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400229 padding: 0 @horiz_pad 0 @horiz_pad;
Giulio Fidente069c6d62013-08-16 16:05:02 +0200230 color: @med-grey;
Giulio Fidentefe93c232013-10-05 14:42:43 +0200231 font-size: 10px;
Giulio Fidentebc2f70a2013-03-27 15:41:07 +0100232 }
Giulio Fidente44ccac72013-03-21 18:51:03 +0100233}
Giulio Fidentee3776082013-03-27 15:21:32 +0100234
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400235@media screen and (min-width: @min_screen) {
Giulio Fidentee3776082013-03-27 15:21:32 +0100236 aside {
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400237 width: 25%;
Giulio Fidentee3776082013-03-27 15:21:32 +0100238 height: 100%;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500239 position: absolute;
Giulio Fidentee3776082013-03-27 15:21:32 +0100240 top: 0;
241 left: 0;
Giulio Fidentee3776082013-03-27 15:21:32 +0100242
Giulio Fidenteda4d95b2013-04-29 15:59:35 +0200243 h2 {
Giulio Fidente68c65412013-03-30 15:22:42 +0100244 margin: 10px 0 0 0;
245 }
246
Giulio Fidentee3776082013-03-27 15:21:32 +0100247 div#user_meta {
Giulio Fidentee3776082013-03-27 15:21:32 +0100248 max-width: 192px;
Giulio Fidentea9b63512013-06-21 03:50:46 +0200249 text-align: right;
pR0Psa6d15c32013-12-05 20:36:35 -0500250 margin: 0 20px 0 auto;
Giulio Fidentee3776082013-03-27 15:21:32 +0100251 }
252 }
253
254 main {
Giulio Fidentee3776082013-03-27 15:21:32 +0100255 position: absolute;
256 top: 0;
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400257 left: 25%;
258 width: 75%;
259 margin-left: -1px;
pR0Ps5a6e4f02013-12-10 21:11:44 -0500260 border-left: @border_color 1px solid;
Giulio Fidentee3776082013-03-27 15:21:32 +0100261 overflow-x: hidden;
262 overflow-y: hidden;
263
264 header {
265 border-top: 0;
pR0Ps44330eb2013-12-06 02:02:23 -0500266 text-align: left;
Giulio Fidentee3776082013-03-27 15:21:32 +0100267 }
pR0Ps5fd3a0f2014-09-27 00:56:41 -0400268
269 article {
270 width: @content_size;
271 margin: 0;
272 }
273
274 footer{
275 div#paginator {
276 width: @content_size;
277 }
278 }
Giulio Fidentee3776082013-03-27 15:21:32 +0100279 }
pR0Psba37f022013-12-05 16:46:27 -0500280}