compass-bootstrap 0.0.2 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.mkdn +9 -3
- data/lib/compass-bootstrap.rb +1 -1
- data/lib/compass-bootstrap/version.rb +1 -1
- data/stylesheets/compass-bootstrap/_compass_bootstrap.scss +26 -0
- data/stylesheets/compass-bootstrap/_forms.scss +393 -0
- data/stylesheets/compass-bootstrap/_patterns.scss +818 -0
- data/stylesheets/compass-bootstrap/_preboot.scss +276 -0
- data/stylesheets/compass-bootstrap/_reset.scss +137 -0
- data/stylesheets/compass-bootstrap/_scaffolding.scss +110 -0
- data/stylesheets/compass-bootstrap/_tables.scss +148 -0
- data/stylesheets/compass-bootstrap/_type.scss +188 -0
- data/templates/project/_forms.scss +393 -0
- data/templates/project/_patterns.scss +818 -0
- data/templates/project/_preboot.scss +276 -0
- data/templates/project/_reset.scss +137 -0
- data/templates/project/_scaffolding.scss +110 -0
- data/templates/project/_tables.scss +148 -0
- data/templates/project/_type.scss +188 -0
- data/templates/project/compass_bootstrap.scss +26 -0
- data/templates/project/manifest.rb +11 -0
- data/templates/project/screen.sass +0 -0
- metadata +19 -5
- data/stylesheets/_compass_bootstrap.scss +0 -1734
- data/stylesheets/_compass_bootstrap_mixins.scss +0 -43
- data/templates/project/screen.scss +0 -2
@@ -0,0 +1,818 @@
|
|
1
|
+
/* Patterns.less
|
2
|
+
* Repeatable UI elements outside the base styles provided from the scaffolding
|
3
|
+
* ---------------------------------------------------------------------------- */
|
4
|
+
|
5
|
+
|
6
|
+
// TOPBAR
|
7
|
+
// ------
|
8
|
+
|
9
|
+
// Topbar for Branding and Nav
|
10
|
+
.topbar {
|
11
|
+
height: 40px;
|
12
|
+
position: fixed;
|
13
|
+
top: 0;
|
14
|
+
left: 0;
|
15
|
+
right: 0;
|
16
|
+
z-index: 10000;
|
17
|
+
overflow: visible;
|
18
|
+
|
19
|
+
// Links get text shadow
|
20
|
+
a {
|
21
|
+
color: $grayLight;
|
22
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
23
|
+
}
|
24
|
+
|
25
|
+
// Hover and active states
|
26
|
+
a:hover,
|
27
|
+
ul .active a {
|
28
|
+
background-color: #333;
|
29
|
+
background-color: rgba(255,255,255,.05);
|
30
|
+
color: $white;
|
31
|
+
text-decoration: none;
|
32
|
+
}
|
33
|
+
|
34
|
+
// Website name
|
35
|
+
h3 {
|
36
|
+
position: relative;
|
37
|
+
a {
|
38
|
+
float: left;
|
39
|
+
display: block;
|
40
|
+
padding: 8px 20px 12px;
|
41
|
+
margin-left: -20px; // negative indent to left-align the text down the page
|
42
|
+
color: $white;
|
43
|
+
font-size: 20px;
|
44
|
+
font-weight: 200;
|
45
|
+
line-height: 1;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
// Search Form
|
50
|
+
form {
|
51
|
+
float: left;
|
52
|
+
margin: 5px 0 0 0;
|
53
|
+
position: relative;
|
54
|
+
@include bt-opacity(100);
|
55
|
+
}
|
56
|
+
input {
|
57
|
+
background-color: #444;
|
58
|
+
background-color: rgba(255,255,255,.3);
|
59
|
+
@include sans-serif(13px, normal, 1);
|
60
|
+
padding: 4px 9px;
|
61
|
+
color: #fff;
|
62
|
+
color: rgba(255,255,255,.75);
|
63
|
+
border: 1px solid #111;
|
64
|
+
@include border-radius(4px);
|
65
|
+
$shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.25);
|
66
|
+
@include bt-box-shadow($shadow);
|
67
|
+
@include transition(none);
|
68
|
+
|
69
|
+
// Placeholder text gets special styles; can't be bundled together though for some reason
|
70
|
+
&:-moz-placeholder {
|
71
|
+
color: $grayLighter;
|
72
|
+
}
|
73
|
+
&::-webkit-input-placeholder {
|
74
|
+
color: $grayLighter;
|
75
|
+
}
|
76
|
+
// Hover states
|
77
|
+
&:hover {
|
78
|
+
background-color: $grayLight;
|
79
|
+
background-color: rgba(255,255,255,.5);
|
80
|
+
color: #fff;
|
81
|
+
}
|
82
|
+
// Focus states (we use .focused since IE8 and down doesn't support :focus)
|
83
|
+
&:focus,
|
84
|
+
&.focused {
|
85
|
+
outline: none;
|
86
|
+
background-color: #fff;
|
87
|
+
color: $grayDark;
|
88
|
+
text-shadow: 0 1px 0 #fff;
|
89
|
+
border: 0;
|
90
|
+
padding: 5px 10px;
|
91
|
+
@include box-shadow(0 0 3px rgba(0,0,0,.15));
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// gradient is applied to it's own element because overflow visible is not honored by ie when filter is present
|
97
|
+
// For backwards compatability, include .topbar .fill
|
98
|
+
.topbar-inner,
|
99
|
+
.topbar .fill {
|
100
|
+
background-color: #222;
|
101
|
+
@include vertical-gradient(#333, #222);
|
102
|
+
$shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
|
103
|
+
@include bt-box-shadow($shadow);
|
104
|
+
}
|
105
|
+
|
106
|
+
|
107
|
+
// NAVIGATION
|
108
|
+
// ----------
|
109
|
+
|
110
|
+
// Topbar Nav
|
111
|
+
// ul.nav for all topbar based navigation to avoid inheritance issues and over-specificity
|
112
|
+
// For backwards compatibility, leave in .topbar div > ul
|
113
|
+
.topbar div > ul,
|
114
|
+
.nav {
|
115
|
+
display: block;
|
116
|
+
float: left;
|
117
|
+
margin: 0 10px 0 0;
|
118
|
+
position: relative;
|
119
|
+
left: 0;
|
120
|
+
> li {
|
121
|
+
display: block;
|
122
|
+
float: left;
|
123
|
+
}
|
124
|
+
a {
|
125
|
+
display: block;
|
126
|
+
float: none;
|
127
|
+
padding: 10px 10px 11px;
|
128
|
+
line-height: 19px;
|
129
|
+
text-decoration: none;
|
130
|
+
&:hover {
|
131
|
+
color: #fff;
|
132
|
+
text-decoration: none;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
.active a {
|
136
|
+
background-color: #222;
|
137
|
+
background-color: rgba(0,0,0,.5);
|
138
|
+
}
|
139
|
+
|
140
|
+
// Secondary (floated right) nav in topbar
|
141
|
+
&.secondary-nav {
|
142
|
+
float: right;
|
143
|
+
margin-left: 10px;
|
144
|
+
margin-right: 0;
|
145
|
+
// backwards compatibility
|
146
|
+
.menu-dropdown,
|
147
|
+
.dropdown-menu {
|
148
|
+
right: 0;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
// Dropdowns within the .nav
|
152
|
+
// a.menu:hover and li.open .menu for backwards compatibility
|
153
|
+
a.menu:hover,
|
154
|
+
li.open .menu,
|
155
|
+
.dropdown-toggle:hover,
|
156
|
+
.dropdown.open .dropdown-toggle {
|
157
|
+
background: #444;
|
158
|
+
background: rgba(255,255,255,.05);
|
159
|
+
}
|
160
|
+
// .menu-dropdown for backwards compatibility
|
161
|
+
.menu-dropdown,
|
162
|
+
.dropdown-menu {
|
163
|
+
background-color: #333;
|
164
|
+
// a.menu for backwards compatibility
|
165
|
+
a.menu,
|
166
|
+
.dropdown-toggle {
|
167
|
+
color: #fff;
|
168
|
+
&.open {
|
169
|
+
background: #444;
|
170
|
+
background: rgba(255,255,255,.05);
|
171
|
+
}
|
172
|
+
}
|
173
|
+
li a {
|
174
|
+
color: #999;
|
175
|
+
text-shadow: 0 1px 0 rgba(0,0,0,.5);
|
176
|
+
&:hover {
|
177
|
+
@include vertical-gradient(#292929,#191919);
|
178
|
+
color: #fff;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
.divider {
|
182
|
+
background-color: #222;
|
183
|
+
border-color: #444;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
// For backwards compatability with new dropdowns, redeclare dropdown link padding
|
189
|
+
.topbar ul .menu-dropdown li a,
|
190
|
+
.topbar ul .dropdown-menu li a {
|
191
|
+
padding: 4px 15px;
|
192
|
+
}
|
193
|
+
|
194
|
+
// Dropdown Menus
|
195
|
+
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
196
|
+
// li.menu for backwards compatibility
|
197
|
+
li.menu,
|
198
|
+
.dropdown {
|
199
|
+
position: relative;
|
200
|
+
}
|
201
|
+
// The link that is clicked to toggle the dropdown
|
202
|
+
// a.menu for backwards compatibility
|
203
|
+
a.menu:after,
|
204
|
+
.dropdown-toggle:after {
|
205
|
+
width: 0;
|
206
|
+
height: 0;
|
207
|
+
display: inline-block;
|
208
|
+
content: "↓";
|
209
|
+
text-indent: -99999px;
|
210
|
+
vertical-align: top;
|
211
|
+
margin-top: 8px;
|
212
|
+
margin-left: 4px;
|
213
|
+
border-left: 4px solid transparent;
|
214
|
+
border-right: 4px solid transparent;
|
215
|
+
border-top: 4px solid #fff;
|
216
|
+
@include bt-opacity(50);
|
217
|
+
}
|
218
|
+
// The dropdown menu (ul)
|
219
|
+
// .menu-dropdown for backwards compatibility
|
220
|
+
.menu-dropdown,
|
221
|
+
.dropdown-menu {
|
222
|
+
background-color: #fff;
|
223
|
+
float: left;
|
224
|
+
display: none; // None by default, but block on "open" of the menu
|
225
|
+
position: absolute;
|
226
|
+
top: 40px;
|
227
|
+
min-width: 160px;
|
228
|
+
max-width: 220px;
|
229
|
+
_width: 160px;
|
230
|
+
margin-left: 0; // override default ul styles
|
231
|
+
margin-right: 0;
|
232
|
+
padding: 6px 0;
|
233
|
+
zoom: 1; // do we need this?
|
234
|
+
border-color: #999;
|
235
|
+
border-color: rgba(0,0,0,.2);
|
236
|
+
border-style: solid;
|
237
|
+
border-width: 0 1px 1px;
|
238
|
+
@include border-radius(0 0 6px 6px);
|
239
|
+
@include bt-box-shadow(0 2px 4px rgba(0,0,0,.2));
|
240
|
+
@include background-clip(padding-box);
|
241
|
+
|
242
|
+
// Unfloat any li's to make them stack
|
243
|
+
li {
|
244
|
+
float: none;
|
245
|
+
display: block;
|
246
|
+
background-color: none;
|
247
|
+
}
|
248
|
+
// Dividers (basically an hr) within the dropdown
|
249
|
+
.divider {
|
250
|
+
height: 1px;
|
251
|
+
margin: 5px 0;
|
252
|
+
overflow: hidden;
|
253
|
+
background-color: #eee;
|
254
|
+
border-bottom: 1px solid #fff;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
.topbar .dropdown-menu, .dropdown-menu {
|
259
|
+
// Links within the dropdown menu
|
260
|
+
a {
|
261
|
+
display: block;
|
262
|
+
padding: 4px 15px;
|
263
|
+
clear: both;
|
264
|
+
font-weight: normal;
|
265
|
+
line-height: 18px;
|
266
|
+
color: $gray;
|
267
|
+
text-shadow: 0 1px 0 #fff;
|
268
|
+
// Hover state
|
269
|
+
&:hover {
|
270
|
+
@include vertical-gradient(#eeeeee, #dddddd);
|
271
|
+
color: $grayDark;
|
272
|
+
text-decoration: none;
|
273
|
+
$shadow: inset 0 1px 0 rgba(0,0,0,.025), inset 0 -1px rgba(0,0,0,.025);
|
274
|
+
@include bt-box-shadow($shadow);
|
275
|
+
}
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
// Open state for the dropdown
|
280
|
+
// .open for backwards compatibility
|
281
|
+
.open,
|
282
|
+
.dropdown.open {
|
283
|
+
// .menu for backwards compatibility
|
284
|
+
.menu,
|
285
|
+
.dropdown-toggle {
|
286
|
+
color: #fff;
|
287
|
+
background: #ccc;
|
288
|
+
background: rgba(0,0,0,.3);
|
289
|
+
}
|
290
|
+
// .menu-dropdown for backwards compatibility
|
291
|
+
.menu-dropdown,
|
292
|
+
.dropdown-menu {
|
293
|
+
display: block;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
|
298
|
+
// Tabs and Pills
|
299
|
+
.tabs,
|
300
|
+
.pills {
|
301
|
+
margin: 0 0 20px;
|
302
|
+
padding: 0;
|
303
|
+
list-style: none;
|
304
|
+
@include clearfix();
|
305
|
+
> li {
|
306
|
+
float: left;
|
307
|
+
> a {
|
308
|
+
display: block;
|
309
|
+
}
|
310
|
+
}
|
311
|
+
}
|
312
|
+
|
313
|
+
// Basic Tabs
|
314
|
+
.tabs {
|
315
|
+
width: 100%;
|
316
|
+
border-bottom: 1px solid #ddd;
|
317
|
+
> li {
|
318
|
+
position: relative; // For the dropdowns mostly
|
319
|
+
top: 1px;
|
320
|
+
> a {
|
321
|
+
margin-right: 2px;
|
322
|
+
padding: 0 15px;
|
323
|
+
line-height: ($baseline * 2) - 1;
|
324
|
+
@include border-radius(4px 4px 0 0);
|
325
|
+
&:hover {
|
326
|
+
background-color: #eee;
|
327
|
+
border-bottom: 1px solid #ddd;
|
328
|
+
text-decoration: none;
|
329
|
+
}
|
330
|
+
}
|
331
|
+
&.active > a {
|
332
|
+
background-color: #fff;
|
333
|
+
padding: 0 14px;
|
334
|
+
border: 1px solid #ddd;
|
335
|
+
border-bottom: 0;
|
336
|
+
color: $gray;
|
337
|
+
}
|
338
|
+
}
|
339
|
+
// first one for backwards compatibility
|
340
|
+
.menu-dropdown,
|
341
|
+
.dropdown-menu {
|
342
|
+
top: 35px;
|
343
|
+
border-width: 1px;
|
344
|
+
@include border-radius(0 6px 6px 6px);
|
345
|
+
}
|
346
|
+
// first one for backwards compatibility
|
347
|
+
a.menu:after,
|
348
|
+
.dropdown-toggle:after {
|
349
|
+
border-top-color: #999;
|
350
|
+
margin-top: 15px;
|
351
|
+
margin-left: 5px;
|
352
|
+
}
|
353
|
+
// first one for backwards compatibility
|
354
|
+
li.open a.menu:after,
|
355
|
+
.dropdown.open .dropdown-toggle:after {
|
356
|
+
border-top-color: #555;
|
357
|
+
}
|
358
|
+
}
|
359
|
+
|
360
|
+
// Basic pill nav
|
361
|
+
.pills {
|
362
|
+
a {
|
363
|
+
margin: 5px 3px 5px 0;
|
364
|
+
padding: 0 15px;
|
365
|
+
text-shadow: 0 1px 1px #fff;
|
366
|
+
line-height: 30px;
|
367
|
+
@include border-radius(15px);
|
368
|
+
&:hover {
|
369
|
+
background: $linkColorHover;
|
370
|
+
color: #fff;
|
371
|
+
text-decoration: none;
|
372
|
+
text-shadow: 0 1px 1px rgba(0,0,0,.25);
|
373
|
+
}
|
374
|
+
}
|
375
|
+
.active a {
|
376
|
+
background: $linkColor;
|
377
|
+
color: #fff;
|
378
|
+
text-shadow: 0 1px 1px rgba(0,0,0,.25);
|
379
|
+
}
|
380
|
+
}
|
381
|
+
|
382
|
+
|
383
|
+
// PAGE HEADERS
|
384
|
+
// ------------
|
385
|
+
|
386
|
+
.hero-unit {
|
387
|
+
background-color: #f5f5f5;
|
388
|
+
margin-top: 60px;
|
389
|
+
margin-bottom: 30px;
|
390
|
+
padding: 60px;
|
391
|
+
@include border-radius(6px);
|
392
|
+
h1 {
|
393
|
+
margin-bottom: 0;
|
394
|
+
font-size: 60px;
|
395
|
+
line-height: 1;
|
396
|
+
letter-spacing: -1px;
|
397
|
+
}
|
398
|
+
p {
|
399
|
+
font-size: 18px;
|
400
|
+
font-weight: 200;
|
401
|
+
line-height: $baseline * 1.5;
|
402
|
+
}
|
403
|
+
}
|
404
|
+
footer {
|
405
|
+
margin-top: $baseline - 1;
|
406
|
+
padding-top: $baseline - 1;
|
407
|
+
border-top: 1px solid #eee;
|
408
|
+
}
|
409
|
+
|
410
|
+
|
411
|
+
// PAGE HEADERS
|
412
|
+
// ------------
|
413
|
+
|
414
|
+
.page-header {
|
415
|
+
margin-bottom: $baseline - 1;
|
416
|
+
border-bottom: 1px solid #ddd;
|
417
|
+
@include bt-box-shadow(0 1px 0 rgba(255,255,255,.5));
|
418
|
+
h1 {
|
419
|
+
margin-bottom: ($baseline / 2) - 1px;
|
420
|
+
}
|
421
|
+
}
|
422
|
+
|
423
|
+
|
424
|
+
// BUTTON STYLES
|
425
|
+
// -------------
|
426
|
+
|
427
|
+
// Base .btn styles
|
428
|
+
.btn {
|
429
|
+
// Button Base
|
430
|
+
cursor: pointer;
|
431
|
+
display: inline-block;
|
432
|
+
@include vertical-three-colors-gradient(#ffffff, #ffffff, 25%, darken(#ffffff, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
|
433
|
+
padding: 5px 14px 6px;
|
434
|
+
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
435
|
+
color: #333;
|
436
|
+
font-size: 13px;
|
437
|
+
line-height: normal;
|
438
|
+
border: 1px solid #ccc;
|
439
|
+
border-bottom-color: #bbb;
|
440
|
+
@include border-radius(4px);
|
441
|
+
$shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
442
|
+
@include bt-box-shadow($shadow);
|
443
|
+
|
444
|
+
&:hover {
|
445
|
+
background-position: 0 -15px;
|
446
|
+
color: #333;
|
447
|
+
text-decoration: none;
|
448
|
+
}
|
449
|
+
|
450
|
+
// Primary Button Type
|
451
|
+
&.primary {
|
452
|
+
color:#fff;
|
453
|
+
@include gradientBar($blue, $blueDark)
|
454
|
+
}
|
455
|
+
|
456
|
+
// Transitions
|
457
|
+
@include transition(.1s linear all);
|
458
|
+
|
459
|
+
// Active and Disabled states
|
460
|
+
&:active {
|
461
|
+
$shadow: inset 0 2px 4px rgba(0,0,0,.25), 0 1px 2px rgba(0,0,0,.05);
|
462
|
+
@include bt-box-shadow($shadow);
|
463
|
+
}
|
464
|
+
&.disabled {
|
465
|
+
cursor: default;
|
466
|
+
background-image: none;
|
467
|
+
@include reset-filter();
|
468
|
+
@include bt-opacity(65);
|
469
|
+
@include bt-box-shadow(none);
|
470
|
+
}
|
471
|
+
&[disabled] {
|
472
|
+
// disabled pseudo can't be included with .disabled
|
473
|
+
// def because IE8 and below will drop it ;_;
|
474
|
+
cursor: default;
|
475
|
+
background-image: none;
|
476
|
+
@include reset-filter();
|
477
|
+
@include bt-opacity(65);
|
478
|
+
@include bt-box-shadow(none);
|
479
|
+
}
|
480
|
+
|
481
|
+
// Button Sizes
|
482
|
+
&.large {
|
483
|
+
font-size: 16px;
|
484
|
+
line-height: normal;
|
485
|
+
padding: 9px 14px 9px;
|
486
|
+
@include border-radius(6px);
|
487
|
+
}
|
488
|
+
&.small {
|
489
|
+
padding: 7px 9px 7px;
|
490
|
+
font-size: 11px;
|
491
|
+
}
|
492
|
+
}
|
493
|
+
// Super jank hack for removing border-radius from IE9 so we can keep filter gradients on alerts and buttons
|
494
|
+
:root .alert-message,
|
495
|
+
:root .btn {
|
496
|
+
border-radius: 0 \0;
|
497
|
+
}
|
498
|
+
|
499
|
+
// Help Firefox not be a jerk about adding extra padding to buttons
|
500
|
+
button.btn,
|
501
|
+
input[type=submit].btn {
|
502
|
+
&::-moz-focus-inner {
|
503
|
+
padding: 0;
|
504
|
+
border: 0;
|
505
|
+
}
|
506
|
+
}
|
507
|
+
|
508
|
+
|
509
|
+
// ERROR STYLES
|
510
|
+
// ------------
|
511
|
+
|
512
|
+
// Base alert styles
|
513
|
+
.alert-message {
|
514
|
+
@include gradientBar(#fceec1, #eedc94); // warning by default
|
515
|
+
margin-bottom: $baseline;
|
516
|
+
padding: 7px 14px;
|
517
|
+
color: $grayDark;
|
518
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
519
|
+
border-width: 1px;
|
520
|
+
border-style: solid;
|
521
|
+
@include border-radius(4px);
|
522
|
+
@include bt-box-shadow(inset 0 1px 0 rgba(255,255,255,.25));
|
523
|
+
|
524
|
+
// Remove extra margin from content
|
525
|
+
h5 {
|
526
|
+
line-height: $baseline;
|
527
|
+
}
|
528
|
+
p {
|
529
|
+
margin-bottom: 0;
|
530
|
+
}
|
531
|
+
div {
|
532
|
+
margin-top: 5px;
|
533
|
+
margin-bottom: 2px;
|
534
|
+
line-height: 28px;
|
535
|
+
}
|
536
|
+
.btn {
|
537
|
+
// Provide actions with buttons
|
538
|
+
@include bt-box-shadow(0 1px 0 rgba(255,255,255,.25));
|
539
|
+
}
|
540
|
+
.close {
|
541
|
+
float: right;
|
542
|
+
margin-top: -2px;
|
543
|
+
color: $black;
|
544
|
+
font-size: 20px;
|
545
|
+
font-weight: bold;
|
546
|
+
text-shadow: 0 1px 0 rgba(255,255,255,1);
|
547
|
+
@include bt-opacity(20);
|
548
|
+
&:hover {
|
549
|
+
color: $black;
|
550
|
+
text-decoration: none;
|
551
|
+
@include bt-opacity(40);
|
552
|
+
}
|
553
|
+
}
|
554
|
+
|
555
|
+
&.block-message {
|
556
|
+
background-image: none;
|
557
|
+
background-color: lighten(#fceec1, 5%);
|
558
|
+
@include reset-filter();
|
559
|
+
padding: 14px;
|
560
|
+
border-color: #fceec1;
|
561
|
+
@include bt-box-shadow(none);
|
562
|
+
|
563
|
+
p {
|
564
|
+
margin-right: 30px;
|
565
|
+
}
|
566
|
+
.alert-actions {
|
567
|
+
margin-top: 5px;
|
568
|
+
}
|
569
|
+
&.error,
|
570
|
+
&.success,
|
571
|
+
&.info {
|
572
|
+
color: $grayDark;
|
573
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
574
|
+
}
|
575
|
+
&.error {
|
576
|
+
background-color: lighten(#f56a66, 25%);
|
577
|
+
border-color: lighten(#f56a66, 20%);
|
578
|
+
}
|
579
|
+
&.success {
|
580
|
+
background-color: lighten(#62c462, 30%);
|
581
|
+
border-color: lighten(#62c462, 25%);
|
582
|
+
}
|
583
|
+
&.info {
|
584
|
+
background-color: lighten(#6bd0ee, 25%);
|
585
|
+
border-color: lighten(#6bd0ee, 20%);
|
586
|
+
}
|
587
|
+
}
|
588
|
+
}
|
589
|
+
|
590
|
+
|
591
|
+
// PAGINATION
|
592
|
+
// ----------
|
593
|
+
|
594
|
+
.pagination {
|
595
|
+
height: $baseline * 2;
|
596
|
+
margin: $baseline 0;
|
597
|
+
ul {
|
598
|
+
float: left;
|
599
|
+
margin: 0;
|
600
|
+
border: 1px solid #ddd;
|
601
|
+
border: 1px solid rgba(0,0,0,.15);
|
602
|
+
@include border-radius(3px);
|
603
|
+
@include bt-box-shadow(0 1px 2px rgba(0,0,0,.05));
|
604
|
+
}
|
605
|
+
li {
|
606
|
+
display: inline;
|
607
|
+
}
|
608
|
+
a {
|
609
|
+
float: left;
|
610
|
+
padding: 0 14px;
|
611
|
+
line-height: ($baseline * 2) - 2;
|
612
|
+
border-right: 1px solid;
|
613
|
+
border-right-color: #ddd;
|
614
|
+
border-right-color: rgba(0,0,0,.15);
|
615
|
+
*border-right-color: #ddd; /* IE6-7 */
|
616
|
+
text-decoration: none;
|
617
|
+
}
|
618
|
+
a:hover,
|
619
|
+
.active a {
|
620
|
+
background-color: lighten($blue, 45%);
|
621
|
+
}
|
622
|
+
.disabled a,
|
623
|
+
.disabled a:hover {
|
624
|
+
background-color: transparent;
|
625
|
+
color: $grayLight;
|
626
|
+
}
|
627
|
+
.next a {
|
628
|
+
border: 0;
|
629
|
+
}
|
630
|
+
}
|
631
|
+
|
632
|
+
|
633
|
+
// WELLS
|
634
|
+
// -----
|
635
|
+
|
636
|
+
.well {
|
637
|
+
background-color: #f5f5f5;
|
638
|
+
margin-bottom: 20px;
|
639
|
+
padding: 19px;
|
640
|
+
min-height: 20px;
|
641
|
+
border: 1px solid #eee;
|
642
|
+
border: 1px solid rgba(0,0,0,.05);
|
643
|
+
@include border-radius(4px);
|
644
|
+
@include bt-box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
|
645
|
+
}
|
646
|
+
|
647
|
+
|
648
|
+
// MODALS
|
649
|
+
// ------
|
650
|
+
|
651
|
+
.modal-backdrop {
|
652
|
+
background-color: rgba(0,0,0,.5);
|
653
|
+
position: fixed;
|
654
|
+
top: 0;
|
655
|
+
left: 0;
|
656
|
+
right: 0;
|
657
|
+
bottom: 0;
|
658
|
+
z-index: 1000;
|
659
|
+
}
|
660
|
+
.modal {
|
661
|
+
position: fixed;
|
662
|
+
top: 50%;
|
663
|
+
left: 50%;
|
664
|
+
z-index: 2000;
|
665
|
+
width: 560px;
|
666
|
+
margin: -280px 0 0 -250px;
|
667
|
+
background-color: $white;
|
668
|
+
border: 1px solid #999;
|
669
|
+
border: 1px solid rgba(0,0,0,.3);
|
670
|
+
*border: 1px solid #999; /* IE6-7 */
|
671
|
+
@include border-radius(6px);
|
672
|
+
@include bt-box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
673
|
+
@include background-clip(padding-box);
|
674
|
+
}
|
675
|
+
.modal-header {
|
676
|
+
border-bottom: 1px solid #eee;
|
677
|
+
padding: 5px 20px;
|
678
|
+
.close {
|
679
|
+
position: absolute;
|
680
|
+
right: 10px;
|
681
|
+
top: 10px;
|
682
|
+
color: #999;
|
683
|
+
line-height:10px;
|
684
|
+
font-size: 18px;
|
685
|
+
}
|
686
|
+
}
|
687
|
+
.modal-body {
|
688
|
+
padding: 20px;
|
689
|
+
}
|
690
|
+
.modal-footer {
|
691
|
+
background-color: #f5f5f5;
|
692
|
+
padding: 14px 20px 15px;
|
693
|
+
border-top: 1px solid #ddd;
|
694
|
+
@include border-radius(0 0 6px 6px);
|
695
|
+
@include bt-box-shadow(inset 0 1px 0 #fff);
|
696
|
+
@include clearfix();
|
697
|
+
margin-bottom: 0;
|
698
|
+
.btn {
|
699
|
+
float: right;
|
700
|
+
margin-left: 10px;
|
701
|
+
}
|
702
|
+
}
|
703
|
+
|
704
|
+
|
705
|
+
// POPOVER ARROWS
|
706
|
+
// --------------
|
707
|
+
|
708
|
+
@mixin popoverArrow-above($arrowWidth: 5px) {
|
709
|
+
bottom: 0;
|
710
|
+
left: 50%;
|
711
|
+
margin-left: -$arrowWidth;
|
712
|
+
border-left: $arrowWidth solid transparent;
|
713
|
+
border-right: $arrowWidth solid transparent;
|
714
|
+
border-top: $arrowWidth solid #000;
|
715
|
+
}
|
716
|
+
@mixin popoverArrow-left($arrowWidth: 5px) {
|
717
|
+
top: 50%;
|
718
|
+
right: 0;
|
719
|
+
margin-top: -$arrowWidth;
|
720
|
+
border-top: $arrowWidth solid transparent;
|
721
|
+
border-bottom: $arrowWidth solid transparent;
|
722
|
+
border-left: $arrowWidth solid #000;
|
723
|
+
}
|
724
|
+
@mixin popoverArrow-below($arrowWidth: 5px) {
|
725
|
+
top: 0;
|
726
|
+
left: 50%;
|
727
|
+
margin-left: -$arrowWidth;
|
728
|
+
border-left: $arrowWidth solid transparent;
|
729
|
+
border-right: $arrowWidth solid transparent;
|
730
|
+
border-bottom: $arrowWidth solid #000;
|
731
|
+
}
|
732
|
+
@mixin popoverArrow-right($arrowWidth: 5px) {
|
733
|
+
top: 50%;
|
734
|
+
left: 0;
|
735
|
+
margin-top: -$arrowWidth;
|
736
|
+
border-top: $arrowWidth solid transparent;
|
737
|
+
border-bottom: $arrowWidth solid transparent;
|
738
|
+
border-right: $arrowWidth solid #000;
|
739
|
+
}
|
740
|
+
|
741
|
+
|
742
|
+
// TWIPSY
|
743
|
+
// ------
|
744
|
+
|
745
|
+
.twipsy {
|
746
|
+
display: block;
|
747
|
+
position: absolute;
|
748
|
+
visibility: visible;
|
749
|
+
padding: 5px;
|
750
|
+
font-size: 11px;
|
751
|
+
z-index: 1000;
|
752
|
+
@include bt-opacity(80);
|
753
|
+
&.above .twipsy-arrow {@include popoverArrow-above(); }
|
754
|
+
&.left .twipsy-arrow {@include popoverArrow-left(); }
|
755
|
+
&.below .twipsy-arrow {@include popoverArrow-below(); }
|
756
|
+
&.right .twipsy-arrow {@include popoverArrow-right(); }
|
757
|
+
}
|
758
|
+
.twipsy-inner {
|
759
|
+
padding: 3px 8px;
|
760
|
+
background-color: #000;
|
761
|
+
color: white;
|
762
|
+
text-align: center;
|
763
|
+
max-width: 200px;
|
764
|
+
text-decoration: none;
|
765
|
+
@include border-radius(4px);
|
766
|
+
}
|
767
|
+
.twipsy-arrow {
|
768
|
+
position: absolute;
|
769
|
+
width: 0;
|
770
|
+
height: 0;
|
771
|
+
}
|
772
|
+
|
773
|
+
|
774
|
+
// POPOVERS
|
775
|
+
// --------
|
776
|
+
|
777
|
+
.popover {
|
778
|
+
position: absolute;
|
779
|
+
top: 0;
|
780
|
+
left: 0;
|
781
|
+
z-index: 1000;
|
782
|
+
padding: 5px;
|
783
|
+
display: none;
|
784
|
+
&.above .arrow { @include popoverArrow-above(); }
|
785
|
+
&.right .arrow { @include popoverArrow-right(); }
|
786
|
+
&.below .arrow { @include popoverArrow-below(); }
|
787
|
+
&.left .arrow { @include popoverArrow-left(); }
|
788
|
+
.arrow {
|
789
|
+
position: absolute;
|
790
|
+
width: 0;
|
791
|
+
height: 0;
|
792
|
+
}
|
793
|
+
.inner {
|
794
|
+
background: #333;
|
795
|
+
background: rgba(0,0,0,.8);
|
796
|
+
padding: 3px;
|
797
|
+
overflow: hidden;
|
798
|
+
width: 280px;
|
799
|
+
@include border-radius(6px);
|
800
|
+
@include bt-box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
801
|
+
}
|
802
|
+
.title {
|
803
|
+
background-color: #f5f5f5;
|
804
|
+
padding: 9px 15px;
|
805
|
+
line-height: 1;
|
806
|
+
@include border-radius(3px 3px 0 0);
|
807
|
+
border-bottom:1px solid #eee;
|
808
|
+
}
|
809
|
+
.content {
|
810
|
+
background-color: $white;
|
811
|
+
padding: 14px;
|
812
|
+
@include border-radius(0 0 3px 3px);
|
813
|
+
@include background-clip(padding-box);
|
814
|
+
p, ul, ol {
|
815
|
+
margin-bottom: 0;
|
816
|
+
}
|
817
|
+
}
|
818
|
+
}
|