bootstrap_sass_rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +15 -0
  2. data/.gitignore +17 -0
  3. data/.rvmrc +1 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +22 -0
  6. data/README.md +44 -0
  7. data/Rakefile +1 -0
  8. data/app/assets/javascripts/bootstrap.js +12 -0
  9. data/app/assets/javascripts/bootstrap/affix.js +126 -0
  10. data/app/assets/javascripts/bootstrap/alert.js +98 -0
  11. data/app/assets/javascripts/bootstrap/button.js +109 -0
  12. data/app/assets/javascripts/bootstrap/carousel.js +217 -0
  13. data/app/assets/javascripts/bootstrap/collapse.js +179 -0
  14. data/app/assets/javascripts/bootstrap/dropdown.js +154 -0
  15. data/app/assets/javascripts/bootstrap/modal.js +246 -0
  16. data/app/assets/javascripts/bootstrap/popover.js +117 -0
  17. data/app/assets/javascripts/bootstrap/scrollspy.js +158 -0
  18. data/app/assets/javascripts/bootstrap/tab.js +135 -0
  19. data/app/assets/javascripts/bootstrap/tooltip.js +386 -0
  20. data/app/assets/javascripts/bootstrap/transition.js +56 -0
  21. data/app/assets/stylesheets/bootstrap.css.sass +59 -0
  22. data/app/assets/stylesheets/bootstrap/_alerts.css.sass +55 -0
  23. data/app/assets/stylesheets/bootstrap/_badges.css.sass +50 -0
  24. data/app/assets/stylesheets/bootstrap/_breadcrumbs.css.sass +19 -0
  25. data/app/assets/stylesheets/bootstrap/_button-groups.css.sass +210 -0
  26. data/app/assets/stylesheets/bootstrap/_buttons.css.sass +135 -0
  27. data/app/assets/stylesheets/bootstrap/_carousel.css.sass +165 -0
  28. data/app/assets/stylesheets/bootstrap/_close.css.sass +28 -0
  29. data/app/assets/stylesheets/bootstrap/_code.css.sass +49 -0
  30. data/app/assets/stylesheets/bootstrap/_component-animations.css.sass +25 -0
  31. data/app/assets/stylesheets/bootstrap/_dropdowns.css.sass +166 -0
  32. data/app/assets/stylesheets/bootstrap/_forms.css.sass +309 -0
  33. data/app/assets/stylesheets/bootstrap/_glyphicons.css.sass +827 -0
  34. data/app/assets/stylesheets/bootstrap/_grid.css.sass +483 -0
  35. data/app/assets/stylesheets/bootstrap/_input-groups.css.sass +117 -0
  36. data/app/assets/stylesheets/bootstrap/_jumbotron.css.sass +28 -0
  37. data/app/assets/stylesheets/bootstrap/_labels.css.sass +46 -0
  38. data/app/assets/stylesheets/bootstrap/_list-group.css.sass +71 -0
  39. data/app/assets/stylesheets/bootstrap/_media.css.sass +47 -0
  40. data/app/assets/stylesheets/bootstrap/_mixins.css.sass +754 -0
  41. data/app/assets/stylesheets/bootstrap/_modals.css.sass +127 -0
  42. data/app/assets/stylesheets/bootstrap/_navbar.css.sass +457 -0
  43. data/app/assets/stylesheets/bootstrap/_navs.css.sass +171 -0
  44. data/app/assets/stylesheets/bootstrap/_normalize.css.sass +375 -0
  45. data/app/assets/stylesheets/bootstrap/_pager.css.sass +39 -0
  46. data/app/assets/stylesheets/bootstrap/_pagination.css.sass +66 -0
  47. data/app/assets/stylesheets/bootstrap/_panels.css.sass +114 -0
  48. data/app/assets/stylesheets/bootstrap/_popovers.css.sass +124 -0
  49. data/app/assets/stylesheets/bootstrap/_print.css.sass +66 -0
  50. data/app/assets/stylesheets/bootstrap/_progress-bars.css.sass +90 -0
  51. data/app/assets/stylesheets/bootstrap/_responsive-utilities.css.sass +152 -0
  52. data/app/assets/stylesheets/bootstrap/_scaffolding.css.sass +108 -0
  53. data/app/assets/stylesheets/bootstrap/_tables.css.sass +176 -0
  54. data/app/assets/stylesheets/bootstrap/_theme.css.sass +228 -0
  55. data/app/assets/stylesheets/bootstrap/_thumbnails.css.sass +26 -0
  56. data/app/assets/stylesheets/bootstrap/_tooltip.css.sass +91 -0
  57. data/app/assets/stylesheets/bootstrap/_type.css.sass +251 -0
  58. data/app/assets/stylesheets/bootstrap/_utilities.css.sass +36 -0
  59. data/app/assets/stylesheets/bootstrap/_variables.css.sass +614 -0
  60. data/app/assets/stylesheets/bootstrap/_wells.css.sass +25 -0
  61. data/bin/convert-sass.sh +3 -0
  62. data/bootstrap_sass_rails.gemspec +25 -0
  63. data/lib/bootstrap_sass_rails.rb +13 -0
  64. data/lib/bootstrap_sass_rails/engine.rb +4 -0
  65. data/lib/bootstrap_sass_rails/version.rb +3 -0
  66. metadata +152 -0
@@ -0,0 +1,171 @@
1
+ //
2
+ // Navs
3
+ // --------------------------------------------------
4
+
5
+ // Base class
6
+ // --------------------------------------------------
7
+
8
+ .nav
9
+ margin-bottom: 0
10
+ padding-left: 0
11
+ // Override default ul/ol
12
+ list-style: none
13
+ +clearfix
14
+ > li
15
+ position: relative
16
+ display: block
17
+ > a
18
+ position: relative
19
+ display: block
20
+ padding: $nav-link-padding
21
+ &:hover,
22
+ &:focus
23
+ text-decoration: none
24
+ background-color: $nav-link-hover-bg
25
+ // Disabled state sets text to gray and nukes hover/tab effects
26
+ &.disabled > a
27
+ color: $nav-disabled-link-color
28
+ &:hover,
29
+ &:focus
30
+ color: $nav-disabled-link-hover-color
31
+ text-decoration: none
32
+ background-color: transparent
33
+ cursor: not-allowed
34
+ // Open dropdowns
35
+ .open > a
36
+ &,
37
+ &:hover,
38
+ &:focus
39
+ background-color: $nav-link-hover-bg
40
+ border-color: $link-color
41
+ // Dividers (basically an hr) within the dropdown
42
+ .nav-divider
43
+ +nav-divider
44
+ // Prevent IE8 from misplacing imgs
45
+ // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
46
+ > li > a > img
47
+ max-width: none
48
+
49
+ // Tabs
50
+ // -------------------------
51
+
52
+ // Give the tabs something to sit on
53
+ .nav-tabs
54
+ border-bottom: 1px solid $nav-tabs-border-color
55
+ > li
56
+ float: left
57
+ // Make the list-items overlay the bottom border
58
+ margin-bottom: -1px
59
+ // Actual tabs (as links)
60
+ > a
61
+ margin-right: 2px
62
+ line-height: $line-height-base
63
+ border: 1px solid transparent
64
+ border-radius: $border-radius-base $border-radius-base 0 0
65
+ &:hover
66
+ border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color
67
+ // Active state, and it's :hover to override normal :hover
68
+ &.active > a
69
+ &,
70
+ &:hover,
71
+ &:focus
72
+ color: $nav-tabs-active-link-hover-color
73
+ background-color: $nav-tabs-active-link-hover-bg
74
+ border: 1px solid $nav-tabs-active-link-hover-border-color
75
+ border-bottom-color: transparent
76
+ cursor: default
77
+ // pulling this in mainly for less shorthand
78
+ &.nav-justified
79
+ @extend .nav-justified
80
+ @extend .nav-tabs-justified
81
+
82
+ // Pills
83
+ // -------------------------
84
+ .nav-pills
85
+ > li
86
+ float: left
87
+ // Links rendered as pills
88
+ > a
89
+ border-radius: 5px
90
+ + li
91
+ margin-left: 2px
92
+ // Active state
93
+ &.active > a
94
+ &,
95
+ &:hover,
96
+ &:focus
97
+ color: $nav-pills-active-link-hover-color
98
+ background-color: $nav-pills-active-link-hover-bg
99
+
100
+ // Stacked pills
101
+ .nav-stacked
102
+ > li
103
+ float: none
104
+ + li
105
+ margin-top: 2px
106
+ margin-left: 0
107
+ // no need for this gap between nav items
108
+
109
+ // Nav variations
110
+ // --------------------------------------------------
111
+
112
+ // Justified nav links
113
+ // -------------------------
114
+
115
+ .nav-justified
116
+ width: 100%
117
+ > li
118
+ float: none
119
+ > a
120
+ text-align: center
121
+ @media (min-width: $screen-sm)
122
+ > li
123
+ display: table-cell
124
+ width: 1%
125
+
126
+ // Move borders to anchors instead of bottom of list
127
+ .nav-tabs-justified
128
+ border-bottom: 0
129
+ > li > a
130
+ border-bottom: 1px solid $nav-tabs-justified-link-border-color
131
+ // Override margin from .nav-tabs
132
+ margin-right: 0
133
+ > .active > a
134
+ border-bottom-color: $nav-tabs-justified-active-link-border-color
135
+
136
+ // Tabbable tabs
137
+ // -------------------------
138
+
139
+ // Clear any floats
140
+ .tabbable
141
+ +clearfix
142
+
143
+ // Show/hide tabbable areas
144
+
145
+ .tab-content > .tab-pane,
146
+ .pill-content > .pill-pane
147
+ display: none
148
+
149
+ .tab-content,
150
+ .pill-content
151
+ > .active
152
+ display: block
153
+
154
+ // Dropdowns
155
+ // -------------------------
156
+
157
+ // Make dropdown carets use link color in navs
158
+ .nav .caret
159
+ border-top-color: $link-color
160
+ border-bottom-color: $link-color
161
+
162
+ .nav a:hover .caret
163
+ border-top-color: $link-hover-color
164
+ border-bottom-color: $link-hover-color
165
+
166
+ // Specific dropdowns
167
+ .nav-tabs .dropdown-menu
168
+ // make dropdown border overlap tab border
169
+ margin-top: -1px
170
+ // Remove the top rounded corners here since there is a hard edge above the menu
171
+ +border-top-radius(0)
@@ -0,0 +1,375 @@
1
+ /*! normalize.css v2.1.0 | MIT License | git.io/normalize
2
+
3
+ // ==========================================================================
4
+ // HTML5 display definitions
5
+ // ==========================================================================
6
+
7
+ //
8
+ // Correct `block` display not defined in IE 8/9.
9
+ //
10
+
11
+ article,
12
+ aside,
13
+ details,
14
+ figcaption,
15
+ figure,
16
+ footer,
17
+ header,
18
+ hgroup,
19
+ main,
20
+ nav,
21
+ section,
22
+ summary
23
+ display: block
24
+
25
+ //
26
+ // Correct `inline-block` display not defined in IE 8/9.
27
+ //
28
+
29
+ audio,
30
+ canvas,
31
+ video
32
+ display: inline-block
33
+
34
+ //
35
+ // Prevent modern browsers from displaying `audio` without controls.
36
+ // Remove excess height in iOS 5 devices.
37
+ //
38
+
39
+ audio:not([controls])
40
+ display: none
41
+ height: 0
42
+
43
+ //
44
+ // Address styling not present in IE 8/9.
45
+ //
46
+
47
+ [hidden]
48
+ display: none
49
+
50
+ // ==========================================================================
51
+ // Base
52
+ // ==========================================================================
53
+
54
+ //
55
+ // 1. Set default font family to sans-serif.
56
+ // 2. Prevent iOS text size adjust after orientation change, without disabling
57
+ // user zoom.
58
+ //
59
+
60
+ html
61
+ font-family: sans-serif
62
+ // 1
63
+ -webkit-text-size-adjust: 100%
64
+ // 2
65
+ -ms-text-size-adjust: 100%
66
+ // 2
67
+
68
+ //
69
+ // Remove default margin.
70
+ //
71
+
72
+ body
73
+ margin: 0
74
+
75
+ // ==========================================================================
76
+ // Links
77
+ // ==========================================================================
78
+
79
+ //
80
+ // Address `outline` inconsistency between Chrome and other browsers.
81
+ //
82
+
83
+ a:focus
84
+ outline: thin dotted
85
+
86
+ //
87
+ // Improve readability when focused and also mouse hovered in all browsers.
88
+ //
89
+
90
+ a:active,
91
+ a:hover
92
+ outline: 0
93
+
94
+ // ==========================================================================
95
+ // Typography
96
+ // ==========================================================================
97
+
98
+ //
99
+ // Address variable `h1` font-size and margin within `section` and `article`
100
+ // contexts in Firefox 4+, Safari 5, and Chrome.
101
+ //
102
+
103
+ h1
104
+ font-size: 2em
105
+ margin: 0.67em 0
106
+
107
+ //
108
+ // Address styling not present in IE 8/9, Safari 5, and Chrome.
109
+ //
110
+
111
+ abbr[title]
112
+ border-bottom: 1px dotted
113
+
114
+ //
115
+ // Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
116
+ //
117
+
118
+ b,
119
+ strong
120
+ font-weight: bold
121
+
122
+ //
123
+ // Address styling not present in Safari 5 and Chrome.
124
+ //
125
+
126
+ dfn
127
+ font-style: italic
128
+
129
+ //
130
+ // Address differences between Firefox and other browsers.
131
+ //
132
+
133
+ hr
134
+ -moz-box-sizing: content-box
135
+ box-sizing: content-box
136
+ height: 0
137
+
138
+ //
139
+ // Address styling not present in IE 8/9.
140
+ //
141
+
142
+ mark
143
+ background: #ff0
144
+ color: #000
145
+
146
+ //
147
+ // Correct font family set oddly in Safari 5 and Chrome.
148
+ //
149
+
150
+ code,
151
+ kbd,
152
+ pre,
153
+ samp
154
+ font-family: monospace, serif
155
+ font-size: 1em
156
+
157
+ //
158
+ // Improve readability of pre-formatted text in all browsers.
159
+ //
160
+
161
+ pre
162
+ white-space: pre-wrap
163
+
164
+ //
165
+ // Set consistent quote types.
166
+ //
167
+
168
+ q
169
+ quotes: "\201C" "\201D" "\2018" "\2019"
170
+
171
+ //
172
+ // Address inconsistent and variable font size in all browsers.
173
+ //
174
+
175
+ small
176
+ font-size: 80%
177
+
178
+ //
179
+ // Prevent `sub` and `sup` affecting `line-height` in all browsers.
180
+ //
181
+
182
+ sub,
183
+ sup
184
+ font-size: 75%
185
+ line-height: 0
186
+ position: relative
187
+ vertical-align: baseline
188
+
189
+ sup
190
+ top: -0.5em
191
+
192
+ sub
193
+ bottom: -0.25em
194
+
195
+ // ==========================================================================
196
+ // Embedded content
197
+ // ==========================================================================
198
+
199
+ //
200
+ // Remove border when inside `a` element in IE 8/9.
201
+ //
202
+
203
+ img
204
+ border: 0
205
+
206
+ //
207
+ // Correct overflow displayed oddly in IE 9.
208
+ //
209
+
210
+ svg:not(:root)
211
+ overflow: hidden
212
+
213
+ // ==========================================================================
214
+ // Figures
215
+ // ==========================================================================
216
+
217
+ //
218
+ // Address margin not present in IE 8/9 and Safari 5.
219
+ //
220
+
221
+ figure
222
+ margin: 0
223
+
224
+ // ==========================================================================
225
+ // Forms
226
+ // ==========================================================================
227
+
228
+ //
229
+ // Define consistent border, margin, and padding.
230
+ //
231
+
232
+ fieldset
233
+ border: 1px solid #c0c0c0
234
+ margin: 0 2px
235
+ padding: 0.35em 0.625em 0.75em
236
+
237
+ //
238
+ // 1. Correct `color` not being inherited in IE 8/9.
239
+ // 2. Remove padding so people aren't caught out if they zero out fieldsets.
240
+ //
241
+
242
+ legend
243
+ border: 0
244
+ // 1
245
+ padding: 0
246
+ // 2
247
+
248
+ //
249
+ // 1. Correct font family not being inherited in all browsers.
250
+ // 2. Correct font size not being inherited in all browsers.
251
+ // 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
252
+ //
253
+
254
+ button,
255
+ input,
256
+ select,
257
+ textarea
258
+ font-family: inherit
259
+ // 1
260
+ font-size: 100%
261
+ // 2
262
+ margin: 0
263
+ // 3
264
+
265
+ //
266
+ // Address Firefox 4+ setting `line-height` on `input` using `!important` in
267
+ // the UA stylesheet.
268
+ //
269
+
270
+ button,
271
+ input
272
+ line-height: normal
273
+
274
+ //
275
+ // Address inconsistent `text-transform` inheritance for `button` and `select`.
276
+ // All other form control elements do not inherit `text-transform` values.
277
+ // Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
278
+ // Correct `select` style inheritance in Firefox 4+ and Opera.
279
+ //
280
+
281
+ button,
282
+ select
283
+ text-transform: none
284
+
285
+ //
286
+ // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
287
+ // and `video` controls.
288
+ // 2. Correct inability to style clickable `input` types in iOS.
289
+ // 3. Improve usability and consistency of cursor style between image-type
290
+ // `input` and others.
291
+ //
292
+
293
+ button,
294
+ html input[type="button"],
295
+ input[type="reset"],
296
+ input[type="submit"]
297
+ -webkit-appearance: button
298
+ // 2
299
+ cursor: pointer
300
+ // 3
301
+
302
+ //
303
+ // Re-set default cursor for disabled elements.
304
+ //
305
+
306
+ button[disabled],
307
+ html input[disabled]
308
+ cursor: default
309
+
310
+ //
311
+ // 1. Address box sizing set to `content-box` in IE 8/9.
312
+ // 2. Remove excess padding in IE 8/9.
313
+ //
314
+
315
+ input[type="checkbox"],
316
+ input[type="radio"]
317
+ box-sizing: border-box
318
+ // 1
319
+ padding: 0
320
+ // 2
321
+
322
+ //
323
+ // 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
324
+ // 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
325
+ // (include `-moz` to future-proof).
326
+ //
327
+
328
+ input[type="search"]
329
+ -webkit-appearance: textfield
330
+ // 1
331
+ -moz-box-sizing: content-box
332
+ -webkit-box-sizing: content-box
333
+ // 2
334
+ box-sizing: content-box
335
+
336
+ //
337
+ // Remove inner padding and search cancel button in Safari 5 and Chrome
338
+ // on OS X.
339
+ //
340
+
341
+ input[type="search"]::-webkit-search-cancel-button,
342
+ input[type="search"]::-webkit-search-decoration
343
+ -webkit-appearance: none
344
+
345
+ //
346
+ // Remove inner padding and border in Firefox 4+.
347
+ //
348
+
349
+ button::-moz-focus-inner,
350
+ input::-moz-focus-inner
351
+ border: 0
352
+ padding: 0
353
+
354
+ //
355
+ // 1. Remove default vertical scrollbar in IE 8/9.
356
+ // 2. Improve readability and alignment in all browsers.
357
+ //
358
+
359
+ textarea
360
+ overflow: auto
361
+ // 1
362
+ vertical-align: top
363
+ // 2
364
+
365
+ // ==========================================================================
366
+ // Tables
367
+ // ==========================================================================
368
+
369
+ //
370
+ // Remove most spacing between table cells.
371
+ //
372
+
373
+ table
374
+ border-collapse: collapse
375
+ border-spacing: 0