-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.styl
296 lines (230 loc) · 4.97 KB
/
main.styl
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
body
background-color: #eee
padding: 20px
a
&, &:link, &:visited, &:hover, &:active
text-decoration: none
&.underline
text-decoration: underline
&.anchor
display: block
position: relative
top: -60px
visibility: hidden
p
color: #444
img
margin: 5px auto
display: block
max-width: 570px
table
margin: 15px 0px
th, td
padding: 0 10px
hr
border-top: 1px solid #bbb
.text-highlight
color: #009900
clearfix()
&:after
content: " "
visibility: hidden
display: block
height: 0
clear: both
.clearfix
clearfix()
// generator of property literals, e.g. ".w33 {width: 33px}"
literal(sel, prop, val)
num = unit(val, '')
if unit(val) == ''
.{sel + num}
{prop}: val px
else if unit(val) == 'px'
.{sel + num}
{prop}: val
else if unit(val) == '%'
.{sel + num}p
{prop}: val
literals = ()
width-literals = 181 185 194 240 249 295 345 370 460 544 560
push(literals, {s: 'w', p: 'width', l: width-literals})
height-literals = 45 50 123 164 180
push(literals, {s: 'h', p: 'height', l: height-literals})
margin-top-literals = -25 20
push(literals, {s: 'mt', p: 'margin-top', l: margin-top-literals})
margin-left-literals = 8 50 495
push(literals, {s: 'ml', p: 'margin-left', l: margin-left-literals})
margin-bottom-literals = 2 32
push(literals, {s: 'mb', p: 'margin-bottom', l: margin-bottom-literals})
margin-right-literals = 4
push(literals, {s: 'mr', p: 'margin-right', l: margin-right-literals})
padding-top-literals = 45
push(literals, {s: 'pt', p: 'padding-top', l: padding-top-literals})
padding-bottom-literals = 45
push(literals, {s: 'pb', p: 'padding-bottom', l: padding-bottom-literals})
for lit in literals
for val in lit.l
literal(lit.s, lit.p, val)
#navigation-bar
position: fixed
top: 0
left: 0
right: 0
height: 50px
border-bottom: 1px #ddd solid
background-color: white
z-index: 10
a
&, &:visited
color: #999
&:hover
color: #444
.navigation-menu
position: relative
float: left
display: inline
padding: 13px 5px
vertical-align: baseline
> a
display: block
position: relative
padding: 2px 10px
width: 100%
box-sizing: border-box
&:hover
padding-left: 5px
border-left: 5px #ccc solid
> ul
display: none
&:hover > ul
display: block
ul.menu-dropdown
position: absolute
left: 0px
top: 48px
width: 180px
padding: 3px
background-color: white
> li
float: left
position: relative
display: inline
width: 100%
padding: 3px 0px
> a
display: block
position: relative
padding: 2px 10px
width: 100%
box-sizing: border-box
&:hover
padding-left: 5px
border-left: 5px #ccc solid
#navigation-bar-shadow
position: relative
margin-bottom: 50px
#content
max-width: 600px
min-width: 400px
display: block
margin: 0px auto
#home-page &
max-width: 735px
margin-top: -20px
margin-bottom: -20px
.fixed-cover
position: fixed
top: 50px
bottom: 0
overflow: scroll
#content-fixed
position: relative
max-width: 600px
min-width: 400px
display: block
padding-top: 10px
#content-images
> img
max-width: 100%
&:first-child
margin-top: 0
&:last-child
margin-bottom: 0
> a > img
max-width: 100%
.overlay
width: 100%
> .fader-top
position: fixed
background-color: rgba(255,0,0,0)
background: linear-gradient(to bottom, rgba(238, 238, 238, 1), rgba(238, 238, 238, 0))
> .fader-bottom
position: fixed
bottom: 0
background-color: rgba(255,0,0,0)
background: linear-gradient(to top, rgba(238, 238, 238, 1), rgba(238, 238, 238, 0))
.img-container
clearfix()
margin-left: auto
margin-right: auto
.img-subcontainer
display: inline-block
float: left
.image-caption
text-align: center
margin-bottom: 10px
color: #999
ul.no-bullets-standard > li
display: inline
> *:last-child
margin-bottom: 10px
.as-of
margin-left: 40px
font-size: 18px
font-weight: 700
vertical-align: super
color: yellow
background-color: red
border: 4px solid red
.vision-statement
padding: 0 15px
p
font-size: 12px
color: #888
font-style: italic
.paper
.paper-title
font-weight: 700
font-style: italic
.paper-authors
color: #777
.paper-status
color: #777
font-style: italic
.paper-awards
margin-left: 25px
color: #333
font-weight: 700
font-style: normal
&::before, &::after
content: "*"
.links
margin-left: 25px
a
margin-left: 5px
font-style: normal
.press-list
li
color: #888
margin-bottom: 10px
padding-left: 40px
text-indent: -40px
.salon-list
.salon-summary
display: inline
> *:last-child
margin-bottom: 10px
.date
color: #777
font-style: italic