1 @require 'inc/wfpl/stylus_helpers.styl'
2 @require '.sha1sums.styl'
5 golden_ratio_small = 0.38196601125010515180 // ratio of whole to smaller part
11 // dimensions (max. these will scale down for smaller screens except in ie8)
12 // if you change these, update config.php too
15 sidebar_padding = 20px
16 sidebar_width = (site_width - sidebar_padding) * golden_ratio_small
17 mobile_menu_width = 600px // switch to mobile menu when screen gets this small
20 font_size_large = 18px
21 font_size_normal = 15px
22 font_size_small = 13px
34 // the auto-calculated bits
35 content_width = site_width
36 // some math for responsive mode (when the above dimensions don't fit)
37 site_padding_pct = site_padding / (site_width + 2 * site_padding)
38 sidebar_padding_pct = sidebar_padding / content_width
39 vw_to_content_width = 1 - 2 * site_padding_pct
41 // always show vertical scrollbar, so content doesn't shift around when
42 // switching from tall to short pages
46 header, hgroup, section, footer, aside, nav, article, figure, img
52 border: 1px solid black
68 border: 1px dotted black
69 padding: 0 15px 15px 15px
126 margin: 15px 15px 0 15px
128 p.quote:before, p.quote:after
133 display: inline-block
144 width: 0; // make sure it doesn't wrap
146 p.attrib, p.attribution
147 margin: 0 0 15px 20px
158 background: window_bg
160 font: font_size_normal Arimo, Arial, sans-serif
162 // call this for each ckeditor on each page
163 ckeditor(basename, element_name, width)
164 // ckeditor ui, including border around wysiwyg area
165 #{basename}_body #cke_{element_name}
171 // body tag of the wysiwyg area
172 #{basename}_wysiwyg_{element_name}
173 background: content_bg
180 border-right: 20px solid #eee
181 border-left: 20px solid #eee
182 border-top: 1px solid #eee
183 border-bottom: 1px solid #eee
186 ckeditor('admin_pages', 'content', content_width)
188 // outermost div for centering, shadow, etc
191 background: content_bg
192 padding: site_padding
193 max-width: content_width
209 display: inline-block
216 box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4)
227 border-top: 1px dotted #ddc;
241 // obsolete floating images (from pastable example code on admin_images)
249 background-repeat: no-repeat
250 background-position: left top
261 background-repeat: no-repeat
262 background-position: left top
270 background-repeat: no-repeat
271 background-position: center top
274 // hack so that vertical margins are only between siblings for the most part
278 article > :first-child,
279 aside > :first-child,
280 section > :first-child,
288 fieldset > :last-child,
289 article > :last-child,
291 section > :last-child,
304 background: rgba(0,0,0,0.04)
307 background: rgba(0,0,0,0.07)
310 background: rgba(0,0,0,0.02)
313 background: rgba(0,0,0,0.09)
317 border: 1px solid red
323 .wfpl_li, .wfpl_ci, .wfpl_ri, .wfpl_fi
332 background-size: 100% auto
333 background-repeat: no-repeat
334 background-position: 50% top
335 margin-bottom: 3px // padding above caption
336 // clip line with (which is there so ckeditor doesn't delete this)
339 .wfpl_li, .wfpl_ci, .wfpl_ri
340 width: sidebar_width // when window is large
343 margin-right: sidebar_padding
349 margin-left: sidebar_padding
351 @media screen and (max-width: (content_width / vw_to_content_width))
355 padding: unit(site_padding_pct * 100, '%')
357 width: linear_scale_calc(content_width, sidebar_width, sidebar_width, sidebar_width * .5)
359 margin-left: unit(sidebar_padding_pct * 100, '%')
361 margin-right: unit(sidebar_padding_pct * 100, '%')
362 @media screen and (max-width: (sidebar_width / vw_to_content_width))
363 .wfpl_li, .wfpl_ci, .wfpl_ri
369 // does not contain a .wfpl_i
371 display: inline-block
374 background-size: contain
375 background-position: 50% 50%
376 background-repeat: no-repeat
382 @media screen and (max-width: (mobile_menu_width))
383 #mobile_menu_check:not(:checked) + div
385 #mobile_menu_check:checked + div
391 background: rgba(255, 255, 255, 0.95)
399 border-bottom-left-radius: 4px
400 border-bottom-right-radius: 4px
401 box-shadow: 0px 3px 3px rgba(0,0,0,0.1)
410 // undo space_evenly stuff:
420 nav#site-nav ul > li, #mobile_menu_button
422 padding: 3px 10px 4px 17px
423 font-size: font_size_large
424 #admin_images_body .th_toggle_buttons