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,159 @@
1
+ //
2
+ // Buttons
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base styles
7
+ // --------------------------------------------------
8
+
9
+ .btn {
10
+ display: inline-block;
11
+ margin-bottom: 0; // For input.btn
12
+ font-weight: $btn-font-weight;
13
+ text-align: center;
14
+ vertical-align: middle;
15
+ cursor: pointer;
16
+ background-image: none; // Reset unusual Firefox-on-Android default style; see https://github.com/necolas/normalize.css/issues/214
17
+ border: 1px solid transparent;
18
+ white-space: nowrap;
19
+ @include button-size($padding-base-vertical, $padding-base-horizontal, $font-size-base, $line-height-base, $border-radius-base);
20
+ @include user-select(none);
21
+
22
+ &,
23
+ &:active,
24
+ &.active {
25
+ &:focus {
26
+ @include tab-focus();
27
+ }
28
+ }
29
+
30
+ &:hover,
31
+ &:focus {
32
+ color: $btn-default-color;
33
+ text-decoration: none;
34
+ }
35
+
36
+ &:active,
37
+ &.active {
38
+ outline: 0;
39
+ background-image: none;
40
+ @include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
41
+ }
42
+
43
+ &.disabled,
44
+ &[disabled],
45
+ fieldset[disabled] & {
46
+ cursor: not-allowed;
47
+ pointer-events: none; // Future-proof disabling of clicks
48
+ @include opacity(.65);
49
+ @include box-shadow(none);
50
+ }
51
+ }
52
+
53
+
54
+ // Alternate buttons
55
+ // --------------------------------------------------
56
+
57
+ .btn-default {
58
+ @include button-variant($btn-default-color, $btn-default-bg, $btn-default-border);
59
+ }
60
+ .btn-primary {
61
+ @include button-variant($btn-primary-color, $btn-primary-bg, $btn-primary-border);
62
+ }
63
+ // Success appears as green
64
+ .btn-success {
65
+ @include button-variant($btn-success-color, $btn-success-bg, $btn-success-border);
66
+ }
67
+ // Info appears as blue-green
68
+ .btn-info {
69
+ @include button-variant($btn-info-color, $btn-info-bg, $btn-info-border);
70
+ }
71
+ // Warning appears as orange
72
+ .btn-warning {
73
+ @include button-variant($btn-warning-color, $btn-warning-bg, $btn-warning-border);
74
+ }
75
+ // Danger and error appear as red
76
+ .btn-danger {
77
+ @include button-variant($btn-danger-color, $btn-danger-bg, $btn-danger-border);
78
+ }
79
+
80
+
81
+ // Link buttons
82
+ // -------------------------
83
+
84
+ // Make a button look and behave like a link
85
+ .btn-link {
86
+ color: $link-color;
87
+ font-weight: normal;
88
+ cursor: pointer;
89
+ border-radius: 0;
90
+
91
+ &,
92
+ &:active,
93
+ &[disabled],
94
+ fieldset[disabled] & {
95
+ background-color: transparent;
96
+ @include box-shadow(none);
97
+ }
98
+ &,
99
+ &:hover,
100
+ &:focus,
101
+ &:active {
102
+ border-color: transparent;
103
+ }
104
+ &:hover,
105
+ &:focus {
106
+ color: $link-hover-color;
107
+ text-decoration: underline;
108
+ background-color: transparent;
109
+ }
110
+ &[disabled],
111
+ fieldset[disabled] & {
112
+ &:hover,
113
+ &:focus {
114
+ color: $btn-link-disabled-color;
115
+ text-decoration: none;
116
+ }
117
+ }
118
+ }
119
+
120
+
121
+ // Button Sizes
122
+ // --------------------------------------------------
123
+
124
+ .btn-lg {
125
+ // line-height: ensure even-numbered height of button next to large input
126
+ @include button-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
127
+ }
128
+ .btn-sm {
129
+ // line-height: ensure proper height of button next to small input
130
+ @include button-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
131
+ }
132
+ .btn-xs {
133
+ @include button-size($padding-xs-vertical, $padding-xs-horizontal, $font-size-small, $line-height-small, $border-radius-small);
134
+ }
135
+
136
+
137
+ // Block button
138
+ // --------------------------------------------------
139
+
140
+ .btn-block {
141
+ display: block;
142
+ width: 100%;
143
+ padding-left: 0;
144
+ padding-right: 0;
145
+ }
146
+
147
+ // Vertically space out multiple block buttons
148
+ .btn-block + .btn-block {
149
+ margin-top: 5px;
150
+ }
151
+
152
+ // Specificity overrides
153
+ input[type="submit"],
154
+ input[type="reset"],
155
+ input[type="button"] {
156
+ &.btn-block {
157
+ width: 100%;
158
+ }
159
+ }
@@ -0,0 +1,241 @@
1
+ //
2
+ // Carousel
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Wrapper for the slide container and indicators
7
+ .carousel {
8
+ position: relative;
9
+ }
10
+
11
+ .carousel-inner {
12
+ position: relative;
13
+ overflow: hidden;
14
+ width: 100%;
15
+
16
+ > .item {
17
+ display: none;
18
+ position: relative;
19
+ @include transition(.6s ease-in-out left);
20
+
21
+ // Account for jankitude on images
22
+ > img,
23
+ > a > img {
24
+ @include img-responsive();
25
+ line-height: 1;
26
+ }
27
+ }
28
+
29
+ > .active,
30
+ > .next,
31
+ > .prev { display: block; }
32
+
33
+ > .active {
34
+ left: 0;
35
+ }
36
+
37
+ > .next,
38
+ > .prev {
39
+ position: absolute;
40
+ top: 0;
41
+ width: 100%;
42
+ }
43
+
44
+ > .next {
45
+ left: 100%;
46
+ }
47
+ > .prev {
48
+ left: -100%;
49
+ }
50
+ > .next.left,
51
+ > .prev.right {
52
+ left: 0;
53
+ }
54
+
55
+ > .active.left {
56
+ left: -100%;
57
+ }
58
+ > .active.right {
59
+ left: 100%;
60
+ }
61
+
62
+ }
63
+
64
+ // Left/right controls for nav
65
+ // ---------------------------
66
+
67
+ .carousel-control {
68
+ position: absolute;
69
+ top: 0;
70
+ left: 0;
71
+ bottom: 0;
72
+ width: $carousel-control-width;
73
+ @include opacity($carousel-control-opacity);
74
+ font-size: $carousel-control-font-size;
75
+ color: $carousel-control-color;
76
+ text-align: center;
77
+ text-shadow: $carousel-text-shadow;
78
+ // We can't have this transition here because WebKit cancels the carousel
79
+ // animation if you trip this while in the middle of another animation.
80
+
81
+ // Set gradients for backgrounds
82
+ &.left {
83
+ @include gradient-horizontal($start-color: rgba(0,0,0,.5), $end-color: rgba(0,0,0,.0001));
84
+ }
85
+ &.right {
86
+ left: auto;
87
+ right: 0;
88
+ @include gradient-horizontal($start-color: rgba(0,0,0,.0001), $end-color: rgba(0,0,0,.5));
89
+ }
90
+
91
+ // Hover/focus state
92
+ &:hover,
93
+ &:focus {
94
+ outline: 0;
95
+ color: $carousel-control-color;
96
+ text-decoration: none;
97
+ @include opacity(.9);
98
+ }
99
+
100
+ // Toggles
101
+ .icon-prev,
102
+ .icon-next,
103
+ .glyphicon-chevron-left,
104
+ .glyphicon-chevron-right {
105
+ position: absolute;
106
+ top: 50%;
107
+ z-index: 5;
108
+ display: inline-block;
109
+ }
110
+ .icon-prev,
111
+ .glyphicon-chevron-left {
112
+ left: 50%;
113
+ margin-left: -10px;
114
+ }
115
+ .icon-next,
116
+ .glyphicon-chevron-right {
117
+ right: 50%;
118
+ margin-right: -10px;
119
+ }
120
+ .icon-prev,
121
+ .icon-next {
122
+ width: 20px;
123
+ height: 20px;
124
+ margin-top: -10px;
125
+ font-family: serif;
126
+ }
127
+
128
+
129
+ .icon-prev {
130
+ &:before {
131
+ content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
132
+ }
133
+ }
134
+ .icon-next {
135
+ &:before {
136
+ content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
137
+ }
138
+ }
139
+ }
140
+
141
+ // Optional indicator pips
142
+ //
143
+ // Add an unordered list with the following class and add a list item for each
144
+ // slide your carousel holds.
145
+
146
+ .carousel-indicators {
147
+ position: absolute;
148
+ bottom: 10px;
149
+ left: 50%;
150
+ z-index: 15;
151
+ width: 60%;
152
+ margin-left: -30%;
153
+ padding-left: 0;
154
+ list-style: none;
155
+ text-align: center;
156
+
157
+ li {
158
+ display: inline-block;
159
+ width: 10px;
160
+ height: 10px;
161
+ margin: 1px;
162
+ text-indent: -999px;
163
+ border: 1px solid $carousel-indicator-border-color;
164
+ border-radius: 10px;
165
+ cursor: pointer;
166
+
167
+ // IE8-9 hack for event handling
168
+ //
169
+ // Internet Explorer 8-9 does not support clicks on elements without a set
170
+ // `background-color`. We cannot use `filter` since that's not viewed as a
171
+ // background color by the browser. Thus, a hack is needed.
172
+ //
173
+ // For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
174
+ // set alpha transparency for the best results possible.
175
+ background-color: #000 \9; // IE8
176
+ background-color: rgba(0,0,0,0); // IE9
177
+ }
178
+ .active {
179
+ margin: 0;
180
+ width: 12px;
181
+ height: 12px;
182
+ background-color: $carousel-indicator-active-bg;
183
+ }
184
+ }
185
+
186
+ // Optional captions
187
+ // -----------------------------
188
+ // Hidden by default for smaller viewports
189
+ .carousel-caption {
190
+ position: absolute;
191
+ left: 15%;
192
+ right: 15%;
193
+ bottom: 20px;
194
+ z-index: 10;
195
+ padding-top: 20px;
196
+ padding-bottom: 20px;
197
+ color: $carousel-caption-color;
198
+ text-align: center;
199
+ text-shadow: $carousel-text-shadow;
200
+ & .btn {
201
+ text-shadow: none; // No shadow for button elements in carousel-caption
202
+ }
203
+ }
204
+
205
+
206
+ // Scale up controls for tablets and up
207
+ @media screen and (min-width: $screen-sm-min) {
208
+
209
+ // Scale up the controls a smidge
210
+ .carousel-control {
211
+ .glyphicon-chevron-left,
212
+ .glyphicon-chevron-right,
213
+ .icon-prev,
214
+ .icon-next {
215
+ width: 30px;
216
+ height: 30px;
217
+ margin-top: -15px;
218
+ font-size: 30px;
219
+ }
220
+ .glyphicon-chevron-left,
221
+ .icon-prev {
222
+ margin-left: -15px;
223
+ }
224
+ .glyphicon-chevron-right,
225
+ .icon-next {
226
+ margin-right: -15px;
227
+ }
228
+ }
229
+
230
+ // Show and left align the captions
231
+ .carousel-caption {
232
+ left: 20%;
233
+ right: 20%;
234
+ padding-bottom: 30px;
235
+ }
236
+
237
+ // Move up the indicators
238
+ .carousel-indicators {
239
+ bottom: 20px;
240
+ }
241
+ }
@@ -0,0 +1,35 @@
1
+ //
2
+ // Close icons
3
+ // --------------------------------------------------
4
+
5
+
6
+ .close {
7
+ float: right;
8
+ font-size: ($font-size-base * 1.5);
9
+ font-weight: $close-font-weight;
10
+ line-height: 1;
11
+ color: $close-color;
12
+ text-shadow: $close-text-shadow;
13
+ @include opacity(.2);
14
+
15
+ &:hover,
16
+ &:focus {
17
+ color: $close-color;
18
+ text-decoration: none;
19
+ cursor: pointer;
20
+ @include opacity(.5);
21
+ }
22
+
23
+ // [converter] extracted button& to button.close
24
+ }
25
+
26
+ // Additional properties for button version
27
+ // iOS requires the button element instead of an anchor tag.
28
+ // If you want the anchor version, it requires `href="#"`.
29
+ button.close {
30
+ padding: 0;
31
+ cursor: pointer;
32
+ background: transparent;
33
+ border: 0;
34
+ -webkit-appearance: none;
35
+ }
@@ -0,0 +1,62 @@
1
+ //
2
+ // Code (inline and block)
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Inline and block code styles
7
+ code,
8
+ kbd,
9
+ pre,
10
+ samp {
11
+ font-family: $font-family-monospace;
12
+ }
13
+
14
+ // Inline code
15
+ code {
16
+ padding: 2px 4px;
17
+ font-size: 90%;
18
+ color: $code-color;
19
+ background-color: $code-bg;
20
+ border-radius: $border-radius-base;
21
+ }
22
+
23
+ // User input typically entered via keyboard
24
+ kbd {
25
+ padding: 2px 4px;
26
+ font-size: 90%;
27
+ color: $kbd-color;
28
+ background-color: $kbd-bg;
29
+ border-radius: $border-radius-small;
30
+ box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
31
+ }
32
+
33
+ // Blocks of code
34
+ pre {
35
+ display: block;
36
+ padding: (($line-height-computed - 1) / 2);
37
+ margin: 0 0 ($line-height-computed / 2);
38
+ font-size: ($font-size-base - 1); // 14px to 13px
39
+ line-height: $line-height-base;
40
+ word-break: break-all;
41
+ word-wrap: break-word;
42
+ color: $pre-color;
43
+ background-color: $pre-bg;
44
+ border: 1px solid $pre-border-color;
45
+ border-radius: $border-radius-base;
46
+
47
+ // Account for some code outputs that place code tags in pre tags
48
+ code {
49
+ padding: 0;
50
+ font-size: inherit;
51
+ color: inherit;
52
+ white-space: pre-wrap;
53
+ background-color: transparent;
54
+ border-radius: 0;
55
+ }
56
+ }
57
+
58
+ // Enable scrollable blocks of code
59
+ .pre-scrollable {
60
+ max-height: $pre-scrollable-max-height;
61
+ overflow-y: scroll;
62
+ }