baseline-scss 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +15 -0
- data/lib/baseline-scss.rb +1 -0
- data/lib/baseline_scss/version.rb +3 -0
- data/lib/baseline_scss.rb +41 -0
- data/src/_content.scss +7 -0
- data/src/_helpers.scss +49 -0
- data/src/_mixins.scss +7 -0
- data/src/_reboot.scss +227 -0
- data/src/_variables.scss +149 -0
- data/src/_vendors.scss +3 -0
- data/src/baseline.scss +8 -0
- data/src/content/_buttons.scss +37 -0
- data/src/content/_code.scss +15 -0
- data/src/content/_forms.scss +88 -0
- data/src/content/_lists.scss +15 -0
- data/src/content/_multimedia.scss +8 -0
- data/src/content/_tables.scss +27 -0
- data/src/content/_typography.scss +99 -0
- data/src/mixins/_.scss +4 -0
- data/src/mixins/_after_border.scss +12 -0
- data/src/mixins/_clearfix.scss +7 -0
- data/src/mixins/_font_awesome.scss +12 -0
- data/src/mixins/_max_width_container.scss +15 -0
- data/src/mixins/_outline.scss +5 -0
- data/src/mixins/_sr_only.scss +17 -0
- data/src/vendors/_bourbon.scss +54 -0
- data/src/vendors/_include-media.scss +591 -0
- data/src/vendors/animate.css +4072 -0
- data/src/vendors/bourbon/helpers/_buttons-list.scss +14 -0
- data/src/vendors/bourbon/helpers/_scales.scss +27 -0
- data/src/vendors/bourbon/helpers/_text-inputs-list.scss +26 -0
- data/src/vendors/bourbon/library/_border-color.scss +26 -0
- data/src/vendors/bourbon/library/_border-radius.scss +85 -0
- data/src/vendors/bourbon/library/_border-style.scss +25 -0
- data/src/vendors/bourbon/library/_border-width.scss +25 -0
- data/src/vendors/bourbon/library/_buttons.scss +84 -0
- data/src/vendors/bourbon/library/_clearfix.scss +25 -0
- data/src/vendors/bourbon/library/_contrast-switch.scss +81 -0
- data/src/vendors/bourbon/library/_ellipsis.scss +36 -0
- data/src/vendors/bourbon/library/_font-face.scss +65 -0
- data/src/vendors/bourbon/library/_font-stacks.scss +248 -0
- data/src/vendors/bourbon/library/_hide-text.scss +24 -0
- data/src/vendors/bourbon/library/_hide-visually.scss +70 -0
- data/src/vendors/bourbon/library/_margin.scss +37 -0
- data/src/vendors/bourbon/library/_modular-scale.scss +120 -0
- data/src/vendors/bourbon/library/_overflow-wrap.scss +25 -0
- data/src/vendors/bourbon/library/_padding.scss +36 -0
- data/src/vendors/bourbon/library/_position.scss +62 -0
- data/src/vendors/bourbon/library/_prefixer.scss +37 -0
- data/src/vendors/bourbon/library/_shade.scss +32 -0
- data/src/vendors/bourbon/library/_size.scss +50 -0
- data/src/vendors/bourbon/library/_strip-unit.scss +17 -0
- data/src/vendors/bourbon/library/_text-inputs.scss +163 -0
- data/src/vendors/bourbon/library/_timing-functions.scss +36 -0
- data/src/vendors/bourbon/library/_tint.scss +32 -0
- data/src/vendors/bourbon/library/_triangle.scss +82 -0
- data/src/vendors/bourbon/library/_value-prefixer.scss +37 -0
- data/src/vendors/bourbon/settings/_settings.scss +75 -0
- data/src/vendors/bourbon/utilities/_assign-inputs.scss +28 -0
- data/src/vendors/bourbon/utilities/_compact-shorthand.scss +42 -0
- data/src/vendors/bourbon/utilities/_contrast-ratio.scss +31 -0
- data/src/vendors/bourbon/utilities/_directional-property.scss +68 -0
- data/src/vendors/bourbon/utilities/_fetch-bourbon-setting.scss +16 -0
- data/src/vendors/bourbon/utilities/_font-source-declaration.scss +52 -0
- data/src/vendors/bourbon/utilities/_gamma.scss +24 -0
- data/src/vendors/bourbon/utilities/_lightness.scss +24 -0
- data/src/vendors/bourbon/utilities/_unpack-shorthand.scss +29 -0
- data/src/vendors/bourbon/validators/_contains-falsy.scss +20 -0
- data/src/vendors/bourbon/validators/_contains.scss +26 -0
- data/src/vendors/bourbon/validators/_is-color.scss +13 -0
- data/src/vendors/bourbon/validators/_is-length.scss +20 -0
- data/src/vendors/bourbon/validators/_is-number.scss +15 -0
- data/src/vendors/bourbon/validators/_is-size.scss +18 -0
- data/src/vendors/normalize.css +349 -0
- metadata +130 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
table {
|
2
|
+
margin-bottom: var(--_);
|
3
|
+
width: 100%;
|
4
|
+
}
|
5
|
+
|
6
|
+
caption {
|
7
|
+
font-weight: var(--font_weight_bold);
|
8
|
+
}
|
9
|
+
|
10
|
+
thead th {
|
11
|
+
font-weight: var(--font_weight_bold);
|
12
|
+
vertical-align: bottom;
|
13
|
+
}
|
14
|
+
|
15
|
+
td, th {
|
16
|
+
padding: var(--table_cell_padding);
|
17
|
+
vertical-align: top;
|
18
|
+
|
19
|
+
> dl,
|
20
|
+
> ol,
|
21
|
+
> ul,
|
22
|
+
> table {
|
23
|
+
&:last-child {
|
24
|
+
margin-bottom: 0;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
address {
|
2
|
+
@include margin(0 null var(--_));
|
3
|
+
}
|
4
|
+
|
5
|
+
blockquote {
|
6
|
+
@include margin(0 var(--blockquote_margin_h) var(--_));
|
7
|
+
}
|
8
|
+
|
9
|
+
h1, ._h1,
|
10
|
+
h2, ._h2,
|
11
|
+
h3, ._h3,
|
12
|
+
h4, ._h4,
|
13
|
+
h5, ._h5,
|
14
|
+
h6, ._h6 {
|
15
|
+
@include margin(0 null var(--_));
|
16
|
+
|
17
|
+
font-family: var(--font_family_h);
|
18
|
+
font-weight: var(--font_weight_h);
|
19
|
+
|
20
|
+
small, ._small {
|
21
|
+
font-weight: var(--font_weight);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
h1, ._h1 {
|
26
|
+
@include _(var(--font_size_h1), var(--font_size_h1_lines));
|
27
|
+
}
|
28
|
+
|
29
|
+
h2, ._h2 {
|
30
|
+
@include _(var(--font_size_h2), var(--font_size_h2_lines));
|
31
|
+
}
|
32
|
+
|
33
|
+
h3, ._h3 {
|
34
|
+
@include _(var(--font_size_h3), var(--font_size_h3_lines));
|
35
|
+
}
|
36
|
+
|
37
|
+
h4, ._h4 {
|
38
|
+
@include _(var(--font_size_h4), var(--font_size_h4_lines));
|
39
|
+
}
|
40
|
+
|
41
|
+
h5, ._h5 {
|
42
|
+
@include _(var(--font_size_h5), var(--font_size_h5_lines));
|
43
|
+
}
|
44
|
+
|
45
|
+
h6, ._h6 {
|
46
|
+
@include _(var(--font_size_h6), var(--font_size_h6_lines));
|
47
|
+
}
|
48
|
+
|
49
|
+
p, ._p {
|
50
|
+
@include margin(0 null var(--_));
|
51
|
+
}
|
52
|
+
|
53
|
+
hr {
|
54
|
+
@include margin(0 null);
|
55
|
+
|
56
|
+
border: 0;
|
57
|
+
border-top: var(--hr_border_width) var(--hr_border_style) var(--hr_border_color);
|
58
|
+
height: var(--hr_height);
|
59
|
+
}
|
60
|
+
|
61
|
+
a {
|
62
|
+
&:link {
|
63
|
+
color: var(--link_color);
|
64
|
+
}
|
65
|
+
|
66
|
+
&:visited {
|
67
|
+
color: var(--link_visited_color);
|
68
|
+
}
|
69
|
+
|
70
|
+
&[href]:hover {
|
71
|
+
color: var(--link_hover_color);
|
72
|
+
}
|
73
|
+
|
74
|
+
&:focus {
|
75
|
+
@include outline();
|
76
|
+
|
77
|
+
color: var(--link_focus_color);
|
78
|
+
}
|
79
|
+
|
80
|
+
&[href]:active {
|
81
|
+
color: var(--link_active_color);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
._large {
|
86
|
+
font-size: var(--font_size_large);
|
87
|
+
line-height: 1;
|
88
|
+
}
|
89
|
+
|
90
|
+
mark {
|
91
|
+
background-color: var(--mark_background_color);
|
92
|
+
}
|
93
|
+
|
94
|
+
small, ._small,
|
95
|
+
sub,
|
96
|
+
sup {
|
97
|
+
font-size: var(--font_size_small);
|
98
|
+
line-height: 1;
|
99
|
+
}
|
data/src/mixins/_.scss
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
@mixin after_border($border_color: var(--body_color), $border_width: .1rem, $border_style: solid, $position: 0) {
|
2
|
+
position: relative;
|
3
|
+
|
4
|
+
&::after {
|
5
|
+
@include position(absolute, $position);
|
6
|
+
|
7
|
+
border: $border_style $border_color;
|
8
|
+
@include border-width($border_width);
|
9
|
+
content: '';
|
10
|
+
pointer-events: none;
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
@mixin font_awesome($content: '') {
|
2
|
+
content: $content;
|
3
|
+
display: var(--fa-display, inline-block);
|
4
|
+
font-family: var(--fa-style-family, 'FontAwesome');
|
5
|
+
font-style: normal;
|
6
|
+
font-variant: normal;
|
7
|
+
font-weight: var(--fa-style, 900);
|
8
|
+
line-height: 1;
|
9
|
+
text-rendering: auto;
|
10
|
+
-webkit-font-smoothing: antialiased;
|
11
|
+
-moz-osx-font-smoothing: grayscale;
|
12
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@mixin max_width_container($background_color: inherit, $max_width: var(--container_max_width)) {
|
2
|
+
@include margin(null auto);
|
3
|
+
|
4
|
+
max-width: $max_width;
|
5
|
+
position: relative;
|
6
|
+
|
7
|
+
&::before {
|
8
|
+
@include position(absolute, 0 -50vw);
|
9
|
+
|
10
|
+
background-color: $background_color;
|
11
|
+
content: '';
|
12
|
+
pointer-events: none;
|
13
|
+
z-index: -1;
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@mixin sr_only() {
|
2
|
+
border: 0;
|
3
|
+
clip: rect(0, 0, 0, 0);
|
4
|
+
height: 1px;
|
5
|
+
margin: -1px;
|
6
|
+
padding: 0;
|
7
|
+
position: absolute;
|
8
|
+
overflow: hidden;
|
9
|
+
white-space: nowrap;
|
10
|
+
width: 1px;
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin sr_only_focusable() {
|
14
|
+
&:not(:focus):not(:focus-within) {
|
15
|
+
@include sr_only();
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
// Bourbon 7.3.0
|
2
|
+
// https://www.bourbon.io/
|
3
|
+
// Copyright 2011-2020 thoughtbot, inc.
|
4
|
+
// MIT License
|
5
|
+
|
6
|
+
@import "bourbon/helpers/buttons-list";
|
7
|
+
@import "bourbon/helpers/scales";
|
8
|
+
@import "bourbon/helpers/text-inputs-list";
|
9
|
+
|
10
|
+
@import "bourbon/settings/settings";
|
11
|
+
|
12
|
+
@import "bourbon/validators/contains";
|
13
|
+
@import "bourbon/validators/contains-falsy";
|
14
|
+
@import "bourbon/validators/is-color";
|
15
|
+
@import "bourbon/validators/is-length";
|
16
|
+
@import "bourbon/validators/is-number";
|
17
|
+
@import "bourbon/validators/is-size";
|
18
|
+
|
19
|
+
@import "bourbon/utilities/assign-inputs";
|
20
|
+
@import "bourbon/utilities/compact-shorthand";
|
21
|
+
@import "bourbon/utilities/directional-property";
|
22
|
+
@import "bourbon/utilities/fetch-bourbon-setting";
|
23
|
+
@import "bourbon/utilities/font-source-declaration";
|
24
|
+
@import "bourbon/utilities/gamma";
|
25
|
+
@import "bourbon/utilities/lightness";
|
26
|
+
@import "bourbon/utilities/contrast-ratio";
|
27
|
+
@import "bourbon/utilities/unpack-shorthand";
|
28
|
+
|
29
|
+
@import "bourbon/library/border-color";
|
30
|
+
@import "bourbon/library/border-radius";
|
31
|
+
@import "bourbon/library/border-style";
|
32
|
+
@import "bourbon/library/border-width";
|
33
|
+
@import "bourbon/library/buttons";
|
34
|
+
@import "bourbon/library/clearfix";
|
35
|
+
@import "bourbon/library/contrast-switch";
|
36
|
+
@import "bourbon/library/ellipsis";
|
37
|
+
@import "bourbon/library/font-face";
|
38
|
+
@import "bourbon/library/font-stacks";
|
39
|
+
@import "bourbon/library/hide-text";
|
40
|
+
@import "bourbon/library/hide-visually";
|
41
|
+
@import "bourbon/library/margin";
|
42
|
+
@import "bourbon/library/modular-scale";
|
43
|
+
@import "bourbon/library/overflow-wrap";
|
44
|
+
@import "bourbon/library/padding";
|
45
|
+
@import "bourbon/library/position";
|
46
|
+
@import "bourbon/library/prefixer";
|
47
|
+
@import "bourbon/library/shade";
|
48
|
+
@import "bourbon/library/size";
|
49
|
+
@import "bourbon/library/strip-unit";
|
50
|
+
@import "bourbon/library/text-inputs";
|
51
|
+
@import "bourbon/library/timing-functions";
|
52
|
+
@import "bourbon/library/tint";
|
53
|
+
@import "bourbon/library/triangle";
|
54
|
+
@import "bourbon/library/value-prefixer";
|