twbs_sass_rails 0.2.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -8
- data/CONTRIBUTING.md +4 -4
- data/Gemfile.lock +52 -65
- data/LICENSE +2 -2
- data/README.md +48 -18
- data/Rakefile +67 -32
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +23 -8
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +200 -199
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/gemfiles/Gemfile.rails-3.2.x +2 -3
- data/gemfiles/Gemfile.rails-4.0.x +2 -3
- data/lib/generators/twbs_sass_rails/install/install_generator.rb +2 -2
- data/lib/generators/twbs_sass_rails/install/templates/{twbs-variables.css.less → twbs-variables.css.scss} +4 -3
- data/lib/generators/twbs_sass_rails/install/templates/{twbs.css.less → twbs.css.scss} +12 -7
- data/lib/twbs_sass_rails/version.rb +1 -1
- data/test/dummy/app/assets/stylesheets/{default-twbs.css.less → default-twbs.css.scss} +0 -0
- data/test/dummy/app/assets/stylesheets/test.css.scss +9 -0
- data/test/dummy/app/assets/stylesheets/twbs-variables.css.scss +7 -0
- data/test/dummy/app/assets/stylesheets/{twbs.css.less → twbs.css.scss} +12 -7
- data/test/dummy/config/application.rb +4 -1
- data/test/dummy/config/environments/development.rb +1 -1
- data/test/generators/install_generator_test.rb +4 -4
- data/test/integration/assets_precompile_integration_test.rb +11 -5
- data/test/integration/twbs_sass_rails_integration_test.rb +8 -7
- data/test/test_helper.rb +2 -4
- data/twbs_sass_rails.gemspec +6 -9
- data/vendor/assets/javascripts/respond.js +223 -212
- data/vendor/assets/javascripts/twbs/bootstrap/affix.js +36 -25
- data/vendor/assets/javascripts/twbs/bootstrap/alert.js +7 -17
- data/vendor/assets/javascripts/twbs/bootstrap/button.js +26 -28
- data/vendor/assets/javascripts/twbs/bootstrap/carousel.js +22 -34
- data/vendor/assets/javascripts/twbs/bootstrap/collapse.js +9 -18
- data/vendor/assets/javascripts/twbs/bootstrap/dropdown.js +25 -32
- data/vendor/assets/javascripts/twbs/bootstrap/modal.js +27 -30
- data/vendor/assets/javascripts/twbs/bootstrap/popover.js +16 -23
- data/vendor/assets/javascripts/twbs/bootstrap/scrollspy.js +19 -24
- data/vendor/assets/javascripts/twbs/bootstrap/tab.js +10 -20
- data/vendor/assets/javascripts/twbs/bootstrap/tooltip.js +54 -41
- data/vendor/assets/javascripts/twbs/bootstrap/transition.js +13 -21
- data/vendor/assets/stylesheets/fontawesome/_bordered-pulled.scss +16 -0
- data/vendor/assets/stylesheets/fontawesome/_core.scss +12 -0
- data/vendor/assets/stylesheets/fontawesome/_extras.scss +44 -0
- data/vendor/assets/stylesheets/fontawesome/_fixed-width.scss +6 -0
- data/vendor/assets/stylesheets/fontawesome/_icons.scss +412 -0
- data/vendor/assets/stylesheets/fontawesome/_larger.scss +13 -0
- data/vendor/assets/stylesheets/fontawesome/_list.scss +19 -0
- data/vendor/assets/stylesheets/fontawesome/_mixins.scss +20 -0
- data/vendor/assets/stylesheets/fontawesome/_path.scss +14 -0
- data/vendor/assets/stylesheets/fontawesome/_rotated-flipped.scss +9 -0
- data/vendor/assets/stylesheets/fontawesome/_spinning.scss +30 -0
- data/vendor/assets/stylesheets/fontawesome/_stacked.scss +20 -0
- data/vendor/assets/stylesheets/fontawesome/_variables.scss +381 -0
- data/vendor/assets/stylesheets/fontawesome/font-awesome.scss +17 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{alerts.less → _alerts.scss} +10 -10
- data/vendor/assets/stylesheets/twbs/bootstrap/{badges.less → _badges.scss} +19 -15
- data/vendor/assets/stylesheets/twbs/bootstrap/_breadcrumbs.scss +26 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{button-groups.less → _button-groups.scss} +38 -60
- data/vendor/assets/stylesheets/twbs/bootstrap/{buttons.less → _buttons.scss} +28 -34
- data/vendor/assets/stylesheets/twbs/bootstrap/{carousel.less → _carousel.scss} +38 -19
- data/vendor/assets/stylesheets/twbs/bootstrap/_close.scss +35 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_code.scss +63 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{component-animations.less → _component-animations.scss} +2 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/{dropdowns.less → _dropdowns.scss} +53 -33
- data/vendor/assets/stylesheets/twbs/bootstrap/{forms.less → _forms.scss} +133 -79
- data/vendor/assets/stylesheets/twbs/bootstrap/{glyphicons.less → _glyphicons.scss} +16 -19
- data/vendor/assets/stylesheets/twbs/bootstrap/_grid.scss +100 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{input-groups.less → _input-groups.scss} +58 -29
- data/vendor/assets/stylesheets/twbs/bootstrap/_jumbotron.scss +44 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{labels.less → _labels.scss} +14 -8
- data/vendor/assets/stylesheets/twbs/bootstrap/_list-group.scss +110 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{media.less → _media.scss} +0 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_mixins.scss +931 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{modals.less → _modals.scss} +37 -40
- data/vendor/assets/stylesheets/twbs/bootstrap/_navbar.scss +620 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{navs.less → _navs.scss} +41 -52
- data/vendor/assets/stylesheets/twbs/bootstrap/{normalize.less → _normalize.scss} +148 -121
- data/vendor/assets/stylesheets/twbs/bootstrap/{pager.less → _pager.scss} +8 -8
- data/vendor/assets/stylesheets/twbs/bootstrap/_pagination.scss +88 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_panels.scss +230 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{popovers.less → _popovers.scss} +36 -36
- data/vendor/assets/stylesheets/twbs/bootstrap/{print.less → _print.scss} +6 -5
- data/vendor/assets/stylesheets/twbs/bootstrap/_progress-bars.scss +80 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_responsive-utilities.scss +80 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{scaffolding.less → _scaffolding.scss} +39 -24
- data/vendor/assets/stylesheets/twbs/bootstrap/{tables.less → _tables.scss} +42 -48
- data/vendor/assets/stylesheets/twbs/bootstrap/_theme.scss +247 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_thumbnails.scss +38 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_tooltip.scss +95 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/_type.scss +296 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{utilities.less → _utilities.scss} +14 -3
- data/vendor/assets/stylesheets/twbs/bootstrap/_variables.scss +831 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/{wells.less → _wells.scss} +6 -6
- data/vendor/assets/stylesheets/twbs/bootstrap/bootstrap.scss +48 -0
- data/vendor/assets/stylesheets/twbs/{bootstrap.less → bootstrap.scss} +0 -0
- metadata +94 -134
- data/test/dummy/app/assets/stylesheets/test.css.less +0 -5
- data/test/dummy/app/assets/stylesheets/twbs-variables.css.less +0 -6
- data/test/dummy/config/database.yml +0 -25
- data/test/dummy/db/.keep +0 -0
- data/vendor/assets/stylesheets/fontawesome/bootstrap.less +0 -84
- data/vendor/assets/stylesheets/fontawesome/core.less +0 -129
- data/vendor/assets/stylesheets/fontawesome/extras.less +0 -93
- data/vendor/assets/stylesheets/fontawesome/font-awesome.less +0 -33
- data/vendor/assets/stylesheets/fontawesome/icons.less +0 -381
- data/vendor/assets/stylesheets/fontawesome/mixins.less +0 -48
- data/vendor/assets/stylesheets/fontawesome/path.less +0 -14
- data/vendor/assets/stylesheets/fontawesome/variables.less +0 -735
- data/vendor/assets/stylesheets/twbs/bootstrap/bootstrap.less +0 -58
- data/vendor/assets/stylesheets/twbs/bootstrap/breadcrumbs.less +0 -23
- data/vendor/assets/stylesheets/twbs/bootstrap/close.less +0 -33
- data/vendor/assets/stylesheets/twbs/bootstrap/code.less +0 -56
- data/vendor/assets/stylesheets/twbs/bootstrap/grid.less +0 -346
- data/vendor/assets/stylesheets/twbs/bootstrap/jumbotron.less +0 -40
- data/vendor/assets/stylesheets/twbs/bootstrap/list-group.less +0 -88
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins.less +0 -744
- data/vendor/assets/stylesheets/twbs/bootstrap/navbar.less +0 -621
- data/vendor/assets/stylesheets/twbs/bootstrap/pagination.less +0 -85
- data/vendor/assets/stylesheets/twbs/bootstrap/panels.less +0 -143
- data/vendor/assets/stylesheets/twbs/bootstrap/progress-bars.less +0 -96
- data/vendor/assets/stylesheets/twbs/bootstrap/responsive-utilities.less +0 -220
- data/vendor/assets/stylesheets/twbs/bootstrap/theme.less +0 -244
- data/vendor/assets/stylesheets/twbs/bootstrap/thumbnails.less +0 -32
- data/vendor/assets/stylesheets/twbs/bootstrap/tooltip.less +0 -95
- data/vendor/assets/stylesheets/twbs/bootstrap/type.less +0 -271
- data/vendor/assets/stylesheets/twbs/bootstrap/variables.less +0 -635
@@ -0,0 +1,95 @@
|
|
1
|
+
//
|
2
|
+
// Tooltips
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base class
|
7
|
+
.tooltip {
|
8
|
+
position: absolute;
|
9
|
+
z-index: $zindex-tooltip;
|
10
|
+
display: block;
|
11
|
+
visibility: visible;
|
12
|
+
font-size: $font-size-small;
|
13
|
+
line-height: 1.4;
|
14
|
+
@include opacity(0);
|
15
|
+
|
16
|
+
&.in { @include opacity($tooltip-opacity); }
|
17
|
+
&.top { margin-top: -3px; padding: $tooltip-arrow-width 0; }
|
18
|
+
&.right { margin-left: 3px; padding: 0 $tooltip-arrow-width; }
|
19
|
+
&.bottom { margin-top: 3px; padding: $tooltip-arrow-width 0; }
|
20
|
+
&.left { margin-left: -3px; padding: 0 $tooltip-arrow-width; }
|
21
|
+
}
|
22
|
+
|
23
|
+
// Wrapper for the tooltip content
|
24
|
+
.tooltip-inner {
|
25
|
+
max-width: $tooltip-max-width;
|
26
|
+
padding: 3px 8px;
|
27
|
+
color: $tooltip-color;
|
28
|
+
text-align: center;
|
29
|
+
text-decoration: none;
|
30
|
+
background-color: $tooltip-bg;
|
31
|
+
border-radius: $border-radius-base;
|
32
|
+
}
|
33
|
+
|
34
|
+
// Arrows
|
35
|
+
.tooltip-arrow {
|
36
|
+
position: absolute;
|
37
|
+
width: 0;
|
38
|
+
height: 0;
|
39
|
+
border-color: transparent;
|
40
|
+
border-style: solid;
|
41
|
+
}
|
42
|
+
.tooltip {
|
43
|
+
&.top .tooltip-arrow {
|
44
|
+
bottom: 0;
|
45
|
+
left: 50%;
|
46
|
+
margin-left: -$tooltip-arrow-width;
|
47
|
+
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
|
48
|
+
border-top-color: $tooltip-arrow-color;
|
49
|
+
}
|
50
|
+
&.top-left .tooltip-arrow {
|
51
|
+
bottom: 0;
|
52
|
+
left: $tooltip-arrow-width;
|
53
|
+
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
|
54
|
+
border-top-color: $tooltip-arrow-color;
|
55
|
+
}
|
56
|
+
&.top-right .tooltip-arrow {
|
57
|
+
bottom: 0;
|
58
|
+
right: $tooltip-arrow-width;
|
59
|
+
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
|
60
|
+
border-top-color: $tooltip-arrow-color;
|
61
|
+
}
|
62
|
+
&.right .tooltip-arrow {
|
63
|
+
top: 50%;
|
64
|
+
left: 0;
|
65
|
+
margin-top: -$tooltip-arrow-width;
|
66
|
+
border-width: $tooltip-arrow-width $tooltip-arrow-width $tooltip-arrow-width 0;
|
67
|
+
border-right-color: $tooltip-arrow-color;
|
68
|
+
}
|
69
|
+
&.left .tooltip-arrow {
|
70
|
+
top: 50%;
|
71
|
+
right: 0;
|
72
|
+
margin-top: -$tooltip-arrow-width;
|
73
|
+
border-width: $tooltip-arrow-width 0 $tooltip-arrow-width $tooltip-arrow-width;
|
74
|
+
border-left-color: $tooltip-arrow-color;
|
75
|
+
}
|
76
|
+
&.bottom .tooltip-arrow {
|
77
|
+
top: 0;
|
78
|
+
left: 50%;
|
79
|
+
margin-left: -$tooltip-arrow-width;
|
80
|
+
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
|
81
|
+
border-bottom-color: $tooltip-arrow-color;
|
82
|
+
}
|
83
|
+
&.bottom-left .tooltip-arrow {
|
84
|
+
top: 0;
|
85
|
+
left: $tooltip-arrow-width;
|
86
|
+
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
|
87
|
+
border-bottom-color: $tooltip-arrow-color;
|
88
|
+
}
|
89
|
+
&.bottom-right .tooltip-arrow {
|
90
|
+
top: 0;
|
91
|
+
right: $tooltip-arrow-width;
|
92
|
+
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
|
93
|
+
border-bottom-color: $tooltip-arrow-color;
|
94
|
+
}
|
95
|
+
}
|
@@ -0,0 +1,296 @@
|
|
1
|
+
//
|
2
|
+
// Typography
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Headings
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
h1, h2, h3, h4, h5, h6,
|
10
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
11
|
+
font-family: $headings-font-family;
|
12
|
+
font-weight: $headings-font-weight;
|
13
|
+
line-height: $headings-line-height;
|
14
|
+
color: $headings-color;
|
15
|
+
|
16
|
+
small,
|
17
|
+
.small {
|
18
|
+
font-weight: normal;
|
19
|
+
line-height: 1;
|
20
|
+
color: $headings-small-color;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
h1, .h1,
|
25
|
+
h2, .h2,
|
26
|
+
h3, .h3 {
|
27
|
+
margin-top: $line-height-computed;
|
28
|
+
margin-bottom: ($line-height-computed / 2);
|
29
|
+
|
30
|
+
small,
|
31
|
+
.small {
|
32
|
+
font-size: 65%;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
h4, .h4,
|
36
|
+
h5, .h5,
|
37
|
+
h6, .h6 {
|
38
|
+
margin-top: ($line-height-computed / 2);
|
39
|
+
margin-bottom: ($line-height-computed / 2);
|
40
|
+
|
41
|
+
small,
|
42
|
+
.small {
|
43
|
+
font-size: 75%;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
h1, .h1 { font-size: $font-size-h1; }
|
48
|
+
h2, .h2 { font-size: $font-size-h2; }
|
49
|
+
h3, .h3 { font-size: $font-size-h3; }
|
50
|
+
h4, .h4 { font-size: $font-size-h4; }
|
51
|
+
h5, .h5 { font-size: $font-size-h5; }
|
52
|
+
h6, .h6 { font-size: $font-size-h6; }
|
53
|
+
|
54
|
+
|
55
|
+
// Body text
|
56
|
+
// -------------------------
|
57
|
+
|
58
|
+
p {
|
59
|
+
margin: 0 0 ($line-height-computed / 2);
|
60
|
+
}
|
61
|
+
|
62
|
+
.lead {
|
63
|
+
margin-bottom: $line-height-computed;
|
64
|
+
font-size: floor(($font-size-base * 1.15));
|
65
|
+
font-weight: 200;
|
66
|
+
line-height: 1.4;
|
67
|
+
|
68
|
+
@media (min-width: $screen-sm-min) {
|
69
|
+
font-size: ($font-size-base * 1.5);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
// Emphasis & misc
|
75
|
+
// -------------------------
|
76
|
+
|
77
|
+
// Ex: 14px base font * 85% = about 12px
|
78
|
+
small,
|
79
|
+
.small { font-size: 85%; }
|
80
|
+
|
81
|
+
// Undo browser default styling
|
82
|
+
cite { font-style: normal; }
|
83
|
+
|
84
|
+
// Alignment
|
85
|
+
.text-left { text-align: left; }
|
86
|
+
.text-right { text-align: right; }
|
87
|
+
.text-center { text-align: center; }
|
88
|
+
.text-justify { text-align: justify; }
|
89
|
+
|
90
|
+
// Contextual colors
|
91
|
+
.text-muted {
|
92
|
+
color: $text-muted;
|
93
|
+
}
|
94
|
+
.text-primary {
|
95
|
+
@include text-emphasis-variant($brand-primary);
|
96
|
+
}
|
97
|
+
.text-success {
|
98
|
+
@include text-emphasis-variant($state-success-text);
|
99
|
+
}
|
100
|
+
.text-info {
|
101
|
+
@include text-emphasis-variant($state-info-text);
|
102
|
+
}
|
103
|
+
.text-warning {
|
104
|
+
@include text-emphasis-variant($state-warning-text);
|
105
|
+
}
|
106
|
+
.text-danger {
|
107
|
+
@include text-emphasis-variant($state-danger-text);
|
108
|
+
}
|
109
|
+
|
110
|
+
// Contextual backgrounds
|
111
|
+
// For now we'll leave these alongside the text classes until v4 when we can
|
112
|
+
// safely shift things around (per SemVer rules).
|
113
|
+
.bg-primary {
|
114
|
+
// Given the contrast here, this is the only class to have its color inverted
|
115
|
+
// automatically.
|
116
|
+
color: #fff;
|
117
|
+
@include bg-variant($brand-primary);
|
118
|
+
}
|
119
|
+
.bg-success {
|
120
|
+
@include bg-variant($state-success-bg);
|
121
|
+
}
|
122
|
+
.bg-info {
|
123
|
+
@include bg-variant($state-info-bg);
|
124
|
+
}
|
125
|
+
.bg-warning {
|
126
|
+
@include bg-variant($state-warning-bg);
|
127
|
+
}
|
128
|
+
.bg-danger {
|
129
|
+
@include bg-variant($state-danger-bg);
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
// Page header
|
134
|
+
// -------------------------
|
135
|
+
|
136
|
+
.page-header {
|
137
|
+
padding-bottom: (($line-height-computed / 2) - 1);
|
138
|
+
margin: ($line-height-computed * 2) 0 $line-height-computed;
|
139
|
+
border-bottom: 1px solid $page-header-border-color;
|
140
|
+
}
|
141
|
+
|
142
|
+
|
143
|
+
// Lists
|
144
|
+
// --------------------------------------------------
|
145
|
+
|
146
|
+
// Unordered and Ordered lists
|
147
|
+
ul,
|
148
|
+
ol {
|
149
|
+
margin-top: 0;
|
150
|
+
margin-bottom: ($line-height-computed / 2);
|
151
|
+
ul,
|
152
|
+
ol {
|
153
|
+
margin-bottom: 0;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
// List options
|
158
|
+
|
159
|
+
// Unstyled keeps list items block level, just removes default browser padding and list-style
|
160
|
+
.list-unstyled {
|
161
|
+
padding-left: 0;
|
162
|
+
list-style: none;
|
163
|
+
}
|
164
|
+
|
165
|
+
// Inline turns list items into inline-block
|
166
|
+
.list-inline {
|
167
|
+
@extend .list-unstyled;
|
168
|
+
|
169
|
+
> li {
|
170
|
+
display: inline-block;
|
171
|
+
padding-left: 5px;
|
172
|
+
padding-right: 5px;
|
173
|
+
|
174
|
+
&:first-child {
|
175
|
+
padding-left: 0;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
// Description Lists
|
181
|
+
dl {
|
182
|
+
margin-top: 0; // Remove browser default
|
183
|
+
margin-bottom: $line-height-computed;
|
184
|
+
}
|
185
|
+
dt,
|
186
|
+
dd {
|
187
|
+
line-height: $line-height-base;
|
188
|
+
}
|
189
|
+
dt {
|
190
|
+
font-weight: bold;
|
191
|
+
}
|
192
|
+
dd {
|
193
|
+
margin-left: 0; // Undo browser default
|
194
|
+
}
|
195
|
+
|
196
|
+
// Horizontal description lists
|
197
|
+
//
|
198
|
+
// Defaults to being stacked without any of the below styles applied, until the
|
199
|
+
// grid breakpoint is reached (default of ~768px).
|
200
|
+
|
201
|
+
@media (min-width: $grid-float-breakpoint) {
|
202
|
+
.dl-horizontal {
|
203
|
+
dt {
|
204
|
+
float: left;
|
205
|
+
width: ($component-offset-horizontal - 20);
|
206
|
+
clear: left;
|
207
|
+
text-align: right;
|
208
|
+
@include text-overflow();
|
209
|
+
}
|
210
|
+
dd {
|
211
|
+
margin-left: $component-offset-horizontal;
|
212
|
+
@include clearfix(); // Clear the floated `dt` if an empty `dd` is present
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
// MISC
|
218
|
+
// ----
|
219
|
+
|
220
|
+
// Abbreviations and acronyms
|
221
|
+
abbr[title],
|
222
|
+
// Add data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
|
223
|
+
abbr[data-original-title] {
|
224
|
+
cursor: help;
|
225
|
+
border-bottom: 1px dotted $abbr-border-color;
|
226
|
+
}
|
227
|
+
.initialism {
|
228
|
+
font-size: 90%;
|
229
|
+
text-transform: uppercase;
|
230
|
+
}
|
231
|
+
|
232
|
+
// Blockquotes
|
233
|
+
blockquote {
|
234
|
+
padding: ($line-height-computed / 2) $line-height-computed;
|
235
|
+
margin: 0 0 $line-height-computed;
|
236
|
+
font-size: ($font-size-base * 1.25);
|
237
|
+
border-left: 5px solid $blockquote-border-color;
|
238
|
+
|
239
|
+
p,
|
240
|
+
ul,
|
241
|
+
ol {
|
242
|
+
&:last-child {
|
243
|
+
margin-bottom: 0;
|
244
|
+
}
|
245
|
+
}
|
246
|
+
|
247
|
+
// Note: Deprecated small and .small as of v3.1.0
|
248
|
+
// Context: https://github.com/twbs/bootstrap/issues/11660
|
249
|
+
footer,
|
250
|
+
small,
|
251
|
+
.small {
|
252
|
+
display: block;
|
253
|
+
font-size: 80%; // back to default font-size
|
254
|
+
line-height: $line-height-base;
|
255
|
+
color: $blockquote-small-color;
|
256
|
+
|
257
|
+
&:before {
|
258
|
+
content: '\2014 \00A0'; // em dash, nbsp
|
259
|
+
}
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
// Opposite alignment of blockquote
|
264
|
+
//
|
265
|
+
// Heads up: `blockquote.pull-right` has been deprecated as of v3.1.0.
|
266
|
+
.blockquote-reverse,
|
267
|
+
blockquote.pull-right {
|
268
|
+
padding-right: 15px;
|
269
|
+
padding-left: 0;
|
270
|
+
border-right: 5px solid $blockquote-border-color;
|
271
|
+
border-left: 0;
|
272
|
+
text-align: right;
|
273
|
+
|
274
|
+
// Account for citation
|
275
|
+
footer,
|
276
|
+
small,
|
277
|
+
.small {
|
278
|
+
&:before { content: ''; }
|
279
|
+
&:after {
|
280
|
+
content: '\00A0 \2014'; // nbsp, em dash
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
|
285
|
+
// Quotes
|
286
|
+
blockquote:before,
|
287
|
+
blockquote:after {
|
288
|
+
content: "";
|
289
|
+
}
|
290
|
+
|
291
|
+
// Addresses
|
292
|
+
address {
|
293
|
+
margin-bottom: $line-height-computed;
|
294
|
+
font-style: normal;
|
295
|
+
line-height: $line-height-base;
|
296
|
+
}
|
@@ -7,10 +7,10 @@
|
|
7
7
|
// -------------------------
|
8
8
|
|
9
9
|
.clearfix {
|
10
|
-
|
10
|
+
@include clearfix();
|
11
11
|
}
|
12
12
|
.center-block {
|
13
|
-
|
13
|
+
@include center-block();
|
14
14
|
}
|
15
15
|
.pull-right {
|
16
16
|
float: right !important;
|
@@ -23,6 +23,7 @@
|
|
23
23
|
// Toggling content
|
24
24
|
// -------------------------
|
25
25
|
|
26
|
+
// Note: Deprecated .hide in favor of .hidden or .sr-only (as appropriate) in v3.0.1
|
26
27
|
.hide {
|
27
28
|
display: none !important;
|
28
29
|
}
|
@@ -33,7 +34,17 @@
|
|
33
34
|
visibility: hidden;
|
34
35
|
}
|
35
36
|
.text-hide {
|
36
|
-
|
37
|
+
@include text-hide();
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// Hide from screenreaders and browsers
|
42
|
+
//
|
43
|
+
// Credit: HTML5 Boilerplate
|
44
|
+
|
45
|
+
.hidden {
|
46
|
+
display: none !important;
|
47
|
+
visibility: hidden !important;
|
37
48
|
}
|
38
49
|
|
39
50
|
|