compass_twitter_bootstrap 2.0.3 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +6 -0
- data/README.md +41 -7
- data/build/convert.rb +27 -11
- data/lib/compass_twitter_bootstrap/version.rb +1 -1
- data/stylesheets/_compass_twitter_bootstrap.scss +2 -1
- data/stylesheets/_compass_twitter_bootstrap_awesome.scss +1 -1
- data/stylesheets/_compass_twitter_bootstrap_responsive.scss +1 -1
- data/stylesheets/compass_twitter_bootstrap/_accordion.scss +4 -3
- data/stylesheets/compass_twitter_bootstrap/_alerts.scss +31 -10
- data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +14 -14
- data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +91 -55
- data/stylesheets/compass_twitter_bootstrap/_buttons.scss +126 -84
- data/stylesheets/compass_twitter_bootstrap/_carousel.scss +33 -23
- data/stylesheets/compass_twitter_bootstrap/_close.scss +7 -5
- data/stylesheets/compass_twitter_bootstrap/_code.scss +12 -8
- data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +9 -7
- data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +112 -22
- data/stylesheets/compass_twitter_bootstrap/_font-awesome.scss +258 -196
- data/stylesheets/compass_twitter_bootstrap/_forms.scss +262 -161
- data/stylesheets/compass_twitter_bootstrap/_grid.scss +18 -2
- data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +11 -8
- data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +42 -26
- data/stylesheets/compass_twitter_bootstrap/_layouts.scss +3 -4
- data/stylesheets/compass_twitter_bootstrap/_media.scss +55 -0
- data/stylesheets/compass_twitter_bootstrap/_mixins.scss +243 -189
- data/stylesheets/compass_twitter_bootstrap/_modals.scss +28 -23
- data/stylesheets/compass_twitter_bootstrap/_navbar.scss +269 -143
- data/stylesheets/compass_twitter_bootstrap/_navs.scss +59 -46
- data/stylesheets/compass_twitter_bootstrap/_pager.scss +17 -12
- data/stylesheets/compass_twitter_bootstrap/_pagination.scss +92 -27
- data/stylesheets/compass_twitter_bootstrap/_popovers.scss +116 -36
- data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +35 -30
- data/stylesheets/compass_twitter_bootstrap/_reset.scss +101 -11
- data/stylesheets/compass_twitter_bootstrap/_responsive-1200px-min.scss +9 -7
- data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +115 -71
- data/stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss +8 -6
- data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +53 -14
- data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +17 -15
- data/stylesheets/compass_twitter_bootstrap/_responsive.scss +48 -0
- data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +27 -4
- data/stylesheets/compass_twitter_bootstrap/_sprites.scss +24 -22
- data/stylesheets/compass_twitter_bootstrap/_tables.scss +122 -61
- data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +12 -7
- data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +50 -15
- data/stylesheets/compass_twitter_bootstrap/_type.scss +93 -93
- data/stylesheets/compass_twitter_bootstrap/_utilities.scss +9 -2
- data/stylesheets/compass_twitter_bootstrap/_variables.scss +134 -38
- data/stylesheets/compass_twitter_bootstrap/_wells.scss +11 -10
- data/stylesheets_sass/_compass_twitter_bootstrap.sass +2 -1
- data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +1 -1
- data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +1 -1
- data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +4 -3
- data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +27 -9
- data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +12 -13
- data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +93 -55
- data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +113 -88
- data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +31 -23
- data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +5 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +12 -9
- data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +7 -6
- data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +105 -21
- data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +228 -31
- data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +255 -155
- data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +16 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +10 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +38 -31
- data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +3 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_media.sass +48 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +215 -174
- data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +25 -26
- data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +229 -134
- data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +53 -46
- data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +16 -12
- data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +78 -23
- data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +106 -40
- data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +35 -30
- data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +80 -12
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-1200px-min.sass +8 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +89 -54
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass +7 -6
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +38 -13
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +18 -17
- data/stylesheets_sass/compass_twitter_bootstrap/_responsive.sass +44 -0
- data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +24 -4
- data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +25 -8
- data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +110 -83
- data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +11 -7
- data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +43 -19
- data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +123 -75
- data/stylesheets_sass/compass_twitter_bootstrap/_utilities.sass +7 -2
- data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +141 -37
- data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +10 -9
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +247 -167
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/bootstrap-affix.js +117 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +13 -4
- data/vendor/assets/javascripts/bootstrap-all.js +2 -1
- data/vendor/assets/javascripts/bootstrap-button.js +17 -8
- data/vendor/assets/javascripts/bootstrap-carousel.js +30 -14
- data/vendor/assets/javascripts/bootstrap-collapse.js +24 -14
- data/vendor/assets/javascripts/bootstrap-dropdown.js +80 -19
- data/vendor/assets/javascripts/bootstrap-modal.js +111 -84
- data/vendor/assets/javascripts/bootstrap-popover.js +21 -5
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +21 -10
- data/vendor/assets/javascripts/bootstrap-tab.js +17 -8
- data/vendor/assets/javascripts/bootstrap-tooltip.js +36 -24
- data/vendor/assets/javascripts/bootstrap-transition.js +6 -7
- data/vendor/assets/javascripts/bootstrap-typeahead.js +87 -49
- metadata +17 -7
@@ -1,15 +1,17 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Wells
|
3
|
+
// --------------------------------------------------
|
3
4
|
|
5
|
+
|
6
|
+
// Base class
|
4
7
|
.well {
|
5
8
|
min-height: 20px;
|
6
9
|
padding: 19px;
|
7
10
|
margin-bottom: 20px;
|
8
|
-
background-color:
|
9
|
-
border: 1px solid
|
10
|
-
border
|
11
|
-
@include
|
12
|
-
@include bootstrap-box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
|
11
|
+
background-color: $wellBackground;
|
12
|
+
border: 1px solid darken($wellBackground, 7%);
|
13
|
+
@include ctb-border-radius($baseBorderRadius);
|
14
|
+
@include ctb-box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
|
13
15
|
blockquote {
|
14
16
|
border-color: #ddd;
|
15
17
|
border-color: rgba(0,0,0,.15);
|
@@ -19,10 +21,9 @@
|
|
19
21
|
// Sizes
|
20
22
|
.well-large {
|
21
23
|
padding: 24px;
|
22
|
-
@include
|
24
|
+
@include ctb-border-radius($borderRadiusLarge);
|
23
25
|
}
|
24
26
|
.well-small {
|
25
27
|
padding: 9px;
|
26
|
-
@include
|
28
|
+
@include ctb-border-radius($borderRadiusSmall);
|
27
29
|
}
|
28
|
-
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Bootstrap v2.0
|
2
|
+
* Bootstrap v2.1.0
|
3
3
|
*
|
4
4
|
* Copyright 2012 Twitter, Inc
|
5
5
|
* Licensed under the Apache License v2.0
|
@@ -58,6 +58,7 @@
|
|
58
58
|
|
59
59
|
// Components: Misc
|
60
60
|
@import compass_twitter_bootstrap/thumbnails
|
61
|
+
@import compass_twitter_bootstrap/media
|
61
62
|
@import compass_twitter_bootstrap/labels-badges
|
62
63
|
@import compass_twitter_bootstrap/progress-bars
|
63
64
|
@import compass_twitter_bootstrap/accordion
|
@@ -1,5 +1,6 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Accordion
|
3
|
+
// --------------------------------------------------
|
3
4
|
|
4
5
|
// Parent container
|
5
6
|
.accordion
|
@@ -9,7 +10,7 @@
|
|
9
10
|
.accordion-group
|
10
11
|
margin-bottom: 2px
|
11
12
|
border: 1px solid #e5e5e5
|
12
|
-
+
|
13
|
+
+ctb-border-radius($baseBorderRadius)
|
13
14
|
|
14
15
|
.accordion-heading
|
15
16
|
border-bottom: 0
|
@@ -1,47 +1,65 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Alerts
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Base styles
|
6
|
+
// -------------------------
|
3
7
|
|
4
|
-
// Base alert styles
|
5
8
|
.alert
|
6
9
|
padding: 8px 35px 8px 14px
|
7
10
|
margin-bottom: $baseLineHeight
|
8
11
|
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
|
9
12
|
background-color: $warningBackground
|
10
13
|
border: 1px solid $warningBorder
|
11
|
-
+
|
14
|
+
+ctb-border-radius($baseBorderRadius)
|
15
|
+
|
16
|
+
.alert,
|
17
|
+
.alert h4
|
18
|
+
// Specified for the h4 to prevent conflicts of changing $headingsColor
|
12
19
|
color: $warningText
|
13
20
|
|
14
|
-
.alert
|
15
|
-
|
21
|
+
.alert h4
|
22
|
+
margin: 0
|
16
23
|
|
17
24
|
// Adjust close link position
|
18
25
|
.alert .close
|
19
26
|
position: relative
|
20
27
|
top: -2px
|
21
28
|
right: -21px
|
22
|
-
line-height:
|
29
|
+
line-height: $baseLineHeight
|
23
30
|
|
24
31
|
// Alternate styles
|
25
|
-
//
|
32
|
+
// -------------------------
|
26
33
|
|
27
34
|
.alert-success
|
28
35
|
background-color: $successBackground
|
29
36
|
border-color: $successBorder
|
30
37
|
color: $successText
|
31
38
|
|
39
|
+
.alert-success h4
|
40
|
+
color: $successText
|
41
|
+
|
32
42
|
.alert-danger,
|
33
43
|
.alert-error
|
34
44
|
background-color: $errorBackground
|
35
45
|
border-color: $errorBorder
|
36
46
|
color: $errorText
|
37
47
|
|
48
|
+
.alert-danger h4,
|
49
|
+
.alert-error h4
|
50
|
+
color: $errorText
|
51
|
+
|
38
52
|
.alert-info
|
39
53
|
background-color: $infoBackground
|
40
54
|
border-color: $infoBorder
|
41
55
|
color: $infoText
|
42
56
|
|
57
|
+
.alert-info h4
|
58
|
+
color: $infoText
|
59
|
+
|
43
60
|
// Block alerts
|
44
|
-
//
|
61
|
+
// -------------------------
|
62
|
+
|
45
63
|
.alert-block
|
46
64
|
padding-top: 14px
|
47
65
|
padding-bottom: 14px
|
@@ -1,20 +1,19 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Breadcrumbs
|
3
|
+
// --------------------------------------------------
|
3
4
|
|
4
5
|
.breadcrumb
|
5
|
-
padding:
|
6
|
+
padding: 8px 15px
|
6
7
|
margin: 0 0 $baseLineHeight
|
7
8
|
list-style: none
|
8
|
-
|
9
|
-
border
|
10
|
-
|
11
|
-
+bootstrap-box-shadow(inset 0 1px 0 $white)
|
12
|
-
li
|
9
|
+
background-color: #f5f5f5
|
10
|
+
+ctb-border-radius($baseBorderRadius)
|
11
|
+
> li
|
13
12
|
display: inline-block
|
14
|
-
+
|
13
|
+
+ctb-ie7-inline-block
|
15
14
|
text-shadow: 0 1px 0 $white
|
16
|
-
|
17
|
-
|
15
|
+
> .divider
|
16
|
+
padding: 0 5px
|
17
|
+
color: #ccc
|
18
|
+
> .active
|
18
19
|
color: $grayLight
|
19
|
-
.active a
|
20
|
-
color: $grayDark
|
@@ -1,12 +1,19 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
//
|
2
|
+
// Button groups
|
3
|
+
// --------------------------------------------------
|
3
4
|
|
4
5
|
// Make the div behave like a button
|
5
6
|
.btn-group
|
6
7
|
position: relative
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
display: inline-block
|
9
|
+
+ctb-ie7-inline-block
|
10
|
+
font-size: 0
|
11
|
+
// remove as part 1 of font-size inline-block hack
|
12
|
+
vertical-align: middle
|
13
|
+
// match .btn alignment given font-size hack above
|
14
|
+
white-space: nowrap
|
15
|
+
// prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page)
|
16
|
+
+ctb-ie7-restore-left-whitespace
|
10
17
|
|
11
18
|
// Space out series of button groups
|
12
19
|
.btn-group + .btn-group
|
@@ -14,58 +21,62 @@
|
|
14
21
|
|
15
22
|
// Optional: Group multiple button groups together for a toolbar
|
16
23
|
.btn-toolbar
|
24
|
+
font-size: 0
|
25
|
+
// Hack to remove whitespace that results from using inline-block
|
17
26
|
margin-top: $baseLineHeight / 2
|
18
27
|
margin-bottom: $baseLineHeight / 2
|
19
|
-
.btn
|
20
|
-
|
21
|
-
|
28
|
+
> .btn + .btn,
|
29
|
+
> .btn-group + .btn,
|
30
|
+
> .btn + .btn-group
|
31
|
+
margin-left: 5px
|
22
32
|
|
23
33
|
// Float them, remove border radius, then re-add to first and last elements
|
24
34
|
.btn-group > .btn
|
25
35
|
position: relative
|
26
|
-
|
36
|
+
+ctb-border-radius(0)
|
37
|
+
|
38
|
+
.btn-group > .btn + .btn
|
27
39
|
margin-left: -1px
|
28
|
-
|
40
|
+
|
41
|
+
.btn-group > .btn,
|
42
|
+
.btn-group > .dropdown-menu,
|
43
|
+
.btn-group > .popover
|
44
|
+
font-size: $baseFontSize
|
45
|
+
// redeclare as part 2 of font-size inline-block hack
|
46
|
+
|
47
|
+
// Reset fonts for other sizes
|
48
|
+
.btn-group > .btn-mini
|
49
|
+
font-size: $fontSizeMini
|
50
|
+
|
51
|
+
.btn-group > .btn-small
|
52
|
+
font-size: $fontSizeSmall
|
53
|
+
|
54
|
+
.btn-group > .btn-large
|
55
|
+
font-size: $fontSizeLarge
|
29
56
|
|
30
57
|
// 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
|
31
58
|
.btn-group > .btn:first-child
|
32
59
|
margin-left: 0
|
33
|
-
-
|
34
|
-
-
|
35
|
-
border-top-left-radius: 4px
|
36
|
-
-webkit-border-bottom-left-radius: 4px
|
37
|
-
-moz-border-radius-bottomleft: 4px
|
38
|
-
border-bottom-left-radius: 4px
|
60
|
+
+ctb-border-top-left-radius($baseBorderRadius)
|
61
|
+
+ctb-border-bottom-left-radius($baseBorderRadius)
|
39
62
|
|
40
63
|
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
|
41
64
|
|
42
65
|
.btn-group > .btn:last-child,
|
43
66
|
.btn-group > .dropdown-toggle
|
44
|
-
-
|
45
|
-
-
|
46
|
-
border-top-right-radius: 4px
|
47
|
-
-webkit-border-bottom-right-radius: 4px
|
48
|
-
-moz-border-radius-bottomright: 4px
|
49
|
-
border-bottom-right-radius: 4px
|
67
|
+
+ctb-border-top-right-radius($baseBorderRadius)
|
68
|
+
+ctb-border-bottom-right-radius($baseBorderRadius)
|
50
69
|
|
51
70
|
// Reset corners for large buttons
|
52
71
|
.btn-group > .btn.large:first-child
|
53
72
|
margin-left: 0
|
54
|
-
-
|
55
|
-
-
|
56
|
-
border-top-left-radius: 6px
|
57
|
-
-webkit-border-bottom-left-radius: 6px
|
58
|
-
-moz-border-radius-bottomleft: 6px
|
59
|
-
border-bottom-left-radius: 6px
|
73
|
+
+ctb-border-top-left-radius($borderRadiusLarge)
|
74
|
+
+ctb-border-bottom-left-radius($borderRadiusLarge)
|
60
75
|
|
61
76
|
.btn-group > .btn.large:last-child,
|
62
77
|
.btn-group > .large.dropdown-toggle
|
63
|
-
-
|
64
|
-
-
|
65
|
-
border-top-right-radius: 6px
|
66
|
-
-webkit-border-bottom-right-radius: 6px
|
67
|
-
-moz-border-radius-bottomright: 6px
|
68
|
-
border-bottom-right-radius: 6px
|
78
|
+
+ctb-border-top-right-radius($borderRadiusLarge)
|
79
|
+
+ctb-border-bottom-right-radius($borderRadiusLarge)
|
69
80
|
|
70
81
|
// On hover/focus/active, bring the proper btn to front
|
71
82
|
|
@@ -85,31 +96,35 @@
|
|
85
96
|
// ----------------------
|
86
97
|
|
87
98
|
// Give the line between buttons some depth
|
88
|
-
.btn-group > .dropdown-toggle
|
99
|
+
.btn-group > .btn + .dropdown-toggle
|
89
100
|
padding-left: 8px
|
90
101
|
padding-right: 8px
|
91
|
-
+
|
92
|
-
*padding-top:
|
93
|
-
*padding-bottom:
|
102
|
+
+ctb-box-shadow(#{inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05)})
|
103
|
+
*padding-top: 5px
|
104
|
+
*padding-bottom: 5px
|
94
105
|
|
95
|
-
.btn-group > .btn-mini.dropdown-toggle
|
106
|
+
.btn-group > .btn-mini + .dropdown-toggle
|
96
107
|
padding-left: 5px
|
97
108
|
padding-right: 5px
|
109
|
+
*padding-top: 2px
|
110
|
+
*padding-bottom: 2px
|
98
111
|
|
99
|
-
.btn-group > .btn-small.dropdown-toggle
|
100
|
-
*padding-top:
|
112
|
+
.btn-group > .btn-small + .dropdown-toggle
|
113
|
+
*padding-top: 5px
|
101
114
|
*padding-bottom: 4px
|
102
115
|
|
103
|
-
.btn-group > .btn-large.dropdown-toggle
|
116
|
+
.btn-group > .btn-large + .dropdown-toggle
|
104
117
|
padding-left: 12px
|
105
118
|
padding-right: 12px
|
119
|
+
*padding-top: 7px
|
120
|
+
*padding-bottom: 7px
|
106
121
|
|
107
122
|
.btn-group.open
|
108
123
|
// The clickable button for toggling the menu
|
109
124
|
// Remove the gradient and set the same inset shadow as the :active state
|
110
125
|
.dropdown-toggle
|
111
126
|
background-image: none
|
112
|
-
+
|
127
|
+
+ctb-box-shadow(#{inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05)})
|
113
128
|
// Keep the hover's background when dropdown is open
|
114
129
|
.btn.dropdown-toggle
|
115
130
|
background-color: $btnBackgroundHighlight
|
@@ -128,30 +143,24 @@
|
|
128
143
|
|
129
144
|
// Reposition the caret
|
130
145
|
.btn .caret
|
131
|
-
margin-top:
|
146
|
+
margin-top: 8px
|
132
147
|
margin-left: 0
|
133
148
|
|
134
|
-
.btn:hover .caret,
|
135
|
-
.open.btn-group .caret
|
136
|
-
+bootstrap-opacity(100)
|
137
|
-
|
138
149
|
// Carets in other button sizes
|
139
|
-
.btn-mini .caret
|
140
|
-
margin-top: 5px
|
141
150
|
|
142
|
-
.btn-
|
151
|
+
.btn-mini .caret,
|
152
|
+
.btn-small .caret,
|
153
|
+
.btn-large .caret
|
143
154
|
margin-top: 6px
|
144
155
|
|
145
156
|
.btn-large .caret
|
146
|
-
margin-top: 6px
|
147
157
|
border-left-width: 5px
|
148
158
|
border-right-width: 5px
|
149
159
|
border-top-width: 5px
|
150
160
|
|
151
161
|
// Upside down carets for .dropup
|
152
162
|
.dropup .btn-large .caret
|
153
|
-
border-bottom: 5px
|
154
|
-
border-top: 0
|
163
|
+
border-bottom-width: 5px
|
155
164
|
|
156
165
|
// Account for other colors
|
157
166
|
|
@@ -164,4 +173,33 @@
|
|
164
173
|
.caret
|
165
174
|
border-top-color: $white
|
166
175
|
border-bottom-color: $white
|
167
|
-
|
176
|
+
|
177
|
+
// Vertical button groups
|
178
|
+
// ----------------------
|
179
|
+
|
180
|
+
.btn-group-vertical
|
181
|
+
display: inline-block
|
182
|
+
// makes buttons only take up the width they need
|
183
|
+
+ctb-ie7-inline-block
|
184
|
+
|
185
|
+
.btn-group-vertical > .btn
|
186
|
+
display: block
|
187
|
+
float: none
|
188
|
+
max-width: 100%
|
189
|
+
+ctb-border-radius(0)
|
190
|
+
|
191
|
+
.btn-group-vertical > .btn + .btn
|
192
|
+
margin-left: 0
|
193
|
+
margin-top: -1px
|
194
|
+
|
195
|
+
.btn-group-vertical > .btn:first-child
|
196
|
+
+ctb-border-radius($baseBorderRadius $baseBorderRadius 0 0)
|
197
|
+
|
198
|
+
.btn-group-vertical > .btn:last-child
|
199
|
+
+ctb-border-radius(0 0 $baseBorderRadius $baseBorderRadius)
|
200
|
+
|
201
|
+
.btn-group-vertical > .btn-large:first-child
|
202
|
+
+ctb-border-radius($borderRadiusLarge $borderRadiusLarge 0 0)
|
203
|
+
|
204
|
+
.btn-group-vertical > .btn-large:last-child
|
205
|
+
+ctb-border-radius(0 0 $borderRadiusLarge $borderRadiusLarge)
|
@@ -1,5 +1,9 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
@import compass_twitter_bootstrap/mixins
|
2
|
+
@import compass_twitter_bootstrap/variables
|
3
|
+
|
4
|
+
//
|
5
|
+
// Buttons
|
6
|
+
// --------------------------------------------------
|
3
7
|
|
4
8
|
// Base styles
|
5
9
|
// --------------------------------------------------
|
@@ -7,112 +11,106 @@
|
|
7
11
|
// Core
|
8
12
|
.btn
|
9
13
|
display: inline-block
|
10
|
-
+
|
11
|
-
padding: 4px
|
14
|
+
+ctb-ie7-inline-block
|
15
|
+
padding: 4px 12px
|
12
16
|
margin-bottom: 0
|
13
17
|
// For input.btn
|
14
18
|
font-size: $baseFontSize
|
15
19
|
line-height: $baseLineHeight
|
16
|
-
*line-height: 20px
|
17
|
-
color: $grayDark
|
18
20
|
text-align: center
|
19
|
-
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75)
|
20
21
|
vertical-align: middle
|
21
22
|
cursor: pointer
|
22
|
-
+
|
23
|
+
+ctb-buttonBackground($btnBackground, $btnBackgroundHighlight, $grayDark, 0 1px 1px rgba(255, 255, 255, 0.75))
|
23
24
|
border: 1px solid $btnBorder
|
24
25
|
*border: 0
|
25
26
|
// Remove the border to prevent IE7's black border on input:focus
|
26
27
|
border-bottom-color: darken($btnBorder, 10%)
|
27
|
-
+
|
28
|
-
+
|
28
|
+
+ctb-border-radius($baseBorderRadius)
|
29
|
+
+ctb-ie7-restore-left-whitespace
|
29
30
|
// Give IE7 some love
|
30
|
-
+
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
//
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
outline: 0
|
56
|
-
+bootstrap-box-shadow("inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)")
|
57
|
-
|
58
|
-
// Disabled state
|
59
|
-
|
60
|
-
.btn.disabled,
|
61
|
-
.btn[disabled]
|
62
|
-
cursor: default
|
63
|
-
background-color: darken($white, 10%)
|
64
|
-
background-image: none
|
65
|
-
+bootstrap-opacity(65)
|
66
|
-
+bootstrap-box-shadow(none)
|
31
|
+
+ctb-box-shadow(#{inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05)})
|
32
|
+
// Hover state
|
33
|
+
&:hover
|
34
|
+
color: $grayDark
|
35
|
+
text-decoration: none
|
36
|
+
background-position: 0 -15px
|
37
|
+
// transition is only when going to hover, otherwise the background
|
38
|
+
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
39
|
+
+ctb-transition(background-position 0.1s linear)
|
40
|
+
// Focus state for keyboard and accessibility
|
41
|
+
&:focus
|
42
|
+
+ctb-tab-focus
|
43
|
+
// Active state
|
44
|
+
&.active,
|
45
|
+
&:active
|
46
|
+
background-image: none
|
47
|
+
outline: 0
|
48
|
+
+ctb-box-shadow(#{inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05)})
|
49
|
+
// Disabled state
|
50
|
+
&.disabled,
|
51
|
+
&[disabled]
|
52
|
+
cursor: default
|
53
|
+
background-image: none
|
54
|
+
+ctb-opacity(65)
|
55
|
+
+ctb-box-shadow(none)
|
67
56
|
|
68
57
|
// Button Sizes
|
69
58
|
// --------------------------------------------------
|
70
59
|
|
71
60
|
// Large
|
72
61
|
.btn-large
|
73
|
-
padding:
|
74
|
-
font-size: $
|
75
|
-
|
76
|
-
+bootstrap-border-radius(5px)
|
62
|
+
padding: $paddingLarge
|
63
|
+
font-size: $fontSizeLarge
|
64
|
+
+ctb-border-radius($borderRadiusLarge)
|
77
65
|
|
78
|
-
.btn-large [class^="icon-"]
|
79
|
-
|
66
|
+
.btn-large [class^="icon-"],
|
67
|
+
.btn-large [class*=" icon-"]
|
68
|
+
margin-top: 4px
|
80
69
|
|
81
70
|
// Small
|
82
71
|
.btn-small
|
83
|
-
padding:
|
84
|
-
font-size: $
|
85
|
-
|
72
|
+
padding: $paddingSmall
|
73
|
+
font-size: $fontSizeSmall
|
74
|
+
+ctb-border-radius($borderRadiusSmall)
|
86
75
|
|
87
|
-
.btn-small [class^="icon-"]
|
76
|
+
.btn-small [class^="icon-"],
|
77
|
+
.btn-small [class*=" icon-"]
|
78
|
+
margin-top: 0
|
79
|
+
|
80
|
+
.btn-mini [class^="icon-"],
|
81
|
+
.btn-mini [class*=" icon-"]
|
88
82
|
margin-top: -1px
|
89
83
|
|
90
84
|
// Mini
|
91
85
|
.btn-mini
|
92
|
-
padding:
|
93
|
-
font-size: $
|
94
|
-
|
95
|
-
|
96
|
-
// Alternate buttons
|
97
|
-
// --------------------------------------------------
|
86
|
+
padding: $paddingMini
|
87
|
+
font-size: $fontSizeMini
|
88
|
+
+ctb-border-radius($borderRadiusSmall)
|
98
89
|
|
99
|
-
//
|
90
|
+
// Block button
|
100
91
|
// -------------------------
|
101
92
|
|
102
|
-
.btn-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
.btn-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
93
|
+
.btn-block
|
94
|
+
display: block
|
95
|
+
width: 100%
|
96
|
+
padding-left: 0
|
97
|
+
padding-right: 0
|
98
|
+
+ctb-box-sizing(border-box)
|
99
|
+
|
100
|
+
// Vertically space out multiple block buttons
|
101
|
+
.btn-block + .btn-block
|
102
|
+
margin-top: 5px
|
103
|
+
|
104
|
+
// Specificity overrides
|
105
|
+
|
106
|
+
input[type="submit"],
|
107
|
+
input[type="reset"],
|
108
|
+
input[type="button"]
|
109
|
+
&.btn-block
|
110
|
+
width: 100%
|
111
|
+
|
112
|
+
// Alternate buttons
|
113
|
+
// --------------------------------------------------
|
116
114
|
|
117
115
|
// Provide *some* extra contrast for those who can get it
|
118
116
|
|
@@ -128,31 +126,31 @@
|
|
128
126
|
// -------------------------
|
129
127
|
.btn
|
130
128
|
// reset here as of 2.0.3 due to Recess property order
|
131
|
-
border-color: #
|
132
|
-
border-color: rgba(0, 0, 0, 0.
|
129
|
+
border-color: #c5c5c5
|
130
|
+
border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25)
|
133
131
|
|
134
132
|
.btn-primary
|
135
|
-
+
|
133
|
+
+ctb-buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight)
|
136
134
|
|
137
135
|
// Warning appears are orange
|
138
136
|
.btn-warning
|
139
|
-
+
|
137
|
+
+ctb-buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight)
|
140
138
|
|
141
139
|
// Danger and error appear as red
|
142
140
|
.btn-danger
|
143
|
-
+
|
141
|
+
+ctb-buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight)
|
144
142
|
|
145
143
|
// Success appears as green
|
146
144
|
.btn-success
|
147
|
-
+
|
145
|
+
+ctb-buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight)
|
148
146
|
|
149
147
|
// Info appears as a neutral blue
|
150
148
|
.btn-info
|
151
|
-
+
|
149
|
+
+ctb-buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight)
|
152
150
|
|
153
151
|
// Inverse appears as dark gray
|
154
152
|
.btn-inverse
|
155
|
-
+
|
153
|
+
+ctb-buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight)
|
156
154
|
|
157
155
|
// Cross-browser Jank
|
158
156
|
// --------------------------------------------------
|
@@ -164,8 +162,8 @@ input[type="submit"].btn
|
|
164
162
|
padding: 0
|
165
163
|
border: 0
|
166
164
|
// IE7 has some default padding on button controls
|
167
|
-
*padding-top:
|
168
|
-
*padding-bottom:
|
165
|
+
*padding-top: 3px
|
166
|
+
*padding-bottom: 3px
|
169
167
|
&.btn-large
|
170
168
|
*padding-top: 7px
|
171
169
|
*padding-bottom: 7px
|
@@ -175,3 +173,30 @@ input[type="submit"].btn
|
|
175
173
|
&.btn-mini
|
176
174
|
*padding-top: 1px
|
177
175
|
*padding-bottom: 1px
|
176
|
+
|
177
|
+
// Link buttons
|
178
|
+
// --------------------------------------------------
|
179
|
+
|
180
|
+
// Make a button look and behave like a link
|
181
|
+
|
182
|
+
.btn-link,
|
183
|
+
.btn-link:active,
|
184
|
+
.btn-link[disabled]
|
185
|
+
background-color: transparent
|
186
|
+
background-image: none
|
187
|
+
+ctb-box-shadow(none)
|
188
|
+
|
189
|
+
.btn-link
|
190
|
+
border-color: transparent
|
191
|
+
cursor: pointer
|
192
|
+
color: $linkColor
|
193
|
+
+ctb-border-radius(0)
|
194
|
+
|
195
|
+
.btn-link:hover
|
196
|
+
color: $linkColorHover
|
197
|
+
text-decoration: underline
|
198
|
+
background-color: transparent
|
199
|
+
|
200
|
+
.btn-link[disabled]:hover
|
201
|
+
color: $grayDark
|
202
|
+
text-decoration: none
|