compass_twitter_bootstrap 2.0.3 → 2.2.2
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/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,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
|
|
|
5
9
|
// Base styles
|
|
@@ -8,63 +12,57 @@
|
|
|
8
12
|
// Core
|
|
9
13
|
.btn {
|
|
10
14
|
display: inline-block;
|
|
11
|
-
@include
|
|
12
|
-
padding: 4px
|
|
15
|
+
@include ctb-ie7-inline-block();
|
|
16
|
+
padding: 4px 12px;
|
|
13
17
|
margin-bottom: 0; // 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,.75);
|
|
20
21
|
vertical-align: middle;
|
|
21
22
|
cursor: pointer;
|
|
22
|
-
@include
|
|
23
|
+
@include ctb-buttonBackground($btnBackground, $btnBackgroundHighlight, $grayDark, 0 1px 1px rgba(255,255,255,.75));
|
|
23
24
|
border: 1px solid $btnBorder;
|
|
24
25
|
*border: 0; // Remove the border to prevent IE7's black border on input:focus
|
|
25
26
|
border-bottom-color: darken($btnBorder, 10%);
|
|
26
|
-
@include
|
|
27
|
-
@include
|
|
28
|
-
@include
|
|
29
|
-
|
|
27
|
+
@include ctb-border-radius($baseBorderRadius);
|
|
28
|
+
@include ctb-ie7-restore-left-whitespace(); // Give IE7 some love
|
|
29
|
+
@include ctb-box-shadow(#{inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)});
|
|
30
|
+
|
|
31
|
+
// Hover state
|
|
32
|
+
&:hover {
|
|
33
|
+
color: $grayDark;
|
|
34
|
+
text-decoration: none;
|
|
35
|
+
background-position: 0 -15px;
|
|
36
|
+
|
|
37
|
+
// transition is only when going to hover, otherwise the background
|
|
38
|
+
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
|
39
|
+
@include ctb-transition(background-position .1s linear);
|
|
40
|
+
}
|
|
30
41
|
|
|
31
|
-
//
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
background-color: darken($white, 10%);
|
|
36
|
-
*background-color: darken($white, 15%); /* Buttons in IE7 don't get borders, so darken on hover */
|
|
37
|
-
background-position: 0 -15px;
|
|
42
|
+
// Focus state for keyboard and accessibility
|
|
43
|
+
&:focus {
|
|
44
|
+
@include ctb-tab-focus();
|
|
45
|
+
}
|
|
38
46
|
|
|
39
|
-
//
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
47
|
+
// Active state
|
|
48
|
+
&.active,
|
|
49
|
+
&:active {
|
|
50
|
+
background-image: none;
|
|
51
|
+
outline: 0;
|
|
52
|
+
@include ctb-box-shadow(#{inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)});
|
|
53
|
+
}
|
|
43
54
|
|
|
44
|
-
//
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
55
|
+
// Disabled state
|
|
56
|
+
&.disabled,
|
|
57
|
+
&[disabled] {
|
|
58
|
+
cursor: default;
|
|
59
|
+
background-image: none;
|
|
60
|
+
@include ctb-opacity(65);
|
|
61
|
+
@include ctb-box-shadow(none);
|
|
62
|
+
}
|
|
48
63
|
|
|
49
|
-
// Active state
|
|
50
|
-
.btn.active,
|
|
51
|
-
.btn:active {
|
|
52
|
-
background-color: darken($white, 10%);
|
|
53
|
-
background-color: darken($white, 15%)\9;
|
|
54
|
-
background-image: none;
|
|
55
|
-
outline: 0;
|
|
56
|
-
@include bootstrap-box-shadow("inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
|
|
57
64
|
}
|
|
58
65
|
|
|
59
|
-
// Disabled state
|
|
60
|
-
.btn.disabled,
|
|
61
|
-
.btn[disabled] {
|
|
62
|
-
cursor: default;
|
|
63
|
-
background-color: darken($white, 10%);
|
|
64
|
-
background-image: none;
|
|
65
|
-
@include bootstrap-opacity(65);
|
|
66
|
-
@include bootstrap-box-shadow(none);
|
|
67
|
-
}
|
|
68
66
|
|
|
69
67
|
|
|
70
68
|
// Button Sizes
|
|
@@ -72,53 +70,68 @@
|
|
|
72
70
|
|
|
73
71
|
// Large
|
|
74
72
|
.btn-large {
|
|
75
|
-
padding:
|
|
76
|
-
font-size: $
|
|
77
|
-
|
|
78
|
-
@include bootstrap-border-radius(5px);
|
|
73
|
+
padding: $paddingLarge;
|
|
74
|
+
font-size: $fontSizeLarge;
|
|
75
|
+
@include ctb-border-radius($borderRadiusLarge);
|
|
79
76
|
}
|
|
80
|
-
.btn-large [class^="icon-"]
|
|
81
|
-
|
|
77
|
+
.btn-large [class^="icon-"],
|
|
78
|
+
.btn-large [class*=" icon-"] {
|
|
79
|
+
margin-top: 4px;
|
|
82
80
|
}
|
|
83
81
|
|
|
84
82
|
// Small
|
|
85
83
|
.btn-small {
|
|
86
|
-
padding:
|
|
87
|
-
font-size: $
|
|
88
|
-
|
|
84
|
+
padding: $paddingSmall;
|
|
85
|
+
font-size: $fontSizeSmall;
|
|
86
|
+
@include ctb-border-radius($borderRadiusSmall);
|
|
87
|
+
}
|
|
88
|
+
.btn-small [class^="icon-"],
|
|
89
|
+
.btn-small [class*=" icon-"] {
|
|
90
|
+
margin-top: 0;
|
|
89
91
|
}
|
|
90
|
-
.btn-
|
|
92
|
+
.btn-mini [class^="icon-"],
|
|
93
|
+
.btn-mini [class*=" icon-"] {
|
|
91
94
|
margin-top: -1px;
|
|
92
95
|
}
|
|
93
96
|
|
|
94
97
|
// Mini
|
|
95
98
|
.btn-mini {
|
|
96
|
-
padding:
|
|
97
|
-
font-size: $
|
|
98
|
-
|
|
99
|
+
padding: $paddingMini;
|
|
100
|
+
font-size: $fontSizeMini;
|
|
101
|
+
@include ctb-border-radius($borderRadiusSmall);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
// Block button
|
|
106
|
+
// -------------------------
|
|
107
|
+
|
|
108
|
+
.btn-block {
|
|
109
|
+
display: block;
|
|
110
|
+
width: 100%;
|
|
111
|
+
padding-left: 0;
|
|
112
|
+
padding-right: 0;
|
|
113
|
+
@include ctb-box-sizing(border-box);
|
|
99
114
|
}
|
|
100
115
|
|
|
116
|
+
// Vertically space out multiple block buttons
|
|
117
|
+
.btn-block + .btn-block {
|
|
118
|
+
margin-top: 5px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Specificity overrides
|
|
122
|
+
input[type="submit"],
|
|
123
|
+
input[type="reset"],
|
|
124
|
+
input[type="button"] {
|
|
125
|
+
&.btn-block {
|
|
126
|
+
width: 100%;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
|
|
101
131
|
|
|
102
132
|
// Alternate buttons
|
|
103
133
|
// --------------------------------------------------
|
|
104
134
|
|
|
105
|
-
// Set text color
|
|
106
|
-
// -------------------------
|
|
107
|
-
.btn-primary,
|
|
108
|
-
.btn-primary:hover,
|
|
109
|
-
.btn-warning,
|
|
110
|
-
.btn-warning:hover,
|
|
111
|
-
.btn-danger,
|
|
112
|
-
.btn-danger:hover,
|
|
113
|
-
.btn-success,
|
|
114
|
-
.btn-success:hover,
|
|
115
|
-
.btn-info,
|
|
116
|
-
.btn-info:hover,
|
|
117
|
-
.btn-inverse,
|
|
118
|
-
.btn-inverse:hover {
|
|
119
|
-
color: $white;
|
|
120
|
-
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
|
121
|
-
}
|
|
122
135
|
// Provide *some* extra contrast for those who can get it
|
|
123
136
|
.btn-primary.active,
|
|
124
137
|
.btn-warning.active,
|
|
@@ -133,31 +146,31 @@
|
|
|
133
146
|
// -------------------------
|
|
134
147
|
.btn {
|
|
135
148
|
// reset here as of 2.0.3 due to Recess property order
|
|
136
|
-
border-color: #
|
|
137
|
-
border-color: rgba(0,0,0,.
|
|
149
|
+
border-color: #c5c5c5;
|
|
150
|
+
border-color: rgba(0,0,0,.15) rgba(0,0,0,.15) rgba(0,0,0,.25);
|
|
138
151
|
}
|
|
139
152
|
.btn-primary {
|
|
140
|
-
@include
|
|
153
|
+
@include ctb-buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight);
|
|
141
154
|
}
|
|
142
155
|
// Warning appears are orange
|
|
143
156
|
.btn-warning {
|
|
144
|
-
@include
|
|
157
|
+
@include ctb-buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight);
|
|
145
158
|
}
|
|
146
159
|
// Danger and error appear as red
|
|
147
160
|
.btn-danger {
|
|
148
|
-
@include
|
|
161
|
+
@include ctb-buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight);
|
|
149
162
|
}
|
|
150
163
|
// Success appears as green
|
|
151
164
|
.btn-success {
|
|
152
|
-
@include
|
|
165
|
+
@include ctb-buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight);
|
|
153
166
|
}
|
|
154
167
|
// Info appears as a neutral blue
|
|
155
168
|
.btn-info {
|
|
156
|
-
@include
|
|
169
|
+
@include ctb-buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight);
|
|
157
170
|
}
|
|
158
171
|
// Inverse appears as dark gray
|
|
159
172
|
.btn-inverse {
|
|
160
|
-
@include
|
|
173
|
+
@include ctb-buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight);
|
|
161
174
|
}
|
|
162
175
|
|
|
163
176
|
|
|
@@ -174,8 +187,9 @@ input[type="submit"].btn {
|
|
|
174
187
|
}
|
|
175
188
|
|
|
176
189
|
// IE7 has some default padding on button controls
|
|
177
|
-
*padding-top:
|
|
178
|
-
*padding-bottom:
|
|
190
|
+
*padding-top: 3px;
|
|
191
|
+
*padding-bottom: 3px;
|
|
192
|
+
|
|
179
193
|
&.btn-large {
|
|
180
194
|
*padding-top: 7px;
|
|
181
195
|
*padding-bottom: 7px;
|
|
@@ -189,3 +203,31 @@ input[type="submit"].btn {
|
|
|
189
203
|
*padding-bottom: 1px;
|
|
190
204
|
}
|
|
191
205
|
}
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
// Link buttons
|
|
209
|
+
// --------------------------------------------------
|
|
210
|
+
|
|
211
|
+
// Make a button look and behave like a link
|
|
212
|
+
.btn-link,
|
|
213
|
+
.btn-link:active,
|
|
214
|
+
.btn-link[disabled] {
|
|
215
|
+
background-color: transparent;
|
|
216
|
+
background-image: none;
|
|
217
|
+
@include ctb-box-shadow(none);
|
|
218
|
+
}
|
|
219
|
+
.btn-link {
|
|
220
|
+
border-color: transparent;
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
color: $linkColor;
|
|
223
|
+
@include ctb-border-radius(0);
|
|
224
|
+
}
|
|
225
|
+
.btn-link:hover {
|
|
226
|
+
color: $linkColorHover;
|
|
227
|
+
text-decoration: underline;
|
|
228
|
+
background-color: transparent;
|
|
229
|
+
}
|
|
230
|
+
.btn-link[disabled]:hover {
|
|
231
|
+
color: $grayDark;
|
|
232
|
+
text-decoration: none;
|
|
233
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
1
|
+
//
|
|
2
|
+
// Carousel
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
3
5
|
|
|
4
6
|
.carousel {
|
|
5
7
|
position: relative;
|
|
@@ -13,50 +15,50 @@
|
|
|
13
15
|
position: relative;
|
|
14
16
|
}
|
|
15
17
|
|
|
16
|
-
.carousel {
|
|
18
|
+
.carousel-inner {
|
|
17
19
|
|
|
18
|
-
.item {
|
|
20
|
+
> .item {
|
|
19
21
|
display: none;
|
|
20
22
|
position: relative;
|
|
21
|
-
@include
|
|
23
|
+
@include ctb-transition(.6s ease-in-out left);
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
// Account for jankitude on images
|
|
25
|
-
.item > img {
|
|
27
|
+
> .item > img {
|
|
26
28
|
display: block;
|
|
27
29
|
line-height: 1;
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
.active,
|
|
31
|
-
.next,
|
|
32
|
-
.prev { display: block; }
|
|
32
|
+
> .active,
|
|
33
|
+
> .next,
|
|
34
|
+
> .prev { display: block; }
|
|
33
35
|
|
|
34
|
-
.active {
|
|
36
|
+
> .active {
|
|
35
37
|
left: 0;
|
|
36
38
|
}
|
|
37
39
|
|
|
38
|
-
.next,
|
|
39
|
-
.prev {
|
|
40
|
+
> .next,
|
|
41
|
+
> .prev {
|
|
40
42
|
position: absolute;
|
|
41
43
|
top: 0;
|
|
42
44
|
width: 100%;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
|
-
.next {
|
|
47
|
+
> .next {
|
|
46
48
|
left: 100%;
|
|
47
49
|
}
|
|
48
|
-
.prev {
|
|
50
|
+
> .prev {
|
|
49
51
|
left: -100%;
|
|
50
52
|
}
|
|
51
|
-
.next.left,
|
|
52
|
-
.prev.right {
|
|
53
|
+
> .next.left,
|
|
54
|
+
> .prev.right {
|
|
53
55
|
left: 0;
|
|
54
56
|
}
|
|
55
57
|
|
|
56
|
-
.active.left {
|
|
58
|
+
> .active.left {
|
|
57
59
|
left: -100%;
|
|
58
60
|
}
|
|
59
|
-
.active.right {
|
|
61
|
+
> .active.right {
|
|
60
62
|
left: 100%;
|
|
61
63
|
}
|
|
62
64
|
|
|
@@ -79,15 +81,15 @@
|
|
|
79
81
|
text-align: center;
|
|
80
82
|
background: $grayDarker;
|
|
81
83
|
border: 3px solid $white;
|
|
82
|
-
@include
|
|
83
|
-
@include
|
|
84
|
+
@include ctb-border-radius(23px);
|
|
85
|
+
@include ctb-opacity(50);
|
|
84
86
|
|
|
85
87
|
// we can't have this transition here
|
|
86
88
|
// because webkit cancels the carousel
|
|
87
89
|
// animation if you trip this while
|
|
88
90
|
// in the middle of another animation
|
|
89
91
|
// ;_;
|
|
90
|
-
// @include
|
|
92
|
+
// @include ctb-transition(opacity .2s linear);
|
|
91
93
|
|
|
92
94
|
// Reposition the right one
|
|
93
95
|
&.right {
|
|
@@ -99,10 +101,11 @@
|
|
|
99
101
|
&:hover {
|
|
100
102
|
color: $white;
|
|
101
103
|
text-decoration: none;
|
|
102
|
-
@include
|
|
104
|
+
@include ctb-opacity(90);
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
|
|
108
|
+
|
|
106
109
|
// Caption for text below images
|
|
107
110
|
// -----------------------------
|
|
108
111
|
|
|
@@ -111,11 +114,18 @@
|
|
|
111
114
|
left: 0;
|
|
112
115
|
right: 0;
|
|
113
116
|
bottom: 0;
|
|
114
|
-
padding:
|
|
117
|
+
padding: 15px;
|
|
115
118
|
background: $grayDark;
|
|
116
119
|
background: rgba(0,0,0,.75);
|
|
117
120
|
}
|
|
118
121
|
.carousel-caption h4,
|
|
119
122
|
.carousel-caption p {
|
|
120
123
|
color: $white;
|
|
124
|
+
line-height: $baseLineHeight;
|
|
125
|
+
}
|
|
126
|
+
.carousel-caption h4 {
|
|
127
|
+
margin: 0 0 5px;
|
|
128
|
+
}
|
|
129
|
+
.carousel-caption p {
|
|
130
|
+
margin-bottom: 0;
|
|
121
131
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
1
|
+
//
|
|
2
|
+
// Close icons
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
3
5
|
|
|
4
6
|
.close {
|
|
5
7
|
float: right;
|
|
@@ -8,12 +10,12 @@
|
|
|
8
10
|
line-height: $baseLineHeight;
|
|
9
11
|
color: $black;
|
|
10
12
|
text-shadow: 0 1px 0 rgba(255,255,255,1);
|
|
11
|
-
@include
|
|
13
|
+
@include ctb-opacity(20);
|
|
12
14
|
&:hover {
|
|
13
15
|
color: $black;
|
|
14
16
|
text-decoration: none;
|
|
15
17
|
cursor: pointer;
|
|
16
|
-
@include
|
|
18
|
+
@include ctb-opacity(40);
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
|
|
@@ -26,4 +28,4 @@ button.close {
|
|
|
26
28
|
background: transparent;
|
|
27
29
|
border: 0;
|
|
28
30
|
-webkit-appearance: none;
|
|
29
|
-
}
|
|
31
|
+
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Code
|
|
3
|
-
//
|
|
1
|
+
//
|
|
2
|
+
// Code (inline and blocK)
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
4
5
|
|
|
5
6
|
// Inline and block code styles
|
|
6
7
|
code,
|
|
7
8
|
pre {
|
|
8
9
|
padding: 0 3px 2px;
|
|
9
|
-
@include
|
|
10
|
-
font-size: $baseFontSize -
|
|
10
|
+
@include ctb-font-family-monospace;
|
|
11
|
+
font-size: $baseFontSize - 2;
|
|
11
12
|
color: $grayDark;
|
|
12
|
-
@include
|
|
13
|
+
@include ctb-border-radius(3px);
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
// Inline code
|
|
@@ -18,6 +19,7 @@ code {
|
|
|
18
19
|
color: #d14;
|
|
19
20
|
background-color: #f7f7f9;
|
|
20
21
|
border: 1px solid #e1e1e8;
|
|
22
|
+
white-space: nowrap;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
// Blocks of code
|
|
@@ -25,7 +27,7 @@ pre {
|
|
|
25
27
|
display: block;
|
|
26
28
|
padding: ($baseLineHeight - 1) / 2;
|
|
27
29
|
margin: 0 0 $baseLineHeight / 2;
|
|
28
|
-
font-size: $baseFontSize
|
|
30
|
+
font-size: $baseFontSize - 1; // 14px to 13px
|
|
29
31
|
line-height: $baseLineHeight;
|
|
30
32
|
word-break: break-all;
|
|
31
33
|
word-wrap: break-word;
|
|
@@ -34,7 +36,7 @@ pre {
|
|
|
34
36
|
background-color: #f5f5f5;
|
|
35
37
|
border: 1px solid #ccc; // fallback for IE7-8
|
|
36
38
|
border: 1px solid rgba(0,0,0,.15);
|
|
37
|
-
@include
|
|
39
|
+
@include ctb-border-radius($baseBorderRadius);
|
|
38
40
|
|
|
39
41
|
// Make prettyprint styles more spaced out for readability
|
|
40
42
|
&.prettyprint {
|
|
@@ -45,6 +47,8 @@ pre {
|
|
|
45
47
|
code {
|
|
46
48
|
padding: 0;
|
|
47
49
|
color: inherit;
|
|
50
|
+
white-space: pre;
|
|
51
|
+
white-space: pre-wrap;
|
|
48
52
|
background-color: transparent;
|
|
49
53
|
border: 0;
|
|
50
54
|
}
|