bootstrap-email 1.5.2 → 1.6.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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/core/bootstrap-email.scss +22 -24
- data/core/bootstrap-head.scss +37 -36
- data/core/scss/_helper.scss +2 -0
- data/core/scss/{_reboot_email.scss → _reboot-email.scss} +10 -9
- data/core/scss/{_reboot_head.scss → _reboot-head.scss} +3 -2
- data/core/scss/_variable.scss +7 -0
- data/core/scss/components/_alert.scss +10 -7
- data/core/scss/components/_badge.scss +18 -15
- data/core/scss/components/_button.scss +25 -22
- data/core/scss/components/_card.scss +7 -5
- data/core/scss/components/_container.scss +4 -2
- data/core/scss/components/_grid.scss +4 -2
- data/core/scss/components/_hr.scss +3 -1
- data/core/scss/components/_stack.scss +5 -3
- data/core/scss/components/_table.scss +20 -17
- data/core/scss/helpers/_functions.scss +17 -8
- data/core/scss/helpers/_selectors_for_utils.scss +38 -13
- data/core/scss/utilities/_background.scss +5 -2
- data/core/scss/utilities/_border-radius.scss +9 -6
- data/core/scss/utilities/_border.scss +11 -8
- data/core/scss/utilities/_color.scss +7 -4
- data/core/scss/utilities/_display.scss +5 -2
- data/core/scss/utilities/_sizing.scss +16 -13
- data/core/scss/utilities/_spacing.scss +10 -7
- data/core/scss/utilities/_typography.scss +16 -13
- data/core/scss/utilities/_valign.scss +5 -2
- data/core/scss/variables/_body.scss +4 -2
- data/core/scss/variables/_borders.scss +3 -1
- data/core/scss/variables/_buttons.scss +16 -10
- data/core/scss/variables/_colors.scss +92 -90
- data/core/scss/variables/_tables.scss +4 -2
- data/core/scss/variables/_typography.scss +3 -1
- data/core/scss/variables/_utilities.scss +19 -17
- data/lib/bootstrap-email/converters/spacer.rb +2 -0
- data/lib/bootstrap-email/erb.rb +1 -1
- metadata +5 -20
- data/core/scss/_helpers.scss +0 -3
- data/core/scss/_variables.scss +0 -7
- data/core/scss/helpers/_mixins.scss +0 -21
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 470d415dd6870a956a17076a8bd4869e10e6c5714c1ced9d4d94c244aa4c807b
|
|
4
|
+
data.tar.gz: f47493294d7933d1cf6f4ad88bd5b609ab0018351dc5917ac2422a6abf6c71ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6f391d28adc30f2e02abc5bf1a0c8c81281f11bf9901305fef1e1d278ccc9ebb57875a0fba4fe26e2d1f47270065be6deca7671180b71c82ea4d58e033dfa49f
|
|
7
|
+
data.tar.gz: 1b948ffc86509b61be6b81d2d7903df9af7cf6c18df1a23f0a3d2444181f1cc22d86c6c4bec17f47c1c7610c8cebcc8668b96cd50ff388ab5aa0bed51fb2ed07
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.6.0
|
data/core/bootstrap-email.scss
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
@
|
|
2
|
-
@import 'scss/variables';
|
|
3
|
-
@import 'scss/reboot_email';
|
|
1
|
+
@use "scss/reboot-email";
|
|
4
2
|
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
3
|
+
@use "scss/components/alert";
|
|
4
|
+
@use "scss/components/badge";
|
|
5
|
+
@use "scss/components/button";
|
|
6
|
+
@use "scss/components/card";
|
|
7
|
+
@use "scss/components/container";
|
|
8
|
+
@use "scss/components/grid";
|
|
9
|
+
@use "scss/components/hr";
|
|
10
|
+
@use "scss/components/image";
|
|
11
|
+
@use "scss/components/preview";
|
|
12
|
+
@use "scss/components/table";
|
|
13
|
+
@use "scss/components/stack";
|
|
16
14
|
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@
|
|
26
|
-
@
|
|
15
|
+
@use "scss/utilities/background";
|
|
16
|
+
@use "scss/utilities/border";
|
|
17
|
+
@use "scss/utilities/border-radius";
|
|
18
|
+
@use "scss/utilities/color";
|
|
19
|
+
@use "scss/utilities/display";
|
|
20
|
+
@use "scss/utilities/sizing";
|
|
21
|
+
@use "scss/utilities/spacing";
|
|
22
|
+
@use "scss/utilities/text-decoration";
|
|
23
|
+
@use "scss/utilities/typography";
|
|
24
|
+
@use "scss/utilities/valign";
|
data/core/bootstrap-head.scss
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
//
|
|
2
2
|
// This file will be placed in the head of the document and will not be inlined
|
|
3
3
|
//
|
|
4
|
-
@
|
|
5
|
-
@
|
|
4
|
+
@use "sass:string";
|
|
5
|
+
@use "scss/helper";
|
|
6
|
+
@use "scss/variable";
|
|
7
|
+
@use "scss/reboot-head" as *;
|
|
6
8
|
|
|
7
|
-
@if
|
|
8
|
-
@each $font-face in
|
|
9
|
+
@if variable.$font-faces {
|
|
10
|
+
@each $font-face in variable.$font-faces {
|
|
9
11
|
// @font-face has the least quirks in email clients: https://www.litmus.com/blog/the-ultimate-guide-to-web-fonts
|
|
10
12
|
@font-face {
|
|
11
13
|
font-family: map-get($font-face, "font-family");
|
|
@@ -16,13 +18,12 @@
|
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
|
|
19
|
-
@import 'scss/reboot_head';
|
|
20
21
|
|
|
21
22
|
/*! allow_purge_after */
|
|
22
23
|
|
|
23
24
|
@media screen and (max-width: 600px) {
|
|
24
25
|
// Row Gap
|
|
25
|
-
@each $space, $value in
|
|
26
|
+
@each $space, $value in variable.$spacers {
|
|
26
27
|
.gap-#{$space}.row,
|
|
27
28
|
.gap-x-#{$space}.row {
|
|
28
29
|
margin-right: -1 * $value !important;
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
// Stack Gap
|
|
46
|
-
@each $space, $value in
|
|
47
|
+
@each $space, $value in variable.$spacers {
|
|
47
48
|
table.gap-lg-#{$space}.stack-x > tbody > tr > td {
|
|
48
49
|
padding-right: 0 !important;
|
|
49
50
|
}
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
padding-bottom: 0 !important;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
@each $space, $value in
|
|
55
|
+
@each $space, $value in variable.$spacers {
|
|
55
56
|
table.gap-#{$space}.stack-x > tbody > tr > td {
|
|
56
57
|
padding-right: $value !important;
|
|
57
58
|
}
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
}
|
|
62
63
|
|
|
63
64
|
// Grid
|
|
64
|
-
@each $key, $value in
|
|
65
|
+
@each $key, $value in variable.$grid-cols {
|
|
65
66
|
td.col-lg-#{$key} {
|
|
66
67
|
display: block;
|
|
67
68
|
width: 100% !important;
|
|
@@ -77,37 +78,37 @@
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
// Display
|
|
80
|
-
@each $display in
|
|
81
|
+
@each $display in variable.$display-type {
|
|
81
82
|
.d-lg-#{$display} {
|
|
82
83
|
display: unset !important;
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
|
-
@each $display in
|
|
86
|
+
@each $display in variable.$display-type {
|
|
86
87
|
.d-#{$display} {
|
|
87
88
|
display: $display !important;
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
|
|
91
92
|
// Sizing Max Width / Height
|
|
92
|
-
@each $name, $property in
|
|
93
|
-
@include sizing-util('.max-#{$name}-lg-full') {
|
|
93
|
+
@each $name, $property in variable.$sizing-types {
|
|
94
|
+
@include helper.sizing-util('.max-#{$name}-lg-full') {
|
|
94
95
|
max-#{$property}: unset !important;
|
|
95
96
|
#{$property}: auto !important;
|
|
96
97
|
}
|
|
97
|
-
@each $size, $value in
|
|
98
|
-
@include sizing-util('.max-#{$name}-lg-#{$size}') {
|
|
98
|
+
@each $size, $value in variable.$sizing {
|
|
99
|
+
@include helper.sizing-util('.max-#{$name}-lg-#{$size}') {
|
|
99
100
|
max-#{$property}: unset !important;
|
|
100
101
|
#{$property}: auto !important;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
}
|
|
104
|
-
@each $name, $property in
|
|
105
|
-
@include sizing-util('.max-#{$name}-full') {
|
|
105
|
+
@each $name, $property in variable.$sizing-types {
|
|
106
|
+
@include helper.sizing-util('.max-#{$name}-full') {
|
|
106
107
|
max-#{$property}: 100% !important;
|
|
107
108
|
#{$property}: 100% !important;
|
|
108
109
|
}
|
|
109
|
-
@each $size, $value in
|
|
110
|
-
@include sizing-util('.max-#{$name}-#{$size}') {
|
|
110
|
+
@each $size, $value in variable.$sizing {
|
|
111
|
+
@include helper.sizing-util('.max-#{$name}-#{$size}') {
|
|
111
112
|
max-#{$property}: $value !important;
|
|
112
113
|
#{$property}: 100% !important;
|
|
113
114
|
}
|
|
@@ -115,28 +116,28 @@
|
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
// Sizing Width / Height
|
|
118
|
-
@each $name, $property in
|
|
119
|
-
@include sizing-util('.#{$name}-lg-full') {
|
|
119
|
+
@each $name, $property in variable.$sizing-types {
|
|
120
|
+
@include helper.sizing-util('.#{$name}-lg-full') {
|
|
120
121
|
#{$property}: auto !important;
|
|
121
122
|
}
|
|
122
|
-
@include sizing-util('.#{$name}-lg-auto') {
|
|
123
|
+
@include helper.sizing-util('.#{$name}-lg-auto') {
|
|
123
124
|
#{$property}: auto !important;
|
|
124
125
|
}
|
|
125
|
-
@each $size, $value in
|
|
126
|
-
@include sizing-util('.#{$name}-lg-#{$size}') {
|
|
126
|
+
@each $size, $value in variable.$sizing {
|
|
127
|
+
@include helper.sizing-util('.#{$name}-lg-#{$size}') {
|
|
127
128
|
#{$property}: auto !important;
|
|
128
129
|
}
|
|
129
130
|
}
|
|
130
131
|
}
|
|
131
|
-
@each $name, $property in
|
|
132
|
-
@include sizing-util('.#{$name}-full') {
|
|
132
|
+
@each $name, $property in variable.$sizing-types {
|
|
133
|
+
@include helper.sizing-util('.#{$name}-full') {
|
|
133
134
|
#{$property}: 100% !important;
|
|
134
135
|
}
|
|
135
|
-
@include sizing-util('.#{$name}-auto') {
|
|
136
|
+
@include helper.sizing-util('.#{$name}-auto') {
|
|
136
137
|
#{$property}: auto !important;
|
|
137
138
|
}
|
|
138
|
-
@each $size, $value in
|
|
139
|
-
@include sizing-util('.#{$name}-#{$size}') {
|
|
139
|
+
@each $size, $value in variable.$sizing {
|
|
140
|
+
@include helper.sizing-util('.#{$name}-#{$size}') {
|
|
140
141
|
#{$property}: $value !important;
|
|
141
142
|
}
|
|
142
143
|
}
|
|
@@ -144,23 +145,23 @@
|
|
|
144
145
|
|
|
145
146
|
// Spacing
|
|
146
147
|
// Reset large padding to 0 on small device
|
|
147
|
-
@each $size, $value in
|
|
148
|
-
@include padding-group('lg-', $size, unquote('0 !important'));
|
|
148
|
+
@each $size, $value in variable.$spacers {
|
|
149
|
+
@include helper.padding-group('lg-', $size, string.unquote('0 !important'));
|
|
149
150
|
}
|
|
150
151
|
|
|
151
152
|
// Set proper padding on small devices
|
|
152
|
-
@each $size, $value in
|
|
153
|
-
@include padding-group('', $size, unquote('#{$value} !important'));
|
|
153
|
+
@each $size, $value in variable.$spacers {
|
|
154
|
+
@include helper.padding-group('', $size, string.unquote('#{$value} !important'));
|
|
154
155
|
}
|
|
155
156
|
|
|
156
157
|
// Spacers
|
|
157
|
-
@include spacer-util('*[class*=s-lg-]') {
|
|
158
|
+
@include helper.spacer-util('*[class*=s-lg-]') {
|
|
158
159
|
font-size: 0 !important;
|
|
159
160
|
line-height: 0 !important;
|
|
160
161
|
height: 0 !important;
|
|
161
162
|
}
|
|
162
|
-
@each $size, $value in
|
|
163
|
-
@include spacer-util('.s-#{$size}') {
|
|
163
|
+
@each $size, $value in variable.$spacers {
|
|
164
|
+
@include helper.spacer-util('.s-#{$size}') {
|
|
164
165
|
font-size: $value !important;
|
|
165
166
|
line-height: $value !important;
|
|
166
167
|
height: $value !important;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "variable";
|
|
1
2
|
// Based on https://templates.mailchimp.com/development/css/reset-styles/ by Mailchimp
|
|
2
3
|
body, .body {
|
|
3
4
|
margin: 0;
|
|
@@ -10,15 +11,15 @@ body, .body {
|
|
|
10
11
|
height: 100%;
|
|
11
12
|
-webkit-text-size-adjust: 100%;
|
|
12
13
|
-ms-text-size-adjust: 100%;
|
|
13
|
-
font-family:
|
|
14
|
-
line-height:
|
|
15
|
-
font-weight:
|
|
16
|
-
font-size:
|
|
14
|
+
font-family: variable.$font-family-base;
|
|
15
|
+
line-height: variable.$line-height-base * variable.$font-size-base;
|
|
16
|
+
font-weight: variable.$font-weight-base;
|
|
17
|
+
font-size: variable.$font-size-base;
|
|
17
18
|
-moz-box-sizing: border-box;
|
|
18
19
|
-webkit-box-sizing: border-box;
|
|
19
20
|
box-sizing: border-box;
|
|
20
|
-
background-color:
|
|
21
|
-
color:
|
|
21
|
+
background-color: variable.$body-bg;
|
|
22
|
+
color: variable.$body-color;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
img {
|
|
@@ -39,11 +40,11 @@ th,
|
|
|
39
40
|
td,
|
|
40
41
|
p {
|
|
41
42
|
text-align: left;
|
|
42
|
-
line-height:
|
|
43
|
-
font-size:
|
|
43
|
+
line-height: variable.$line-height-base * variable.$font-size-base;
|
|
44
|
+
font-size: variable.$font-size-base;
|
|
44
45
|
margin: 0;
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
a {
|
|
48
|
-
color:
|
|
49
|
+
color: variable.$link-color;
|
|
49
50
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
@use "variable";
|
|
1
2
|
// Force base font in Outlook
|
|
2
3
|
body, table, td {
|
|
3
|
-
font-family:
|
|
4
|
+
font-family: variable.$font-family-base !important;
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
// Forces Outlook.com to display emails at full width
|
|
@@ -47,7 +48,7 @@ img {
|
|
|
47
48
|
|
|
48
49
|
// Prevent Outlook from adding extra spacing to tables.
|
|
49
50
|
table:not([class^=s-]) {
|
|
50
|
-
font-family:
|
|
51
|
+
font-family: variable.$font-family-base;
|
|
51
52
|
mso-table-lspace: 0pt;
|
|
52
53
|
mso-table-rspace: 0pt;
|
|
53
54
|
border-spacing: 0px;
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
+
@use "sass:color";
|
|
2
|
+
@use "../variable";
|
|
3
|
+
|
|
1
4
|
.alert {
|
|
2
5
|
border-collapse: separate !important;
|
|
3
6
|
border: 0;
|
|
4
7
|
width: 100%;
|
|
5
8
|
& > tbody > tr > td {
|
|
6
|
-
padding: 0.75 *
|
|
9
|
+
padding: 0.75 * variable.$font-size-base 1.25 * variable.$font-size-base;
|
|
7
10
|
border: 1px solid transparent;
|
|
8
|
-
border-radius: 0.25 *
|
|
11
|
+
border-radius: 0.25 * variable.$font-size-base;
|
|
9
12
|
}
|
|
10
13
|
}
|
|
11
14
|
|
|
12
|
-
@each $color, $value in
|
|
15
|
+
@each $color, $value in variable.$theme-colors {
|
|
13
16
|
.alert-#{$color} td {
|
|
14
|
-
background-color:
|
|
15
|
-
border-color:
|
|
16
|
-
color:
|
|
17
|
+
background-color: color.adjust($value, $lightness: 40%);
|
|
18
|
+
border-color: color.adjust($value, $lightness: 35%);
|
|
19
|
+
color: color.adjust($value, $lightness: -30%);
|
|
17
20
|
.hr > table > tbody > tr > td {
|
|
18
|
-
border-top: 1px solid
|
|
21
|
+
border-top: 1px solid color.adjust($value, $lightness: 35%);
|
|
19
22
|
}
|
|
20
23
|
}
|
|
21
24
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variable";
|
|
3
|
+
|
|
1
4
|
.badge > tbody > tr > td {
|
|
2
5
|
display: inline-block;
|
|
3
|
-
padding: .25 *
|
|
6
|
+
padding: .25 * variable.$font-size-base .4 * variable.$font-size-base;
|
|
4
7
|
font-size: 75%;
|
|
5
8
|
font-weight: 700;
|
|
6
9
|
line-height: 1;
|
|
@@ -10,52 +13,52 @@
|
|
|
10
13
|
border-radius: 4px;
|
|
11
14
|
}
|
|
12
15
|
|
|
13
|
-
@each $name, $theme in
|
|
16
|
+
@each $name, $theme in variable.$btn-themes {
|
|
14
17
|
.badge-#{$name} td {
|
|
15
|
-
background-color: map
|
|
18
|
+
background-color: map.get($theme, "background-color");
|
|
16
19
|
}
|
|
17
20
|
.badge-#{$name} td span {
|
|
18
|
-
background-color: map
|
|
19
|
-
color: map
|
|
20
|
-
border-color: map
|
|
21
|
+
background-color: map.get($theme, "background-color");
|
|
22
|
+
color: map.get($theme, "color");
|
|
23
|
+
border-color: map.get($theme, "border-color");
|
|
21
24
|
}
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
// Pill badges
|
|
25
28
|
.badge-pill > tbody > tr > td {
|
|
26
|
-
padding-right: .6 *
|
|
27
|
-
padding-left: .6 *
|
|
28
|
-
border-radius:
|
|
29
|
+
padding-right: .6 * variable.$font-size-base;
|
|
30
|
+
padding-left: .6 * variable.$font-size-base;
|
|
31
|
+
border-radius: variable.$border-radius-pill;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
// Make badge text 75% smaller when in a header
|
|
32
35
|
h1 {
|
|
33
36
|
.badge > tbody > tr > td {
|
|
34
|
-
font-size: .75 * 2.25 *
|
|
37
|
+
font-size: .75 * 2.25 * variable.$font-size-base;
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
h2 {
|
|
38
41
|
.badge > tbody > tr > td {
|
|
39
|
-
font-size: .75 * 2 *
|
|
42
|
+
font-size: .75 * 2 * variable.$font-size-base;
|
|
40
43
|
}
|
|
41
44
|
}
|
|
42
45
|
h3 {
|
|
43
46
|
.badge > tbody > tr > td {
|
|
44
|
-
font-size: .75 * 1.75 *
|
|
47
|
+
font-size: .75 * 1.75 * variable.$font-size-base;
|
|
45
48
|
}
|
|
46
49
|
}
|
|
47
50
|
h4 {
|
|
48
51
|
.badge > tbody > tr > td {
|
|
49
|
-
font-size: .75 * 1.5 *
|
|
52
|
+
font-size: .75 * 1.5 * variable.$font-size-base;
|
|
50
53
|
}
|
|
51
54
|
}
|
|
52
55
|
h5 {
|
|
53
56
|
.badge > tbody > tr > td {
|
|
54
|
-
font-size: .75 * 1.25 *
|
|
57
|
+
font-size: .75 * 1.25 * variable.$font-size-base;
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
60
|
h6 {
|
|
58
61
|
.badge > tbody > tr > td {
|
|
59
|
-
font-size: .75 *
|
|
62
|
+
font-size: .75 * variable.$font-size-base;
|
|
60
63
|
}
|
|
61
64
|
}
|
|
@@ -1,47 +1,50 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../variable";
|
|
3
|
+
|
|
1
4
|
.btn {
|
|
2
|
-
border-radius:
|
|
5
|
+
border-radius: variable.$btn-border-radius;
|
|
3
6
|
border-collapse: separate !important;
|
|
4
7
|
}
|
|
5
8
|
|
|
6
9
|
.btn td {
|
|
7
|
-
border-radius:
|
|
10
|
+
border-radius: variable.$btn-border-radius;
|
|
8
11
|
text-align: center;
|
|
9
12
|
}
|
|
10
13
|
|
|
11
14
|
.btn td a {
|
|
12
|
-
font-size:
|
|
13
|
-
font-family:
|
|
15
|
+
font-size: variable.$btn-font-size;
|
|
16
|
+
font-family: variable.$btn-font-family;
|
|
14
17
|
text-decoration: none;
|
|
15
|
-
border-radius:
|
|
16
|
-
padding:
|
|
17
|
-
line-height:
|
|
18
|
-
border:
|
|
18
|
+
border-radius: variable.$btn-border-radius;
|
|
19
|
+
padding: variable.$btn-padding-y variable.$btn-padding-x;
|
|
20
|
+
line-height: variable.$btn-line-height;
|
|
21
|
+
border: variable.$btn-border-width solid transparent;
|
|
19
22
|
display: block;
|
|
20
|
-
font-weight:
|
|
23
|
+
font-weight: variable.$btn-font-weight;
|
|
21
24
|
white-space: nowrap;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
@each $name, $theme in
|
|
27
|
+
@each $name, $theme in variable.$btn-themes {
|
|
25
28
|
.btn-#{$name} td {
|
|
26
|
-
background-color: map
|
|
29
|
+
background-color: map.get($theme, "background-color");
|
|
27
30
|
}
|
|
28
31
|
.btn-#{$name} td a {
|
|
29
|
-
background-color: map
|
|
30
|
-
color: map
|
|
31
|
-
border-color: map
|
|
32
|
+
background-color: map.get($theme, "background-color");
|
|
33
|
+
color: map.get($theme, "color");
|
|
34
|
+
border-color: map.get($theme, "border-color");
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
|
|
35
38
|
.btn-sm td a {
|
|
36
|
-
font-size:
|
|
37
|
-
padding:
|
|
38
|
-
line-height:
|
|
39
|
-
border-radius:
|
|
39
|
+
font-size: variable.$btn-font-size-sm;
|
|
40
|
+
padding: variable.$btn-padding-y-sm variable.$btn-padding-x-sm;
|
|
41
|
+
line-height: variable.$btn-line-height-sm;
|
|
42
|
+
border-radius: variable.$btn-border-radius-sm;
|
|
40
43
|
}
|
|
41
44
|
|
|
42
45
|
.btn-lg td a {
|
|
43
|
-
font-size:
|
|
44
|
-
padding:
|
|
45
|
-
line-height:
|
|
46
|
-
border-radius:
|
|
46
|
+
font-size: variable.$btn-font-size-lg;
|
|
47
|
+
padding: variable.$btn-padding-y-lg variable.$btn-padding-x-lg;
|
|
48
|
+
line-height: variable.$btn-line-height-lg;
|
|
49
|
+
border-radius: variable.$btn-border-radius-lg;
|
|
47
50
|
}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
@use "../variable";
|
|
2
|
+
|
|
1
3
|
.card {
|
|
2
|
-
background-color:
|
|
3
|
-
border-radius:
|
|
4
|
-
border: 1px solid
|
|
4
|
+
background-color: variable.$white;
|
|
5
|
+
border-radius: variable.$border-radius;
|
|
6
|
+
border: 1px solid variable.$border-color;
|
|
5
7
|
border-collapse: separate !important;
|
|
6
8
|
width: 100%;
|
|
7
9
|
overflow: hidden;
|
|
8
10
|
& > tbody > tr > td {
|
|
9
|
-
background-color:
|
|
11
|
+
background-color: variable.$white;
|
|
10
12
|
width: 100%;
|
|
11
13
|
}
|
|
12
14
|
.card-body {
|
|
13
15
|
width: 100%;
|
|
14
16
|
& > tbody > tr > td {
|
|
15
|
-
padding:
|
|
17
|
+
padding: variable.$font-size-base * 1.25;
|
|
16
18
|
width: 100%;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
@use "../variable";
|
|
2
|
+
|
|
1
3
|
.container {
|
|
2
4
|
width: 100%;
|
|
3
5
|
& > tbody > tr > td {
|
|
4
|
-
padding: 0
|
|
6
|
+
padding: 0 variable.$font-size-base;
|
|
5
7
|
& > table {
|
|
6
8
|
width: 100%;
|
|
7
9
|
max-width: 600px;
|
|
@@ -12,7 +14,7 @@
|
|
|
12
14
|
.container-fluid {
|
|
13
15
|
width: 100%;
|
|
14
16
|
& > tbody > tr > td {
|
|
15
|
-
padding: 0
|
|
17
|
+
padding: 0 variable.$font-size-base;
|
|
16
18
|
width: 100%;
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
@use "../variable";
|
|
2
|
+
|
|
1
3
|
.row {
|
|
2
4
|
margin-right: -24px;
|
|
3
5
|
& > table {
|
|
@@ -14,14 +16,14 @@
|
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
|
|
17
|
-
@each $key, $value in
|
|
19
|
+
@each $key, $value in variable.$grid-cols {
|
|
18
20
|
td.col-#{$key},
|
|
19
21
|
td.col-lg-#{$key} {
|
|
20
22
|
width: $value;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
23
25
|
|
|
24
|
-
@each $space, $value in
|
|
26
|
+
@each $space, $value in variable.$spacers {
|
|
25
27
|
.row.gap-#{$space},
|
|
26
28
|
.row.gap-x-#{$space},
|
|
27
29
|
.row.gap-lg-#{$space},
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "../variable";
|
|
2
|
+
|
|
3
|
+
@each $space, $value in variable.$spacers {
|
|
2
4
|
table.stack-row.gap-#{$space},
|
|
3
5
|
table.stack-row.gap-lg-#{$space} {
|
|
4
6
|
& > tbody > tr > td {
|
|
@@ -26,13 +28,13 @@
|
|
|
26
28
|
text-align: left;
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
@each $align in
|
|
31
|
+
@each $align in variable.$vertical-align {
|
|
30
32
|
table.stack-ay-#{$align} > tbody > tr > td {
|
|
31
33
|
vertical-align: $align;
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
@each $align in
|
|
37
|
+
@each $align in variable.$text-align {
|
|
36
38
|
table.stack-ax-#{$align} > tbody > tr > td {
|
|
37
39
|
text-align: $align;
|
|
38
40
|
}
|