/
styles.sass
327 lines (256 loc) · 5.58 KB
/
styles.sass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
@import "compass/reset"
@import "compass/css3"
@import "compass/utilities/general/clearfix"
@include reset-html5
body, textarea
font: 13px/1.5 "Helvetica Neue", sans-serif
h1, h2, h3
font-weight: 300
color: #000
h1
font-size: 26px
line-height: 26px
margin: 18px 0 2px 0
h2
font-size: 18px
line-height: 22px
margin: 14px 0 8px 0
h3
font-size: 18px
line-height: 18px
margin: 13px 0 6px 0
code
font-family: "Menlo", "Monaco", monospace
a
text-decoration: none
&:hover
text-decoration: underline
$max-width: 900px
body
$header-height: 45px
background-color: #f0f0f0
color: #333
padding: $header-height 0 10px 0
margin: 0
> header
$gradient-start: #323232
$gradient-stop: #000
@include box-shadow(#999, 0px, 4px, 8px)
background-color: #333
@include clearfix
@include background(linear-gradient(color_stops($gradient-start, $gradient-stop)))
border-top: 1px solid #000
height: $header-height
left: 0
padding: 0
position: fixed
top: 0
width: 100%
z-index: 1000
> .container
margin: 0 auto
max-width: $max-width
> a
$vertical-padding: ($header-height - 30px) / 2
float: left
border-right: 1px solid $gradient-stop
padding: $vertical-padding 20px $vertical-padding 0
img
display: block
height: 30px
width: 93px
nav
float: left
border-left: 1px solid $gradient-start
padding: 0 0 0 20px
a
color: #ccc
display: block
float: left
font-family: "Helvetica Neue", sans-serif
font-size: 12px
font-weight: bold
line-height: $header-height
margin: 0 10px
text-decoration: none
@include text-shadow(#000, 0px, 1px, 1px)
&:first-child
margin-left: 0
&:hover
color: #fff
text-decoration: none
> footer
background: url(/images/redis-small.png) no-repeat left top
padding: 10px 10px 10px 50px
max-width: $max-width - 10px - 50px
margin: 20px auto
color: #777
position: relative
font-size: 11px
a
color: #444
.sponsor
position: absolute
top: 0
right: 0
img
display: block
.text
@include box-shadow(#ccc, 0px, 0px, 10px)
@include clearfix
background-color: #fafafa
color: #333
margin: 0 auto
max-width: $max-width - 30px * 2
padding: 30px
a
color: #0066aa
@include text-shadow(#f0f0f0, 1px, 1px, 0px)
&:hover
color: #0099ff
p
margin: 5px 0
> p:first-of-type, > * > p:first-of-type
margin-top: 15px
strong
font-weight: 700
em
font-style: italic
sup
line-height: 100%
vertical-align: super
font-size: 70%
.math
font-weight: 700
pre code, .example
display: inline-block
padding: 15px
border: 1px solid #eee
margin: 10px 0
background-color: #fefefe
@include border-radius(10px)
.metadata
border-left: 3px solid #dfdfdf
color: #666
font-size: 0.9em
margin: 1.5em 0 0 0
padding: 0 0 0 1em
.example
max-height: 20 * 20px
width: 420px - 2 * 15px
overflow: auto
.monospace, pre, input
margin: 0
padding: 0
line-height: 20px
font-size: 12px
font-family: Menlo, "monospace"
pre
clear: both
.prompt, .command
float: left
.prompt
width: 50px
color: #888
.command, input
font-weight: bold
input
// Box width - padding - prompt - little extra
width: 420px - 2 * 15px - 50px - 15px
margin-left: -1px
outline: none
border: 0
color: #333
h1.command
padding-left: 1.5em
span
display: inline-block
span.name
margin-left: -1.5em
h1:first-child
margin-top: 0
#comments
margin-top: 15px
@media screen and (max-device-width: 480px)
body
padding: 0
> header
height: auto
padding: 0
position: relative
> .container
display: table
margin: 0
max-width: none
position: relative
width: 100%
> a
background: url(/images/redis.png) no-repeat 6px 4px
display: table-cell
float: none
height: 30px
overflow: hidden
padding: 5px 0
position: relative
width: 46px
img
display: none
nav
display: table-cell
padding: 5px 0 5px 8px
float: none
vertical-align: middle
border-left: 1px solid #323232
position: relative
a
font-size: 12px
margin: 0 4px 0 0
display: inline
height: auto
line-height: 18px
> footer
background-image: none
line-height: 22px
margin: 10px 0
padding: 2px 8px
> .sponsor
position: static
img
display: inline
vertical-align: middle
.text
padding: 15px 10px
#commands
.command
font-weight: bold
.columns
$margin: 20px
@include clearfix
> *
float: left
&:first-child
border-right: 1px solid #eee
> *
margin-right: $margin !important
&:last-child
border-left: 1px solid #eee
left: -1px
position: relative
> *
margin-left: $margin
> section
width: 49%
&.sidebar
> section
width: 70%
> aside
width: 29.5%
min-height: 400px
.columns
margin-left: 0 !important
margin-right: 0 !important
@import "home"
@import "clients"
@import "topics"
@import "commands"
@import "buzz"