kickstart_rails 0.1.1410202688028 → 0.2.410370028585

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/kickstart_rails.js +1 -0
  3. data/app/assets/javascripts/kickstart_rails/app.js +8 -0
  4. data/app/assets/javascripts/kickstart_rails/docs.js +108 -0
  5. data/app/assets/javascripts/kickstart_rails/docs/throttler_edge.js +2 -0
  6. data/app/assets/javascripts/kickstart_rails/docs/throttler_edgeActions.js +8 -0
  7. data/app/assets/javascripts/kickstart_rails/docs/throttler_edgePreload.js +18 -0
  8. data/app/assets/javascripts/kickstart_rails/kickstart.js +213 -0
  9. data/app/assets/javascripts/kickstart_rails/ks.js +6 -0
  10. data/app/assets/javascripts/kickstart_rails/modal.js +12 -0
  11. data/app/assets/javascripts/kickstart_rails/test.js +6364 -0
  12. data/app/assets/javascripts/kickstart_rails/tests.js +10 -0
  13. data/app/assets/javascripts/kickstart_rails/throttler_edge.js +2 -0
  14. data/app/assets/javascripts/kickstart_rails/throttler_edgeActions.js +8 -0
  15. data/app/assets/javascripts/kickstart_rails/throttler_edgePreload.js +18 -0
  16. data/app/assets/stylesheets/index.scss +1 -0
  17. data/app/assets/stylesheets/kickstart_rails.scss +1 -0
  18. data/app/assets/stylesheets/kickstart_rails/components/_buttons.sass +28 -0
  19. data/app/assets/stylesheets/kickstart_rails/components/_forms.sass +52 -0
  20. data/app/assets/stylesheets/kickstart_rails/components/_modals.sass +27 -0
  21. data/app/assets/stylesheets/kickstart_rails/components/_nav.sass +148 -0
  22. data/app/assets/stylesheets/kickstart_rails/components/_notifications.sass +40 -0
  23. data/app/assets/stylesheets/kickstart_rails/components/_progress.sass +12 -0
  24. data/app/assets/stylesheets/kickstart_rails/components/_root-element.sass +12 -0
  25. data/app/assets/stylesheets/kickstart_rails/components/_status.sass +16 -0
  26. data/app/assets/stylesheets/kickstart_rails/components/_tables.sass +35 -0
  27. data/app/assets/stylesheets/kickstart_rails/components/_tiles.sass +26 -0
  28. data/app/assets/stylesheets/kickstart_rails/components/_typography.sass +124 -0
  29. data/app/assets/stylesheets/kickstart_rails/core/_animations.sass +8 -0
  30. data/app/assets/stylesheets/kickstart_rails/core/_base.sass +11 -0
  31. data/app/assets/stylesheets/kickstart_rails/core/_components.sass +18 -0
  32. data/app/assets/stylesheets/kickstart_rails/core/_grid.sass +76 -0
  33. data/app/assets/stylesheets/kickstart_rails/core/_icons.sass +3 -0
  34. data/app/assets/stylesheets/kickstart_rails/core/_index.sass +6 -0
  35. data/app/assets/stylesheets/kickstart_rails/core/_mixins.sass +79 -0
  36. data/app/assets/stylesheets/kickstart_rails/core/_normalize.sass +339 -0
  37. data/app/assets/stylesheets/kickstart_rails/docs.sass +136 -0
  38. data/app/assets/stylesheets/kickstart_rails/kickstart-semantic.sass +12 -0
  39. data/app/assets/stylesheets/kickstart_rails/kickstart.sass +117 -0
  40. data/app/assets/stylesheets/kickstart_rails/themes/_default.sass +209 -0
  41. data/kickstart_rails-0.1.1410202688028.gem +0 -0
  42. data/kickstart_rails-0.1.1410202922510.gem +0 -0
  43. data/kickstart_rails-0.1.410202952463.gem +0 -0
  44. data/kickstart_rails-0.1.410203541952.gem +0 -0
  45. data/kickstart_rails-0.1.410205316740.gem +0 -0
  46. data/kickstart_rails-0.1.410205374218.gem +0 -0
  47. data/kickstart_rails.gemspec +4 -0
  48. data/lib/kickstart_rails/version.mustache +1 -1
  49. metadata +89 -3
  50. data/lib/kickstart_rails/version.rb +0 -3
@@ -0,0 +1,124 @@
1
+ =html-default
2
+ font-family: $default-font
3
+ font-size: $default-font-size
4
+ font-size: calc(#{$default-font-size - 2} + #{$scalingFactor})
5
+ line-height: $default-line-height
6
+ line-height: calc(#{$default-line-height} + #{$scalingFactor})
7
+
8
+ ul
9
+ margin-bottom: $space
10
+
11
+ h1, h2, h3, h4, h5, h6, p
12
+ margin: 0
13
+ line-height: normal
14
+ color: $lighter-black
15
+
16
+ p
17
+ margin: 0
18
+ bottom: $space
19
+
20
+ a
21
+ text-decoration: none
22
+ color: $blue
23
+
24
+ &:hover
25
+ text-decoration: underline
26
+
27
+ =pre-default
28
+ color: darken($blue, 25%)
29
+ +border-radius($space/5)
30
+ padding: ($space/5)
31
+ font-family: monospace
32
+ word-break: break-all
33
+ word-wrap: break-word
34
+ border: 0px !important
35
+ margin: 0
36
+ bottom: $space
37
+
38
+ =code-default
39
+ margin-bottom: 0px
40
+ padding: 0 (($space/5)/3)
41
+
42
+ =p-default($content-optimized)
43
+ font-size: 1rem
44
+ margin-bottom: $space
45
+ line-height: $default-line-height
46
+
47
+ @if ($content-optimized)
48
+ font-size: 1.25rem
49
+ line-height: 1.75rem
50
+ margin-bottom: 2.5rem
51
+
52
+ =hero-default
53
+ padding:
54
+ top: $space * 3
55
+ top: 10vw
56
+ bottom: $space * 3
57
+ bottom: 10vw
58
+ text-align: center
59
+ background: $primary-color
60
+ margin-bottom: $space
61
+ box-shadow: inset 0px -30px 100px -20px hsla(0, 0%, 0%, 0.15), inset 0px 40px 90px -20px rgba(255, 255, 255, 0.15)
62
+
63
+ img
64
+ margin: 0px auto
65
+ display: block
66
+
67
+ =heading-break
68
+ margin:
69
+ top: 2rem
70
+ &:first-child
71
+ margin-top: 0
72
+
73
+ =page-heading-default
74
+ h1, h2, h3, h4, h5, h6
75
+ border-bottom: 1px solid $darker-white
76
+ padding-bottom: $space/2
77
+
78
+ =xxl-heading-default
79
+ font-size: 3rem
80
+ margin:
81
+ bottom: 1.65rem
82
+ +heading-break
83
+
84
+ =xl-heading-default
85
+ font-size: 2.7rem
86
+ margin:
87
+ bottom: 1.5rem
88
+ +heading-break
89
+
90
+ =lg-heading-default
91
+ font-size: 2.4rem
92
+ margin:
93
+ bottom: 1.25rem
94
+ +heading-break
95
+
96
+ =md-heading-default
97
+ font-size: 2.1rem
98
+ margin:
99
+ bottom: 1.15rem
100
+ +heading-break
101
+
102
+ =rg-heading-default
103
+ font-size: 1.8rem
104
+ margin:
105
+ bottom: 1rem
106
+ +heading-break
107
+
108
+ =sm-heading-default
109
+ font-size: 1.5rem
110
+ margin:
111
+ bottom: 0.85rem
112
+ +heading-break
113
+
114
+ =xs-heading-default
115
+ font-size: 1.2rem
116
+ margin:
117
+ bottom: 0.7rem
118
+ +heading-break
119
+
120
+ =xxs-heading-default
121
+ font-size: 0.9rem
122
+ margin:
123
+ bottom: 0.5rem
124
+ +heading-break
@@ -0,0 +1,8 @@
1
+ @keyframes fadeInDown
2
+ 0%
3
+ opacity: 0
4
+ transform: translateY(-20px)
5
+
6
+ 100%
7
+ opacity: 1
8
+ transform: translateY(0)
@@ -0,0 +1,11 @@
1
+ // Vendor libraries
2
+ @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700,900,400italic)
3
+
4
+ *
5
+ box-sizing: border-box
6
+
7
+ iframe
8
+ width: 100%
9
+ border: 0
10
+ padding: 15px
11
+ margin-bottom: 25px
@@ -0,0 +1,18 @@
1
+ /*
2
+ * Kickstart
3
+ * =========
4
+ * For users who prefer to use the Sass mixin library, this and their chosen
5
+ * theme are the only files they'll need.
6
+ */
7
+
8
+ // Components
9
+ @import ../components/_root-element
10
+ @import ../components/_buttons
11
+ @import ../components/_forms
12
+ @import ../components/_modals
13
+ @import ../components/_nav
14
+ @import ../components/_progress
15
+ @import ../components/_notifications
16
+ @import ../components/_tables
17
+ @import ../components/_tiles
18
+ @import ../components/_typography
@@ -0,0 +1,76 @@
1
+ // 1/2 The snippet
2
+
3
+ $phone: 360px
4
+ $phablet: 480px
5
+ $tablet: 768px
6
+ $tablet-landscape: 960px
7
+ $desktop: 1024px
8
+ $large-monitor: 1200px
9
+ $xl-monitor: 1400px
10
+
11
+ $grid-columns: 12
12
+ $grid-gutter: 15px
13
+
14
+ =container
15
+ margin: 0px auto
16
+ display: block
17
+ max-width: $tablet
18
+ padding:
19
+ left: 25px
20
+ right: 25px
21
+
22
+ @media screen and (min-width: $tablet-landscape)
23
+ max-width: $desktop
24
+
25
+ @media screen and (min-width: $large-monitor)
26
+ max-width: $large-monitor
27
+
28
+ =row
29
+ display: -webkit-box
30
+ display: -o-flex
31
+ display: -moz-flex
32
+ display: -webkit-flex
33
+ display: flex
34
+ width: 100%
35
+ -o-justify-content: space-between
36
+ -ms-justify-content: space-between
37
+ -moz-justify-content: space-between
38
+ -webkit-justify-content: space-between
39
+ justify-content: space-between
40
+ align-items: stretch
41
+ -ms-flex-wrap: wrap
42
+ -moz-flex-wrap: wrap
43
+ -webkit-flex-wrap: wrap
44
+ flex-wrap: wrap
45
+
46
+ =set-column($columns, $offset, $ignore-auto-breakpoints: false)
47
+ width: 100%
48
+ display: block
49
+ margin-left: 0
50
+
51
+ @media screen and (min-width: $phablet)
52
+ width: calc(#{percentage($columns/$grid-columns)} - #{$grid-gutter})
53
+ clear: none
54
+
55
+ @if $offset > 0
56
+ @media screen and (min-width: $desktop)
57
+ margin-left: percentage($offset/$grid-columns)
58
+
59
+ =column($type: 12, $offset: 0)
60
+ +set-column(12, 0, true)
61
+ @if $type == "half"
62
+ @media screen and (min-width: $tablet)
63
+ +set-column($grid-columns/2, 0, true)
64
+ @else if $type == "third"
65
+ @media screen and (min-width: $phablet)
66
+ +set-column($grid-columns/2, 0, true)
67
+ @media screen and (min-width: $tablet)
68
+ +set-column($grid-columns/3, 0, true)
69
+ @else if $type == "twothirds"
70
+ @media screen and (min-width: $phablet)
71
+ +set-column($grid-columns/2, 0, true)
72
+ @media screen and (min-width: $tablet)
73
+ +set-column(($grid-columns * 2/3), 0, true)
74
+ @else
75
+ @media screen and (min-width: $tablet)
76
+ +set-column($type, $offset)
@@ -0,0 +1,3 @@
1
+ @font-face
2
+ font-family: 'Kickstart'
3
+ src: url(data:font/ttf;base64,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) format('opentype')
@@ -0,0 +1,6 @@
1
+ @import _base
2
+ @import _icons
3
+ @import _mixins
4
+ @import _animations
5
+ @import _components
6
+ @import _grid
@@ -0,0 +1,79 @@
1
+ =animation-delay($time)
2
+ animation-delay: $time
3
+ -webkit-animation-delay: $time
4
+ -moz-animation-delay: $time
5
+
6
+ =animation-duration($time)
7
+ animation-duration: $time
8
+ -webkit-animation-duration: $time
9
+ -moz-animation-duration: $time
10
+
11
+ =animation-fill-mode($mode)
12
+ animation-fill-mode: $mode
13
+ -webkit-animation-fill-mode: $mode
14
+ -moz-animation-fill-mode: $mode
15
+
16
+ =animation-name($name)
17
+ animation-name: $name
18
+ -webkit-animation-name: $name
19
+ -moz-animation-name: $name
20
+
21
+ =animation-timing-function($fn)
22
+ animation-timing-function: $fn
23
+ -webkit-animation-timing-function: $fn
24
+ -moz-animation-timing-function: $fn
25
+
26
+ =border-radius($radius)
27
+ border-radius: $radius
28
+ -webkit-border-radius: $radius
29
+ -moz-border-radius: $radius
30
+
31
+ =box-shadow($prop1, $prop2: '')
32
+ @if $prop2 != ''
33
+ $prop2: ',' + $prop2
34
+ $propTotal: unquote($prop1 + $prop2)
35
+ box-shadow: $propTotal
36
+ -webkit-box-shadow: $propTotal
37
+ -moz-box-shadow: $propTotal
38
+
39
+ =box-sizing($prop: border-box)
40
+ box-sizing: $prop
41
+ -webkit-box-sizing: $prop
42
+ -moz-box-sizing: $prop
43
+
44
+ =transform($prop)
45
+ transform: $prop
46
+ -moz-transform: $prop
47
+ -webkit-transform: $prop
48
+
49
+ =flex($type: flex)
50
+ display: -moz-box
51
+ display: -webkit-box
52
+ display: -webkit-flex
53
+ display: -ms-flexbox
54
+ display: $type
55
+
56
+ =align-items
57
+ -webkit-align-items: flex-start
58
+ -moz-align-items: flex-start
59
+ align-items: flex-start
60
+
61
+ =flex-wrap($kind: wrap)
62
+ -webkit-flex-wrap: $kind
63
+ -moz-flex-wrap: $kind
64
+ flex-wrap: $kind
65
+
66
+ =justify-content($justification)
67
+ -webkit-justify-content: $justification
68
+ -moz-justify-content: $justification
69
+ justify-content: $justification
70
+
71
+ =align-content($justification)
72
+ -webkit-align-content: $justification
73
+ -moz-align-content: $justification
74
+ align-content: $justification
75
+
76
+ =align-items($justification)
77
+ -webkit-align-items: $justification
78
+ -moz-align-items: $justification
79
+ align-items: $justification
@@ -0,0 +1,339 @@
1
+ /*! normalize.css v3.0.1 | MIT License | git.io/normalize
2
+
3
+ /**
4
+ * 1. Set default font family to sans-serif.
5
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
6
+ * user zoom.
7
+
8
+ html
9
+ font-family: sans-serif
10
+ /* 1
11
+ -ms-text-size-adjust: 100%
12
+ /* 2
13
+ -webkit-text-size-adjust: 100%
14
+ /* 2
15
+
16
+ /**
17
+ * Remove default margin.
18
+
19
+ body
20
+ margin: 0
21
+
22
+ /* HTML5 display definitions
23
+ * ==========================================================================
24
+
25
+ /**
26
+ * Correct `block` display not defined for any HTML5 element in IE 8/9.
27
+ * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
28
+ * Correct `block` display not defined for `main` in IE 11.
29
+
30
+ article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary
31
+ display: block
32
+
33
+ /**
34
+ * 1. Correct `inline-block` display not defined in IE 8/9.
35
+ * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
36
+
37
+ audio, canvas, progress, video
38
+ display: inline-block
39
+ /* 1
40
+ vertical-align: baseline
41
+ /* 2
42
+
43
+ /**
44
+ * Prevent modern browsers from displaying `audio` without controls.
45
+ * Remove excess height in iOS 5 devices.
46
+
47
+ audio:not([controls])
48
+ display: none
49
+ height: 0
50
+
51
+ /**
52
+ * Address `[hidden]` styling not present in IE 8/9/10.
53
+ * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
54
+
55
+ [hidden], template
56
+ display: none
57
+
58
+ /* Links
59
+ * ==========================================================================
60
+
61
+ /**
62
+ * Remove the gray background color from active links in IE 10.
63
+
64
+ a
65
+ background: transparent
66
+ &:active, &:hover
67
+ outline: 0
68
+
69
+ /**
70
+ * Improve readability when focused and also mouse hovered in all browsers.
71
+
72
+ /* Text-level semantics
73
+ * ==========================================================================
74
+
75
+ /**
76
+ * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
77
+
78
+ abbr[title]
79
+ border-bottom: 1px dotted
80
+
81
+ /**
82
+ * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
83
+
84
+ b, strong
85
+ font-weight: bold
86
+
87
+ /**
88
+ * Address styling not present in Safari and Chrome.
89
+
90
+ dfn
91
+ font-style: italic
92
+
93
+ /**
94
+ * Address variable `h1` font-size and margin within `section` and `article`
95
+ * contexts in Firefox 4+, Safari, and Chrome.
96
+
97
+ h1
98
+ font-size: 2em
99
+ margin: 0.67em 0
100
+
101
+ /**
102
+ * Address styling not present in IE 8/9.
103
+
104
+ mark
105
+ background: #ff0
106
+ color: #000
107
+
108
+ /**
109
+ * Address inconsistent and variable font size in all browsers.
110
+
111
+ small
112
+ font-size: 80%
113
+
114
+ /**
115
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
116
+
117
+ sub
118
+ font-size: 75%
119
+ line-height: 0
120
+ position: relative
121
+ vertical-align: baseline
122
+
123
+ sup
124
+ font-size: 75%
125
+ line-height: 0
126
+ position: relative
127
+ vertical-align: baseline
128
+ top: -0.5em
129
+
130
+ sub
131
+ bottom: -0.25em
132
+
133
+ /* Embedded content
134
+ * ==========================================================================
135
+
136
+ /**
137
+ * Remove border when inside `a` element in IE 8/9/10.
138
+
139
+ img
140
+ border: 0
141
+
142
+ /**
143
+ * Correct overflow not hidden in IE 9/10/11.
144
+
145
+ svg:not(:root)
146
+ overflow: hidden
147
+
148
+ /* Grouping content
149
+ * ==========================================================================
150
+
151
+ /**
152
+ * Address margin not present in IE 8/9 and Safari.
153
+
154
+ figure
155
+ margin: 1em 40px
156
+
157
+ /**
158
+ * Address differences between Firefox and other browsers.
159
+
160
+ hr
161
+ -moz-box-sizing: content-box
162
+ box-sizing: content-box
163
+ height: 0
164
+
165
+ /**
166
+ * Contain overflow in all browsers.
167
+
168
+ pre
169
+ overflow: auto
170
+
171
+ /**
172
+ * Address odd `em`-unit font size rendering in all browsers.
173
+
174
+ code, kbd, pre, samp
175
+ font-family: monospace, monospace
176
+ font-size: 1em
177
+
178
+ /* Forms
179
+ * ==========================================================================
180
+
181
+ /**
182
+ * Known limitation: by default, Chrome and Safari on OS X allow very limited
183
+ * styling of `select`, unless a `border` property is set.
184
+
185
+ /**
186
+ * 1. Correct color not being inherited.
187
+ * Known issue: affects color of disabled elements.
188
+ * 2. Correct font properties not being inherited.
189
+ * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
190
+
191
+ button, input, optgroup, select, textarea
192
+ color: inherit
193
+ /* 1
194
+ font: inherit
195
+ /* 2
196
+ margin: 0
197
+ /* 3
198
+
199
+ /**
200
+ * Address `overflow` set to `hidden` in IE 8/9/10/11.
201
+
202
+ button
203
+ overflow: visible
204
+ text-transform: none
205
+
206
+ /**
207
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
208
+ * All other form control elements do not inherit `text-transform` values.
209
+ * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
210
+ * Correct `select` style inheritance in Firefox.
211
+
212
+ select
213
+ text-transform: none
214
+
215
+ /**
216
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
217
+ * and `video` controls.
218
+ * 2. Correct inability to style clickable `input` types in iOS.
219
+ * 3. Improve usability and consistency of cursor style between image-type
220
+ * `input` and others.
221
+
222
+ button, html input[type="button"]
223
+ -webkit-appearance: button
224
+ /* 2
225
+ cursor: pointer
226
+ /* 3
227
+
228
+ input
229
+ &[type="reset"], &[type="submit"]
230
+ -webkit-appearance: button
231
+ /* 2
232
+ cursor: pointer
233
+ /* 3
234
+
235
+ /**
236
+ * Re-set default cursor for disabled elements.
237
+
238
+ button[disabled], html input[disabled]
239
+ cursor: default
240
+
241
+ /**
242
+ * Remove inner padding and border in Firefox 4+.
243
+
244
+ button::-moz-focus-inner
245
+ border: 0
246
+ padding: 0
247
+
248
+ input
249
+ &::-moz-focus-inner
250
+ border: 0
251
+ padding: 0
252
+ line-height: normal
253
+ &[type="checkbox"], &[type="radio"]
254
+ box-sizing: border-box
255
+ /* 1
256
+ padding: 0
257
+ /* 2
258
+ &[type="number"]
259
+ &::-webkit-inner-spin-button, &::-webkit-outer-spin-button
260
+ height: auto
261
+ &[type="search"]
262
+ -webkit-appearance: textfield
263
+ /* 1
264
+ -moz-box-sizing: content-box
265
+ -webkit-box-sizing: content-box
266
+ /* 2
267
+ box-sizing: content-box
268
+ &::-webkit-search-cancel-button, &::-webkit-search-decoration
269
+ -webkit-appearance: none
270
+
271
+ /**
272
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
273
+ * the UA stylesheet.
274
+
275
+ /**
276
+ * It's recommended that you don't attempt to style these elements.
277
+ * Firefox's implementation doesn't respect box-sizing, padding, or width.
278
+ *
279
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
280
+ * 2. Remove excess padding in IE 8/9/10.
281
+
282
+ /**
283
+ * Fix the cursor style for Chrome's increment/decrement buttons. For certain
284
+ * `font-size` values of the `input`, it causes the cursor style of the
285
+ * decrement button to change from `default` to `text`.
286
+
287
+ /**
288
+ * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
289
+ * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
290
+ * (include `-moz` to future-proof).
291
+
292
+ /**
293
+ * Remove inner padding and search cancel button in Safari and Chrome on OS X.
294
+ * Safari (but not Chrome) clips the cancel button when the search input has
295
+ * padding (and `textfield` appearance).
296
+
297
+ /**
298
+ * Define consistent border, margin, and padding.
299
+
300
+ fieldset
301
+ border: 1px solid #c0c0c0
302
+ margin: 0 2px
303
+ padding: 0.35em 0.625em 0.75em
304
+
305
+ /**
306
+ * 1. Correct `color` not being inherited in IE 8/9/10/11.
307
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
308
+
309
+ legend
310
+ border: 0
311
+ /* 1
312
+ padding: 0
313
+ /* 2
314
+
315
+ /**
316
+ * Remove default vertical scrollbar in IE 8/9/10/11.
317
+
318
+ textarea
319
+ overflow: auto
320
+
321
+ /**
322
+ * Don't inherit the `font-weight` (applied by a rule above).
323
+ * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
324
+
325
+ optgroup
326
+ font-weight: bold
327
+
328
+ /* Tables
329
+ * ==========================================================================
330
+
331
+ /**
332
+ * Remove most spacing between table cells.
333
+
334
+ table
335
+ border-collapse: collapse
336
+ border-spacing: 0
337
+
338
+ td, th
339
+ padding: 0