seasons 0.9.3.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/seasons.rb +3 -0
- data/seasons.gemspec +41 -0
- data/stylesheets/seasons/_core.sass +309 -0
- data/stylesheets/seasons/_tools.sass +5 -0
- data/stylesheets/seasons/tools/_basic-functions.sass +80 -0
- data/stylesheets/seasons/tools/_css3.sass +535 -0
- data/stylesheets/seasons/tools/_grid-tools.sass +17 -0
- data/stylesheets/seasons/tools/_modular-scale.sass +310 -0
- data/stylesheets/seasons/tools/_reset.sass +192 -0
- data/templates/project/_chrome.scss +52 -0
- data/templates/project/_config.sass +84 -0
- data/templates/project/_skin.scss +44 -0
- data/templates/project/article.html +129 -0
- data/templates/project/img.jpg +0 -0
- data/templates/project/index.html +102 -0
- data/templates/project/manifest.rb +24 -0
- data/templates/project/resources.html +168 -0
- data/templates/project/style.sass +33 -0
- data/templates/project/toc.json +22 -0
- data/templates/project/treesaver-0.9.3b.js +129 -0
- metadata +97 -0
@@ -0,0 +1,310 @@
|
|
1
|
+
// SASSY MODULAR-SCALE
|
2
|
+
// https://github.com/scottkellum/modular-scale
|
3
|
+
|
4
|
+
// Ratios
|
5
|
+
$golden: 1.618
|
6
|
+
$gold: $golden
|
7
|
+
$octave: (2 / 1)
|
8
|
+
$major-seventh: (15 / 8)
|
9
|
+
$minor-seventh: (16 / 9)
|
10
|
+
$major-sixth: (5 / 3)
|
11
|
+
$minor-sixth: (8 / 5)
|
12
|
+
$fifth: (3 / 2)
|
13
|
+
$fourth: (4 / 3)
|
14
|
+
$major-third: (5 / 4)
|
15
|
+
$minor-third: (6 / 5)
|
16
|
+
$major-second: (9 / 8)
|
17
|
+
$minor-second: (16 / 15)
|
18
|
+
|
19
|
+
// Defaults
|
20
|
+
$ratio: $golden !default
|
21
|
+
$base-size: 12px !default
|
22
|
+
$property: font-size !default
|
23
|
+
$class-slug: ms !default
|
24
|
+
|
25
|
+
// Modular Scale function
|
26
|
+
@function modular-scale($multiple, $base-size, $ratio)
|
27
|
+
// return the $base-size if $multiple is zero
|
28
|
+
@if $multiple == 0
|
29
|
+
@if type-of($base-size) == 'list'
|
30
|
+
$base-size: sort-list($base-size)
|
31
|
+
@return nth($base-size, 1)
|
32
|
+
// return just the simple $base-size value if it's not a list
|
33
|
+
@return $base-size
|
34
|
+
|
35
|
+
// if multiple base-sizes are passed in as a list
|
36
|
+
// and multiple ratios are passed in as a list
|
37
|
+
// calculate values in using each base-size / ratio combination
|
38
|
+
@if type-of($base-size) == 'list' and type-of($ratio) == 'list'
|
39
|
+
@if unit(ms-multibase-multiratio($multiple, $base-size, $ratio)) == 'px'
|
40
|
+
@return round(ms-multibase-multiratio($multiple, $base-size, $ratio))
|
41
|
+
@return ms-multibase-multiratio($multiple, $base-size, $ratio)
|
42
|
+
|
43
|
+
// if multiple base-sizes are passed in as a list
|
44
|
+
// calculate values in using each base-size
|
45
|
+
@if type-of($base-size) == 'list' and type-of($ratio) == 'number'
|
46
|
+
@if unit(ms-multibase($multiple, $base-size, $ratio)) == 'px'
|
47
|
+
@return round(ms-multibase($multiple, $base-size, $ratio))
|
48
|
+
@return ms-multibase($multiple, $base-size, $ratio)
|
49
|
+
|
50
|
+
// if multiple ratios are passed in as a list
|
51
|
+
// calculate values in using each ratio
|
52
|
+
@if type-of($base-size) == 'number' and type-of($ratio) == 'list'
|
53
|
+
@if unit(ms-multiratio($multiple, $base-size, $ratio)) == 'px'
|
54
|
+
@return round(ms-multiratio($multiple, $base-size, $ratio))
|
55
|
+
@return ms-multiratio($multiple, $base-size, $ratio)
|
56
|
+
|
57
|
+
// If there are no lists just run the simple function
|
58
|
+
@if unit(exponent($ratio, $multiple) * $base-size) == 'px'
|
59
|
+
@return round(exponent($ratio, $multiple) * $base-size)
|
60
|
+
@return exponent($ratio, $multiple) * $base-size
|
61
|
+
|
62
|
+
|
63
|
+
// calculate values in using each base-size / ratio combination
|
64
|
+
@function ms-multibase-multiratio($multiple, $base-size, $ratio)
|
65
|
+
// start with an empty list to place all values in
|
66
|
+
$scale-values: ()
|
67
|
+
// make sure base sizes are in ascending order
|
68
|
+
$base-size: sort-list($base-size)
|
69
|
+
// take each base-size in turn
|
70
|
+
$k: 1
|
71
|
+
@while $k <= length($base-size)
|
72
|
+
// add each $base-size to the list except the first
|
73
|
+
@if $k > 1
|
74
|
+
$scale-values: append($scale-values, nth($base-size, $k))
|
75
|
+
// take each ratio in turn
|
76
|
+
$j: 1
|
77
|
+
@while $j <= length($ratio)
|
78
|
+
// reset $modular-scale for each set
|
79
|
+
$modular-scale: nth($base-size, $k)
|
80
|
+
// do the scale for each base-size using this ratio
|
81
|
+
@if $multiple > 0
|
82
|
+
// up $multiple times
|
83
|
+
// and add the result to $scale-values
|
84
|
+
@for $i from 1 through $multiple
|
85
|
+
$modular-scale: exponent(nth($ratio, $j), $i) * nth($base-size, $k)
|
86
|
+
$scale-values: append($scale-values, $modular-scale)
|
87
|
+
// and down until the value is lower than the lowest $base-size
|
88
|
+
// and add the result to $scale-values
|
89
|
+
$i: -1
|
90
|
+
$modular-scale: nth($base-size, $k)
|
91
|
+
@while $modular-scale >= nth($base-size, 1)
|
92
|
+
$modular-scale: exponent(nth($ratio, $j), $i) * nth($base-size, $k)
|
93
|
+
$scale-values: append($scale-values, $modular-scale)
|
94
|
+
$i: $i - 1
|
95
|
+
@if $multiple < 0
|
96
|
+
// do the scale down for each set to below 1px
|
97
|
+
$i: -1
|
98
|
+
$modular-scale: nth($base-size, $k)
|
99
|
+
@while $modular-scale > 1
|
100
|
+
$modular-scale: exponent(nth($ratio, $j), $i) * nth($base-size, $k)
|
101
|
+
$scale-values: append($scale-values, $modular-scale)
|
102
|
+
$i: $i - 1
|
103
|
+
$j: $j + 1
|
104
|
+
$k: $k + 1
|
105
|
+
// return trimmed and sorted final list
|
106
|
+
@return trim-sort($multiple, $scale-values, $base-size)
|
107
|
+
|
108
|
+
|
109
|
+
// calculate values in using each base-size
|
110
|
+
@function ms-multibase($multiple, $base-size, $ratio)
|
111
|
+
// start with an empty list to place all values in
|
112
|
+
$scale-values: ()
|
113
|
+
// make sure base sizes are in ascending order
|
114
|
+
$base-size: sort-list($base-size)
|
115
|
+
// take each base-size in turn
|
116
|
+
$k: 1
|
117
|
+
@while $k <= length($base-size)
|
118
|
+
// add each $base-size to the list except the first
|
119
|
+
@if $k > 1
|
120
|
+
$scale-values: append($scale-values, nth($base-size, $k))
|
121
|
+
// reset $modular-scale for each set
|
122
|
+
$modular-scale: nth($base-size, $k)
|
123
|
+
// do the scale for each base-size using this ratio
|
124
|
+
@if $multiple > 0
|
125
|
+
// up $multiple times
|
126
|
+
// and add the result to $scale-values
|
127
|
+
@for $i from 1 through $multiple
|
128
|
+
$modular-scale: exponent($ratio, $i) * nth($base-size, $k)
|
129
|
+
$scale-values: append($scale-values, $modular-scale)
|
130
|
+
// and down until the value is lower than the lowest $base-size
|
131
|
+
// and add the result to $scale-values
|
132
|
+
$i: -1
|
133
|
+
$modular-scale: nth($base-size, $k)
|
134
|
+
@while $modular-scale >= nth($base-size, 1)
|
135
|
+
$modular-scale: exponent($ratio, $i) * nth($base-size, $k)
|
136
|
+
$scale-values: append($scale-values, $modular-scale)
|
137
|
+
$i: $i - 1
|
138
|
+
@if $multiple < 0
|
139
|
+
// do the scale down for each set to below 1px
|
140
|
+
$i: -1
|
141
|
+
$modular-scale: nth($base-size, $k)
|
142
|
+
@while $modular-scale > 1
|
143
|
+
$modular-scale: exponent($ratio, $i) * nth($base-size, $k)
|
144
|
+
$scale-values: append($scale-values, $modular-scale)
|
145
|
+
$i: $i - 1
|
146
|
+
$k: $k + 1
|
147
|
+
// return trimmed and sorted final list
|
148
|
+
@return trim-sort($multiple, $scale-values, $base-size)
|
149
|
+
|
150
|
+
|
151
|
+
// calculate values in using each ratio
|
152
|
+
@function ms-multiratio($multiple, $base-size, $ratio)
|
153
|
+
// start with an empty list to place all values in
|
154
|
+
$scale-values: ()
|
155
|
+
// If $multiple is a positive integer (up the scale)
|
156
|
+
@if $multiple > 0
|
157
|
+
// take each ratio in turn
|
158
|
+
$j: 1
|
159
|
+
@while $j <= length($ratio)
|
160
|
+
// reset $modular-scale for each set
|
161
|
+
$modular-scale: $base-size
|
162
|
+
// do the scale using this ratio thru the multiple, and add the result to $scale-values
|
163
|
+
@for $i from 1 through $multiple
|
164
|
+
$modular-scale: exponent(nth($ratio, $j), $i) * $base-size
|
165
|
+
$scale-values: append($scale-values, $modular-scale)
|
166
|
+
$j: $j + 1
|
167
|
+
// sort acsending
|
168
|
+
$scale-values: sort-list($scale-values)
|
169
|
+
// return the final value using the laced list
|
170
|
+
@return nth($scale-values, $multiple)
|
171
|
+
// If $multiple is a negative integer (down the scale)
|
172
|
+
@if $multiple < 0
|
173
|
+
// take each ratio in turn
|
174
|
+
$j: 1
|
175
|
+
@while $j <= length($ratio)
|
176
|
+
// reset $modular-scale for each set
|
177
|
+
$modular-scale: $base-size
|
178
|
+
// do the scale using this ratio thru the multiple, and add the result to $scale-values
|
179
|
+
@for $i from 1 through ($multiple * -1)
|
180
|
+
$modular-scale: exponent(nth($ratio, $j), -$i) * $base-size
|
181
|
+
$scale-values: append($scale-values, $modular-scale)
|
182
|
+
$j: $j + 1
|
183
|
+
// sort decending
|
184
|
+
$scale-values: sort-list($scale-values, 'dec')
|
185
|
+
// return the final value using the laced list
|
186
|
+
@return nth($scale-values, $multiple * -1)
|
187
|
+
|
188
|
+
|
189
|
+
// trim and sort the final list
|
190
|
+
@function trim-sort($multiple, $scale-values, $base-size)
|
191
|
+
@if $multiple > 0
|
192
|
+
// trim list so we can count from the lowest $base-size
|
193
|
+
$scale-values: trim-list($scale-values, nth($base-size, 1))
|
194
|
+
// sort acsending
|
195
|
+
$scale-values: sort-list($scale-values)
|
196
|
+
// return the final value using the laced list
|
197
|
+
@return nth($scale-values, $multiple)
|
198
|
+
@else
|
199
|
+
// trim list so we can count from the lowest $base-size
|
200
|
+
$scale-values: trim-list($scale-values, nth($base-size, 1), 'dec')
|
201
|
+
// sort acsending
|
202
|
+
$scale-values: sort-list($scale-values, 'dec')
|
203
|
+
// return the final value using the laced list
|
204
|
+
@return nth($scale-values, -$multiple)
|
205
|
+
|
206
|
+
|
207
|
+
/////////////////////////////////////////////////////////////////////////
|
208
|
+
|
209
|
+
// Shortcut
|
210
|
+
@function ms($multiple, $base-size, $ratio)
|
211
|
+
// Return the value from the Modular Scale function
|
212
|
+
@return modular-scale($multiple, $base-size, $ratio)
|
213
|
+
|
214
|
+
// Mixin
|
215
|
+
// Deprecated. Use the modular-scale() function instead
|
216
|
+
=modular-scale($property, $multiple, $base-size, $ratio)
|
217
|
+
// Print the $property and return the value from the Modular Scale function
|
218
|
+
@warn "The modular-scale mixin is deprecated. Instead use the function: width: modular-scale(3)"
|
219
|
+
#{$property}: modular-scale($multiple, $base-size, $ratio)
|
220
|
+
|
221
|
+
// Classes Mixin
|
222
|
+
=modular-scale-classes($multiple, $property, $class-slug, $base-size, $ratio)
|
223
|
+
// Loop from 0 through the value of $multiple and generate a range of classes
|
224
|
+
@for $i from 0 through $multiple
|
225
|
+
.#{$class-slug}-#{$i}
|
226
|
+
// Print the $property and return the value from the Modular Scale function
|
227
|
+
#{$property}: modular-scale($i, $base-size, $ratio)
|
228
|
+
|
229
|
+
|
230
|
+
/////////////////////////////////////////////////////////////////////////
|
231
|
+
|
232
|
+
|
233
|
+
// Sass exponent support
|
234
|
+
@function exponent($base, $exponent)
|
235
|
+
// reset value
|
236
|
+
$value: $base
|
237
|
+
// positive intergers get multiplied
|
238
|
+
@if $exponent > 1
|
239
|
+
@for $i from 2 through $exponent
|
240
|
+
$value: $value * $base
|
241
|
+
// negitive intergers get divided. A number divided by itself is 1
|
242
|
+
@if $exponent < 1
|
243
|
+
@for $i from 0 through -$exponent
|
244
|
+
$value: $value / $base
|
245
|
+
// return the last value written
|
246
|
+
@return $value
|
247
|
+
|
248
|
+
|
249
|
+
// Sass list sorting support
|
250
|
+
@function sort-list($list, $dir: 'asc')
|
251
|
+
// built-in list sorting in Sass would make this go away.
|
252
|
+
// declare some empty lists to put our new order and temporary values
|
253
|
+
$new-order: ()
|
254
|
+
$temp: ()
|
255
|
+
// fill $temp with the contents of $list
|
256
|
+
$temp: join($temp, $list)
|
257
|
+
// if sorting ascending
|
258
|
+
@if $dir == 'asc'
|
259
|
+
// loop through all values in $list
|
260
|
+
@for $i from 1 through length($list)
|
261
|
+
// impossibly high starter value to compare
|
262
|
+
$low: 1000000
|
263
|
+
// check for lowest value in $temp
|
264
|
+
@for $j from 1 through length($temp)
|
265
|
+
@if nth($temp, $j) < $low
|
266
|
+
$low: nth($temp, $j)
|
267
|
+
// add lowest value to $new-order
|
268
|
+
$new-order: append($new-order, $low)
|
269
|
+
// empty $temp for the next comparison
|
270
|
+
$temp: ()
|
271
|
+
// re-populate $temp with remaining values to sort
|
272
|
+
@for $k from 1 through length($list)
|
273
|
+
@if nth($list, $k) > $low
|
274
|
+
$temp: append($temp, nth($list, $k))
|
275
|
+
@if $dir == 'dec'
|
276
|
+
// loop through all values in $list
|
277
|
+
@for $i from 1 through length($list)
|
278
|
+
// 0 starter value
|
279
|
+
$high: 0
|
280
|
+
// check for highest value in $temp
|
281
|
+
@for $j from 1 through length($temp)
|
282
|
+
@if nth($temp, $j) > $high
|
283
|
+
$high: nth($temp, $j)
|
284
|
+
$new-order: append($new-order, $high)
|
285
|
+
// empty $temp for the next comparison
|
286
|
+
$temp: ()
|
287
|
+
// re-populate $temp with remaining values to sort
|
288
|
+
@for $k from 1 through length($list)
|
289
|
+
@if nth($list, $k) < $high
|
290
|
+
$temp: append($temp, nth($list, $k))
|
291
|
+
@return $new-order
|
292
|
+
|
293
|
+
|
294
|
+
// Sass list trimming support
|
295
|
+
@function trim-list($list, $start, $dir: 'asc')
|
296
|
+
// built-in list trimming in Sass would make this go away.
|
297
|
+
// declare some empty lists to put our trimmed values
|
298
|
+
$trimmed: ()
|
299
|
+
// if sorting ascending
|
300
|
+
@if $dir == 'asc'
|
301
|
+
// loop through all values in $list
|
302
|
+
@for $i from 1 through length($list)
|
303
|
+
@if nth($list, $i) >= $start
|
304
|
+
$trimmed: append($trimmed, nth($list, $i))
|
305
|
+
@if $dir == 'dec'
|
306
|
+
// loop through all values in $list
|
307
|
+
@for $i from 1 through length($list)
|
308
|
+
@if nth($list, $i) <= $start
|
309
|
+
$trimmed: append($trimmed, nth($list, $i))
|
310
|
+
@return $trimmed
|
@@ -0,0 +1,192 @@
|
|
1
|
+
// RESET MOSTLY LIFTED FROM THE HTML5RESET :: http://html5reset.org
|
2
|
+
|
3
|
+
// HTML5 RESET....................http://html5reset.org
|
4
|
+
// Eric Meyer.....................http://ericmeyer.com
|
5
|
+
// HTML5 Doctor...................http://html5doctor.com
|
6
|
+
// and the HTML5 Boilerplate......http://html5boilerplate.com
|
7
|
+
|
8
|
+
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, menu, time, mark, audio, video
|
9
|
+
margin: 0
|
10
|
+
padding: 0
|
11
|
+
border: 0
|
12
|
+
outline: 0
|
13
|
+
font-size: 100%
|
14
|
+
vertical-align: baseline
|
15
|
+
background: transparent
|
16
|
+
cursor: default
|
17
|
+
|
18
|
+
article, aside, figure, footer, header, hgroup, nav, section
|
19
|
+
display: block
|
20
|
+
|
21
|
+
blockquote, q
|
22
|
+
quotes: none
|
23
|
+
|
24
|
+
blockquote:before, blockquote:after, q:before, q:after
|
25
|
+
content: ''
|
26
|
+
content: none
|
27
|
+
|
28
|
+
a
|
29
|
+
margin: 0
|
30
|
+
padding: 0
|
31
|
+
font-size: 100%
|
32
|
+
vertical-align: baseline
|
33
|
+
background: transparent
|
34
|
+
color: inherit
|
35
|
+
text-decoration: inherit
|
36
|
+
|
37
|
+
del
|
38
|
+
text-decoration: line-through
|
39
|
+
|
40
|
+
abbr[title], dfn[title]
|
41
|
+
border-bottom: 1px dotted #000
|
42
|
+
cursor: help
|
43
|
+
|
44
|
+
.zoomable, .zoomable *
|
45
|
+
cursor: -webkit-zoom-in
|
46
|
+
cursor: -moz-zoom-in
|
47
|
+
cursor: -ms-zoom-in
|
48
|
+
cursor: -o-zoom-in
|
49
|
+
cursor: zoom-in
|
50
|
+
|
51
|
+
.lightbox, .lightbox *
|
52
|
+
cursor: -webkit-zoom-out
|
53
|
+
cursor: -moz-zoom-out
|
54
|
+
cursor: -ms-zoom-out
|
55
|
+
cursor: -o-zoom-out
|
56
|
+
cursor: zoom-out
|
57
|
+
|
58
|
+
|
59
|
+
// tables still need cellspacing="0" in the markup
|
60
|
+
|
61
|
+
table
|
62
|
+
border-collapse: collapse
|
63
|
+
border-spacing: 0
|
64
|
+
th
|
65
|
+
font-weight: bold
|
66
|
+
vertical-align: bottom
|
67
|
+
td
|
68
|
+
font-weight: normal
|
69
|
+
vertical-align: top
|
70
|
+
|
71
|
+
hr
|
72
|
+
display: block
|
73
|
+
height: 1px
|
74
|
+
border: 0
|
75
|
+
margin: 1em 0
|
76
|
+
padding: 0
|
77
|
+
|
78
|
+
input, select
|
79
|
+
vertical-align: middle
|
80
|
+
|
81
|
+
pre
|
82
|
+
white-space: pre /* CSS2 */
|
83
|
+
white-space: pre-wrap /* CSS 2.1 */
|
84
|
+
white-space: pre-line /* CSS 3 (and 2.1 as well, actually) */
|
85
|
+
word-wrap: break-word /* IE */
|
86
|
+
|
87
|
+
|
88
|
+
input[type="radio"]
|
89
|
+
vertical-align: text-bottom
|
90
|
+
input[type="checkbox"]
|
91
|
+
vertical-align: bottom
|
92
|
+
*vertical-align: baseline
|
93
|
+
.ie6 input
|
94
|
+
vertical-align: text-bottom
|
95
|
+
|
96
|
+
select, input, textarea
|
97
|
+
font: 99% sans-serif
|
98
|
+
|
99
|
+
table
|
100
|
+
font-size: inherit
|
101
|
+
font: 100%
|
102
|
+
|
103
|
+
|
104
|
+
// Accessible focus treatment
|
105
|
+
// people.opera.com/patrickl/experiments/keyboard/test
|
106
|
+
|
107
|
+
a:hover, a:active
|
108
|
+
outline: none
|
109
|
+
|
110
|
+
small
|
111
|
+
font-size: 85%
|
112
|
+
|
113
|
+
strong, th
|
114
|
+
font-weight: bold
|
115
|
+
|
116
|
+
td, td img
|
117
|
+
vertical-align: top
|
118
|
+
|
119
|
+
|
120
|
+
// Make sure sup and sub don't screw with your line-heights
|
121
|
+
// gist.github.com/413930
|
122
|
+
|
123
|
+
sub, sup
|
124
|
+
font-size: 75%
|
125
|
+
line-height: 0
|
126
|
+
position: relative
|
127
|
+
sup
|
128
|
+
top: -0.5em
|
129
|
+
sub
|
130
|
+
bottom: -0.25em
|
131
|
+
|
132
|
+
|
133
|
+
// standardize any monospaced elements
|
134
|
+
|
135
|
+
pre, code, kbd, samp
|
136
|
+
font-family: monospace, sans-serif
|
137
|
+
|
138
|
+
// hand cursor on clickable elements, text on editable text only, default on everything else.
|
139
|
+
input
|
140
|
+
cursor: auto
|
141
|
+
textarea
|
142
|
+
cursor: text
|
143
|
+
a, a *, .clickable, label, input[type=button], input[type=submit], input[type=reset], button, #nextPage, #previousPage, #nextPage *, #previousPage *
|
144
|
+
cursor: pointer
|
145
|
+
|
146
|
+
|
147
|
+
// Webkit browsers add a 2px margin outside the chrome of form elements
|
148
|
+
|
149
|
+
button, input, select, textarea
|
150
|
+
margin: 0
|
151
|
+
|
152
|
+
|
153
|
+
// make buttons play nice in IE
|
154
|
+
|
155
|
+
button
|
156
|
+
width: auto
|
157
|
+
overflow: visible
|
158
|
+
|
159
|
+
|
160
|
+
// scale images in IE7 more attractively
|
161
|
+
|
162
|
+
.ie7 img
|
163
|
+
-ms-interpolation-mode: bicubic
|
164
|
+
|
165
|
+
|
166
|
+
// prevent BG image flicker upon hover
|
167
|
+
|
168
|
+
.ie6 html
|
169
|
+
filter: expression(document.execCommand("BackgroundImageCache", false, true))
|
170
|
+
|
171
|
+
|
172
|
+
// let's clear some floats
|
173
|
+
|
174
|
+
.clearfix:before, .clearfix:after
|
175
|
+
content: "\0020"
|
176
|
+
display: block
|
177
|
+
height: 0
|
178
|
+
overflow: hidden
|
179
|
+
.clearfix:after
|
180
|
+
clear: both
|
181
|
+
.clearfix
|
182
|
+
zoom: 1
|
183
|
+
|
184
|
+
ins
|
185
|
+
background-color: #fcd700
|
186
|
+
color: #000
|
187
|
+
text-decoration: none
|
188
|
+
mark
|
189
|
+
background-color: #fcd700
|
190
|
+
color: #000
|
191
|
+
font-style: italic
|
192
|
+
font-weight: bold
|
@@ -0,0 +1,52 @@
|
|
1
|
+
// CHROME //
|
2
|
+
|
3
|
+
// All UI elements that don't belong on pages gets styled here.
|
4
|
+
// It keeps everything separate and tidy.
|
5
|
+
// Variables you defined in you skin will carry over to this file.
|
6
|
+
// Position the viewer. The viewer is the area in which pages can be displayed.
|
7
|
+
.viewer {
|
8
|
+
top: 0;
|
9
|
+
right: 0;
|
10
|
+
bottom: 0;
|
11
|
+
left: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
nav {
|
15
|
+
display: block;
|
16
|
+
position: absolute;
|
17
|
+
z-index: 1;
|
18
|
+
}
|
19
|
+
|
20
|
+
.sidebar, .menu {
|
21
|
+
.content {
|
22
|
+
display: none;
|
23
|
+
}
|
24
|
+
&.sidebar-active, &.menu-active {
|
25
|
+
.content {
|
26
|
+
display: block;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
// LIGHTBOX
|
32
|
+
|
33
|
+
.lightbox {
|
34
|
+
position: fixed;
|
35
|
+
overflow: hidden;
|
36
|
+
top: 0;
|
37
|
+
right: 0;
|
38
|
+
bottom: 0;
|
39
|
+
left: 0;
|
40
|
+
z-index: 99;
|
41
|
+
background: rgba(black, 0.5);
|
42
|
+
.container {
|
43
|
+
position: absolute;
|
44
|
+
overflow: hidden;
|
45
|
+
top: 0;
|
46
|
+
right: 0;
|
47
|
+
bottom: 0;
|
48
|
+
left: 0;
|
49
|
+
padding: 8px;
|
50
|
+
background: black;
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
// CONFIGURATION //
|
2
|
+
|
3
|
+
// BASE SIZE TO BE USED THROUGHOUT STYLES
|
4
|
+
// This must be a fixed unit of measurement, usually correlating to your text size.
|
5
|
+
$base-size: 16px
|
6
|
+
|
7
|
+
// RATIO
|
8
|
+
// Choose a ratio you wish to use with the modular scale, not nessisary if you don't plan on using modular scales.
|
9
|
+
$ratio: $fourth
|
10
|
+
|
11
|
+
// FONT-SIZE
|
12
|
+
$size: 1em
|
13
|
+
|
14
|
+
// LINE HEIGHT
|
15
|
+
// Basing the modular scale off of ems for this. ms(n) refers to the position on a built-in modular scale where "n" is the position. However you can use any value you like.
|
16
|
+
$line-height: ms(1, 1em)
|
17
|
+
|
18
|
+
// GRID MEASUREMENTS
|
19
|
+
// Grid module measurements. See Mark Boulton’s write up on grids http://www.markboulton.co.uk/journal/comments/rethinking-css-grids
|
20
|
+
$module-w: ms(5) // module width
|
21
|
+
$module-h: ms(4) // module height
|
22
|
+
$gutter: ms(1) // gutters
|
23
|
+
// grid margins:
|
24
|
+
$margin: ms(1) // side margins
|
25
|
+
$top: ms(2) // default top margin (for text and containers)
|
26
|
+
$bottom: ms(3) // default bottom margin (for text and containers)
|
27
|
+
// number of modules across to calculate:
|
28
|
+
$columns: 12 // # of columns you want to calculate for
|
29
|
+
|
30
|
+
// COLORS
|
31
|
+
$primary: #f66
|
32
|
+
$secondary: #6f6
|
33
|
+
$tertiary: #66f
|
34
|
+
$text: #333
|
35
|
+
$page: #fff
|
36
|
+
$body: #333
|
37
|
+
|
38
|
+
// FONTS
|
39
|
+
$font: serif
|
40
|
+
$hed: sans-serif
|
41
|
+
$subhed: sans-serif
|
42
|
+
|
43
|
+
// IMAGE/PAGE RATIOS
|
44
|
+
// If you wish to scale images and have fixed page sizes image ratios are a must. This allows images sizes to be measured for Treesaver.
|
45
|
+
// Image sizes still need to be hard coded for lightboxes.
|
46
|
+
@mixin ratios
|
47
|
+
+ratio(16, 9)
|
48
|
+
+ratio(4, 3)
|
49
|
+
+ratio(5, 4)
|
50
|
+
+ratio(1, 1)
|
51
|
+
+ratio(4, 5)
|
52
|
+
+ratio(3, 4)
|
53
|
+
|
54
|
+
|
55
|
+
// Debug tools adds element highlihgting using one-letter classes and mixins.
|
56
|
+
// @include r, @include g, @include b, @include c, @include m, @include y
|
57
|
+
// .r, .g, .b, .c, .m, .y
|
58
|
+
// red, green, blue, cyan, magenta, yellow
|
59
|
+
$debug: true
|
60
|
+
|
61
|
+
|
62
|
+
// EXTRAS (optional) //
|
63
|
+
|
64
|
+
// Vertical grid
|
65
|
+
//$vertical-grid: true // Compile vertical grid (true/false)
|
66
|
+
//$rows: 20 // # of rows to calculate on the vertical grid
|
67
|
+
|
68
|
+
// Scrollable figure styles
|
69
|
+
//$scroll-support: false
|
70
|
+
|
71
|
+
// Hyphenate paragraphs (via CSS3 hyphenation)
|
72
|
+
//$hyphenate: false
|
73
|
+
|
74
|
+
// Page Opacity (prev, next page at 50% opacity)
|
75
|
+
//$page-opacity: false
|
76
|
+
|
77
|
+
// Caption placement tools
|
78
|
+
//$caption-placement: false
|
79
|
+
|
80
|
+
// Fullbleed figure support
|
81
|
+
//$fullbleed: false
|
82
|
+
|
83
|
+
// Online/offline elements. The ability to show/hide based on network status.
|
84
|
+
//$offline-elements: false
|
@@ -0,0 +1,44 @@
|
|
1
|
+
// SKIN //
|
2
|
+
|
3
|
+
// Style the pages themselves here.
|
4
|
+
// To keep things tidy it is recommended that only pages get styled here.
|
5
|
+
// UI elements should be styled in the "chrome" directory.
|
6
|
+
|
7
|
+
|
8
|
+
// TYPOGRAPHIC STYLES
|
9
|
+
// Keep vertical spacing and all line-height attributes a multiple of your line-height to avoid text flow bugs. Do not use "!important" on any measurements here
|
10
|
+
// Only use system fonts for paragraphs and other large bodies of text. If web fonts are used line endings will be missing or duplicated.
|
11
|
+
p {
|
12
|
+
color: $text;
|
13
|
+
text-indent: $line-height;
|
14
|
+
&.noindent, &.caption, .keeptogether & {
|
15
|
+
text-indent: 0;
|
16
|
+
}
|
17
|
+
&.caption {
|
18
|
+
text-align: left;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
h1, h2, h3, h4 ,h5 ,h6 {
|
23
|
+
font-family: $subhed;
|
24
|
+
font-weight: bold;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1 {
|
28
|
+
font-family: $hed;
|
29
|
+
@include solid($line-height);
|
30
|
+
}
|
31
|
+
|
32
|
+
// GENERAL GRID STYLES
|
33
|
+
// Styles here apply to every grid in your publication
|
34
|
+
.grid {
|
35
|
+
margin: $gutter;
|
36
|
+
padding: 0 $margin;
|
37
|
+
background: $page;
|
38
|
+
}
|
39
|
+
|
40
|
+
// GRID STYLES
|
41
|
+
// Styles to specify grids in your publication, for example the department grid.
|
42
|
+
.department.grid {
|
43
|
+
|
44
|
+
}
|