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,88 @@
|
|
1
|
+
//
|
2
|
+
// Pagination (multiple pages)
|
3
|
+
// --------------------------------------------------
|
4
|
+
.pagination {
|
5
|
+
display: inline-block;
|
6
|
+
padding-left: 0;
|
7
|
+
margin: $line-height-computed 0;
|
8
|
+
border-radius: $border-radius-base;
|
9
|
+
|
10
|
+
> li {
|
11
|
+
display: inline; // Remove list-style and block-level defaults
|
12
|
+
> a,
|
13
|
+
> span {
|
14
|
+
position: relative;
|
15
|
+
float: left; // Collapse white-space
|
16
|
+
padding: $padding-base-vertical $padding-base-horizontal;
|
17
|
+
line-height: $line-height-base;
|
18
|
+
text-decoration: none;
|
19
|
+
color: $pagination-color;
|
20
|
+
background-color: $pagination-bg;
|
21
|
+
border: 1px solid $pagination-border;
|
22
|
+
margin-left: -1px;
|
23
|
+
}
|
24
|
+
&:first-child {
|
25
|
+
> a,
|
26
|
+
> span {
|
27
|
+
margin-left: 0;
|
28
|
+
@include border-left-radius($border-radius-base);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
&:last-child {
|
32
|
+
> a,
|
33
|
+
> span {
|
34
|
+
@include border-right-radius($border-radius-base);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
> li > a,
|
40
|
+
> li > span {
|
41
|
+
&:hover,
|
42
|
+
&:focus {
|
43
|
+
color: $pagination-hover-color;
|
44
|
+
background-color: $pagination-hover-bg;
|
45
|
+
border-color: $pagination-hover-border;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
> .active > a,
|
50
|
+
> .active > span {
|
51
|
+
&,
|
52
|
+
&:hover,
|
53
|
+
&:focus {
|
54
|
+
z-index: 2;
|
55
|
+
color: $pagination-active-color;
|
56
|
+
background-color: $pagination-active-bg;
|
57
|
+
border-color: $pagination-active-border;
|
58
|
+
cursor: default;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
> .disabled {
|
63
|
+
> span,
|
64
|
+
> span:hover,
|
65
|
+
> span:focus,
|
66
|
+
> a,
|
67
|
+
> a:hover,
|
68
|
+
> a:focus {
|
69
|
+
color: $pagination-disabled-color;
|
70
|
+
background-color: $pagination-disabled-bg;
|
71
|
+
border-color: $pagination-disabled-border;
|
72
|
+
cursor: not-allowed;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
// Sizing
|
78
|
+
// --------------------------------------------------
|
79
|
+
|
80
|
+
// Large
|
81
|
+
.pagination-lg {
|
82
|
+
@include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $border-radius-large);
|
83
|
+
}
|
84
|
+
|
85
|
+
// Small
|
86
|
+
.pagination-sm {
|
87
|
+
@include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $border-radius-small);
|
88
|
+
}
|
@@ -0,0 +1,230 @@
|
|
1
|
+
//
|
2
|
+
// Panels
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base class
|
7
|
+
.panel {
|
8
|
+
margin-bottom: $line-height-computed;
|
9
|
+
background-color: $panel-bg;
|
10
|
+
border: 1px solid transparent;
|
11
|
+
border-radius: $panel-border-radius;
|
12
|
+
@include box-shadow(0 1px 1px rgba(0,0,0,.05));
|
13
|
+
}
|
14
|
+
|
15
|
+
// Panel contents
|
16
|
+
.panel-body {
|
17
|
+
padding: $panel-body-padding;
|
18
|
+
@include clearfix();
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
// List groups in panels
|
23
|
+
//
|
24
|
+
// By default, space out list group content from panel headings to account for
|
25
|
+
// any kind of custom content between the two.
|
26
|
+
|
27
|
+
.panel {
|
28
|
+
> .list-group {
|
29
|
+
margin-bottom: 0;
|
30
|
+
.list-group-item {
|
31
|
+
border-width: 1px 0;
|
32
|
+
border-radius: 0;
|
33
|
+
&:first-child {
|
34
|
+
border-top: 0;
|
35
|
+
}
|
36
|
+
&:last-child {
|
37
|
+
border-bottom: 0;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
// Add border top radius for first one
|
41
|
+
&:first-child {
|
42
|
+
.list-group-item:first-child {
|
43
|
+
@include border-top-radius(($panel-border-radius - 1));
|
44
|
+
}
|
45
|
+
}
|
46
|
+
// Add border bottom radius for last one
|
47
|
+
&:last-child {
|
48
|
+
.list-group-item:last-child {
|
49
|
+
@include border-bottom-radius(($panel-border-radius - 1));
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
// Collapse space between when there's no additional content.
|
55
|
+
.panel-heading + .list-group {
|
56
|
+
.list-group-item:first-child {
|
57
|
+
border-top-width: 0;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
// Tables in panels
|
63
|
+
//
|
64
|
+
// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
|
65
|
+
// watch it go full width.
|
66
|
+
|
67
|
+
.panel {
|
68
|
+
> .table,
|
69
|
+
> .table-responsive > .table {
|
70
|
+
margin-bottom: 0;
|
71
|
+
}
|
72
|
+
// Add border top radius for first one
|
73
|
+
> .table:first-child,
|
74
|
+
> .table-responsive:first-child > .table:first-child {
|
75
|
+
> thead:first-child,
|
76
|
+
> tbody:first-child {
|
77
|
+
> tr:first-child {
|
78
|
+
td:first-child,
|
79
|
+
th:first-child {
|
80
|
+
border-top-left-radius: ($panel-border-radius - 1);
|
81
|
+
}
|
82
|
+
td:last-child,
|
83
|
+
th:last-child {
|
84
|
+
border-top-right-radius: ($panel-border-radius - 1);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
// Add border bottom radius for last one
|
90
|
+
> .table:last-child,
|
91
|
+
> .table-responsive:last-child > .table:last-child {
|
92
|
+
> tbody:last-child,
|
93
|
+
> tfoot:last-child {
|
94
|
+
> tr:last-child {
|
95
|
+
td:first-child,
|
96
|
+
th:first-child {
|
97
|
+
border-bottom-left-radius: ($panel-border-radius - 1);
|
98
|
+
}
|
99
|
+
td:last-child,
|
100
|
+
th:last-child {
|
101
|
+
border-bottom-right-radius: ($panel-border-radius - 1);
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
> .panel-body + .table,
|
107
|
+
> .panel-body + .table-responsive {
|
108
|
+
border-top: 1px solid $table-border-color;
|
109
|
+
}
|
110
|
+
> .table > tbody:first-child > tr:first-child th,
|
111
|
+
> .table > tbody:first-child > tr:first-child td {
|
112
|
+
border-top: 0;
|
113
|
+
}
|
114
|
+
> .table-bordered,
|
115
|
+
> .table-responsive > .table-bordered {
|
116
|
+
border: 0;
|
117
|
+
> thead,
|
118
|
+
> tbody,
|
119
|
+
> tfoot {
|
120
|
+
> tr {
|
121
|
+
> th:first-child,
|
122
|
+
> td:first-child {
|
123
|
+
border-left: 0;
|
124
|
+
}
|
125
|
+
> th:last-child,
|
126
|
+
> td:last-child {
|
127
|
+
border-right: 0;
|
128
|
+
}
|
129
|
+
&:first-child > th,
|
130
|
+
&:first-child > td {
|
131
|
+
border-top: 0;
|
132
|
+
}
|
133
|
+
&:last-child > th,
|
134
|
+
&:last-child > td {
|
135
|
+
border-bottom: 0;
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
> .table-responsive {
|
141
|
+
border: 0;
|
142
|
+
margin-bottom: 0;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
|
147
|
+
// Optional heading
|
148
|
+
.panel-heading {
|
149
|
+
padding: 10px 15px;
|
150
|
+
border-bottom: 1px solid transparent;
|
151
|
+
@include border-top-radius(($panel-border-radius - 1));
|
152
|
+
|
153
|
+
> .dropdown .dropdown-toggle {
|
154
|
+
color: inherit;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
// Within heading, strip any `h*` tag of its default margins for spacing.
|
159
|
+
.panel-title {
|
160
|
+
margin-top: 0;
|
161
|
+
margin-bottom: 0;
|
162
|
+
font-size: ceil(($font-size-base * 1.125));
|
163
|
+
color: inherit;
|
164
|
+
|
165
|
+
> a {
|
166
|
+
color: inherit;
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
// Optional footer (stays gray in every modifier class)
|
171
|
+
.panel-footer {
|
172
|
+
padding: 10px 15px;
|
173
|
+
background-color: $panel-footer-bg;
|
174
|
+
border-top: 1px solid $panel-inner-border;
|
175
|
+
@include border-bottom-radius(($panel-border-radius - 1));
|
176
|
+
}
|
177
|
+
|
178
|
+
|
179
|
+
// Collapsable panels (aka, accordion)
|
180
|
+
//
|
181
|
+
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
182
|
+
// the help of our collapse JavaScript plugin.
|
183
|
+
|
184
|
+
.panel-group {
|
185
|
+
margin-bottom: $line-height-computed;
|
186
|
+
|
187
|
+
// Tighten up margin so it's only between panels
|
188
|
+
.panel {
|
189
|
+
margin-bottom: 0;
|
190
|
+
border-radius: $panel-border-radius;
|
191
|
+
overflow: hidden; // crop contents when collapsed
|
192
|
+
+ .panel {
|
193
|
+
margin-top: 5px;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
.panel-heading {
|
198
|
+
border-bottom: 0;
|
199
|
+
+ .panel-collapse .panel-body {
|
200
|
+
border-top: 1px solid $panel-inner-border;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
.panel-footer {
|
204
|
+
border-top: 0;
|
205
|
+
+ .panel-collapse .panel-body {
|
206
|
+
border-bottom: 1px solid $panel-inner-border;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
|
212
|
+
// Contextual variations
|
213
|
+
.panel-default {
|
214
|
+
@include panel-variant($panel-default-border, $panel-default-text, $panel-default-heading-bg, $panel-default-border);
|
215
|
+
}
|
216
|
+
.panel-primary {
|
217
|
+
@include panel-variant($panel-primary-border, $panel-primary-text, $panel-primary-heading-bg, $panel-primary-border);
|
218
|
+
}
|
219
|
+
.panel-success {
|
220
|
+
@include panel-variant($panel-success-border, $panel-success-text, $panel-success-heading-bg, $panel-success-border);
|
221
|
+
}
|
222
|
+
.panel-info {
|
223
|
+
@include panel-variant($panel-info-border, $panel-info-text, $panel-info-heading-bg, $panel-info-border);
|
224
|
+
}
|
225
|
+
.panel-warning {
|
226
|
+
@include panel-variant($panel-warning-border, $panel-warning-text, $panel-warning-heading-bg, $panel-warning-border);
|
227
|
+
}
|
228
|
+
.panel-danger {
|
229
|
+
@include panel-variant($panel-danger-border, $panel-danger-text, $panel-danger-heading-bg, $panel-danger-border);
|
230
|
+
}
|
@@ -7,17 +7,17 @@
|
|
7
7
|
position: absolute;
|
8
8
|
top: 0;
|
9
9
|
left: 0;
|
10
|
-
z-index:
|
10
|
+
z-index: $zindex-popover;
|
11
11
|
display: none;
|
12
|
-
max-width:
|
12
|
+
max-width: $popover-max-width;
|
13
13
|
padding: 1px;
|
14
14
|
text-align: left; // Reset given new insertion method
|
15
|
-
background-color:
|
15
|
+
background-color: $popover-bg;
|
16
16
|
background-clip: padding-box;
|
17
|
-
border: 1px solid
|
18
|
-
border: 1px solid
|
19
|
-
border-radius:
|
20
|
-
|
17
|
+
border: 1px solid $popover-fallback-border-color;
|
18
|
+
border: 1px solid $popover-border-color;
|
19
|
+
border-radius: $border-radius-large;
|
20
|
+
@include box-shadow(0 5px 10px rgba(0,0,0,.2));
|
21
21
|
|
22
22
|
// Overrides for proper insertion
|
23
23
|
white-space: normal;
|
@@ -32,11 +32,11 @@
|
|
32
32
|
.popover-title {
|
33
33
|
margin: 0; // reset heading margin
|
34
34
|
padding: 8px 14px;
|
35
|
-
font-size:
|
35
|
+
font-size: $font-size-base;
|
36
36
|
font-weight: normal;
|
37
37
|
line-height: 18px;
|
38
|
-
background-color:
|
39
|
-
border-bottom: 1px solid darken(
|
38
|
+
background-color: $popover-title-bg;
|
39
|
+
border-bottom: 1px solid darken($popover-title-bg, 5%);
|
40
40
|
border-radius: 5px 5px 0 0;
|
41
41
|
}
|
42
42
|
|
@@ -60,73 +60,73 @@
|
|
60
60
|
}
|
61
61
|
}
|
62
62
|
.popover .arrow {
|
63
|
-
border-width:
|
63
|
+
border-width: $popover-arrow-outer-width;
|
64
64
|
}
|
65
65
|
.popover .arrow:after {
|
66
|
-
border-width:
|
66
|
+
border-width: $popover-arrow-width;
|
67
67
|
content: "";
|
68
68
|
}
|
69
69
|
|
70
70
|
.popover {
|
71
71
|
&.top .arrow {
|
72
72
|
left: 50%;
|
73
|
-
margin-left:
|
73
|
+
margin-left: -$popover-arrow-outer-width;
|
74
74
|
border-bottom-width: 0;
|
75
|
-
border-top-color:
|
76
|
-
border-top-color:
|
77
|
-
bottom:
|
75
|
+
border-top-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
76
|
+
border-top-color: $popover-arrow-outer-color;
|
77
|
+
bottom: -$popover-arrow-outer-width;
|
78
78
|
&:after {
|
79
79
|
content: " ";
|
80
80
|
bottom: 1px;
|
81
|
-
margin-left:
|
81
|
+
margin-left: -$popover-arrow-width;
|
82
82
|
border-bottom-width: 0;
|
83
|
-
border-top-color:
|
83
|
+
border-top-color: $popover-arrow-color;
|
84
84
|
}
|
85
85
|
}
|
86
86
|
&.right .arrow {
|
87
87
|
top: 50%;
|
88
|
-
left:
|
89
|
-
margin-top:
|
88
|
+
left: -$popover-arrow-outer-width;
|
89
|
+
margin-top: -$popover-arrow-outer-width;
|
90
90
|
border-left-width: 0;
|
91
|
-
border-right-color:
|
92
|
-
border-right-color:
|
91
|
+
border-right-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
92
|
+
border-right-color: $popover-arrow-outer-color;
|
93
93
|
&:after {
|
94
94
|
content: " ";
|
95
95
|
left: 1px;
|
96
|
-
bottom:
|
96
|
+
bottom: -$popover-arrow-width;
|
97
97
|
border-left-width: 0;
|
98
|
-
border-right-color:
|
98
|
+
border-right-color: $popover-arrow-color;
|
99
99
|
}
|
100
100
|
}
|
101
101
|
&.bottom .arrow {
|
102
102
|
left: 50%;
|
103
|
-
margin-left:
|
103
|
+
margin-left: -$popover-arrow-outer-width;
|
104
104
|
border-top-width: 0;
|
105
|
-
border-bottom-color:
|
106
|
-
border-bottom-color:
|
107
|
-
top:
|
105
|
+
border-bottom-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
106
|
+
border-bottom-color: $popover-arrow-outer-color;
|
107
|
+
top: -$popover-arrow-outer-width;
|
108
108
|
&:after {
|
109
109
|
content: " ";
|
110
110
|
top: 1px;
|
111
|
-
margin-left:
|
111
|
+
margin-left: -$popover-arrow-width;
|
112
112
|
border-top-width: 0;
|
113
|
-
border-bottom-color:
|
113
|
+
border-bottom-color: $popover-arrow-color;
|
114
114
|
}
|
115
115
|
}
|
116
116
|
|
117
117
|
&.left .arrow {
|
118
118
|
top: 50%;
|
119
|
-
right:
|
120
|
-
margin-top:
|
119
|
+
right: -$popover-arrow-outer-width;
|
120
|
+
margin-top: -$popover-arrow-outer-width;
|
121
121
|
border-right-width: 0;
|
122
|
-
border-left-color:
|
123
|
-
border-left-color:
|
122
|
+
border-left-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
123
|
+
border-left-color: $popover-arrow-outer-color;
|
124
124
|
&:after {
|
125
125
|
content: " ";
|
126
126
|
right: 1px;
|
127
127
|
border-right-width: 0;
|
128
|
-
border-left-color:
|
129
|
-
bottom:
|
128
|
+
border-left-color: $popover-arrow-color;
|
129
|
+
bottom: -$popover-arrow-width;
|
130
130
|
}
|
131
131
|
}
|
132
132
|
|
@@ -26,7 +26,6 @@
|
|
26
26
|
}
|
27
27
|
|
28
28
|
// Don't show links for images, or javascript/internal links
|
29
|
-
.ir a:after,
|
30
29
|
a[href^="javascript:"]:after,
|
31
30
|
a[href^="#"]:after {
|
32
31
|
content: "";
|
@@ -51,10 +50,6 @@
|
|
51
50
|
max-width: 100% !important;
|
52
51
|
}
|
53
52
|
|
54
|
-
@page {
|
55
|
-
margin: 2cm .5cm;
|
56
|
-
}
|
57
|
-
|
58
53
|
p,
|
59
54
|
h2,
|
60
55
|
h3 {
|
@@ -67,6 +62,12 @@
|
|
67
62
|
page-break-after: avoid;
|
68
63
|
}
|
69
64
|
|
65
|
+
// Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
|
66
|
+
// Once fixed, we can just straight up remove this.
|
67
|
+
select {
|
68
|
+
background: #fff !important;
|
69
|
+
}
|
70
|
+
|
70
71
|
// Bootstrap components
|
71
72
|
.navbar {
|
72
73
|
display: none;
|
@@ -0,0 +1,80 @@
|
|
1
|
+
//
|
2
|
+
// Progress bars
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Bar animations
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
// WebKit
|
10
|
+
@-webkit-keyframes progress-bar-stripes {
|
11
|
+
from { background-position: 40px 0; }
|
12
|
+
to { background-position: 0 0; }
|
13
|
+
}
|
14
|
+
|
15
|
+
// Spec and IE10+
|
16
|
+
@keyframes progress-bar-stripes {
|
17
|
+
from { background-position: 40px 0; }
|
18
|
+
to { background-position: 0 0; }
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
// Bar itself
|
24
|
+
// -------------------------
|
25
|
+
|
26
|
+
// Outer container
|
27
|
+
.progress {
|
28
|
+
overflow: hidden;
|
29
|
+
height: $line-height-computed;
|
30
|
+
margin-bottom: $line-height-computed;
|
31
|
+
background-color: $progress-bg;
|
32
|
+
border-radius: $border-radius-base;
|
33
|
+
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
34
|
+
}
|
35
|
+
|
36
|
+
// Bar of progress
|
37
|
+
.progress-bar {
|
38
|
+
float: left;
|
39
|
+
width: 0%;
|
40
|
+
height: 100%;
|
41
|
+
font-size: $font-size-small;
|
42
|
+
line-height: $line-height-computed;
|
43
|
+
color: $progress-bar-color;
|
44
|
+
text-align: center;
|
45
|
+
background-color: $progress-bar-bg;
|
46
|
+
@include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
47
|
+
@include transition(width .6s ease);
|
48
|
+
}
|
49
|
+
|
50
|
+
// Striped bars
|
51
|
+
.progress-striped .progress-bar {
|
52
|
+
@include gradient-striped();
|
53
|
+
background-size: 40px 40px;
|
54
|
+
}
|
55
|
+
|
56
|
+
// Call animation for the active one
|
57
|
+
.progress.active .progress-bar {
|
58
|
+
@include animation(progress-bar-stripes 2s linear infinite);
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
// Variations
|
64
|
+
// -------------------------
|
65
|
+
|
66
|
+
.progress-bar-success {
|
67
|
+
@include progress-bar-variant($progress-bar-success-bg);
|
68
|
+
}
|
69
|
+
|
70
|
+
.progress-bar-info {
|
71
|
+
@include progress-bar-variant($progress-bar-info-bg);
|
72
|
+
}
|
73
|
+
|
74
|
+
.progress-bar-warning {
|
75
|
+
@include progress-bar-variant($progress-bar-warning-bg);
|
76
|
+
}
|
77
|
+
|
78
|
+
.progress-bar-danger {
|
79
|
+
@include progress-bar-variant($progress-bar-danger-bg);
|
80
|
+
}
|
@@ -0,0 +1,80 @@
|
|
1
|
+
//
|
2
|
+
// Responsive: Utility classes
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// IE10 in Windows (Phone) 8
|
7
|
+
//
|
8
|
+
// Support for responsive views via media queries is kind of borked in IE10, for
|
9
|
+
// Surface/desktop in split view and for Windows Phone 8. This particular fix
|
10
|
+
// must be accompanied by a snippet of JavaScript to sniff the user agent and
|
11
|
+
// apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
|
12
|
+
// our Getting Started page for more information on this bug.
|
13
|
+
//
|
14
|
+
// For more information, see the following:
|
15
|
+
//
|
16
|
+
// Issue: https://github.com/twbs/bootstrap/issues/10497
|
17
|
+
// Docs: http://getbootstrap.com/getting-started/#browsers
|
18
|
+
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
|
19
|
+
|
20
|
+
@-ms-viewport {
|
21
|
+
width: device-width;
|
22
|
+
}
|
23
|
+
|
24
|
+
|
25
|
+
// Visibility utilities
|
26
|
+
|
27
|
+
@include responsive-invisibility('.visible-xs');
|
28
|
+
|
29
|
+
@media (max-width: $screen-xs-max) {
|
30
|
+
@include responsive-visibility('.visible-xs');
|
31
|
+
}
|
32
|
+
|
33
|
+
@include responsive-invisibility('.visible-sm');
|
34
|
+
|
35
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
36
|
+
@include responsive-visibility('.visible-sm');
|
37
|
+
}
|
38
|
+
|
39
|
+
@include responsive-invisibility('.visible-md');
|
40
|
+
|
41
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
42
|
+
@include responsive-visibility('.visible-md');
|
43
|
+
}
|
44
|
+
|
45
|
+
@include responsive-invisibility('.visible-lg');
|
46
|
+
|
47
|
+
@media (min-width: $screen-lg-min) {
|
48
|
+
@include responsive-visibility('.visible-lg');
|
49
|
+
}
|
50
|
+
|
51
|
+
@media (max-width: $screen-xs-max) {
|
52
|
+
@include responsive-invisibility('.hidden-xs');
|
53
|
+
}
|
54
|
+
|
55
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
56
|
+
@include responsive-invisibility('.hidden-sm');
|
57
|
+
}
|
58
|
+
|
59
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
60
|
+
@include responsive-invisibility('.hidden-md');
|
61
|
+
}
|
62
|
+
|
63
|
+
@media (min-width: $screen-lg-min) {
|
64
|
+
@include responsive-invisibility('.hidden-lg');
|
65
|
+
}
|
66
|
+
|
67
|
+
|
68
|
+
// Print utilities
|
69
|
+
//
|
70
|
+
// Media queries are placed on the inside to be mixin-friendly.
|
71
|
+
|
72
|
+
@include responsive-invisibility('.visible-print');
|
73
|
+
|
74
|
+
@media print {
|
75
|
+
@include responsive-visibility('.visible-print');
|
76
|
+
}
|
77
|
+
|
78
|
+
@media print {
|
79
|
+
@include responsive-invisibility('.hidden-print');
|
80
|
+
}
|