pallote-css 0.6.0 → 0.7.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/package.json +10 -2
- package/pallote-css-0.6.0.tgz +0 -0
- package/pallote.min.css +1 -0
- package/pallote.min.css.map +1 -0
- package/pallote.min.js +1 -0
- package/pallote.scss +37 -0
- package/styles/common/_editor.scss +181 -0
- package/styles/common/_fontface.scss +31 -0
- package/styles/common/_functions.scss +11 -0
- package/styles/common/_global.scss +157 -0
- package/styles/common/_mixins.scss +164 -0
- package/styles/common/_reset.scss +145 -0
- package/styles/common/_variables.scss +251 -0
- package/styles/components/_accordion.scss +132 -0
- package/styles/components/_alert.scss +188 -0
- package/styles/components/_breadcrumbs.scss +72 -0
- package/styles/components/_button.scss +184 -0
- package/styles/components/_buttons.scss +52 -0
- package/styles/components/_card.scss +316 -0
- package/styles/components/_divider.scss +53 -0
- package/styles/components/_form.scss +58 -0
- package/styles/components/_input.scss +340 -0
- package/styles/components/_link.scss +51 -0
- package/styles/components/_list.scss +59 -0
- package/styles/components/_nav.scss +185 -0
- package/styles/components/_navbar.scss +253 -0
- package/styles/components/_page.scss +33 -0
- package/styles/components/_section.scss +203 -0
- package/styles/components/_sidebar.scss +61 -0
- package/styles/components/_snippet.scss +85 -0
- package/styles/components/_status.scss +60 -0
- package/styles/components/_switch.scss +84 -0
- package/styles/components/_table.scss +157 -0
- package/styles/components/_tabs.scss +147 -0
- package/styles/components/_tag.scss +79 -0
- package/styles/modules/_cookie.scss +38 -0
- package/styles/utilities/_color.scss +119 -0
- package/styles/utilities/_global.scss +211 -0
- package/styles/utilities/_grid.scss +124 -0
- package/styles/utilities/_text.scss +199 -0
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
@use 'mixins';
|
|
2
|
+
@use 'variables';
|
|
3
|
+
@use '../utilities/text';
|
|
4
|
+
|
|
5
|
+
// —————————————————————————————————————————————————————————————————
|
|
6
|
+
// text
|
|
7
|
+
// lists
|
|
8
|
+
// table
|
|
9
|
+
// —————————————————————————————————————————————————————————————————
|
|
10
|
+
|
|
11
|
+
.editor, %editor {
|
|
12
|
+
max-width: variables.$max-width-editor;
|
|
13
|
+
|
|
14
|
+
// —————————————————————————————————————————————————————————————————
|
|
15
|
+
// text
|
|
16
|
+
// —————————————————————————————————————————————————————————————————
|
|
17
|
+
|
|
18
|
+
h2 { @extend %h3; }
|
|
19
|
+
h3 { @extend %h4; }
|
|
20
|
+
h4 { @extend %h5; }
|
|
21
|
+
h5 { @extend %h6; }
|
|
22
|
+
h6 { @extend %subtitle; }
|
|
23
|
+
blockquote { @extend %subtitle; }
|
|
24
|
+
|
|
25
|
+
h2 {
|
|
26
|
+
color: variables.$primary;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
h2, h3, h4, h5, h6 {
|
|
30
|
+
|
|
31
|
+
&:not(:first-child) { margin-top: 1.5em; }
|
|
32
|
+
&:not(:last-child) { margin-bottom: .75em; }
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
p,
|
|
36
|
+
ol, ul,
|
|
37
|
+
p + a, a + p {
|
|
38
|
+
|
|
39
|
+
&:not(:first-child) { margin-top: 0.75em; }
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.highlighter-rouge,
|
|
43
|
+
.alert {
|
|
44
|
+
margin-top: 1.5rem;
|
|
45
|
+
margin-bottom: 1.5rem;
|
|
46
|
+
width: fit-content;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
a {
|
|
51
|
+
color: variables.$primary;
|
|
52
|
+
text-decoration: underline;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
strong {
|
|
56
|
+
font-weight: variables.$font-bold;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
em {
|
|
60
|
+
font-style: italic;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
blockquote {
|
|
64
|
+
position: relative;
|
|
65
|
+
background-color: variables.$background-paper;
|
|
66
|
+
padding: 1rem 2rem;
|
|
67
|
+
border-radius: variables.$border-radius-md;
|
|
68
|
+
|
|
69
|
+
&:before {
|
|
70
|
+
@include mixins.pseudo-element('”', -1rem, auto, auto, -.5rem, auto, auto);
|
|
71
|
+
font-size: 7rem;
|
|
72
|
+
color: variables.$primary;
|
|
73
|
+
line-height: 1;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:not(:first-child) {
|
|
77
|
+
margin-top: 1.5rem;
|
|
78
|
+
margin-bottom: 1.5rem;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// —————————————————————————————————————————————————————————————————
|
|
83
|
+
// lists
|
|
84
|
+
// —————————————————————————————————————————————————————————————————
|
|
85
|
+
|
|
86
|
+
ol,
|
|
87
|
+
ul {
|
|
88
|
+
margin-left: 1rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
ol { list-style: decimal; }
|
|
92
|
+
ul { list-style: disc; }
|
|
93
|
+
|
|
94
|
+
li + li { margin-top: .25rem; }
|
|
95
|
+
|
|
96
|
+
li {
|
|
97
|
+
|
|
98
|
+
> ul {
|
|
99
|
+
margin-top: 0.25rem !important;
|
|
100
|
+
margin-left: 0;
|
|
101
|
+
|
|
102
|
+
li + li { margin-top: 0; }
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:not(:last-child) {
|
|
106
|
+
|
|
107
|
+
> ul {
|
|
108
|
+
margin-bottom: 0.25rem;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// —————————————————————————————————————————————————————————————————
|
|
114
|
+
// table
|
|
115
|
+
// —————————————————————————————————————————————————————————————————
|
|
116
|
+
|
|
117
|
+
.table {
|
|
118
|
+
width: 100%;
|
|
119
|
+
overflow: scroll;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
table {
|
|
123
|
+
border-collapse: separate;
|
|
124
|
+
border: variables.$border;
|
|
125
|
+
border-radius: variables.$border-radius-sm;
|
|
126
|
+
width: 100%;
|
|
127
|
+
|
|
128
|
+
&.table-dense {
|
|
129
|
+
|
|
130
|
+
th { font-size: 0.65rem; }
|
|
131
|
+
td { font-size: 0.75rem;; }
|
|
132
|
+
td, th { padding: 1px .25rem; }
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
thead {
|
|
137
|
+
background-color: variables.$background-paper;
|
|
138
|
+
|
|
139
|
+
tr:first-child {
|
|
140
|
+
|
|
141
|
+
th {
|
|
142
|
+
border-top: none;
|
|
143
|
+
|
|
144
|
+
&:first-of-type { border-top-left-radius: variables.$border-radius-sm; }
|
|
145
|
+
&:last-of-type { border-top-right-radius: variables.$border-radius-sm; }
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
tbody {
|
|
151
|
+
|
|
152
|
+
tr:last-child {
|
|
153
|
+
|
|
154
|
+
th, td {
|
|
155
|
+
|
|
156
|
+
&:first-of-type { border-bottom-left-radius: variables.$border-radius-sm; }
|
|
157
|
+
&:last-of-type { border-bottom-right-radius: variables.$border-radius-sm; }
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
td,
|
|
163
|
+
th {
|
|
164
|
+
border-top: variables.$border;
|
|
165
|
+
|
|
166
|
+
&:not(:first-child) {
|
|
167
|
+
border-left: variables.$border;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
th {
|
|
172
|
+
padding: .25rem .5rem;
|
|
173
|
+
font-size: 0.875rem;
|
|
174
|
+
font-weight: bold;
|
|
175
|
+
color: variables.$text-alt;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
td {
|
|
179
|
+
padding: .25rem .5rem .5rem;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use 'mixins';
|
|
2
|
+
@use 'variables';
|
|
3
|
+
|
|
4
|
+
// In order to have a clean a easy to use font, give the same font-family name to all styles.
|
|
5
|
+
// You can then sort them by using the font-style (normal or italic) property
|
|
6
|
+
|
|
7
|
+
// —————————————————————————————————————————————————————————————————
|
|
8
|
+
// list of styles and their weight equivalent
|
|
9
|
+
// —————————————————————————————————————————————————————————————————
|
|
10
|
+
// style name weight variable
|
|
11
|
+
// —————————————————————————————————————————————————————————————————
|
|
12
|
+
// thin, hairline 100 $thin
|
|
13
|
+
// extralight, ultralight 200 $extralight
|
|
14
|
+
// light 300 $light
|
|
15
|
+
// normal, regular 400 $regular
|
|
16
|
+
// medium 500 $medium
|
|
17
|
+
// semibold, demibold 600 $semibold
|
|
18
|
+
// bold 700 $bold
|
|
19
|
+
// extrabold, ultrabold 800 $extrabold
|
|
20
|
+
// black, heavy 900 $contrast
|
|
21
|
+
// —————————————————————————————————————————————————————————————————
|
|
22
|
+
|
|
23
|
+
// —————————————————————————————————————————————————————————————————
|
|
24
|
+
// barlow
|
|
25
|
+
// —————————————————————————————————————————————————————————————————
|
|
26
|
+
|
|
27
|
+
@include mixins.fontface(variables.$font, variables.$font-clean/regular, variables.$font-regular, normal);
|
|
28
|
+
@include mixins.fontface(variables.$font, variables.$font-clean/regularitalic, variables.$font-regular, italic);
|
|
29
|
+
|
|
30
|
+
@include mixins.fontface(variables.$font, variables.$font-clean/semibold, variables.$font-bold, normal);
|
|
31
|
+
@include mixins.fontface(variables.$font, variables.$font-clean/semibolditalic, variables.$font-bold, italic);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// trim white spaces
|
|
3
|
+
// —————————————————————————————————————————————————————————————————
|
|
4
|
+
|
|
5
|
+
@function str-remove-whitespace($str) {
|
|
6
|
+
@while (str-index($str, ' ') != null) {
|
|
7
|
+
$index: str-index($str, ' ');
|
|
8
|
+
$str: "#{str-slice($str, 0, $index - 1)}#{str-slice($str, $index + 1)}";
|
|
9
|
+
}
|
|
10
|
+
@return $str;
|
|
11
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
@use 'mixins';
|
|
2
|
+
@use 'variables';
|
|
3
|
+
|
|
4
|
+
html {
|
|
5
|
+
scroll-behavior: smooth;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
body {
|
|
9
|
+
font-family: variables.$font, variables.$font-fallback;
|
|
10
|
+
font-size: 16px;
|
|
11
|
+
line-height: 1.5;
|
|
12
|
+
font-weight: variables.$font-regular;
|
|
13
|
+
background-color: variables.$background-default;
|
|
14
|
+
color: variables.$text;
|
|
15
|
+
// needed for footer margin-top: auto if content smaller than viewport height
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
min-height: 100vh;
|
|
19
|
+
|
|
20
|
+
&:after {
|
|
21
|
+
transition: opacity variables.$transition-md;
|
|
22
|
+
content: '';
|
|
23
|
+
position: fixed;
|
|
24
|
+
background-color: variables.$overlay;
|
|
25
|
+
height: 100vh;
|
|
26
|
+
width: 100vw;
|
|
27
|
+
top: 0;
|
|
28
|
+
left: 0;
|
|
29
|
+
opacity: 0;
|
|
30
|
+
z-index: 12;
|
|
31
|
+
pointer-events: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.js-sidebar,
|
|
35
|
+
&.js-navbar {
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
|
|
38
|
+
&:after {
|
|
39
|
+
opacity: 1;
|
|
40
|
+
pointer-events: initial;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.js-navbar:after {
|
|
45
|
+
z-index: 10;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// stick to bottom of page when page height smaller than viewport height
|
|
50
|
+
footer {
|
|
51
|
+
margin-top: auto;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// embed responsively
|
|
55
|
+
|
|
56
|
+
.embed-container {
|
|
57
|
+
position: relative;
|
|
58
|
+
padding-bottom: 56.25%;
|
|
59
|
+
height: 0;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
max-width: 100%;
|
|
62
|
+
border-radius: 1rem;
|
|
63
|
+
|
|
64
|
+
iframe, object, embed {
|
|
65
|
+
position: absolute;
|
|
66
|
+
top: 0;
|
|
67
|
+
left: 0;
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 100%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// text selection
|
|
74
|
+
::-moz-selection {
|
|
75
|
+
background: variables.$primary;
|
|
76
|
+
color: variables.$primary-contrast;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
::selection {
|
|
80
|
+
background: variables.$primary;
|
|
81
|
+
color: variables.$primary-contrast;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
::-moz-selection {
|
|
85
|
+
background: variables.$primary;
|
|
86
|
+
color: variables.$primary-contrast;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// remove autocomplete from webkit browsers
|
|
90
|
+
|
|
91
|
+
input:-webkit-autofill,
|
|
92
|
+
input:-webkit-autofill:hover,
|
|
93
|
+
input:-webkit-autofill:focus,
|
|
94
|
+
textarea:-webkit-autofill,
|
|
95
|
+
textarea:-webkit-autofill:hover
|
|
96
|
+
textarea:-webkit-autofill:focus,
|
|
97
|
+
select:-webkit-autofill,
|
|
98
|
+
select:-webkit-autofill:hover,
|
|
99
|
+
select:-webkit-autofill:focus {
|
|
100
|
+
-webkit-box-shadow: 0 0 0px 1000px variables.$primary-light inset;
|
|
101
|
+
@include mixins.transition(variables.$transition-md, background-color);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// prevent images from stretching with flex
|
|
105
|
+
|
|
106
|
+
img {
|
|
107
|
+
align-self: center;
|
|
108
|
+
width: 100%;
|
|
109
|
+
flex-shrink: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// lists
|
|
113
|
+
|
|
114
|
+
ul {
|
|
115
|
+
list-style: disc;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
li {
|
|
119
|
+
margin-left: 1rem;
|
|
120
|
+
|
|
121
|
+
& + & {
|
|
122
|
+
padding-top: .25rem;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// buttons and links
|
|
127
|
+
|
|
128
|
+
button,
|
|
129
|
+
a {
|
|
130
|
+
outline-color: variables.$primary;
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// iframe
|
|
135
|
+
|
|
136
|
+
iframe {
|
|
137
|
+
display: block; // remove bottom spacing
|
|
138
|
+
width: 100%;
|
|
139
|
+
border-radius: variables.$border-radius-md;
|
|
140
|
+
border: variables.$border;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
strong {
|
|
144
|
+
font-weight: variables.$font-bold;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// z-index
|
|
148
|
+
|
|
149
|
+
@for $i from 0 through 9 {
|
|
150
|
+
.z-index-#{$i} { z-index: $i; }
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// background
|
|
154
|
+
|
|
155
|
+
.background-cover {
|
|
156
|
+
@include mixins.background(50% 50%, cover);
|
|
157
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use 'variables';
|
|
3
|
+
|
|
4
|
+
// —————————————————————————————————————————————————————————————————
|
|
5
|
+
// media queries
|
|
6
|
+
// font
|
|
7
|
+
// form
|
|
8
|
+
// misc
|
|
9
|
+
// —————————————————————————————————————————————————————————————————
|
|
10
|
+
|
|
11
|
+
// —————————————————————————————————————————————————————————————————
|
|
12
|
+
// media queries
|
|
13
|
+
// —————————————————————————————————————————————————————————————————
|
|
14
|
+
|
|
15
|
+
@mixin responsive($value, $breakpoint) {
|
|
16
|
+
@if $value == up {
|
|
17
|
+
$value: min-width;
|
|
18
|
+
@if $breakpoint == desktop-lg { $breakpoint: variables.$desktop-lg; }
|
|
19
|
+
@else if $breakpoint == desktop { $breakpoint: variables.$desktop; }
|
|
20
|
+
@else if $breakpoint == laptop { $breakpoint: variables.$laptop; }
|
|
21
|
+
@else if $breakpoint == tablet { $breakpoint: variables.$tablet; }
|
|
22
|
+
@else if $breakpoint == mobile { $breakpoint: variables.$mobile; }
|
|
23
|
+
@else if $breakpoint == mobile-sm { $breakpoint: variables.$mobile-sm; }
|
|
24
|
+
|
|
25
|
+
} @else if $value == down {
|
|
26
|
+
$value: max-width;
|
|
27
|
+
@if $breakpoint == desktop-lg { $breakpoint: variables.$desktop-lg-down; }
|
|
28
|
+
@else if $breakpoint == desktop { $breakpoint: variables.$desktop-down; }
|
|
29
|
+
@else if $breakpoint == laptop { $breakpoint: variables.$laptop-down; }
|
|
30
|
+
@else if $breakpoint == tablet { $breakpoint: variables.$tablet-down; }
|
|
31
|
+
@else if $breakpoint == mobile { $breakpoint: variables.$mobile-down; }
|
|
32
|
+
@else if $breakpoint == mobile-sm { $breakpoint: variables.$mobile-sm-down; }
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media ($value: $breakpoint) {
|
|
36
|
+
@content;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin responsive-touch {
|
|
41
|
+
@media (pointer:coarse) {
|
|
42
|
+
@content;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin responsive-click {
|
|
47
|
+
@media not (pointer:coarse) {
|
|
48
|
+
@content;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@mixin responsive-touch-landscape {
|
|
53
|
+
@media only screen and (max-device-width: variables.$laptop-down) and (orientation: landscape) {
|
|
54
|
+
@content;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// —————————————————————————————————————————————————————————————————
|
|
59
|
+
// font
|
|
60
|
+
// —————————————————————————————————————————————————————————————————
|
|
61
|
+
|
|
62
|
+
// @mixin fontface($font-name, $font-file, $font-weight, $font-style) {
|
|
63
|
+
|
|
64
|
+
// @font-face {
|
|
65
|
+
// font-family: $font-name;
|
|
66
|
+
// src: url(variables.$fonts-path + $font-file + '.woff2') format('woff2');
|
|
67
|
+
// font-weight: $font-weight;
|
|
68
|
+
// font-style: $font-style;
|
|
69
|
+
// font-display: swap;
|
|
70
|
+
// }
|
|
71
|
+
// }
|
|
72
|
+
|
|
73
|
+
@mixin text-ellipsis() {
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
text-overflow: ellipsis;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// —————————————————————————————————————————————————————————————————
|
|
80
|
+
// form
|
|
81
|
+
// —————————————————————————————————————————————————————————————————
|
|
82
|
+
|
|
83
|
+
@mixin placeholder {
|
|
84
|
+
:-moz-placeholder { @content; }
|
|
85
|
+
::-moz-placeholder { @content; }
|
|
86
|
+
:-ms-input-placeholder { @content; }
|
|
87
|
+
::-webkit-input-placeholder { @content; }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// —————————————————————————————————————————————————————————————————
|
|
91
|
+
// misc
|
|
92
|
+
// —————————————————————————————————————————————————————————————————
|
|
93
|
+
|
|
94
|
+
@mixin calc($property, $expression) {
|
|
95
|
+
#{$property}: -webkit-calc(#{$expression});
|
|
96
|
+
#{$property}: calc(#{$expression});
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
@mixin background($position, $size) {
|
|
100
|
+
background-position: $position;
|
|
101
|
+
-webkit-background-size: $size;
|
|
102
|
+
background-size: $size;
|
|
103
|
+
background-repeat: no-repeat;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@mixin pseudo-element($content: "", $top: 0, $right: 0, $bottom: 0, $left: 0, $width: 100%, $height: 100%) {
|
|
107
|
+
content: $content;
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: $top;
|
|
110
|
+
right: $right;
|
|
111
|
+
bottom: $bottom;
|
|
112
|
+
left: $left;
|
|
113
|
+
width: $width;
|
|
114
|
+
height: $height;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
@mixin hover {
|
|
118
|
+
&:hover, &:active, &:focus {
|
|
119
|
+
@content;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@mixin keyframes($name) {
|
|
124
|
+
@-webkit-keyframes #{$name} {
|
|
125
|
+
@content;
|
|
126
|
+
}
|
|
127
|
+
@-moz-keyframes #{$name} {
|
|
128
|
+
@content;
|
|
129
|
+
}
|
|
130
|
+
@-ms-keyframes #{$name} {
|
|
131
|
+
@content;
|
|
132
|
+
}
|
|
133
|
+
@keyframes #{$name} {
|
|
134
|
+
@content;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@mixin transition($time, $properties...) {
|
|
139
|
+
$transition: ();
|
|
140
|
+
$will-change: ();
|
|
141
|
+
@each $property in $properties {
|
|
142
|
+
$transition: list.append(
|
|
143
|
+
$transition, ($property $time), $separator: comma
|
|
144
|
+
);
|
|
145
|
+
$will-change: list.append(
|
|
146
|
+
$will-change, ($property), $separator: comma
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
transition: $transition;
|
|
150
|
+
will-change: $will-change;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// fallback for clamp css function
|
|
154
|
+
@mixin clamp($property, $min-size, $scaler, $max-size, $viewport: tablet) {
|
|
155
|
+
#{$property}: clamp($min-size, $scaler, $max-size);
|
|
156
|
+
|
|
157
|
+
// @include responsive(up, $viewport) {
|
|
158
|
+
// #{$property}: $max-size;
|
|
159
|
+
// }
|
|
160
|
+
|
|
161
|
+
// @include responsive(down, $viewport) {
|
|
162
|
+
// #{$property}: $min-size;
|
|
163
|
+
// }
|
|
164
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
@use 'variables';
|
|
2
|
+
|
|
3
|
+
// —————————————————————————————————————————————————————————————————
|
|
4
|
+
// custom (for IE)
|
|
5
|
+
// The new CSS Reset - version 1.2.0 (last updated 23.7.2021)
|
|
6
|
+
// Remove inputs icons
|
|
7
|
+
// —————————————————————————————————————————————————————————————————
|
|
8
|
+
|
|
9
|
+
// —————————————————————————————————————————————————————————————————
|
|
10
|
+
// custom (for IE)
|
|
11
|
+
// —————————————————————————————————————————————————————————————————
|
|
12
|
+
|
|
13
|
+
body,
|
|
14
|
+
html {
|
|
15
|
+
margin: 0;
|
|
16
|
+
accent-color: variables.$primary;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
h1, h2, h3, h4, h5, h6, p {
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// remove visited link styling
|
|
24
|
+
button, a {
|
|
25
|
+
color: inherit;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// remove space under picture tag
|
|
29
|
+
picture {
|
|
30
|
+
display: flex;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// —————————————————————————————————————————————————————————————————
|
|
34
|
+
// The new CSS Reset - version 1.2.0 (last updated 23.7.2021)
|
|
35
|
+
// —————————————————————————————————————————————————————————————————
|
|
36
|
+
|
|
37
|
+
// Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
|
|
38
|
+
*:where(:not(iframe, canvas, img, svg, video, pre):not(svg *)) {
|
|
39
|
+
all: unset;
|
|
40
|
+
display: revert;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Preferred box-sizing value
|
|
44
|
+
*,
|
|
45
|
+
*::before,
|
|
46
|
+
*::after {
|
|
47
|
+
box-sizing: border-box;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Remove list styles (bullets/numbers) in case you use it with normalize.css
|
|
51
|
+
ol, ul {
|
|
52
|
+
list-style: none;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// For images to not be able to exceed their container
|
|
56
|
+
img {
|
|
57
|
+
max-width: 100%;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Removes spacing between cells in tables
|
|
61
|
+
table {
|
|
62
|
+
border-collapse: collapse;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Revert the 'white-space' property for textarea elements on Safari
|
|
66
|
+
textarea {
|
|
67
|
+
white-space: revert;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// Add focus styles
|
|
71
|
+
a[href],
|
|
72
|
+
area[href],
|
|
73
|
+
input,
|
|
74
|
+
input[type="checkbox"],
|
|
75
|
+
input[type='radio'],
|
|
76
|
+
select,
|
|
77
|
+
textarea,
|
|
78
|
+
button,
|
|
79
|
+
iframe,
|
|
80
|
+
[tabindex],
|
|
81
|
+
[contentEditable=true] {
|
|
82
|
+
outline: revert;
|
|
83
|
+
|
|
84
|
+
&:focus {
|
|
85
|
+
outline: 2px solid currentColor;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// —————————————————————————————————————————————————————————————————
|
|
90
|
+
// Remove inputs icons
|
|
91
|
+
// —————————————————————————————————————————————————————————————————
|
|
92
|
+
|
|
93
|
+
// Remove default arrow for input[type=number] in Webkit browsers (Chrome, Safari, etc.)
|
|
94
|
+
input[type="number"]::-webkit-outer-spin-button,
|
|
95
|
+
input[type="number"]::-webkit-inner-spin-button {
|
|
96
|
+
opacity: 0;
|
|
97
|
+
margin: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Remove default arrow for input[type=number] in Firefox
|
|
101
|
+
input[type="number"] {
|
|
102
|
+
-moz-appearance: textfield;
|
|
103
|
+
appearance: textfield;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Remove default calendar and time picker icons in Webkit browsers
|
|
107
|
+
input[type="date"]::-webkit-calendar-picker-indicator,
|
|
108
|
+
input[type="time"]::-webkit-calendar-picker-indicator {
|
|
109
|
+
opacity: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Remove default calendar icon in Edge and IE
|
|
113
|
+
input[type="date"]::-ms-clear,
|
|
114
|
+
input[type="date"]::-ms-input-placeholder {
|
|
115
|
+
opacity: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
input[type="time"]::-ms-clear,
|
|
119
|
+
input[type="time"]::-ms-input-placeholder {
|
|
120
|
+
opacity: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Remove default calendar and time picker icons in Mozilla Firefox
|
|
124
|
+
input[type="date"] {
|
|
125
|
+
-moz-appearance: textfield;
|
|
126
|
+
appearance: textfield;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
input[type="time"] {
|
|
130
|
+
-moz-appearance: textfield;
|
|
131
|
+
appearance: textfield;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// For additional browser support
|
|
135
|
+
input[type="date"],
|
|
136
|
+
input[type="time"] {
|
|
137
|
+
appearance: none;
|
|
138
|
+
-webkit-appearance: none;
|
|
139
|
+
-moz-appearance: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// Hide the clear button in Edge
|
|
143
|
+
input::-ms-clear {
|
|
144
|
+
opacity: 0;
|
|
145
|
+
}
|