bootstrap 4.0.0.alpha1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of bootstrap might be problematic. Click here for more details.
- checksums.yaml +7 -0
- data/.gitattributes +14 -0
- data/.gitignore +19 -0
- data/.travis.yml +16 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +13 -0
- data/LICENSE +21 -0
- data/README.md +143 -0
- data/Rakefile +75 -0
- data/assets/javascripts/bootstrap-sprockets.js +11 -0
- data/assets/javascripts/bootstrap.js +3560 -0
- data/assets/javascripts/bootstrap.min.js +220 -0
- data/assets/javascripts/bootstrap/alert.js +192 -0
- data/assets/javascripts/bootstrap/button.js +172 -0
- data/assets/javascripts/bootstrap/carousel.js +478 -0
- data/assets/javascripts/bootstrap/collapse.js +364 -0
- data/assets/javascripts/bootstrap/dropdown.js +293 -0
- data/assets/javascripts/bootstrap/modal.js +536 -0
- data/assets/javascripts/bootstrap/popover.js +201 -0
- data/assets/javascripts/bootstrap/scrollspy.js +320 -0
- data/assets/javascripts/bootstrap/tab.js +263 -0
- data/assets/javascripts/bootstrap/tooltip.js +619 -0
- data/assets/javascripts/bootstrap/util.js +157 -0
- data/assets/stylesheets/_bootstrap-flex.scss +8 -0
- data/assets/stylesheets/_bootstrap-grid.scss +62 -0
- data/assets/stylesheets/_bootstrap-reboot.scss +10 -0
- data/assets/stylesheets/_bootstrap.scss +55 -0
- data/assets/stylesheets/bootstrap/_alert.scss +65 -0
- data/assets/stylesheets/bootstrap/_animation.scss +27 -0
- data/assets/stylesheets/bootstrap/_breadcrumb.scss +23 -0
- data/assets/stylesheets/bootstrap/_button-group.scss +224 -0
- data/assets/stylesheets/bootstrap/_buttons.scss +174 -0
- data/assets/stylesheets/bootstrap/_card.scss +293 -0
- data/assets/stylesheets/bootstrap/_carousel.scss +252 -0
- data/assets/stylesheets/bootstrap/_close.scss +28 -0
- data/assets/stylesheets/bootstrap/_code.scss +58 -0
- data/assets/stylesheets/bootstrap/_custom-forms.scss +225 -0
- data/assets/stylesheets/bootstrap/_dropdown.scss +191 -0
- data/assets/stylesheets/bootstrap/_forms.scss +454 -0
- data/assets/stylesheets/bootstrap/_grid.scss +76 -0
- data/assets/stylesheets/bootstrap/_images.scss +28 -0
- data/assets/stylesheets/bootstrap/_input-group.scss +181 -0
- data/assets/stylesheets/bootstrap/_jumbotron.scss +22 -0
- data/assets/stylesheets/bootstrap/_labels.scss +75 -0
- data/assets/stylesheets/bootstrap/_list-group.scss +128 -0
- data/assets/stylesheets/bootstrap/_media.scss +90 -0
- data/assets/stylesheets/bootstrap/_mixins.scss +54 -0
- data/assets/stylesheets/bootstrap/_modal.scss +146 -0
- data/assets/stylesheets/bootstrap/_nav.scss +155 -0
- data/assets/stylesheets/bootstrap/_navbar.scss +230 -0
- data/assets/stylesheets/bootstrap/_normalize.scss +428 -0
- data/assets/stylesheets/bootstrap/_pager.scss +57 -0
- data/assets/stylesheets/bootstrap/_pagination.scss +82 -0
- data/assets/stylesheets/bootstrap/_popover.scss +140 -0
- data/assets/stylesheets/bootstrap/_print.scss +88 -0
- data/assets/stylesheets/bootstrap/_progress.scss +156 -0
- data/assets/stylesheets/bootstrap/_reboot.scss +298 -0
- data/assets/stylesheets/bootstrap/_responsive-embed.scss +38 -0
- data/assets/stylesheets/bootstrap/_tables.scss +193 -0
- data/assets/stylesheets/bootstrap/_tooltip.scss +85 -0
- data/assets/stylesheets/bootstrap/_type.scss +192 -0
- data/assets/stylesheets/bootstrap/_utilities-responsive.scss +49 -0
- data/assets/stylesheets/bootstrap/_utilities-spacing.scss +78 -0
- data/assets/stylesheets/bootstrap/_utilities.scss +117 -0
- data/assets/stylesheets/bootstrap/_variables.scss +632 -0
- data/assets/stylesheets/bootstrap/mixins/_alert.scss +14 -0
- data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +13 -0
- data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +35 -0
- data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +76 -0
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +100 -0
- data/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +89 -0
- data/assets/stylesheets/bootstrap/mixins/_gradients.scss +43 -0
- data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +44 -0
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +75 -0
- data/assets/stylesheets/bootstrap/mixins/_hover.scss +59 -0
- data/assets/stylesheets/bootstrap/mixins/_image.scss +33 -0
- data/assets/stylesheets/bootstrap/mixins/_label.scss +11 -0
- data/assets/stylesheets/bootstrap/mixins/_list-group.scss +30 -0
- data/assets/stylesheets/bootstrap/mixins/_lists.scss +7 -0
- data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/assets/stylesheets/bootstrap/mixins/_navbar-align.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_pagination.scss +24 -0
- data/assets/stylesheets/bootstrap/mixins/_progress.scss +18 -0
- data/assets/stylesheets/bootstrap/mixins/_pulls.scss +6 -0
- data/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
- data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +18 -0
- data/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +32 -0
- data/assets/stylesheets/bootstrap/mixins/_size.scss +6 -0
- data/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
- data/assets/stylesheets/bootstrap/mixins/_table-row.scss +30 -0
- data/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +12 -0
- data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +8 -0
- data/assets/stylesheets/bootstrap/mixins/_text-truncate.scss +8 -0
- data/bootstrap.gemspec +36 -0
- data/lib/bootstrap.rb +76 -0
- data/lib/bootstrap/engine.rb +11 -0
- data/lib/bootstrap/version.rb +4 -0
- data/tasks/updater.rb +67 -0
- data/tasks/updater/js.rb +37 -0
- data/tasks/updater/logger.rb +57 -0
- data/tasks/updater/network.rb +101 -0
- data/tasks/updater/scss.rb +34 -0
- data/templates/project/_bootstrap-variables.scss +633 -0
- data/templates/project/manifest.rb +18 -0
- data/templates/project/styles.scss +10 -0
- data/test/compass_test.rb +9 -0
- data/test/dummy_rails/README.rdoc +3 -0
- data/test/dummy_rails/Rakefile +6 -0
- data/test/dummy_rails/app/assets/images/.keep +0 -0
- data/test/dummy_rails/app/assets/javascripts/application.js +7 -0
- data/test/dummy_rails/app/assets/stylesheets/application.sass +1 -0
- data/test/dummy_rails/app/controllers/application_controller.rb +5 -0
- data/test/dummy_rails/app/controllers/pages_controller.rb +4 -0
- data/test/dummy_rails/app/helpers/application_helper.rb +2 -0
- data/test/dummy_rails/app/views/layouts/application.html.erb +14 -0
- data/test/dummy_rails/app/views/pages/root.html.slim +58 -0
- data/test/dummy_rails/config.ru +4 -0
- data/test/dummy_rails/config/application.rb +34 -0
- data/test/dummy_rails/config/boot.rb +5 -0
- data/test/dummy_rails/config/environment.rb +5 -0
- data/test/dummy_rails/config/environments/development.rb +23 -0
- data/test/dummy_rails/config/environments/production.rb +82 -0
- data/test/dummy_rails/config/environments/test.rb +38 -0
- data/test/dummy_rails/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy_rails/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy_rails/config/initializers/inflections.rb +16 -0
- data/test/dummy_rails/config/initializers/mime_types.rb +5 -0
- data/test/dummy_rails/config/initializers/secret_token.rb +18 -0
- data/test/dummy_rails/config/initializers/session_store.rb +3 -0
- data/test/dummy_rails/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy_rails/config/locales/en.yml +3 -0
- data/test/dummy_rails/config/locales/es.yml +3 -0
- data/test/dummy_rails/config/routes.rb +3 -0
- data/test/dummy_rails/log/.keep +0 -0
- data/test/gemfiles/rails_4_2.gemfile +11 -0
- data/test/gemfiles/rails_head.gemfile +19 -0
- data/test/rails_test.rb +19 -0
- data/test/support/dummy_rails_integration.rb +22 -0
- data/test/support/reporting.rb +27 -0
- data/test/test_helper.rb +35 -0
- data/test/test_helper_rails.rb +6 -0
- metadata +433 -0
@@ -0,0 +1,85 @@
|
|
1
|
+
// Base class
|
2
|
+
.tooltip {
|
3
|
+
position: absolute;
|
4
|
+
z-index: $zindex-tooltip;
|
5
|
+
display: block;
|
6
|
+
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
7
|
+
// So reset our font and text properties to avoid inheriting weird values.
|
8
|
+
@include reset-text();
|
9
|
+
font-size: $font-size-sm;
|
10
|
+
opacity: 0;
|
11
|
+
|
12
|
+
&.in { opacity: $tooltip-opacity; }
|
13
|
+
|
14
|
+
&.tooltip-top,
|
15
|
+
&.bs-tether-element-attached-bottom {
|
16
|
+
padding: $tooltip-arrow-width 0;
|
17
|
+
margin-top: -3px;
|
18
|
+
|
19
|
+
.tooltip-arrow {
|
20
|
+
bottom: 0;
|
21
|
+
left: 50%;
|
22
|
+
margin-left: -$tooltip-arrow-width;
|
23
|
+
border-width: $tooltip-arrow-width $tooltip-arrow-width 0;
|
24
|
+
border-top-color: $tooltip-arrow-color;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
&.tooltip-right,
|
28
|
+
&.bs-tether-element-attached-left {
|
29
|
+
padding: 0 $tooltip-arrow-width;
|
30
|
+
margin-left: 3px;
|
31
|
+
|
32
|
+
.tooltip-arrow {
|
33
|
+
top: 50%;
|
34
|
+
left: 0;
|
35
|
+
margin-top: -$tooltip-arrow-width;
|
36
|
+
border-width: $tooltip-arrow-width $tooltip-arrow-width $tooltip-arrow-width 0;
|
37
|
+
border-right-color: $tooltip-arrow-color;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
&.tooltip-bottom,
|
41
|
+
&.bs-tether-element-attached-top {
|
42
|
+
padding: $tooltip-arrow-width 0;
|
43
|
+
margin-top: 3px;
|
44
|
+
|
45
|
+
.tooltip-arrow {
|
46
|
+
top: 0;
|
47
|
+
left: 50%;
|
48
|
+
margin-left: -$tooltip-arrow-width;
|
49
|
+
border-width: 0 $tooltip-arrow-width $tooltip-arrow-width;
|
50
|
+
border-bottom-color: $tooltip-arrow-color;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
&.tooltip-left,
|
54
|
+
&.bs-tether-element-attached-right {
|
55
|
+
padding: 0 $tooltip-arrow-width;
|
56
|
+
margin-left: -3px;
|
57
|
+
|
58
|
+
.tooltip-arrow {
|
59
|
+
top: 50%;
|
60
|
+
right: 0;
|
61
|
+
margin-top: -$tooltip-arrow-width;
|
62
|
+
border-width: $tooltip-arrow-width 0 $tooltip-arrow-width $tooltip-arrow-width;
|
63
|
+
border-left-color: $tooltip-arrow-color;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
// Wrapper for the tooltip content
|
69
|
+
.tooltip-inner {
|
70
|
+
max-width: $tooltip-max-width;
|
71
|
+
padding: 3px 8px;
|
72
|
+
color: $tooltip-color;
|
73
|
+
text-align: center;
|
74
|
+
background-color: $tooltip-bg;
|
75
|
+
@include border-radius($border-radius);
|
76
|
+
}
|
77
|
+
|
78
|
+
// Arrows
|
79
|
+
.tooltip-arrow {
|
80
|
+
position: absolute;
|
81
|
+
width: 0;
|
82
|
+
height: 0;
|
83
|
+
border-color: transparent;
|
84
|
+
border-style: solid;
|
85
|
+
}
|
@@ -0,0 +1,192 @@
|
|
1
|
+
//
|
2
|
+
// Headings
|
3
|
+
//
|
4
|
+
|
5
|
+
h1, h2, h3, h4, h5, h6,
|
6
|
+
.h1, .h2, .h3, .h4, .h5, .h6 {
|
7
|
+
font-family: $headings-font-family;
|
8
|
+
font-weight: $headings-font-weight;
|
9
|
+
line-height: $headings-line-height;
|
10
|
+
color: $headings-color;
|
11
|
+
}
|
12
|
+
|
13
|
+
h1, .h1,
|
14
|
+
h2, .h2,
|
15
|
+
h3, .h3,
|
16
|
+
h4, .h4,
|
17
|
+
h5, .h5,
|
18
|
+
h6, .h6 {
|
19
|
+
margin-bottom: $headings-margin-bottom;
|
20
|
+
}
|
21
|
+
|
22
|
+
h1 { font-size: $font-size-h1; }
|
23
|
+
h2 { font-size: $font-size-h2; }
|
24
|
+
h3 { font-size: $font-size-h3; }
|
25
|
+
h4 { font-size: $font-size-h4; }
|
26
|
+
h5 { font-size: $font-size-h5; }
|
27
|
+
h6 { font-size: $font-size-h6; }
|
28
|
+
|
29
|
+
// These declarations are kept separate from and placed after
|
30
|
+
// the previous tag-based declarations so that the classes beat the tags in
|
31
|
+
// the CSS cascade, and thus <h1 class="h2"> will be styled like an h2.
|
32
|
+
.h1 { font-size: $font-size-h1; }
|
33
|
+
.h2 { font-size: $font-size-h2; }
|
34
|
+
.h3 { font-size: $font-size-h3; }
|
35
|
+
.h4 { font-size: $font-size-h4; }
|
36
|
+
.h5 { font-size: $font-size-h5; }
|
37
|
+
.h6 { font-size: $font-size-h6; }
|
38
|
+
|
39
|
+
.lead {
|
40
|
+
font-size: $lead-font-size;
|
41
|
+
font-weight: $lead-font-weight;
|
42
|
+
}
|
43
|
+
|
44
|
+
// Type display classes
|
45
|
+
.display-1 {
|
46
|
+
font-size: $display1-size;
|
47
|
+
font-weight: $display1-weight;
|
48
|
+
}
|
49
|
+
.display-2 {
|
50
|
+
font-size: $display2-size;
|
51
|
+
font-weight: $display2-weight;
|
52
|
+
}
|
53
|
+
.display-3 {
|
54
|
+
font-size: $display3-size;
|
55
|
+
font-weight: $display3-weight;
|
56
|
+
}
|
57
|
+
.display-4 {
|
58
|
+
font-size: $display4-size;
|
59
|
+
font-weight: $display4-weight;
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
//
|
64
|
+
// Horizontal rules
|
65
|
+
//
|
66
|
+
|
67
|
+
hr {
|
68
|
+
margin-top: $spacer-y;
|
69
|
+
margin-bottom: $spacer-y;
|
70
|
+
border: 0;
|
71
|
+
border-top: $hr-border-width solid $hr-border-color;
|
72
|
+
}
|
73
|
+
|
74
|
+
|
75
|
+
//
|
76
|
+
// Emphasis
|
77
|
+
//
|
78
|
+
|
79
|
+
small,
|
80
|
+
.small {
|
81
|
+
font-size: 80%;
|
82
|
+
font-weight: normal;
|
83
|
+
}
|
84
|
+
|
85
|
+
mark,
|
86
|
+
.mark {
|
87
|
+
padding: .2em;
|
88
|
+
background-color: $state-warning-bg;
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
//
|
93
|
+
// Lists
|
94
|
+
//
|
95
|
+
|
96
|
+
.list-unstyled {
|
97
|
+
@include list-unstyled;
|
98
|
+
}
|
99
|
+
|
100
|
+
// Inline turns list items into inline-block
|
101
|
+
.list-inline {
|
102
|
+
@include list-unstyled;
|
103
|
+
margin-left: -5px;
|
104
|
+
|
105
|
+
> li {
|
106
|
+
display: inline-block;
|
107
|
+
padding-right: 5px;
|
108
|
+
padding-left: 5px;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
// Horizontal description lists w/ grid classes
|
113
|
+
.dl-horizontal {
|
114
|
+
margin-right: -$grid-gutter-width;
|
115
|
+
margin-left: -$grid-gutter-width;
|
116
|
+
@include clearfix;
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
//
|
121
|
+
// Misc
|
122
|
+
//
|
123
|
+
|
124
|
+
// Builds on `abbr`
|
125
|
+
.initialism {
|
126
|
+
font-size: 90%;
|
127
|
+
text-transform: uppercase;
|
128
|
+
}
|
129
|
+
|
130
|
+
// Blockquotes
|
131
|
+
.blockquote {
|
132
|
+
padding: ($spacer / 2) $spacer;
|
133
|
+
margin-bottom: $spacer;
|
134
|
+
font-size: $blockquote-font-size;
|
135
|
+
border-left: .25rem solid $blockquote-border-color;
|
136
|
+
|
137
|
+
p,
|
138
|
+
ul,
|
139
|
+
ol {
|
140
|
+
&:last-child {
|
141
|
+
margin-bottom: 0;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
|
145
|
+
footer {
|
146
|
+
display: block;
|
147
|
+
font-size: 80%; // back to default font-size
|
148
|
+
line-height: $line-height;
|
149
|
+
color: $blockquote-small-color;
|
150
|
+
|
151
|
+
&::before {
|
152
|
+
content: "\2014 \00A0"; // em dash, nbsp
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
// Opposite alignment of blockquote
|
158
|
+
.blockquote-reverse {
|
159
|
+
padding-right: $spacer;
|
160
|
+
padding-left: 0;
|
161
|
+
text-align: right;
|
162
|
+
border-right: .25rem solid $blockquote-border-color;
|
163
|
+
border-left: 0;
|
164
|
+
|
165
|
+
// Account for citation
|
166
|
+
footer {
|
167
|
+
&::before { content: ""; }
|
168
|
+
&::after {
|
169
|
+
content: "\00A0 \2014"; // nbsp, em dash
|
170
|
+
}
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
//
|
175
|
+
// Figures
|
176
|
+
//
|
177
|
+
|
178
|
+
.figure {
|
179
|
+
// Ensures the caption's text aligns with the image.
|
180
|
+
display: inline-block;
|
181
|
+
|
182
|
+
> img {
|
183
|
+
@extend .img-fluid;
|
184
|
+
margin-bottom: ($spacer-y / 2);
|
185
|
+
line-height: 1;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
.figure-caption {
|
190
|
+
font-size: 90%;
|
191
|
+
color: $gray-light;
|
192
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
//
|
2
|
+
// Mixins
|
3
|
+
//
|
4
|
+
|
5
|
+
@each $bp in map-keys($grid-breakpoints) {
|
6
|
+
.hidden-#{$bp}-up {
|
7
|
+
@include media-breakpoint-up($bp) {
|
8
|
+
display: none !important;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
.hidden-#{$bp}-down {
|
12
|
+
@include media-breakpoint-down($bp) {
|
13
|
+
display: none !important;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
|
19
|
+
// Print utilities
|
20
|
+
//
|
21
|
+
// Media queries are placed on the inside to be mixin-friendly.
|
22
|
+
|
23
|
+
.visible-print-block {
|
24
|
+
display: none !important;
|
25
|
+
|
26
|
+
@media print {
|
27
|
+
display: block !important;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
.visible-print-inline {
|
31
|
+
display: none !important;
|
32
|
+
|
33
|
+
@media print {
|
34
|
+
display: inline !important;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
.visible-print-inline-block {
|
38
|
+
display: none !important;
|
39
|
+
|
40
|
+
@media print {
|
41
|
+
display: inline-block !important;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.hidden-print {
|
46
|
+
@media print {
|
47
|
+
display: none !important;
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
// Margin
|
2
|
+
|
3
|
+
.m-a-0 { margin: 0 !important; }
|
4
|
+
.m-t-0 { margin-top: 0 !important; }
|
5
|
+
.m-r-0 { margin-right: 0 !important; }
|
6
|
+
.m-b-0 { margin-bottom: 0 !important; }
|
7
|
+
.m-l-0 { margin-left: 0 !important; }
|
8
|
+
.m-x-0 { margin-right: 0 !important; margin-left: 0 !important; }
|
9
|
+
.m-y-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
|
10
|
+
|
11
|
+
.m-a { margin: $spacer !important; }
|
12
|
+
.m-t { margin-top: $spacer-y !important; }
|
13
|
+
.m-r { margin-right: $spacer-x !important; }
|
14
|
+
.m-b { margin-bottom: $spacer-y !important; }
|
15
|
+
.m-l { margin-left: $spacer-x !important; }
|
16
|
+
.m-x { margin-right: $spacer-x !important; margin-left: $spacer-x !important; }
|
17
|
+
.m-y { margin-top: $spacer-y !important; margin-bottom: $spacer-y !important; }
|
18
|
+
.m-x-auto { margin-right: auto !important; margin-left: auto !important; }
|
19
|
+
|
20
|
+
.m-a-md { margin: ($spacer * 1.5) !important; }
|
21
|
+
.m-t-md { margin-top: ($spacer-y * 1.5) !important; }
|
22
|
+
.m-r-md { margin-right: ($spacer-y * 1.5) !important; }
|
23
|
+
.m-b-md { margin-bottom: ($spacer-y * 1.5) !important; }
|
24
|
+
.m-l-md { margin-left: ($spacer-y * 1.5) !important; }
|
25
|
+
.m-x-md { margin-right: ($spacer-x * 1.5) !important; margin-left: ($spacer-x * 1.5) !important; }
|
26
|
+
.m-y-md { margin-top: ($spacer-y * 1.5) !important; margin-bottom: ($spacer-y * 1.5) !important; }
|
27
|
+
|
28
|
+
.m-a-lg { margin: ($spacer * 3) !important; }
|
29
|
+
.m-t-lg { margin-top: ($spacer-y * 3) !important; }
|
30
|
+
.m-r-lg { margin-right: ($spacer-y * 3) !important; }
|
31
|
+
.m-b-lg { margin-bottom: ($spacer-y * 3) !important; }
|
32
|
+
.m-l-lg { margin-left: ($spacer-y * 3) !important; }
|
33
|
+
.m-x-lg { margin-right: ($spacer-x * 3) !important; margin-left: ($spacer-x * 3) !important; }
|
34
|
+
.m-y-lg { margin-top: ($spacer-y * 3) !important; margin-bottom: ($spacer-y * 3) !important; }
|
35
|
+
|
36
|
+
// Padding
|
37
|
+
|
38
|
+
.p-a-0 { padding: 0 !important; }
|
39
|
+
.p-t-0 { padding-top: 0 !important; }
|
40
|
+
.p-r-0 { padding-right: 0 !important; }
|
41
|
+
.p-b-0 { padding-bottom: 0 !important; }
|
42
|
+
.p-l-0 { padding-left: 0 !important; }
|
43
|
+
.p-x-0 { padding-right: 0 !important; padding-left: 0 !important; }
|
44
|
+
.p-y-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
|
45
|
+
|
46
|
+
.p-a { padding: $spacer !important; }
|
47
|
+
.p-t { padding-top: $spacer-y !important; }
|
48
|
+
.p-r { padding-right: $spacer-x !important; }
|
49
|
+
.p-b { padding-bottom: $spacer-y !important; }
|
50
|
+
.p-l { padding-left: $spacer-x !important; }
|
51
|
+
.p-x { padding-right: $spacer-x !important; padding-left: $spacer-x !important; }
|
52
|
+
.p-y { padding-top: $spacer-y !important; padding-bottom: $spacer-y !important; }
|
53
|
+
|
54
|
+
.p-a-md { padding: ($spacer * 1.5) !important; }
|
55
|
+
.p-t-md { padding-top: ($spacer-y * 1.5) !important; }
|
56
|
+
.p-r-md { padding-right: ($spacer-y * 1.5) !important; }
|
57
|
+
.p-b-md { padding-bottom: ($spacer-y * 1.5) !important; }
|
58
|
+
.p-l-md { padding-left: ($spacer-y * 1.5) !important; }
|
59
|
+
.p-x-md { padding-right: ($spacer-x * 1.5) !important; padding-left: ($spacer-x * 1.5) !important; }
|
60
|
+
.p-y-md { padding-top: ($spacer-y * 1.5) !important; padding-bottom: ($spacer-y * 1.5) !important; }
|
61
|
+
|
62
|
+
.p-a-lg { padding: ($spacer * 3) !important; }
|
63
|
+
.p-t-lg { padding-top: ($spacer-y * 3) !important; }
|
64
|
+
.p-r-lg { padding-right: ($spacer-y * 3) !important; }
|
65
|
+
.p-b-lg { padding-bottom: ($spacer-y * 3) !important; }
|
66
|
+
.p-l-lg { padding-left: ($spacer-y * 3) !important; }
|
67
|
+
.p-x-lg { padding-right: ($spacer-x * 3) !important; padding-left: ($spacer-x * 3) !important; }
|
68
|
+
.p-y-lg { padding-top: ($spacer-y * 3) !important; padding-bottom: ($spacer-y * 3) !important; }
|
69
|
+
|
70
|
+
// Positioning
|
71
|
+
|
72
|
+
.pos-f-t {
|
73
|
+
position: fixed;
|
74
|
+
top: 0;
|
75
|
+
right: 0;
|
76
|
+
left: 0;
|
77
|
+
z-index: $zindex-navbar-fixed;
|
78
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
//
|
2
|
+
// Floats
|
3
|
+
//
|
4
|
+
|
5
|
+
.clearfix {
|
6
|
+
@include clearfix();
|
7
|
+
}
|
8
|
+
|
9
|
+
.center-block {
|
10
|
+
@include center-block();
|
11
|
+
}
|
12
|
+
|
13
|
+
.pull-right {
|
14
|
+
@include pull-right();
|
15
|
+
}
|
16
|
+
|
17
|
+
.pull-left {
|
18
|
+
@include pull-left();
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
//
|
23
|
+
// Screenreaders
|
24
|
+
//
|
25
|
+
|
26
|
+
.sr-only {
|
27
|
+
@include sr-only();
|
28
|
+
}
|
29
|
+
|
30
|
+
.sr-only-focusable {
|
31
|
+
@include sr-only-focusable();
|
32
|
+
}
|
33
|
+
|
34
|
+
// Always hide an element with the `hidden` HTML attribute (from PureCSS).
|
35
|
+
[hidden] {
|
36
|
+
display: none !important;
|
37
|
+
}
|
38
|
+
|
39
|
+
.invisible {
|
40
|
+
visibility: hidden;
|
41
|
+
}
|
42
|
+
|
43
|
+
.text-hide {
|
44
|
+
@include text-hide();
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
//
|
49
|
+
// Text
|
50
|
+
//
|
51
|
+
|
52
|
+
// Alignment
|
53
|
+
|
54
|
+
.text-left { text-align: left !important; }
|
55
|
+
.text-right { text-align: right !important; }
|
56
|
+
.text-center { text-align: center !important; }
|
57
|
+
.text-justify { text-align: justify !important; }
|
58
|
+
.text-nowrap { white-space: nowrap !important; }
|
59
|
+
.text-truncate { @include text-truncate; }
|
60
|
+
|
61
|
+
// Responsive alignment
|
62
|
+
|
63
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
64
|
+
@include media-breakpoint-up($breakpoint) {
|
65
|
+
.text-#{$breakpoint}-left { text-align: left; }
|
66
|
+
.text-#{$breakpoint}-right { text-align: right; }
|
67
|
+
.text-#{$breakpoint}-center { text-align: center; }
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
// Transformation
|
72
|
+
|
73
|
+
.text-lowercase { text-transform: lowercase; }
|
74
|
+
.text-uppercase { text-transform: uppercase; }
|
75
|
+
.text-capitalize { text-transform: capitalize; }
|
76
|
+
|
77
|
+
// Contextual colors
|
78
|
+
|
79
|
+
.text-muted {
|
80
|
+
color: $text-muted;
|
81
|
+
}
|
82
|
+
|
83
|
+
@include text-emphasis-variant('.text-primary', $brand-primary);
|
84
|
+
|
85
|
+
@include text-emphasis-variant('.text-success', $brand-success);
|
86
|
+
|
87
|
+
@include text-emphasis-variant('.text-info', $brand-info);
|
88
|
+
|
89
|
+
@include text-emphasis-variant('.text-warning', $brand-warning);
|
90
|
+
|
91
|
+
@include text-emphasis-variant('.text-danger', $brand-danger);
|
92
|
+
|
93
|
+
|
94
|
+
// Contextual backgrounds
|
95
|
+
// For now we'll leave these alongside the text classes until v4 when we can
|
96
|
+
// safely shift things around (per SemVer rules).
|
97
|
+
|
98
|
+
// Inverse
|
99
|
+
// Todo: redo this as a proper class
|
100
|
+
.bg-inverse {
|
101
|
+
color: $gray-lighter;
|
102
|
+
background-color: $gray-dark;
|
103
|
+
}
|
104
|
+
|
105
|
+
.bg-faded {
|
106
|
+
background-color: $gray-lightest;
|
107
|
+
}
|
108
|
+
|
109
|
+
@include bg-variant('.bg-primary', $brand-primary);
|
110
|
+
|
111
|
+
@include bg-variant('.bg-success', $brand-success);
|
112
|
+
|
113
|
+
@include bg-variant('.bg-info', $brand-info);
|
114
|
+
|
115
|
+
@include bg-variant('.bg-warning', $brand-warning);
|
116
|
+
|
117
|
+
@include bg-variant('.bg-danger', $brand-danger);
|