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)
14 sidebar_padding = 20px
15 sidebar_width = (site_width - sidebar_padding) * golden_ratio_small
16 mobile_menu_width = 600px // switch to mobile menu when screen gets this small
19 font_size_normal = 15px
20 font_size_small = 13px
32 // the auto-calculated bits
33 content_width = site_width
34 // some math for responsive mode (when the above dimensions don't fit)
35 site_padding_pct = site_padding / (site_width + 2 * site_padding)
36 sidebar_padding_pct = sidebar_padding / content_width
37 vw_to_content_width = 1 - 2 * site_padding_pct
39 // always show vertical scrollbar, so content doesn't shift around when
40 // switching from tall to short pages
44 header, hgroup, section, footer, aside, nav, article, figure, img
50 border: 1px solid black
66 border: 1px dotted black
67 padding: 0 15px 15px 15px
124 margin: 15px 15px 0 15px
126 p.quote:before, p.quote:after
131 display: inline-block
142 width: 0; // make sure it doesn't wrap
144 p.attrib, p.attribution
145 margin: 0 0 15px 20px
156 background: window_bg
158 font: font_size_normal Arimo, Arial, sans-serif
160 // call this for each ckeditor on each page
161 ckeditor(basename, element_name, width)
162 // ckeditor ui, including border around wysiwyg area
163 #{basename}_body #cke_{element_name}
169 // body tag of the wysiwyg area
170 #{basename}_wysiwyg_{element_name}
171 background: content_bg
178 border-right: 20px solid #eee
179 border-left: 20px solid #eee
180 border-top: 1px solid #eee
181 border-bottom: 1px solid #eee
184 ckeditor('admin_pages', 'content', content_width)
186 // outermost div for centering, shadow, etc
189 background: content_bg
190 padding: site_padding
191 max-width: content_width
207 display: inline-block
214 box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4)
225 border-top: 1px dotted #ddc;
239 // floating images (from pastable example code on admin_images)
247 background-repeat: no-repeat
248 background-position: left top
259 background-repeat: no-repeat
260 background-position: left top
268 background-repeat: no-repeat
269 background-position: center top
272 // hack so that vertical margins are only between siblings for the most part
276 article > :first-child,
277 aside > :first-child,
278 section > :first-child,
286 fieldset > :last-child,
287 article > :last-child,
289 section > :last-child,
302 background: rgba(0,0,0,0.04)
305 background: rgba(0,0,0,0.07)
308 background: rgba(0,0,0,0.02)
311 background: rgba(0,0,0,0.09)
315 border: 1px solid red
324 margin-left: sidebar_padding
326 width: sidebar_width // simple when big, and for ie8 (which ignores media queries)
328 @media screen and (max-width: (content_width / vw_to_content_width))
332 padding: unit(site_padding_pct * 100, '%')
334 width: linear_scale_calc(content_width, sidebar_width, sidebar_width, sidebar_width * .5)
335 margin-left: unit(sidebar_padding_pct * 100, '%')
336 @media screen and (max-width: (sidebar_width / vw_to_content_width))
346 background-size: contain
347 background-repeat: no-repeat
348 background-position: 50% top
356 @media screen and (max-width: (mobile_menu_width))
357 #mobile_menu_check:not(:checked) + ul
359 nav#site-nav ul > li, #mobile_menu_button
362 padding: 3px 10px 4px 17px