oslo-red-cross-bootstrap-3-theme 1.3.0 → 1.5.0
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.
- package/_base.scss +23 -1
- package/_grid.scss +111 -0
- package/_navbar.scss +8 -1
- package/_print.scss +1 -1
- package/_responsive-utilities.scss +207 -0
- package/_variables.scss +3 -3
- package/index.scss +5 -0
- package/mixins/_grid-framework.scss +81 -0
- package/mixins/_grid.scss +151 -0
- package/package.json +1 -1
package/_base.scss
CHANGED
|
@@ -133,12 +133,34 @@ h1 > .label {
|
|
|
133
133
|
background-color: $gray-lighter;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
+
.text-danger {
|
|
137
|
+
color: $brand-danger !important;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.text-warning {
|
|
141
|
+
color: $brand-warning !important;
|
|
142
|
+
}
|
|
143
|
+
|
|
136
144
|
.collapsable.in,
|
|
137
145
|
.collapsable.collapsing {
|
|
138
146
|
display: block !important;
|
|
139
147
|
}
|
|
140
148
|
|
|
141
|
-
|
|
149
|
+
.list-dashed {
|
|
150
|
+
padding: 0;
|
|
151
|
+
margin: 0;
|
|
152
|
+
list-style-type: none;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.list-dashed > li:before {
|
|
156
|
+
content: "-";
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.page-header {
|
|
160
|
+
margin-bottom: 0;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@media screen and (min-width: 1024px) {
|
|
142
164
|
.collapsable {
|
|
143
165
|
display: block !important;
|
|
144
166
|
visibility: visible !important;
|
package/_grid.scss
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Grid system
|
|
3
|
+
// --------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// Container widths
|
|
7
|
+
//
|
|
8
|
+
// Set the container width, and override it for fixed navbars in media queries.
|
|
9
|
+
|
|
10
|
+
.container {
|
|
11
|
+
@include container-fixed;
|
|
12
|
+
|
|
13
|
+
@media (min-width: $screen-sm-min) {
|
|
14
|
+
width: $container-sm;
|
|
15
|
+
}
|
|
16
|
+
@media (min-width: $screen-md-min) {
|
|
17
|
+
width: $container-md;
|
|
18
|
+
}
|
|
19
|
+
@media (min-width: $screen-lg-min) {
|
|
20
|
+
width: $container-lg;
|
|
21
|
+
}
|
|
22
|
+
@media (min-width: $screen-xl-min) {
|
|
23
|
+
width: $container-xl;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
// Fluid container
|
|
29
|
+
//
|
|
30
|
+
// Utilizes the mixin meant for fixed width containers, but without any defined
|
|
31
|
+
// width for fluid, full width layouts.
|
|
32
|
+
|
|
33
|
+
.container-fluid {
|
|
34
|
+
@include container-fixed;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
// Row
|
|
39
|
+
//
|
|
40
|
+
// Rows contain and clear the floats of your columns.
|
|
41
|
+
|
|
42
|
+
.row {
|
|
43
|
+
@include make-row;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.row-no-gutters {
|
|
47
|
+
margin-right: 0;
|
|
48
|
+
margin-left: 0;
|
|
49
|
+
|
|
50
|
+
[class*="col-"] {
|
|
51
|
+
padding-right: 0;
|
|
52
|
+
padding-left: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
// Columns
|
|
58
|
+
//
|
|
59
|
+
// Common styles for small and large grid columns
|
|
60
|
+
|
|
61
|
+
@include make-grid-columns;
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
// Extra small grid
|
|
65
|
+
//
|
|
66
|
+
// Columns, offsets, pushes, and pulls for extra small devices like
|
|
67
|
+
// smartphones.
|
|
68
|
+
|
|
69
|
+
@include make-grid(xs);
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
// Small grid
|
|
73
|
+
//
|
|
74
|
+
// Columns, offsets, pushes, and pulls for the small device range, from phones
|
|
75
|
+
// to tablets.
|
|
76
|
+
|
|
77
|
+
@media (min-width: $screen-sm-min) {
|
|
78
|
+
@include make-grid(sm);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
// Medium grid
|
|
83
|
+
//
|
|
84
|
+
// Columns, offsets, pushes, and pulls for the desktop device range.
|
|
85
|
+
|
|
86
|
+
@media (min-width: $screen-md-min) {
|
|
87
|
+
@include make-grid(md);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
// Large grid
|
|
92
|
+
//
|
|
93
|
+
// Columns, offsets, pushes, and pulls for the large desktop device range.
|
|
94
|
+
|
|
95
|
+
@media (min-width: $screen-lg-min) {
|
|
96
|
+
@include make-grid(lg);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
// Extra large grid
|
|
101
|
+
//
|
|
102
|
+
// Columns, offsets, pushes, and pulls for the extra large desktop device range.
|
|
103
|
+
|
|
104
|
+
@media (min-width: $screen-xl-min) {
|
|
105
|
+
@include make-grid(xl);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media print {
|
|
109
|
+
@include make-grid(md);
|
|
110
|
+
}
|
|
111
|
+
|
package/_navbar.scss
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
.navbar-brand {
|
|
2
2
|
display: inline-block;
|
|
3
|
-
margin-left: 10px;
|
|
4
3
|
padding-top: 20px;
|
|
5
4
|
margin-top: 11px;
|
|
6
5
|
padding-left: 58px;
|
|
@@ -37,6 +36,14 @@
|
|
|
37
36
|
margin-left: 2px;
|
|
38
37
|
}
|
|
39
38
|
|
|
39
|
+
.navbar-nav > li.active > a,
|
|
40
|
+
.navbar-nav > li.active > a:hover,
|
|
41
|
+
.nav-pills > li.active > a,
|
|
42
|
+
.nav-pills > li.active > a:hover,
|
|
43
|
+
th.active {
|
|
44
|
+
background-color: $gray-light !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
@media (min-width: $screen-lg-min) {
|
|
41
48
|
.navbar .active, .nav-pills .active {
|
|
42
49
|
border-bottom: 2px solid $brand-danger;
|
package/_print.scss
CHANGED
|
@@ -0,0 +1,207 @@
|
|
|
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: https://getbootstrap.com/docs/3.4/getting-started/#support-ie10-width
|
|
18
|
+
// Source: https://timkadlec.com/2013/01/windows-phone-8-and-device-width/
|
|
19
|
+
// Source: https://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
|
|
20
|
+
|
|
21
|
+
@at-root {
|
|
22
|
+
@-ms-viewport {
|
|
23
|
+
width: device-width;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
// Visibility utilities
|
|
29
|
+
// Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0
|
|
30
|
+
|
|
31
|
+
@include responsive-invisibility('.visible-xs');
|
|
32
|
+
@include responsive-invisibility('.visible-sm');
|
|
33
|
+
@include responsive-invisibility('.visible-md');
|
|
34
|
+
@include responsive-invisibility('.visible-lg');
|
|
35
|
+
@include responsive-invisibility('.visible-xl');
|
|
36
|
+
|
|
37
|
+
.visible-xs-block,
|
|
38
|
+
.visible-xs-inline,
|
|
39
|
+
.visible-xs-inline-block,
|
|
40
|
+
.visible-sm-block,
|
|
41
|
+
.visible-sm-inline,
|
|
42
|
+
.visible-sm-inline-block,
|
|
43
|
+
.visible-md-block,
|
|
44
|
+
.visible-md-inline,
|
|
45
|
+
.visible-md-inline-block,
|
|
46
|
+
.visible-lg-block,
|
|
47
|
+
.visible-lg-inline,
|
|
48
|
+
.visible-lg-inline-block,
|
|
49
|
+
.visible-xl-block,
|
|
50
|
+
.visible-xl-inline,
|
|
51
|
+
.visible-xl-inline-block {
|
|
52
|
+
display: none !important;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (max-width: $screen-xs-max) {
|
|
56
|
+
@include responsive-visibility('.visible-xs');
|
|
57
|
+
}
|
|
58
|
+
.visible-xs-block {
|
|
59
|
+
@media (max-width: $screen-xs-max) {
|
|
60
|
+
display: block !important;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
.visible-xs-inline {
|
|
64
|
+
@media (max-width: $screen-xs-max) {
|
|
65
|
+
display: inline !important;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
.visible-xs-inline-block {
|
|
69
|
+
@media (max-width: $screen-xs-max) {
|
|
70
|
+
display: inline-block !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
|
75
|
+
@include responsive-visibility('.visible-sm');
|
|
76
|
+
}
|
|
77
|
+
.visible-sm-block {
|
|
78
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
|
79
|
+
display: block !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.visible-sm-inline {
|
|
83
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
|
84
|
+
display: inline !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
.visible-sm-inline-block {
|
|
88
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
|
89
|
+
display: inline-block !important;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
|
94
|
+
@include responsive-visibility('.visible-md');
|
|
95
|
+
}
|
|
96
|
+
.visible-md-block {
|
|
97
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
|
98
|
+
display: block !important;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
.visible-md-inline {
|
|
102
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
|
103
|
+
display: inline !important;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
.visible-md-inline-block {
|
|
107
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
|
108
|
+
display: inline-block !important;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@media (min-width: $screen-lg-min) and (max-width: $screen-lg-max) {
|
|
113
|
+
@include responsive-visibility('.visible-lg');
|
|
114
|
+
}
|
|
115
|
+
.visible-lg-block {
|
|
116
|
+
@media (min-width: $screen-lg-min) and (max-width: $screen-lg-max) {
|
|
117
|
+
display: block !important;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
.visible-lg-inline {
|
|
121
|
+
@media (min-width: $screen-lg-min) and (max-width: $screen-lg-max) {
|
|
122
|
+
display: inline !important;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
.visible-lg-inline-block {
|
|
126
|
+
@media (min-width: $screen-lg-min) and (max-width: $screen-lg-max) {
|
|
127
|
+
display: inline-block !important;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
@media (min-width: $screen-xl-min) {
|
|
133
|
+
@include responsive-visibility('.visible-xl');
|
|
134
|
+
}
|
|
135
|
+
.visible-xl-block {
|
|
136
|
+
@media (min-width: $screen-xl-min) {
|
|
137
|
+
display: block !important;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.visible-xl-inline {
|
|
141
|
+
@media (min-width: $screen-xl-min) {
|
|
142
|
+
display: inline !important;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.visible-xl-inline-block {
|
|
146
|
+
@media (min-width: $screen-xl-min) {
|
|
147
|
+
display: inline-block !important;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@media (max-width: $screen-xs-max) {
|
|
152
|
+
@include responsive-invisibility('.hidden-xs');
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
|
156
|
+
@include responsive-invisibility('.hidden-sm');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
|
160
|
+
@include responsive-invisibility('.hidden-md');
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@media (min-width: $screen-lg-min) and (max-width: $screen-lg-max) {
|
|
164
|
+
@include responsive-invisibility('.hidden-lg');
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
@media (min-width: $screen-xl-min) {
|
|
168
|
+
@include responsive-invisibility('.hidden-xl');
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
// Print utilities
|
|
173
|
+
//
|
|
174
|
+
// Media queries are placed on the inside to be mixin-friendly.
|
|
175
|
+
|
|
176
|
+
// Note: Deprecated .visible-print as of v3.2.0
|
|
177
|
+
|
|
178
|
+
@include responsive-invisibility('.visible-print');
|
|
179
|
+
|
|
180
|
+
@media print {
|
|
181
|
+
@include responsive-visibility('.visible-print');
|
|
182
|
+
}
|
|
183
|
+
.visible-print-block {
|
|
184
|
+
display: none !important;
|
|
185
|
+
|
|
186
|
+
@media print {
|
|
187
|
+
display: block !important;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
.visible-print-inline {
|
|
191
|
+
display: none !important;
|
|
192
|
+
|
|
193
|
+
@media print {
|
|
194
|
+
display: inline !important;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
.visible-print-inline-block {
|
|
198
|
+
display: none !important;
|
|
199
|
+
|
|
200
|
+
@media print {
|
|
201
|
+
display: inline-block !important;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
@media print {
|
|
206
|
+
@include responsive-invisibility('.hidden-print');
|
|
207
|
+
}
|
package/_variables.scss
CHANGED
|
@@ -18,9 +18,9 @@ $gray-light: lighten($gray-base, 80%) !default;
|
|
|
18
18
|
$gray-lighter: #f8f8f9 !default; // same as rodekors.no navbar
|
|
19
19
|
|
|
20
20
|
$brand-primary: #2C3E50 !default;
|
|
21
|
-
$brand-success: #
|
|
22
|
-
$brand-info: #
|
|
23
|
-
$brand-warning: #
|
|
21
|
+
$brand-success: #16A78A !default;
|
|
22
|
+
$brand-info: #1C75B0 !default;
|
|
23
|
+
$brand-warning: #CB820B !default;
|
|
24
24
|
$brand-danger: #D52B1E !default;
|
|
25
25
|
|
|
26
26
|
|
package/index.scss
CHANGED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
// Framework grid generation
|
|
2
|
+
//
|
|
3
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
|
4
|
+
// any value of `$grid-columns`.
|
|
5
|
+
|
|
6
|
+
// [converter] This is defined recursively in LESS, but Sass supports real loops
|
|
7
|
+
@mixin make-grid-columns($i: 1, $list: ".col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}, .col-xl-#{$i}") {
|
|
8
|
+
@for $i from (1 + 1) through $grid-columns {
|
|
9
|
+
$list: "#{$list}, .col-xs-#{$i}, .col-sm-#{$i}, .col-md-#{$i}, .col-lg-#{$i}, .col-xl-#{$i}";
|
|
10
|
+
}
|
|
11
|
+
#{$list} {
|
|
12
|
+
position: relative;
|
|
13
|
+
// Prevent columns from collapsing when empty
|
|
14
|
+
min-height: 1px;
|
|
15
|
+
// Inner gutter via padding
|
|
16
|
+
padding-right: floor(($grid-gutter-width / 2));
|
|
17
|
+
padding-left: ceil(($grid-gutter-width / 2));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// [converter] This is defined recursively in LESS, but Sass supports real loops
|
|
23
|
+
@mixin float-grid-columns($class, $i: 1, $list: ".col-#{$class}-#{$i}") {
|
|
24
|
+
@for $i from (1 + 1) through $grid-columns {
|
|
25
|
+
$list: "#{$list}, .col-#{$class}-#{$i}";
|
|
26
|
+
}
|
|
27
|
+
#{$list} {
|
|
28
|
+
float: left;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@mixin calc-grid-column($index, $class, $type) {
|
|
34
|
+
@if ($type == width) and ($index > 0) {
|
|
35
|
+
.col-#{$class}-#{$index} {
|
|
36
|
+
width: percentage(($index / $grid-columns));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@if ($type == push) and ($index > 0) {
|
|
40
|
+
.col-#{$class}-push-#{$index} {
|
|
41
|
+
left: percentage(($index / $grid-columns));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
@if ($type == push) and ($index == 0) {
|
|
45
|
+
.col-#{$class}-push-0 {
|
|
46
|
+
left: auto;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
@if ($type == pull) and ($index > 0) {
|
|
50
|
+
.col-#{$class}-pull-#{$index} {
|
|
51
|
+
right: percentage(($index / $grid-columns));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
@if ($type == pull) and ($index == 0) {
|
|
55
|
+
.col-#{$class}-pull-0 {
|
|
56
|
+
right: auto;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
@if ($type == offset) {
|
|
60
|
+
.col-#{$class}-offset-#{$index} {
|
|
61
|
+
margin-left: percentage(($index / $grid-columns));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// [converter] This is defined recursively in LESS, but Sass supports real loops
|
|
67
|
+
@mixin loop-grid-columns($columns, $class, $type) {
|
|
68
|
+
@for $i from 0 through $columns {
|
|
69
|
+
@include calc-grid-column($i, $class, $type);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// Create grid for specific class
|
|
75
|
+
@mixin make-grid($class) {
|
|
76
|
+
@include float-grid-columns($class);
|
|
77
|
+
@include loop-grid-columns($grid-columns, $class, width);
|
|
78
|
+
@include loop-grid-columns($grid-columns, $class, pull);
|
|
79
|
+
@include loop-grid-columns($grid-columns, $class, push);
|
|
80
|
+
@include loop-grid-columns($grid-columns, $class, offset);
|
|
81
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
// Grid system
|
|
2
|
+
//
|
|
3
|
+
// Generate semantic grid columns with these mixins.
|
|
4
|
+
|
|
5
|
+
// Centered container element
|
|
6
|
+
@mixin container-fixed($gutter: $grid-gutter-width) {
|
|
7
|
+
padding-right: ceil(($gutter / 2));
|
|
8
|
+
padding-left: floor(($gutter / 2));
|
|
9
|
+
margin-right: auto;
|
|
10
|
+
margin-left: auto;
|
|
11
|
+
@include clearfix;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Creates a wrapper for a series of columns
|
|
15
|
+
@mixin make-row($gutter: $grid-gutter-width) {
|
|
16
|
+
margin-right: floor(($gutter / -2));
|
|
17
|
+
margin-left: ceil(($gutter / -2));
|
|
18
|
+
@include clearfix;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Generate the extra small columns
|
|
22
|
+
@mixin make-xs-column($columns, $gutter: $grid-gutter-width) {
|
|
23
|
+
position: relative;
|
|
24
|
+
float: left;
|
|
25
|
+
width: percentage(($columns / $grid-columns));
|
|
26
|
+
min-height: 1px;
|
|
27
|
+
padding-right: ($gutter / 2);
|
|
28
|
+
padding-left: ($gutter / 2);
|
|
29
|
+
}
|
|
30
|
+
@mixin make-xs-column-offset($columns) {
|
|
31
|
+
margin-left: percentage(($columns / $grid-columns));
|
|
32
|
+
}
|
|
33
|
+
@mixin make-xs-column-push($columns) {
|
|
34
|
+
left: percentage(($columns / $grid-columns));
|
|
35
|
+
}
|
|
36
|
+
@mixin make-xs-column-pull($columns) {
|
|
37
|
+
right: percentage(($columns / $grid-columns));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Generate the small columns
|
|
41
|
+
@mixin make-sm-column($columns, $gutter: $grid-gutter-width) {
|
|
42
|
+
position: relative;
|
|
43
|
+
min-height: 1px;
|
|
44
|
+
padding-right: ($gutter / 2);
|
|
45
|
+
padding-left: ($gutter / 2);
|
|
46
|
+
|
|
47
|
+
@media (min-width: $screen-sm-min) {
|
|
48
|
+
float: left;
|
|
49
|
+
width: percentage(($columns / $grid-columns));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
@mixin make-sm-column-offset($columns) {
|
|
53
|
+
@media (min-width: $screen-sm-min) {
|
|
54
|
+
margin-left: percentage(($columns / $grid-columns));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
@mixin make-sm-column-push($columns) {
|
|
58
|
+
@media (min-width: $screen-sm-min) {
|
|
59
|
+
left: percentage(($columns / $grid-columns));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
@mixin make-sm-column-pull($columns) {
|
|
63
|
+
@media (min-width: $screen-sm-min) {
|
|
64
|
+
right: percentage(($columns / $grid-columns));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Generate the medium columns
|
|
69
|
+
@mixin make-md-column($columns, $gutter: $grid-gutter-width) {
|
|
70
|
+
position: relative;
|
|
71
|
+
min-height: 1px;
|
|
72
|
+
padding-right: ($gutter / 2);
|
|
73
|
+
padding-left: ($gutter / 2);
|
|
74
|
+
|
|
75
|
+
@media (min-width: $screen-md-min) {
|
|
76
|
+
float: left;
|
|
77
|
+
width: percentage(($columns / $grid-columns));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
@mixin make-md-column-offset($columns) {
|
|
81
|
+
@media (min-width: $screen-md-min) {
|
|
82
|
+
margin-left: percentage(($columns / $grid-columns));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
@mixin make-md-column-push($columns) {
|
|
86
|
+
@media (min-width: $screen-md-min) {
|
|
87
|
+
left: percentage(($columns / $grid-columns));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
@mixin make-md-column-pull($columns) {
|
|
91
|
+
@media (min-width: $screen-md-min) {
|
|
92
|
+
right: percentage(($columns / $grid-columns));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Generate the large columns
|
|
97
|
+
@mixin make-lg-column($columns, $gutter: $grid-gutter-width) {
|
|
98
|
+
position: relative;
|
|
99
|
+
min-height: 1px;
|
|
100
|
+
padding-right: ($gutter / 2);
|
|
101
|
+
padding-left: ($gutter / 2);
|
|
102
|
+
|
|
103
|
+
@media (min-width: $screen-lg-min) {
|
|
104
|
+
float: left;
|
|
105
|
+
width: percentage(($columns / $grid-columns));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
@mixin make-lg-column-offset($columns) {
|
|
109
|
+
@media (min-width: $screen-lg-min) {
|
|
110
|
+
margin-left: percentage(($columns / $grid-columns));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
@mixin make-lg-column-push($columns) {
|
|
114
|
+
@media (min-width: $screen-lg-min) {
|
|
115
|
+
left: percentage(($columns / $grid-columns));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@mixin make-lg-column-pull($columns) {
|
|
119
|
+
@media (min-width: $screen-lg-min) {
|
|
120
|
+
right: percentage(($columns / $grid-columns));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
// Generate the extra large columns
|
|
126
|
+
@mixin make-xl-column($columns, $gutter: $grid-gutter-width) {
|
|
127
|
+
position: relative;
|
|
128
|
+
min-height: 1px;
|
|
129
|
+
padding-right: ($gutter / 2);
|
|
130
|
+
padding-left: ($gutter / 2);
|
|
131
|
+
|
|
132
|
+
@media (min-width: $screen-xl-min) {
|
|
133
|
+
float: left;
|
|
134
|
+
width: percentage(($columns / $grid-columns));
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
@mixin make-xl-column-offset($columns) {
|
|
138
|
+
@media (min-width: $screen-xl-min) {
|
|
139
|
+
margin-left: percentage(($columns / $grid-columns));
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
@mixin make-xl-column-push($columns) {
|
|
143
|
+
@media (min-width: $screen-xl-min) {
|
|
144
|
+
left: percentage(($columns / $grid-columns));
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
@mixin make-xl-column-pull($columns) {
|
|
148
|
+
@media (min-width: $screen-xl-min) {
|
|
149
|
+
right: percentage(($columns / $grid-columns));
|
|
150
|
+
}
|
|
151
|
+
}
|