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; | ||||
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 9 | @sans: 'PT Sans', sans-serif; |
10 | @serif: 'PT Serif', serif; | ||||
11 | @mono: 'PT Mono', monospace; | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 12 | |
13 | body { | ||||
14 | margin: 0; | ||||
15 | padding: 0; | ||||
16 | background-color: @white; | ||||
17 | color: @dark-grey; | ||||
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 18 | font-family: @sans; |
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 19 | font-size: 1em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 20 | } |
21 | |||||
22 | a { | ||||
23 | color: @black; | ||||
24 | text-decoration: none; | ||||
25 | } | ||||
26 | |||||
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 27 | hr { |
28 | color: @light-grey; | ||||
29 | background-color: @light-grey; | ||||
30 | height: 1px; | ||||
31 | border: none; | ||||
32 | } | ||||
33 | |||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 34 | .border-radius (@radius: 5px) { |
35 | border-radius: @radius; | ||||
36 | -moz-border-radius: @radius; | ||||
37 | -webkit-border-radius: @radius; | ||||
38 | } | ||||
39 | |||||
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 40 | aside { |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 41 | div#user_meta { |
Giulio Fidente | fc3b4d0 | 2013-03-26 15:23:42 +0100 | [diff] [blame] | 42 | padding: 40px; |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 43 | text-align: center; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 44 | |
45 | h1 { | ||||
Giulio Fidente | 68c6541 | 2013-03-30 15:22:42 +0100 | [diff] [blame] | 46 | margin: 15px 0 5px 0; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 47 | } |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 48 | |
49 | p { | ||||
Giulio Fidente | 68c6541 | 2013-03-30 15:22:42 +0100 | [diff] [blame] | 50 | margin: 0 0 15px 0; |
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 51 | font-size: 0.75em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 52 | } |
53 | |||||
54 | ul { | ||||
Giulio Fidente | 4a7ae15 | 2013-03-30 10:44:45 +0100 | [diff] [blame] | 55 | margin: 40px 0 0 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 { | ||||
Giulio Fidente | 4962644 | 2013-03-30 15:10:44 +0100 | [diff] [blame] | 61 | margin-right: 5px; |
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 { |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 65 | padding: 5px 15px 5px 15px; |
66 | border: 3px solid @light-grey; | ||||
67 | .border-radius(15px); | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 68 | color: @med-grey; |
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 | |||||
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 81 | p { |
82 | font-weight: bold; | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 83 | font-size: 0.75em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 84 | text-transform: uppercase; |
85 | } | ||||
86 | } | ||||
87 | |||||
88 | article { | ||||
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 89 | max-width: 640px; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 90 | padding: 40px; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 91 | |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 92 | div#article_title { |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 93 | } |
94 | |||||
Giulio Fidente | a5278c1 | 2013-03-23 00:33:24 +0100 | [diff] [blame] | 95 | div#article_text { |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 96 | line-height: 1.5em; |
Giulio Fidente | 5b17419 | 2013-03-22 23:40:00 +0100 | [diff] [blame] | 97 | a { |
98 | text-decoration: underline; | ||||
99 | } | ||||
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 100 | |
101 | code { | ||||
102 | margin: 2px; | ||||
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame^] | 103 | padding: 0; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 104 | color: @black; |
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame^] | 105 | font-size: 0.75em; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 106 | font-family: @mono; |
107 | background: @light-grey; | ||||
108 | } | ||||
109 | |||||
110 | pre { | ||||
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame^] | 111 | margin: 22px 2px 22px 2px; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 112 | padding: 2px; |
113 | color: @black; | ||||
114 | border-left: 3px solid @accent; | ||||
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame^] | 115 | font-size: 0.75em; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 116 | font-family: @mono; |
117 | background: @light-grey; | ||||
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame^] | 118 | line-height: 1.125em; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 119 | } |
120 | |||||
121 | blockquote { | ||||
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame^] | 122 | margin: 22px 2px 22px 2px; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 123 | padding-left: 40px; |
124 | color: @med-grey; | ||||
Giulio Fidente | 0161f71 | 2013-04-13 02:55:10 +0200 | [diff] [blame^] | 125 | font-style: italic; |
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 126 | } |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 127 | } |
128 | |||||
129 | div#article_meta { | ||||
Giulio Fidente | 5dba477 | 2013-03-27 01:00:02 +0100 | [diff] [blame] | 130 | font-size: 0.625em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 131 | color: @med-grey; |
132 | } | ||||
133 | } | ||||
134 | |||||
135 | footer { | ||||
136 | border-top: @light-grey 1px solid; | ||||
Giulio Fidente | 68c6541 | 2013-03-30 15:22:42 +0100 | [diff] [blame] | 137 | border-bottom: @light-grey 1px solid; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 138 | padding: 40px; |
139 | |||||
140 | a.button_accent { | ||||
141 | padding: 10px; | ||||
142 | border: 2px solid @accent; | ||||
143 | .border-radius(20px); | ||||
144 | text-transform: uppercase; | ||||
145 | color: @accent; | ||||
Giulio Fidente | 7baeac3 | 2013-03-27 15:56:41 +0100 | [diff] [blame] | 146 | font-size: 1.125em; |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 147 | &:hover { |
148 | color: @white; | ||||
149 | background-color: @accent; | ||||
150 | } | ||||
151 | &:active { | ||||
152 | color: @white; | ||||
153 | background-color: @accent; | ||||
154 | } | ||||
155 | } | ||||
156 | |||||
Giulio Fidente | 91c1d45 | 2013-03-22 15:15:17 +0100 | [diff] [blame] | 157 | p#paginator { |
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 158 | } |
159 | } | ||||
Giulio Fidente | bc2f70a | 2013-03-27 15:41:07 +0100 | [diff] [blame] | 160 | |
161 | div#ending_message { | ||||
Giulio Fidente | 68c6541 | 2013-03-30 15:22:42 +0100 | [diff] [blame] | 162 | padding: 0 40px 0 40px; |
163 | font-color: @light-grey; | ||||
Giulio Fidente | bc2f70a | 2013-03-27 15:41:07 +0100 | [diff] [blame] | 164 | font-size: 0.75em; |
165 | } | ||||
Giulio Fidente | 44ccac7 | 2013-03-21 18:51:03 +0100 | [diff] [blame] | 166 | } |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 167 | |
168 | @media screen and (min-width: 1024px) { | ||||
169 | aside { | ||||
170 | width: 25%; | ||||
171 | height: 100%; | ||||
172 | position: fixed; | ||||
173 | top: 0; | ||||
174 | left: 0; | ||||
175 | border-right: @light-grey 1px solid; | ||||
176 | |||||
Giulio Fidente | 68c6541 | 2013-03-30 15:22:42 +0100 | [diff] [blame] | 177 | h1 { |
178 | margin: 10px 0 0 0; | ||||
179 | } | ||||
180 | |||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 181 | div#user_meta { |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 182 | max-width: 192px; |
183 | text-align: left; | ||||
184 | |||||
185 | ul { | ||||
186 | li { | ||||
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 187 | margin-bottom: 26px; |
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 188 | display: block; |
189 | } | ||||
190 | } | ||||
191 | } | ||||
192 | } | ||||
193 | |||||
194 | main { | ||||
195 | width: 75%; | ||||
196 | position: absolute; | ||||
197 | top: 0; | ||||
198 | left: 25%; | ||||
199 | overflow-x: hidden; | ||||
200 | overflow-y: hidden; | ||||
201 | |||||
Giulio Fidente | a6c5867 | 2013-03-30 14:55:03 +0100 | [diff] [blame] | 202 | article { |
203 | max-width: 640px; | ||||
204 | } | ||||
205 | |||||
Giulio Fidente | e377608 | 2013-03-27 15:21:32 +0100 | [diff] [blame] | 206 | header { |
207 | border-top: 0; | ||||
208 | } | ||||
209 | } | ||||
210 | } |