google-buttons-sass 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +14 -0
- data/README.md +91 -0
- data/lib/google-buttons-sass/compass_functions.rb +10 -0
- data/lib/google-buttons-sass/engine.rb +7 -0
- data/lib/google-buttons-sass/rails_functions.rb +14 -0
- data/lib/google-buttons-sass.rb +43 -0
- data/templates/project/manifest.rb +17 -0
- data/templates/project/styles.scss +3 -0
- data/vendor/assets/images/checkmark.png +0 -0
- data/vendor/assets/images/grey-disclosure-arrow-up-down.png +0 -0
- data/vendor/assets/javascripts/bootstrap-popover.js +98 -0
- data/vendor/assets/javascripts/google-buttons.js +3 -0
- data/vendor/assets/javascripts/google-select-dropdown.js +89 -0
- data/vendor/assets/javascripts/google-select.js +84 -0
- data/vendor/assets/stylesheets/alerts.scss +21 -0
- data/vendor/assets/stylesheets/bootstrap-mixins.scss +625 -0
- data/vendor/assets/stylesheets/breadcrumbs.scss +8 -0
- data/vendor/assets/stylesheets/button-groups.scss +124 -0
- data/vendor/assets/stylesheets/buttons.scss +396 -0
- data/vendor/assets/stylesheets/dropdowns.scss +95 -0
- data/vendor/assets/stylesheets/forms.scss +229 -0
- data/vendor/assets/stylesheets/google-buttons.scss +42 -0
- data/vendor/assets/stylesheets/mixins.scss +44 -0
- data/vendor/assets/stylesheets/navs.scss +76 -0
- data/vendor/assets/stylesheets/pager.scss +40 -0
- data/vendor/assets/stylesheets/pagination.scss +68 -0
- data/vendor/assets/stylesheets/popovers.scss +36 -0
- data/vendor/assets/stylesheets/progress-bars.scss +7 -0
- data/vendor/assets/stylesheets/scrollbars.scss +43 -0
- data/vendor/assets/stylesheets/sprites.scss +12 -0
- data/vendor/assets/stylesheets/tooltip.scss +10 -0
- data/vendor/assets/stylesheets/variables.scss +199 -0
- data/vendor/assets/stylesheets/wells.scss +17 -0
- metadata +127 -0
@@ -0,0 +1,124 @@
|
|
1
|
+
// BUTTON GROUPS
|
2
|
+
// -------------
|
3
|
+
|
4
|
+
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
5
|
+
.btn-group > .btn:first-child {
|
6
|
+
margin-left: 0;
|
7
|
+
@include border-radius(2px 0px 0px 2px);
|
8
|
+
}
|
9
|
+
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
10
|
+
.btn-group > .g-select,
|
11
|
+
.btn-group > .btn:last-child,
|
12
|
+
.btn-group > .dropdown-toggle {
|
13
|
+
@include border-radius(0px 2px 2px 0px);
|
14
|
+
}
|
15
|
+
// Reset corners for large buttons
|
16
|
+
.btn-group > .btn.large:first-child {
|
17
|
+
margin-left: 0;
|
18
|
+
@include border-radius(2px 0px 0px 2px);
|
19
|
+
}
|
20
|
+
.btn-group > .btn.large:last-child,
|
21
|
+
.btn-group > .large.dropdown-toggle {
|
22
|
+
@include border-radius(0px 2px 2px 0px);
|
23
|
+
}
|
24
|
+
|
25
|
+
// Split button dropdowns
|
26
|
+
// ----------------------
|
27
|
+
|
28
|
+
// Give the line between buttons some depth
|
29
|
+
.btn-group > .dropdown-toggle {
|
30
|
+
@include box-shadow(none);
|
31
|
+
}
|
32
|
+
.btn-group > .dropdown-toggle:hover {
|
33
|
+
@include box-shadow(0 1px 1px rgba(0,0,0,0.1));
|
34
|
+
}
|
35
|
+
.btn-group > .btn-primary.dropdown-toggle:hover,
|
36
|
+
.btn-group > .btn-info.dropdown-toggle:hover,
|
37
|
+
.btn-group > .btn-warning.dropdown-toggle:hover,
|
38
|
+
.btn-group > .btn-danger.dropdown-toggle:hover,
|
39
|
+
.btn-group > .btn-success.dropdown-toggle:hover,
|
40
|
+
.btn-group > .btn-inverse.dropdown-toggle:hover {
|
41
|
+
@include box-shadow(0 1px 1px rgba(0,0,0,0.2));
|
42
|
+
}
|
43
|
+
.btn-group > .btn.dropdown-toggle:active,
|
44
|
+
.btn-group > .btn.dropdown-toggle.active {
|
45
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.1));
|
46
|
+
}
|
47
|
+
.btn-group > .btn-primary.dropdown-toggle:active,
|
48
|
+
.btn-group > .btn-primary.dropdown-toggle.active,
|
49
|
+
.btn-group > .btn-warning.dropdown-toggle:active,
|
50
|
+
.btn-group > .btn-warning.dropdown-toggle.active,
|
51
|
+
.btn-group > .btn-danger.dropdown-toggle:active,
|
52
|
+
.btn-group > .btn-danger.dropdown-toggle.active,
|
53
|
+
.btn-group > .btn-success.dropdown-toggle:active,
|
54
|
+
.btn-group > .btn-success.dropdown-toggle.active,
|
55
|
+
.btn-group > .btn-info.dropdown-toggle:active,
|
56
|
+
.btn-group > .btn-info.dropdown-toggle.active,
|
57
|
+
.btn-group > .btn-inverse.dropdown-toggle:active,
|
58
|
+
.btn-group > .btn-inverse.dropdown-toggle.active {
|
59
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.3));
|
60
|
+
}
|
61
|
+
.btn-group > .btn-mini.dropdown-toggle {
|
62
|
+
padding: 2px 4px;
|
63
|
+
}
|
64
|
+
.btn-group > .btn-small.dropdown-toggle {
|
65
|
+
padding: 5px 7px;
|
66
|
+
}
|
67
|
+
.btn-group > .btn-large.dropdown-toggle {
|
68
|
+
padding: 9px 9px;
|
69
|
+
}
|
70
|
+
|
71
|
+
.btn-group.open {
|
72
|
+
|
73
|
+
// The clickable button for toggling the menu
|
74
|
+
// Remove the gradient and set the same inset shadow as the :active state
|
75
|
+
.dropdown-toggle {
|
76
|
+
@include box-shadow(inset 0 1px 6px rgba(0, 0, 0, 0.15));
|
77
|
+
}
|
78
|
+
|
79
|
+
// Keep the hover's background when dropdown is open
|
80
|
+
.btn.dropdown-toggle {
|
81
|
+
background-color: $btnBackground;
|
82
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.1));
|
83
|
+
}
|
84
|
+
.btn-primary.dropdown-toggle {
|
85
|
+
background-color: $btnPrimaryBackground;
|
86
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.3));
|
87
|
+
}
|
88
|
+
.btn-warning.dropdown-toggle {
|
89
|
+
background-color: $btnWarningBackground;
|
90
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.3));
|
91
|
+
}
|
92
|
+
.btn-danger.dropdown-toggle {
|
93
|
+
background-color: $btnDangerBackground;
|
94
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.3));
|
95
|
+
}
|
96
|
+
.btn-success.dropdown-toggle {
|
97
|
+
background-color: $btnSuccessBackground;
|
98
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.3));
|
99
|
+
}
|
100
|
+
.btn-info.dropdown-toggle {
|
101
|
+
background-color: $btnInfoBackground;
|
102
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.3));
|
103
|
+
}
|
104
|
+
.btn-inverse.dropdown-toggle {
|
105
|
+
background-color: $btnInverseBackground;
|
106
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.3));
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
|
111
|
+
// Reposition the caret
|
112
|
+
.btn .caret {
|
113
|
+
margin-top: 8px;
|
114
|
+
}
|
115
|
+
// Carets in other button sizes
|
116
|
+
.btn-mini .caret {
|
117
|
+
margin-top: 5px;
|
118
|
+
}
|
119
|
+
.btn-small .caret {
|
120
|
+
margin-top: 6px;
|
121
|
+
}
|
122
|
+
.btn-large .caret {
|
123
|
+
margin-top: 6px;
|
124
|
+
}
|
@@ -0,0 +1,396 @@
|
|
1
|
+
// BUTTON STYLES
|
2
|
+
// -------------
|
3
|
+
|
4
|
+
|
5
|
+
// Base styles
|
6
|
+
// --------------------------------------------------
|
7
|
+
|
8
|
+
// Core
|
9
|
+
.btn {
|
10
|
+
position: relative;
|
11
|
+
padding: 4px 12px;
|
12
|
+
margin: 0;
|
13
|
+
|
14
|
+
color: #333;
|
15
|
+
text-shadow: 0 1px 0 #fff;
|
16
|
+
white-space: nowrap;
|
17
|
+
font-family: $baseFontFamily;
|
18
|
+
font-weight: bold;
|
19
|
+
|
20
|
+
cursor: default;
|
21
|
+
background-color: $btnBackground;
|
22
|
+
@include gradient-vertical(#f5f5f5,#f1f1f1);
|
23
|
+
@include background-clip(padding);
|
24
|
+
border: 1px solid #dcdcdc;
|
25
|
+
@include border-radius(2px);
|
26
|
+
@include box-shadow(none);
|
27
|
+
}
|
28
|
+
|
29
|
+
// Hover state
|
30
|
+
.btn:hover {
|
31
|
+
color: #333;
|
32
|
+
text-shadow: none;
|
33
|
+
border-color: #c6c6c6;
|
34
|
+
|
35
|
+
background-color: #f5f5f5;
|
36
|
+
@include gradient-vertical(#f8f8f8,#f1f1f1);
|
37
|
+
@include box-shadow(0 1px 1px rgba(0,0,0,0.1));
|
38
|
+
|
39
|
+
background-position: 0 0;
|
40
|
+
@include transition(none);
|
41
|
+
z-index: 2;
|
42
|
+
}
|
43
|
+
|
44
|
+
// Active state
|
45
|
+
.btn.active,
|
46
|
+
.btn:active {
|
47
|
+
background-color: #f4f4f4;
|
48
|
+
@include gradient-vertical(#f6f6f6,#f1f1f1);
|
49
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.1));
|
50
|
+
}
|
51
|
+
|
52
|
+
.btn:active,
|
53
|
+
.btn:focus {
|
54
|
+
/* Blue border on button focus. */
|
55
|
+
border-color: #4D90FE;
|
56
|
+
}
|
57
|
+
.btn.active {
|
58
|
+
background: #e8e8e8;
|
59
|
+
}
|
60
|
+
|
61
|
+
// Disabled state
|
62
|
+
.btn.disabled,
|
63
|
+
.btn.disabled:hover,
|
64
|
+
.btn.disabled:active,
|
65
|
+
.btn.disabled.active,
|
66
|
+
.btn.disabled:focus,
|
67
|
+
.btn[disabled],
|
68
|
+
.btn[disabled]:hover,
|
69
|
+
.btn[disabled]:active,
|
70
|
+
.btn[disabled].active,
|
71
|
+
.btn[disabled]:focus {
|
72
|
+
color: darken($white, 30%);
|
73
|
+
border-color: darken($white, 15%);
|
74
|
+
background-color: darken($white, 10%);
|
75
|
+
background-image: none;
|
76
|
+
@include box-shadow(none);
|
77
|
+
text-shadow: none;
|
78
|
+
}
|
79
|
+
|
80
|
+
|
81
|
+
// Button Sizes
|
82
|
+
// --------------------------------------------------
|
83
|
+
|
84
|
+
// Large
|
85
|
+
.btn-large {
|
86
|
+
padding: 9px 14px;
|
87
|
+
font-size: $baseFontSize + 1px;
|
88
|
+
line-height: normal;
|
89
|
+
}
|
90
|
+
|
91
|
+
// Small
|
92
|
+
.btn-small {
|
93
|
+
padding: 5px 9px;
|
94
|
+
font-size: $baseFontSize - 1px;
|
95
|
+
line-height: $baseLineHeight - 5px;
|
96
|
+
}
|
97
|
+
|
98
|
+
// Mini
|
99
|
+
.btn-mini {
|
100
|
+
padding: 2px 6px;
|
101
|
+
font-size: $baseFontSize - 2px;
|
102
|
+
line-height: $baseLineHeight - 7px;
|
103
|
+
}
|
104
|
+
|
105
|
+
|
106
|
+
// Alternate buttons
|
107
|
+
// --------------------------------------------------
|
108
|
+
|
109
|
+
// Set text color
|
110
|
+
// -------------------------
|
111
|
+
.btn-primary,
|
112
|
+
.btn-primary:hover,
|
113
|
+
.btn-warning,
|
114
|
+
.btn-warning:hover,
|
115
|
+
.btn-danger,
|
116
|
+
.btn-danger:hover,
|
117
|
+
.btn-success,
|
118
|
+
.btn-success:hover,
|
119
|
+
.btn-info,
|
120
|
+
.btn-info:hover,
|
121
|
+
.btn-inverse,
|
122
|
+
.btn-inverse:hover {
|
123
|
+
color: $white;
|
124
|
+
text-shadow: 0 1px rgba(0, 0, 0, 0.1);
|
125
|
+
}
|
126
|
+
// Provide *some* extra contrast for those who can get it
|
127
|
+
.btn-primary:hover,
|
128
|
+
.btn-warning:hover,
|
129
|
+
.btn-danger:hover,
|
130
|
+
.btn-success:hover,
|
131
|
+
.btn-info:hover,
|
132
|
+
.btn-inverse:hover {
|
133
|
+
@include box-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
|
134
|
+
}
|
135
|
+
.btn-primary:active,
|
136
|
+
.btn-primary.active,
|
137
|
+
.btn-warning:active,
|
138
|
+
.btn-warning.active,
|
139
|
+
.btn-danger:active,
|
140
|
+
.btn-danger.active,
|
141
|
+
.btn-success:active,
|
142
|
+
.btn-success.active,
|
143
|
+
.btn-info:active,
|
144
|
+
.btn-info.active,
|
145
|
+
.btn-inverse:active,
|
146
|
+
.btn-inverse.active {
|
147
|
+
@include box-shadow(inset 0 1px 2px rgba(0, 0, 0, 0.3));
|
148
|
+
}
|
149
|
+
|
150
|
+
.btn-primary.active,
|
151
|
+
.btn-primary:active,
|
152
|
+
.btn-primary:hover,
|
153
|
+
.btn-warning.active,
|
154
|
+
.btn-warning:active,
|
155
|
+
.btn-warning:hover,
|
156
|
+
.btn-danger.active,
|
157
|
+
.btn-danger:active,
|
158
|
+
.btn-danger:hover,
|
159
|
+
.btn-success.active,
|
160
|
+
.btn-success:active,
|
161
|
+
.btn-success:hover,
|
162
|
+
.btn-info.active,
|
163
|
+
.btn-info:active,
|
164
|
+
.btn-info:hover,
|
165
|
+
.btn-inverse.active,
|
166
|
+
.btn-inverse:active,
|
167
|
+
.btn-inverse:hover {
|
168
|
+
color: white;
|
169
|
+
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
|
170
|
+
}
|
171
|
+
|
172
|
+
|
173
|
+
// Primary Button
|
174
|
+
// -------------------------
|
175
|
+
.btn-primary {
|
176
|
+
border: 1px solid #3079ED;
|
177
|
+
background-color: $btnPrimaryBackground;
|
178
|
+
@include gradient-vertical(#4d90fe,#4787ed);
|
179
|
+
}
|
180
|
+
.btn-primary:hover,
|
181
|
+
.btn-primary:focus,
|
182
|
+
.btn-primary:active,
|
183
|
+
.btn-primary.active {
|
184
|
+
border: 1px solid #2F5BB7;
|
185
|
+
background-color: #4387f5;
|
186
|
+
@include gradient-vertical(#4d90fe,#357ae8);
|
187
|
+
}
|
188
|
+
.btn-primary.active {
|
189
|
+
background: darken(#4387f5, 10%);
|
190
|
+
}
|
191
|
+
.btn-primary.disabled,
|
192
|
+
.btn-primary.disabled:hover,
|
193
|
+
.btn-primary.disabled:active,
|
194
|
+
.btn-primary.disabled.active,
|
195
|
+
.btn-primary.disabled:focus,
|
196
|
+
.btn-primary[disabled],
|
197
|
+
.btn-primary[disabled]:hover,
|
198
|
+
.btn-primary[disabled]:active,
|
199
|
+
.btn-primary[disabled].active,
|
200
|
+
.btn-primary[disabled]:focus {
|
201
|
+
color: darken($white, 10%);
|
202
|
+
border-color: lighten(#3079ED, 10%);
|
203
|
+
background-color: lighten(#4b8cf7, 10%);
|
204
|
+
}
|
205
|
+
|
206
|
+
|
207
|
+
// Danger Button
|
208
|
+
// -------------------------
|
209
|
+
.btn-danger {
|
210
|
+
border: 1px solid #C6322A;
|
211
|
+
background-color: $btnDangerBackground;
|
212
|
+
@include gradient-vertical(#dd4b39,#d14836);
|
213
|
+
}
|
214
|
+
.btn-danger:hover,
|
215
|
+
.btn-danger:focus,
|
216
|
+
.btn-danger:active {
|
217
|
+
border: 1px solid #AF301F;
|
218
|
+
background-color: #d34332;
|
219
|
+
@include gradient-vertical(#dd4b39,#c53727);
|
220
|
+
}
|
221
|
+
.btn-danger:active,
|
222
|
+
.btn-danger.active {
|
223
|
+
background-color: #cb3d2d;
|
224
|
+
@include gradient-vertical(#dd4b39,#b0281a);
|
225
|
+
}
|
226
|
+
.btn-danger.active {
|
227
|
+
border-color: darken(#cb3d2d, 10%);
|
228
|
+
background: darken(#cb3d2d, 2%);
|
229
|
+
}
|
230
|
+
.btn-danger.disabled,
|
231
|
+
.btn-danger.disabled:hover,
|
232
|
+
.btn-danger.disabled:active,
|
233
|
+
.btn-danger.disabled.active,
|
234
|
+
.btn-danger.disabled:focus,
|
235
|
+
.btn-danger[disabled],
|
236
|
+
.btn-danger[disabled]:hover,
|
237
|
+
.btn-danger[disabled]:active,
|
238
|
+
.btn-danger[disabled].active,
|
239
|
+
.btn-danger[disabled]:focus {
|
240
|
+
color: darken($white, 10%);
|
241
|
+
border-color: lighten(#C6322A, 10%);
|
242
|
+
background-color: lighten(#d84a38, 10%);
|
243
|
+
}
|
244
|
+
|
245
|
+
|
246
|
+
// Warning Button
|
247
|
+
// -------------------------
|
248
|
+
.btn-warning {
|
249
|
+
border: 1px solid darken($btnWarningBackground, 3%);
|
250
|
+
background-color: $btnWarningBackground;
|
251
|
+
@include gradient-vertical(lighten($orange, 15%), lighten($orange, 10%));
|
252
|
+
}
|
253
|
+
.btn-warning:hover,
|
254
|
+
.btn-warning:focus,
|
255
|
+
.btn-warning:active {
|
256
|
+
border: 1px solid darken($btnWarningBackground, 15%);
|
257
|
+
background-color: $btnWarningBackground;
|
258
|
+
@include gradient-vertical(lighten($orange, 15%), $orange);
|
259
|
+
}
|
260
|
+
.btn-warning:active,
|
261
|
+
.btn-warning.active {
|
262
|
+
background-color: $btnWarningBackground;
|
263
|
+
@include gradient-vertical(lighten($orange, 15%), $orange);
|
264
|
+
}
|
265
|
+
.btn-warning.active {
|
266
|
+
border-color: darken($btnWarningBackground, 15%);
|
267
|
+
background-color: darken($btnWarningBackground, 10%);
|
268
|
+
}
|
269
|
+
.btn-warning.disabled,
|
270
|
+
.btn-warning.disabled:hover,
|
271
|
+
.btn-warning.disabled:active,
|
272
|
+
.btn-warning.disabled.active,
|
273
|
+
.btn-warning.disabled:focus,
|
274
|
+
.btn-warning[disabled],
|
275
|
+
.btn-warning[disabled]:hover,
|
276
|
+
.btn-warning[disabled]:active,
|
277
|
+
.btn-warning[disabled].active,
|
278
|
+
.btn-warning[disabled]:focus {
|
279
|
+
color: darken($white, 10%);
|
280
|
+
border-color: lighten($btnWarningBackground, 5%);
|
281
|
+
background-color: lighten($btnWarningBackground, 10%);
|
282
|
+
}
|
283
|
+
|
284
|
+
|
285
|
+
// Success Button
|
286
|
+
// -------------------------
|
287
|
+
.btn-success {
|
288
|
+
border: 1px solid #359947;
|
289
|
+
background-color: #35aa47;
|
290
|
+
@include gradient-vertical(#35aa47,#35aa47);
|
291
|
+
}
|
292
|
+
.btn-success:hover,
|
293
|
+
.btn-success:focus,
|
294
|
+
.btn-success:active {
|
295
|
+
border: 1px solid #508c36;
|
296
|
+
background-color: #2ba142;
|
297
|
+
@include gradient-vertical(#35aa47,#1d943b);
|
298
|
+
}
|
299
|
+
.btn-success:active,
|
300
|
+
.btn-success.active {
|
301
|
+
background-color: #239c3b;
|
302
|
+
@include gradient-vertical(#35aa47,#088728);
|
303
|
+
}
|
304
|
+
.btn-success.active {
|
305
|
+
border-color: darken(#239c3b, 10%);
|
306
|
+
background: darken(#239c3b, 5%);
|
307
|
+
}
|
308
|
+
.btn-success.disabled,
|
309
|
+
.btn-success.disabled:hover,
|
310
|
+
.btn-success.disabled:active,
|
311
|
+
.btn-success.disabled.active,
|
312
|
+
.btn-success.disabled:focus,
|
313
|
+
.btn-success[disabled],
|
314
|
+
.btn-success[disabled]:hover,
|
315
|
+
.btn-success[disabled]:active,
|
316
|
+
.btn-success[disabled].active,
|
317
|
+
.btn-success[disabled]:focus {
|
318
|
+
color: darken($white, 10%);
|
319
|
+
border-color: lighten(#359947, 10%);
|
320
|
+
background-color: lighten(#35aa47, 10%);
|
321
|
+
}
|
322
|
+
|
323
|
+
|
324
|
+
// Info Button
|
325
|
+
// -------------------------
|
326
|
+
.btn-info {
|
327
|
+
border: 1px solid darken($btnInfoBackground, 5%);
|
328
|
+
background-color: $btnInfoBackground;
|
329
|
+
@include gradient-vertical($btnInfoBackground,$btnInfoBackground);
|
330
|
+
}
|
331
|
+
.btn-info:hover,
|
332
|
+
.btn-info:focus,
|
333
|
+
.btn-info:active {
|
334
|
+
border: 1px solid darken($btnInfoBackground, 10%);
|
335
|
+
background-color: $btnInfoBackground;
|
336
|
+
@include gradient-vertical(lighten($btnInfoBackground, 3%), darken($btnInfoBackground, 3%));
|
337
|
+
}
|
338
|
+
.btn-info:active,
|
339
|
+
.btn-info.active {
|
340
|
+
background-color: darken($btnInfoBackground, 8%);
|
341
|
+
@include gradient-vertical(lighten($btnInfoBackground, 3%), darken($btnInfoBackground, 3%));
|
342
|
+
}
|
343
|
+
.btn-info.active {
|
344
|
+
border-color: darken($btnInfoBackground, 15%);
|
345
|
+
background: darken($btnInfoBackground, 10%);
|
346
|
+
}
|
347
|
+
.btn-info.disabled,
|
348
|
+
.btn-info.disabled:hover,
|
349
|
+
.btn-info.disabled:active,
|
350
|
+
.btn-info.disabled.active,
|
351
|
+
.btn-info.disabled:focus,
|
352
|
+
.btn-info[disabled],
|
353
|
+
.btn-info[disabled]:hover,
|
354
|
+
.btn-info[disabled]:active,
|
355
|
+
.btn-info[disabled].active,
|
356
|
+
.btn-info[disabled]:focus {
|
357
|
+
color: darken($white, 10%);
|
358
|
+
border-color: lighten($btnInfoBackground, 5%);
|
359
|
+
background-color: lighten($btnInfoBackground, 10%);
|
360
|
+
}
|
361
|
+
|
362
|
+
|
363
|
+
// Inverse Button
|
364
|
+
// -------------------------
|
365
|
+
.btn-inverse {
|
366
|
+
border: 1px solid darken($btnInverseBackground, 3%);
|
367
|
+
background-color: $btnInverseBackground;
|
368
|
+
@include gradient-vertical(lighten($btnInverseBackground, 1%), darken($btnInverseBackground, 1%));
|
369
|
+
}
|
370
|
+
.btn-inverse:hover,
|
371
|
+
.btn-inverse:focus,
|
372
|
+
.btn-inverse:active {
|
373
|
+
border: 1px solid darken($btnInverseBackground, 9%);
|
374
|
+
background-color: $btnInverseBackground;
|
375
|
+
@include gradient-vertical(lighten($btnInverseBackground, 3%), darken($btnInverseBackground, 6%));
|
376
|
+
}
|
377
|
+
.btn-inverse:active,
|
378
|
+
.btn-inverse.active {
|
379
|
+
background-color: darken(#2d2d2d, 8%);
|
380
|
+
@include gradient-vertical(lighten($btnInverseBackground, 1%), darken($btnInverseBackground, 9%));
|
381
|
+
}
|
382
|
+
.btn-inverse.disabled,
|
383
|
+
.btn-inverse.disabled:hover,
|
384
|
+
.btn-inverse.disabled:active,
|
385
|
+
.btn-inverse.disabled.active,
|
386
|
+
.btn-inverse.disabled:focus,
|
387
|
+
.btn-inverse[disabled],
|
388
|
+
.btn-inverse[disabled]:hover,
|
389
|
+
.btn-inverse[disabled]:active,
|
390
|
+
.btn-inverse[disabled].active,
|
391
|
+
.btn-inverse[disabled]:focus {
|
392
|
+
color: darken($white, 10%);
|
393
|
+
border-color: lighten($btnInverseBackground, 10%);
|
394
|
+
background-color: lighten($btnInverseBackground, 15%);
|
395
|
+
}
|
396
|
+
|
@@ -0,0 +1,95 @@
|
|
1
|
+
// DROPDOWN MENUS
|
2
|
+
// --------------
|
3
|
+
|
4
|
+
// The dropdown menu (ul)
|
5
|
+
// ----------------------
|
6
|
+
.g-select-dropdown,
|
7
|
+
.dropdown-menu {
|
8
|
+
position: absolute;
|
9
|
+
top: 100%;
|
10
|
+
left: 0;
|
11
|
+
z-index: $zindexDropdown;
|
12
|
+
display: none; // none by default, but block on "open" of the menu
|
13
|
+
float: left;
|
14
|
+
min-width: 160px;
|
15
|
+
padding: 0 0 6px 0;
|
16
|
+
margin: 1px 0 0; // override default ul
|
17
|
+
list-style: none;
|
18
|
+
background-color: $dropdownBackground;
|
19
|
+
border: 1px solid #ccc;
|
20
|
+
border: 1px solid rgba(0,0,0,.2);
|
21
|
+
*border-right-width: 2px;
|
22
|
+
*border-bottom-width: 2px;
|
23
|
+
@include border-radius(0);
|
24
|
+
@include box-shadow(0 2px 4px rgba(0,0,0,.2));
|
25
|
+
-webkit-background-clip: padding-box;
|
26
|
+
-moz-background-clip: padding;
|
27
|
+
background-clip: padding-box;
|
28
|
+
|
29
|
+
// Aligns the dropdown menu to right
|
30
|
+
&.pull-right {
|
31
|
+
right: 0;
|
32
|
+
left: auto;
|
33
|
+
}
|
34
|
+
|
35
|
+
// Dividers (basically an hr) within the dropdown
|
36
|
+
.divider {
|
37
|
+
@include nav-divider($dropdownDividerTop, $dropdownDividerBottom);
|
38
|
+
}
|
39
|
+
|
40
|
+
// Links within the dropdown menu
|
41
|
+
a {
|
42
|
+
display: block;
|
43
|
+
padding: 6px 15px;
|
44
|
+
clear: both;
|
45
|
+
font-weight: normal;
|
46
|
+
line-height: 18px;
|
47
|
+
color: $dropdownLinkColor;
|
48
|
+
white-space: nowrap;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.g-select-dropdown li {
|
53
|
+
display: block;
|
54
|
+
padding: 3px 10px;
|
55
|
+
clear: both;
|
56
|
+
font-weight: normal;
|
57
|
+
line-height: 18px;
|
58
|
+
color: $dropdownLinkColor;
|
59
|
+
white-space: nowrap;
|
60
|
+
}
|
61
|
+
|
62
|
+
// Hover state
|
63
|
+
// -----------
|
64
|
+
.g-select-dropdown li:hover,
|
65
|
+
.dropdown-menu li > a:hover,
|
66
|
+
.dropdown-menu .active > a,
|
67
|
+
.dropdown-menu .active > a:hover {
|
68
|
+
color: $dropdownLinkColorHover;
|
69
|
+
text-decoration: none;
|
70
|
+
background-color: $dropdownLinkBackgroundHover;
|
71
|
+
}
|
72
|
+
|
73
|
+
.g-select-dropdown {
|
74
|
+
max-height: 200px;
|
75
|
+
overflow-y: auto;
|
76
|
+
}
|
77
|
+
|
78
|
+
// Open state for the dropdown
|
79
|
+
// ---------------------------
|
80
|
+
.open {
|
81
|
+
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
82
|
+
// make the menu appear below buttons that appeared later on the page
|
83
|
+
*z-index: $zindexDropdown;
|
84
|
+
|
85
|
+
& > .g-select-dropdown,
|
86
|
+
& > .dropdown-menu {
|
87
|
+
display: block;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
// Typeahead
|
92
|
+
// ---------
|
93
|
+
.typeahead {
|
94
|
+
@include border-radius(0);
|
95
|
+
}
|