Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 1 | @red: #ff0000; |
2 | @black: #000000; | ||||
3 | @white: #ffffff; | ||||
4 | @light-grey: #eeeeee; | ||||
5 | @med-grey: #999999; | ||||
6 | @dark-grey: #4d4d4d; | ||||
7 | @blue: #0e94ec; | ||||
8 | @accent: @blue; | ||||
9 | |||||
10 | body { | ||||
11 | margin: 0; | ||||
12 | padding: 0; | ||||
13 | background-color: @white; | ||||
14 | color: @dark-grey; | ||||
15 | font-family: 'PT Sans', sans-serif; | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 16 | font-size: 1em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 17 | } |
18 | |||||
19 | a { | ||||
20 | color: @black; | ||||
21 | text-decoration: none; | ||||
22 | } | ||||
23 | |||||
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 24 | hr { |
25 | color: @light-grey; | ||||
26 | background-color: @light-grey; | ||||
27 | height: 1px; | ||||
28 | border: none; | ||||
29 | } | ||||
30 | |||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 31 | .border-radius (@radius: 5px) { |
32 | border-radius: @radius; | ||||
33 | -moz-border-radius: @radius; | ||||
34 | -webkit-border-radius: @radius; | ||||
35 | } | ||||
36 | |||||
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 37 | aside { |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 38 | div#user_meta { |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 39 | margin: 0; |
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 40 | padding: 40px; |
41 | font-family: 'PT Serif', serif; | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame^] | 42 | text-align: center; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 43 | |
44 | h1 { | ||||
Giulio Fidente | d8d8660 | 2013-03-27 12:23:46 +0100 | [diff] [blame] | 45 | margin-bottom: 10px; |
46 | font-size: 1.75em; | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 47 | } |
48 | |||||
49 | h2 { | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 50 | font-size: 0.75em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 51 | font-weight: normal; |
52 | } | ||||
53 | |||||
54 | ul { | ||||
Giulio Fidente | 933fe5e | 2013-03-27 10:24:10 +0100 | [diff] [blame] | 55 | margin: 40px 0 40px 0; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 56 | padding-left: 0; |
Giulio Fidente | 933fe5e | 2013-03-27 10:24:10 +0100 | [diff] [blame] | 57 | font-size: 0.875em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 58 | list-style-type: none; |
59 | |||||
60 | li { | ||||
61 | padding: 10px 0 10px 0; | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame^] | 62 | display: inline; |
63 | |||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 64 | a { |
65 | color: @med-grey; | ||||
66 | border: 2px solid @light-grey; | ||||
67 | .border-radius(10px); | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame^] | 68 | padding: 5px 10px 5px 10px; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 69 | } |
70 | } | ||||
71 | } | ||||
72 | } | ||||
73 | } | ||||
74 | |||||
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 75 | main { |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 76 | header { |
77 | padding: 40px; | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame^] | 78 | border-top: @light-grey 1px solid; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 79 | border-bottom: @light-grey 1px solid; |
80 | |||||
81 | h3 { | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 82 | font-size: 0.75em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 83 | text-transform: uppercase; |
84 | } | ||||
85 | } | ||||
86 | |||||
87 | article { | ||||
88 | padding: 40px; | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame^] | 89 | min-width: 140px; |
90 | max-width: 608px; | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 91 | |
92 | h1 { | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 93 | font-size: 1.5em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 94 | } |
95 | |||||
96 | h2 { | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 97 | font-size: 1.375em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 98 | } |
99 | |||||
100 | h3 { | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 101 | font-size: 1.25em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 102 | } |
103 | |||||
104 | h4 { | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 105 | font-size: 1.125em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 106 | } |
107 | |||||
108 | h5 { | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 109 | font-size: 1em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 110 | } |
111 | |||||
112 | h6 { | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 113 | font-size: 0.75em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 114 | } |
115 | |||||
116 | code { | ||||
Giulio Fidente | c96544f | 2013-03-26 18:31:54 +0100 | [diff] [blame] | 117 | padding: 2px; |
118 | color: @black; | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 119 | font-size: 0.875em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 120 | font-family: 'PT Mono', monospace; |
121 | background: @light-grey; | ||||
122 | } | ||||
123 | |||||
124 | pre { | ||||
Giulio Fidente | c96544f | 2013-03-26 18:31:54 +0100 | [diff] [blame] | 125 | padding-left: 5px; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 126 | color: @black; |
127 | border-left: 5px solid @accent; | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 128 | font-size: 0.875em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 129 | font-family: 'PT Mono', monospace; |
130 | background: @light-grey; | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 131 | line-height: 1.25em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 132 | } |
133 | |||||
134 | blockquote { | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame^] | 135 | padding-left: 15px; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 136 | color: @med-grey; |
137 | } | ||||
138 | |||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 139 | div#article_title{ |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 140 | a { |
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 141 | font-size: 1.75em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 142 | } |
143 | } | ||||
144 | |||||
Giulio Fidente | a5278c1 | 2013-03-23 00:33:24 +0100 | [diff] [blame] | 145 | div#article_text { |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 146 | margin: 0; |
147 | padding: 0; | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 148 | line-height: 1.625em; |
Giulio Fidente | 5b17419 | 2013-03-22 23:40:00 +0100 | [diff] [blame] | 149 | a { |
150 | text-decoration: underline; | ||||
151 | } | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 152 | } |
153 | |||||
154 | div#article_meta { | ||||
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 155 | margin: 0; |
156 | padding: 0; | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 157 | font-size: 0.625em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 158 | color: @med-grey; |
159 | } | ||||
160 | } | ||||
161 | |||||
162 | footer { | ||||
163 | border-top: @light-grey 1px solid; | ||||
164 | padding: 40px; | ||||
165 | |||||
166 | a.button_accent { | ||||
167 | padding: 10px; | ||||
168 | border: 2px solid @accent; | ||||
169 | .border-radius(20px); | ||||
170 | text-transform: uppercase; | ||||
171 | color: @accent; | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 172 | font-size: 1.25em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 173 | &:hover { |
174 | color: @white; | ||||
175 | background-color: @accent; | ||||
176 | } | ||||
177 | &:active { | ||||
178 | color: @white; | ||||
179 | background-color: @accent; | ||||
180 | } | ||||
181 | } | ||||
182 | |||||
Giulio Fidente | 91c1d45 | 2013-03-22 15:15:17 +0100 | [diff] [blame] | 183 | p#paginator { |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 184 | } |
185 | } | ||||
186 | } | ||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame^] | 187 | |
188 | @media screen and (min-width: 1024px) { | ||||
189 | aside { | ||||
190 | width: 25%; | ||||
191 | height: 100%; | ||||
192 | position: fixed; | ||||
193 | top: 0; | ||||
194 | left: 0; | ||||
195 | border-right: @light-grey 1px solid; | ||||
196 | |||||
197 | div#user_meta { | ||||
198 | min-width: 140px; | ||||
199 | max-width: 192px; | ||||
200 | text-align: left; | ||||
201 | |||||
202 | ul { | ||||
203 | li { | ||||
204 | display: block; | ||||
205 | } | ||||
206 | } | ||||
207 | } | ||||
208 | } | ||||
209 | |||||
210 | main { | ||||
211 | width: 75%; | ||||
212 | position: absolute; | ||||
213 | top: 0; | ||||
214 | left: 25%; | ||||
215 | overflow-x: hidden; | ||||
216 | overflow-y: hidden; | ||||
217 | |||||
218 | header { | ||||
219 | border-top: 0; | ||||
220 | } | ||||
221 | } | ||||
222 | } |