aerogel-bootstrap 0.0.2 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/aerogel-bootstrap.gemspec +3 -3
  3. data/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  4. data/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +229 -0
  5. data/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  6. data/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  7. data/assets/javascripts/bootstrap.js +12 -0
  8. data/assets/javascripts/bootstrap/affix.js +135 -0
  9. data/assets/javascripts/bootstrap/alert.js +88 -0
  10. data/assets/javascripts/bootstrap/button.js +107 -0
  11. data/assets/javascripts/bootstrap/carousel.js +205 -0
  12. data/assets/javascripts/bootstrap/collapse.js +175 -0
  13. data/assets/javascripts/bootstrap/dropdown.js +147 -0
  14. data/assets/javascripts/bootstrap/modal.js +271 -0
  15. data/assets/javascripts/bootstrap/popover.js +110 -0
  16. data/assets/javascripts/bootstrap/scrollspy.js +154 -0
  17. data/assets/javascripts/bootstrap/tab.js +125 -0
  18. data/assets/javascripts/bootstrap/tooltip.js +422 -0
  19. data/assets/javascripts/bootstrap/transition.js +48 -0
  20. data/assets/stylesheets/_bootstrap-mincer.scss +17 -0
  21. data/assets/stylesheets/bootstrap.scss +50 -0
  22. data/assets/stylesheets/bootstrap/_alerts.scss +67 -0
  23. data/assets/stylesheets/bootstrap/_badges.scss +57 -0
  24. data/assets/stylesheets/bootstrap/_breadcrumbs.scss +26 -0
  25. data/assets/stylesheets/bootstrap/_button-groups.scss +236 -0
  26. data/assets/stylesheets/bootstrap/_buttons.scss +159 -0
  27. data/assets/stylesheets/bootstrap/_carousel.scss +241 -0
  28. data/assets/stylesheets/bootstrap/_close.scss +35 -0
  29. data/assets/stylesheets/bootstrap/_code.scss +62 -0
  30. data/assets/stylesheets/bootstrap/_component-animations.scss +35 -0
  31. data/assets/stylesheets/bootstrap/_dropdowns.scss +214 -0
  32. data/assets/stylesheets/bootstrap/_forms.scss +478 -0
  33. data/assets/stylesheets/bootstrap/_glyphicons.scss +237 -0
  34. data/assets/stylesheets/bootstrap/_grid.scss +84 -0
  35. data/assets/stylesheets/bootstrap/_input-groups.scss +162 -0
  36. data/assets/stylesheets/bootstrap/_jumbotron.scss +48 -0
  37. data/assets/stylesheets/bootstrap/_labels.scss +66 -0
  38. data/assets/stylesheets/bootstrap/_list-group.scss +129 -0
  39. data/assets/stylesheets/bootstrap/_media.scss +56 -0
  40. data/assets/stylesheets/bootstrap/_mixins.scss +39 -0
  41. data/assets/stylesheets/bootstrap/_modals.scss +147 -0
  42. data/assets/stylesheets/bootstrap/_navbar.scss +658 -0
  43. data/assets/stylesheets/bootstrap/_navs.scss +242 -0
  44. data/assets/stylesheets/bootstrap/_normalize.scss +425 -0
  45. data/assets/stylesheets/bootstrap/_pager.scss +55 -0
  46. data/assets/stylesheets/bootstrap/_pagination.scss +88 -0
  47. data/assets/stylesheets/bootstrap/_panels.scss +240 -0
  48. data/assets/stylesheets/bootstrap/_popovers.scss +133 -0
  49. data/assets/stylesheets/bootstrap/_print.scss +101 -0
  50. data/assets/stylesheets/bootstrap/_progress-bars.scss +89 -0
  51. data/assets/stylesheets/bootstrap/_responsive-embed.scss +34 -0
  52. data/assets/stylesheets/bootstrap/_responsive-utilities.scss +173 -0
  53. data/assets/stylesheets/bootstrap/_scaffolding.scss +150 -0
  54. data/assets/stylesheets/bootstrap/_tables.scss +233 -0
  55. data/assets/stylesheets/bootstrap/_theme.scss +247 -0
  56. data/assets/stylesheets/bootstrap/_thumbnails.scss +38 -0
  57. data/assets/stylesheets/bootstrap/_tooltip.scss +95 -0
  58. data/assets/stylesheets/bootstrap/_type.scss +294 -0
  59. data/assets/stylesheets/bootstrap/_utilities.scss +56 -0
  60. data/assets/stylesheets/bootstrap/_variables.scss +849 -0
  61. data/assets/stylesheets/bootstrap/_wells.scss +29 -0
  62. data/assets/stylesheets/bootstrap/bootstrap.scss +50 -0
  63. data/assets/stylesheets/bootstrap/mixins/_alerts.scss +14 -0
  64. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +11 -0
  65. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
  66. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +50 -0
  67. data/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
  68. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
  69. data/assets/stylesheets/bootstrap/mixins/_forms.scss +84 -0
  70. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +58 -0
  71. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +87 -0
  72. data/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
  73. data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
  74. data/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
  75. data/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
  76. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +31 -0
  77. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
  78. data/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
  79. data/assets/stylesheets/bootstrap/mixins/_opacity.scss +8 -0
  80. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +23 -0
  81. data/assets/stylesheets/bootstrap/mixins/_panels.scss +20 -0
  82. data/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +8 -0
  83. data/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
  84. data/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
  85. data/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +21 -0
  86. data/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
  87. data/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
  88. data/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
  89. data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +11 -0
  90. data/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
  91. data/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +224 -0
  92. data/lib/aerogel/bootstrap.rb +5 -7
  93. data/lib/aerogel/bootstrap/version.rb +5 -0
  94. metadata +104 -29
  95. data/public/README.md +0 -1
@@ -0,0 +1,38 @@
1
+ //
2
+ // Thumbnails
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Mixin and adjust the regular image class
7
+ .thumbnail {
8
+ display: block;
9
+ padding: $thumbnail-padding;
10
+ margin-bottom: $line-height-computed;
11
+ line-height: $line-height-base;
12
+ background-color: $thumbnail-bg;
13
+ border: 1px solid $thumbnail-border;
14
+ border-radius: $thumbnail-border-radius;
15
+ @include transition(all .2s ease-in-out);
16
+
17
+ > img,
18
+ a > img {
19
+ @include img-responsive();
20
+ margin-left: auto;
21
+ margin-right: auto;
22
+ }
23
+
24
+ // [converter] extracted a&:hover, a&:focus, a&.active to a.thumbnail:hover, a.thumbnail:focus, a.thumbnail.active
25
+
26
+ // Image captions
27
+ .caption {
28
+ padding: $thumbnail-caption-padding;
29
+ color: $thumbnail-caption-color;
30
+ }
31
+ }
32
+
33
+ // Add a hover state for linked versions only
34
+ a.thumbnail:hover,
35
+ a.thumbnail:focus,
36
+ a.thumbnail.active {
37
+ border-color: $link-color;
38
+ }
@@ -0,0 +1,95 @@
1
+ //
2
+ // Tooltips
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ .tooltip {
8
+ position: absolute;
9
+ z-index: $zindex-tooltip;
10
+ display: block;
11
+ visibility: visible;
12
+ font-size: $font-size-small;
13
+ line-height: 1.4;
14
+ @include opacity(0);
15
+
16
+ &.in { @include opacity($tooltip-opacity); }
17
+ &.top { margin-top: -3px; padding: $tooltip-arrow-width 0; }
18
+ &.right { margin-left: 3px; padding: 0 $tooltip-arrow-width; }
19
+ &.bottom { margin-top: 3px; padding: $tooltip-arrow-width 0; }
20
+ &.left { margin-left: -3px; padding: 0 $tooltip-arrow-width; }
21
+ }
22
+
23
+ // Wrapper for the tooltip content
24
+ .tooltip-inner {
25
+ max-width: $tooltip-max-width;
26
+ padding: 3px 8px;
27
+ color: $tooltip-color;
28
+ text-align: center;
29
+ text-decoration: none;
30
+ background-color: $tooltip-bg;
31
+ border-radius: $border-radius-base;
32
+ }
33
+
34
+ // Arrows
35
+ .tooltip-arrow {
36
+ position: absolute;
37
+ width: 0;
38
+ height: 0;
39
+ border-color: transparent;
40
+ border-style: solid;
41
+ }
42
+ .tooltip {
43
+ &.top .tooltip-arrow {
44
+ bottom: 0;
45
+ left: 50%;
46
+ margin-left: -$tooltip-arrow-width;
47
+ border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
48
+ border-top-color: $tooltip-arrow-color;
49
+ }
50
+ &.top-left .tooltip-arrow {
51
+ bottom: 0;
52
+ left: $tooltip-arrow-width;
53
+ border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
54
+ border-top-color: $tooltip-arrow-color;
55
+ }
56
+ &.top-right .tooltip-arrow {
57
+ bottom: 0;
58
+ right: $tooltip-arrow-width;
59
+ border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
60
+ border-top-color: $tooltip-arrow-color;
61
+ }
62
+ &.right .tooltip-arrow {
63
+ top: 50%;
64
+ left: 0;
65
+ margin-top: -$tooltip-arrow-width;
66
+ border-width: $tooltip-arrow-width $tooltip-arrow-width $tooltip-arrow-width 0;
67
+ border-right-color: $tooltip-arrow-color;
68
+ }
69
+ &.left .tooltip-arrow {
70
+ top: 50%;
71
+ right: 0;
72
+ margin-top: -$tooltip-arrow-width;
73
+ border-width: $tooltip-arrow-width 0 $tooltip-arrow-width $tooltip-arrow-width;
74
+ border-left-color: $tooltip-arrow-color;
75
+ }
76
+ &.bottom .tooltip-arrow {
77
+ top: 0;
78
+ left: 50%;
79
+ margin-left: -$tooltip-arrow-width;
80
+ border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
81
+ border-bottom-color: $tooltip-arrow-color;
82
+ }
83
+ &.bottom-left .tooltip-arrow {
84
+ top: 0;
85
+ left: $tooltip-arrow-width;
86
+ border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
87
+ border-bottom-color: $tooltip-arrow-color;
88
+ }
89
+ &.bottom-right .tooltip-arrow {
90
+ top: 0;
91
+ right: $tooltip-arrow-width;
92
+ border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
93
+ border-bottom-color: $tooltip-arrow-color;
94
+ }
95
+ }
@@ -0,0 +1,294 @@
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Headings
7
+ // -------------------------
8
+
9
+ h1, h2, h3, h4, h5, h6,
10
+ .h1, .h2, .h3, .h4, .h5, .h6 {
11
+ font-family: $headings-font-family;
12
+ font-weight: $headings-font-weight;
13
+ line-height: $headings-line-height;
14
+ color: $headings-color;
15
+
16
+ small,
17
+ .small {
18
+ font-weight: normal;
19
+ line-height: 1;
20
+ color: $headings-small-color;
21
+ }
22
+ }
23
+
24
+ h1, .h1,
25
+ h2, .h2,
26
+ h3, .h3 {
27
+ margin-top: $line-height-computed;
28
+ margin-bottom: ($line-height-computed / 2);
29
+
30
+ small,
31
+ .small {
32
+ font-size: 65%;
33
+ }
34
+ }
35
+ h4, .h4,
36
+ h5, .h5,
37
+ h6, .h6 {
38
+ margin-top: ($line-height-computed / 2);
39
+ margin-bottom: ($line-height-computed / 2);
40
+
41
+ small,
42
+ .small {
43
+ font-size: 75%;
44
+ }
45
+ }
46
+
47
+ h1, .h1 { font-size: $font-size-h1; }
48
+ h2, .h2 { font-size: $font-size-h2; }
49
+ h3, .h3 { font-size: $font-size-h3; }
50
+ h4, .h4 { font-size: $font-size-h4; }
51
+ h5, .h5 { font-size: $font-size-h5; }
52
+ h6, .h6 { font-size: $font-size-h6; }
53
+
54
+
55
+ // Body text
56
+ // -------------------------
57
+
58
+ p {
59
+ margin: 0 0 ($line-height-computed / 2);
60
+ }
61
+
62
+ .lead {
63
+ margin-bottom: $line-height-computed;
64
+ font-size: floor(($font-size-base * 1.15));
65
+ font-weight: 200;
66
+ line-height: 1.4;
67
+
68
+ @media (min-width: $screen-sm-min) {
69
+ font-size: ($font-size-base * 1.5);
70
+ }
71
+ }
72
+
73
+
74
+ // Emphasis & misc
75
+ // -------------------------
76
+
77
+ // Ex: 14px base font * 85% = about 12px
78
+ small,
79
+ .small { font-size: 85%; }
80
+
81
+ // Undo browser default styling
82
+ cite { font-style: normal; }
83
+
84
+ mark,
85
+ .mark {
86
+ background-color: $state-warning-bg;
87
+ padding: .2em;
88
+ }
89
+
90
+ // Alignment
91
+ .text-left { text-align: left; }
92
+ .text-right { text-align: right; }
93
+ .text-center { text-align: center; }
94
+ .text-justify { text-align: justify; }
95
+
96
+ // Contextual colors
97
+ .text-muted {
98
+ color: $text-muted;
99
+ }
100
+
101
+ @include text-emphasis-variant('.text-primary', $brand-primary);
102
+
103
+ @include text-emphasis-variant('.text-success', $state-success-text);
104
+
105
+ @include text-emphasis-variant('.text-info', $state-info-text);
106
+
107
+ @include text-emphasis-variant('.text-warning', $state-warning-text);
108
+
109
+ @include text-emphasis-variant('.text-danger', $state-danger-text);
110
+
111
+ // Contextual backgrounds
112
+ // For now we'll leave these alongside the text classes until v4 when we can
113
+ // safely shift things around (per SemVer rules).
114
+ .bg-primary {
115
+ // Given the contrast here, this is the only class to have its color inverted
116
+ // automatically.
117
+ color: #fff;
118
+ }
119
+ @include bg-variant('.bg-primary', $brand-primary);
120
+
121
+ @include bg-variant('.bg-success', $state-success-bg);
122
+
123
+ @include bg-variant('.bg-info', $state-info-bg);
124
+
125
+ @include bg-variant('.bg-warning', $state-warning-bg);
126
+
127
+ @include bg-variant('.bg-danger', $state-danger-bg);
128
+
129
+
130
+ // Page header
131
+ // -------------------------
132
+
133
+ .page-header {
134
+ padding-bottom: (($line-height-computed / 2) - 1);
135
+ margin: ($line-height-computed * 2) 0 $line-height-computed;
136
+ border-bottom: 1px solid $page-header-border-color;
137
+ }
138
+
139
+
140
+ // Lists
141
+ // -------------------------
142
+
143
+ // Unordered and Ordered lists
144
+ ul,
145
+ ol {
146
+ margin-top: 0;
147
+ margin-bottom: ($line-height-computed / 2);
148
+ ul,
149
+ ol {
150
+ margin-bottom: 0;
151
+ }
152
+ }
153
+
154
+ // List options
155
+
156
+ // Unstyled keeps list items block level, just removes default browser padding and list-style
157
+ .list-unstyled {
158
+ padding-left: 0;
159
+ list-style: none;
160
+ }
161
+
162
+ // Inline turns list items into inline-block
163
+ .list-inline {
164
+ @extend .list-unstyled;
165
+ margin-left: -5px;
166
+
167
+ > li {
168
+ display: inline-block;
169
+ padding-left: 5px;
170
+ padding-right: 5px;
171
+ }
172
+ }
173
+
174
+ // Description Lists
175
+ dl {
176
+ margin-top: 0; // Remove browser default
177
+ margin-bottom: $line-height-computed;
178
+ }
179
+ dt,
180
+ dd {
181
+ line-height: $line-height-base;
182
+ }
183
+ dt {
184
+ font-weight: bold;
185
+ }
186
+ dd {
187
+ margin-left: 0; // Undo browser default
188
+ }
189
+
190
+ // Horizontal description lists
191
+ //
192
+ // Defaults to being stacked without any of the below styles applied, until the
193
+ // grid breakpoint is reached (default of ~768px).
194
+
195
+ .dl-horizontal {
196
+ dd {
197
+ @include clearfix(); // Clear the floated `dt` if an empty `dd` is present
198
+ }
199
+
200
+ @media (min-width: $grid-float-breakpoint) {
201
+ dt {
202
+ float: left;
203
+ width: ($component-offset-horizontal - 20);
204
+ clear: left;
205
+ text-align: right;
206
+ @include text-overflow();
207
+ }
208
+ dd {
209
+ margin-left: $component-offset-horizontal;
210
+ }
211
+ }
212
+ }
213
+
214
+
215
+ // Misc
216
+ // -------------------------
217
+
218
+ // Abbreviations and acronyms
219
+ abbr[title],
220
+ // Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
221
+ abbr[data-original-title] {
222
+ cursor: help;
223
+ border-bottom: 1px dotted $abbr-border-color;
224
+ }
225
+ .initialism {
226
+ font-size: 90%;
227
+ text-transform: uppercase;
228
+ }
229
+
230
+ // Blockquotes
231
+ blockquote {
232
+ padding: ($line-height-computed / 2) $line-height-computed;
233
+ margin: 0 0 $line-height-computed;
234
+ font-size: $blockquote-font-size;
235
+ border-left: 5px solid $blockquote-border-color;
236
+
237
+ p,
238
+ ul,
239
+ ol {
240
+ &:last-child {
241
+ margin-bottom: 0;
242
+ }
243
+ }
244
+
245
+ // Note: Deprecated small and .small as of v3.1.0
246
+ // Context: https://github.com/twbs/bootstrap/issues/11660
247
+ footer,
248
+ small,
249
+ .small {
250
+ display: block;
251
+ font-size: 80%; // back to default font-size
252
+ line-height: $line-height-base;
253
+ color: $blockquote-small-color;
254
+
255
+ &:before {
256
+ content: '\2014 \00A0'; // em dash, nbsp
257
+ }
258
+ }
259
+ }
260
+
261
+ // Opposite alignment of blockquote
262
+ //
263
+ // Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
264
+ .blockquote-reverse,
265
+ blockquote.pull-right {
266
+ padding-right: 15px;
267
+ padding-left: 0;
268
+ border-right: 5px solid $blockquote-border-color;
269
+ border-left: 0;
270
+ text-align: right;
271
+
272
+ // Account for citation
273
+ footer,
274
+ small,
275
+ .small {
276
+ &:before { content: ''; }
277
+ &:after {
278
+ content: '\00A0 \2014'; // nbsp, em dash
279
+ }
280
+ }
281
+ }
282
+
283
+ // Quotes
284
+ blockquote:before,
285
+ blockquote:after {
286
+ content: "";
287
+ }
288
+
289
+ // Addresses
290
+ address {
291
+ margin-bottom: $line-height-computed;
292
+ font-style: normal;
293
+ line-height: $line-height-base;
294
+ }
@@ -0,0 +1,56 @@
1
+ //
2
+ // Utility classes
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Floats
7
+ // -------------------------
8
+
9
+ .clearfix {
10
+ @include clearfix();
11
+ }
12
+ .center-block {
13
+ @include center-block();
14
+ }
15
+ .pull-right {
16
+ float: right !important;
17
+ }
18
+ .pull-left {
19
+ float: left !important;
20
+ }
21
+
22
+
23
+ // Toggling content
24
+ // -------------------------
25
+
26
+ // Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
27
+ .hide {
28
+ display: none !important;
29
+ }
30
+ .show {
31
+ display: block !important;
32
+ }
33
+ .invisible {
34
+ visibility: hidden;
35
+ }
36
+ .text-hide {
37
+ @include text-hide();
38
+ }
39
+
40
+
41
+ // Hide from screenreaders and browsers
42
+ //
43
+ // Credit: HTML5 Boilerplate
44
+
45
+ .hidden {
46
+ display: none !important;
47
+ visibility: hidden !important;
48
+ }
49
+
50
+
51
+ // For Affix plugin
52
+ // -------------------------
53
+
54
+ .affix {
55
+ position: fixed;
56
+ }