pallote-css 0.3.9 → 0.3.11
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/dist/pallote.min.css +1 -1
- package/dist/pallote.min.css.map +1 -1
- package/package.json +9 -7
- package/dist/pallote.scss +0 -36
- package/dist/scripts/accordion.js +0 -42
- package/dist/scripts/button.js +0 -5
- package/dist/scripts/cookie.js +0 -15
- package/dist/scripts/input.js +0 -18
- package/dist/scripts/nav.js +0 -22
- package/dist/scripts/navbar.js +0 -28
- package/dist/scripts/switch.js +0 -3
- package/dist/scripts/tabs.js +0 -30
- package/dist/styles/common/_editor.scss +0 -177
- package/dist/styles/common/_fontface.scss +0 -28
- package/dist/styles/common/_functions.scss +0 -11
- package/dist/styles/common/_global.scss +0 -154
- package/dist/styles/common/_mixins.scss +0 -162
- package/dist/styles/common/_reset.scss +0 -143
- package/dist/styles/common/_variables.scss +0 -249
- package/dist/styles/components/_accordion.scss +0 -130
- package/dist/styles/components/_alert.scss +0 -194
- package/dist/styles/components/_breadcrumbs.scss +0 -47
- package/dist/styles/components/_button.scss +0 -174
- package/dist/styles/components/_buttons.scss +0 -50
- package/dist/styles/components/_card.scss +0 -265
- package/dist/styles/components/_divider.scss +0 -50
- package/dist/styles/components/_form.scss +0 -55
- package/dist/styles/components/_grid.scss +0 -187
- package/dist/styles/components/_input.scss +0 -294
- package/dist/styles/components/_link.scss +0 -43
- package/dist/styles/components/_list.scss +0 -58
- package/dist/styles/components/_nav.scss +0 -270
- package/dist/styles/components/_navbar.scss +0 -189
- package/dist/styles/components/_page.scss +0 -33
- package/dist/styles/components/_section.scss +0 -189
- package/dist/styles/components/_sidebar.scss +0 -57
- package/dist/styles/components/_snippet.scss +0 -82
- package/dist/styles/components/_status.scss +0 -57
- package/dist/styles/components/_switch.scss +0 -81
- package/dist/styles/components/_tabs.scss +0 -115
- package/dist/styles/components/_tag.scss +0 -75
- package/dist/styles/modules/_cookie.scss +0 -38
- package/dist/styles/utilities/_color.scss +0 -116
- package/dist/styles/utilities/_global.scss +0 -208
- package/dist/styles/utilities/_text.scss +0 -203
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
html {
|
|
2
|
-
scroll-behavior: smooth;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
body {
|
|
6
|
-
font-family: $font, $font-fallback;
|
|
7
|
-
font-size: 16px;
|
|
8
|
-
line-height: 1.5;
|
|
9
|
-
font-weight: $font-regular;
|
|
10
|
-
background-color: $background-default;
|
|
11
|
-
color: $text;
|
|
12
|
-
// needed for footer margin-top: auto if content smaller than viewport height
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
min-height: 100vh;
|
|
16
|
-
|
|
17
|
-
&:after {
|
|
18
|
-
transition: opacity $transition-md;
|
|
19
|
-
content: '';
|
|
20
|
-
position: fixed;
|
|
21
|
-
background-color: $overlay;
|
|
22
|
-
height: 100vh;
|
|
23
|
-
width: 100vw;
|
|
24
|
-
top: 0;
|
|
25
|
-
left: 0;
|
|
26
|
-
opacity: 0;
|
|
27
|
-
z-index: 12;
|
|
28
|
-
pointer-events: none;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&.js-sidebar,
|
|
32
|
-
&.js-navbar {
|
|
33
|
-
overflow: hidden;
|
|
34
|
-
|
|
35
|
-
&:after {
|
|
36
|
-
opacity: 1;
|
|
37
|
-
pointer-events: initial;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&.js-navbar:after {
|
|
42
|
-
z-index: 10;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// stick to bottom of page when page height smaller than viewport height
|
|
47
|
-
footer {
|
|
48
|
-
margin-top: auto;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// embed responsively
|
|
52
|
-
|
|
53
|
-
.embed-container {
|
|
54
|
-
position: relative;
|
|
55
|
-
padding-bottom: 56.25%;
|
|
56
|
-
height: 0;
|
|
57
|
-
overflow: hidden;
|
|
58
|
-
max-width: 100%;
|
|
59
|
-
border-radius: $spacing-md;
|
|
60
|
-
|
|
61
|
-
iframe, object, embed {
|
|
62
|
-
position: absolute;
|
|
63
|
-
top: 0;
|
|
64
|
-
left: 0;
|
|
65
|
-
width: 100%;
|
|
66
|
-
height: 100%;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// text selection
|
|
71
|
-
::-moz-selection {
|
|
72
|
-
background: $primary;
|
|
73
|
-
color: $primary-contrast;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
::selection {
|
|
77
|
-
background: $primary;
|
|
78
|
-
color: $primary-contrast;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
::-moz-selection {
|
|
82
|
-
background: $primary;
|
|
83
|
-
color: $primary-contrast;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// remove autocomplete from webkit browsers
|
|
87
|
-
|
|
88
|
-
input:-webkit-autofill,
|
|
89
|
-
input:-webkit-autofill:hover,
|
|
90
|
-
input:-webkit-autofill:focus,
|
|
91
|
-
textarea:-webkit-autofill,
|
|
92
|
-
textarea:-webkit-autofill:hover
|
|
93
|
-
textarea:-webkit-autofill:focus,
|
|
94
|
-
select:-webkit-autofill,
|
|
95
|
-
select:-webkit-autofill:hover,
|
|
96
|
-
select:-webkit-autofill:focus {
|
|
97
|
-
-webkit-box-shadow: 0 0 0px 1000px $primary-light inset;
|
|
98
|
-
@include transition($transition-md, background-color);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// prevent images from stretching with flex
|
|
102
|
-
|
|
103
|
-
img {
|
|
104
|
-
align-self: center;
|
|
105
|
-
width: 100%;
|
|
106
|
-
flex-shrink: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// lists
|
|
110
|
-
|
|
111
|
-
ul {
|
|
112
|
-
list-style: disc;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
li {
|
|
116
|
-
margin-left: $spacing-md;
|
|
117
|
-
|
|
118
|
-
& + & {
|
|
119
|
-
padding-top: $spacing-xs;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// buttons and links
|
|
124
|
-
|
|
125
|
-
button,
|
|
126
|
-
a {
|
|
127
|
-
outline-color: $primary;
|
|
128
|
-
cursor: pointer;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
// iframe
|
|
132
|
-
|
|
133
|
-
iframe {
|
|
134
|
-
display: block; // remove bottom spacing
|
|
135
|
-
width: 100%;
|
|
136
|
-
border-radius: $border-radius-md;
|
|
137
|
-
border: $border;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
strong {
|
|
141
|
-
font-weight: $font-bold;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// z-index
|
|
145
|
-
|
|
146
|
-
@for $i from 0 through 9 {
|
|
147
|
-
.z-index--#{$i} { z-index: $i; }
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
// background
|
|
151
|
-
|
|
152
|
-
.background-cover {
|
|
153
|
-
@include background(50% 50%, cover);
|
|
154
|
-
}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// media queries
|
|
3
|
-
// font
|
|
4
|
-
// form
|
|
5
|
-
// misc
|
|
6
|
-
// —————————————————————————————————————————————————————————————————
|
|
7
|
-
|
|
8
|
-
// —————————————————————————————————————————————————————————————————
|
|
9
|
-
// media queries
|
|
10
|
-
// —————————————————————————————————————————————————————————————————
|
|
11
|
-
|
|
12
|
-
@mixin responsive($value, $breakpoint) {
|
|
13
|
-
@if $value == up {
|
|
14
|
-
$value: min-width;
|
|
15
|
-
@if $breakpoint == desktop-lg { $breakpoint: $desktop-lg; }
|
|
16
|
-
@else if $breakpoint == desktop { $breakpoint: $desktop; }
|
|
17
|
-
@else if $breakpoint == laptop { $breakpoint: $laptop; }
|
|
18
|
-
@else if $breakpoint == tablet { $breakpoint: $tablet; }
|
|
19
|
-
@else if $breakpoint == mobile { $breakpoint: $mobile; }
|
|
20
|
-
@else if $breakpoint == mobile-sm { $breakpoint: $mobile-sm; }
|
|
21
|
-
|
|
22
|
-
} @else if $value == down {
|
|
23
|
-
$value: max-width;
|
|
24
|
-
@if $breakpoint == desktop-lg { $breakpoint: $desktop-lg-down; }
|
|
25
|
-
@else if $breakpoint == desktop { $breakpoint: $desktop-down; }
|
|
26
|
-
@else if $breakpoint == laptop { $breakpoint: $laptop-down; }
|
|
27
|
-
@else if $breakpoint == tablet { $breakpoint: $tablet-down; }
|
|
28
|
-
@else if $breakpoint == mobile { $breakpoint: $mobile-down; }
|
|
29
|
-
@else if $breakpoint == mobile-sm { $breakpoint: $mobile-sm-down; }
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@media ($value: $breakpoint) {
|
|
33
|
-
@content;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
@mixin responsive-touch {
|
|
38
|
-
@media (pointer:coarse) {
|
|
39
|
-
@content;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@mixin responsive-click {
|
|
44
|
-
@media not (pointer:coarse) {
|
|
45
|
-
@content;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@mixin responsive-touch-landscape {
|
|
50
|
-
@media only screen and (max-device-width: $laptop-down) and (orientation: landscape) {
|
|
51
|
-
@content;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// —————————————————————————————————————————————————————————————————
|
|
56
|
-
// font
|
|
57
|
-
// —————————————————————————————————————————————————————————————————
|
|
58
|
-
|
|
59
|
-
@mixin fontface($font-name, $font-file, $font-weight, $font-style) {
|
|
60
|
-
|
|
61
|
-
@font-face {
|
|
62
|
-
font-family: $font-name;
|
|
63
|
-
src: url($fonts-path + $font-file + '.woff2') format('woff2');
|
|
64
|
-
font-weight: $font-weight;
|
|
65
|
-
font-style: $font-style;
|
|
66
|
-
font-display: swap;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@mixin text-ellipsis() {
|
|
71
|
-
white-space: nowrap;
|
|
72
|
-
overflow: hidden;
|
|
73
|
-
text-overflow: ellipsis;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// —————————————————————————————————————————————————————————————————
|
|
77
|
-
// form
|
|
78
|
-
// —————————————————————————————————————————————————————————————————
|
|
79
|
-
|
|
80
|
-
@mixin placeholder {
|
|
81
|
-
:-moz-placeholder { @content; }
|
|
82
|
-
::-moz-placeholder { @content; }
|
|
83
|
-
:-ms-input-placeholder { @content; }
|
|
84
|
-
::-webkit-input-placeholder { @content; }
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// —————————————————————————————————————————————————————————————————
|
|
88
|
-
// misc
|
|
89
|
-
// —————————————————————————————————————————————————————————————————
|
|
90
|
-
|
|
91
|
-
@mixin calc($property, $expression) {
|
|
92
|
-
#{$property}: -webkit-calc(#{$expression});
|
|
93
|
-
#{$property}: calc(#{$expression});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@mixin background($position, $size) {
|
|
97
|
-
background-position: $position;
|
|
98
|
-
-webkit-background-size: $size;
|
|
99
|
-
background-size: $size;
|
|
100
|
-
background-repeat: no-repeat;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
@mixin pseudo-element($content: "", $top: 0, $right: 0, $bottom: 0, $left: 0, $width: 100%, $height: 100%) {
|
|
104
|
-
content: $content;
|
|
105
|
-
position: absolute;
|
|
106
|
-
top: $top;
|
|
107
|
-
right: $right;
|
|
108
|
-
bottom: $bottom;
|
|
109
|
-
left: $left;
|
|
110
|
-
width: $width;
|
|
111
|
-
height: $height;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
@mixin hover {
|
|
115
|
-
&:hover, &:active, &:focus {
|
|
116
|
-
@content;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
@mixin keyframes($name) {
|
|
121
|
-
@-webkit-keyframes #{$name} {
|
|
122
|
-
@content;
|
|
123
|
-
}
|
|
124
|
-
@-moz-keyframes #{$name} {
|
|
125
|
-
@content;
|
|
126
|
-
}
|
|
127
|
-
@-ms-keyframes #{$name} {
|
|
128
|
-
@content;
|
|
129
|
-
}
|
|
130
|
-
@keyframes #{$name} {
|
|
131
|
-
@content;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
@mixin transition($time, $properties...) {
|
|
136
|
-
$transition: ();
|
|
137
|
-
$will-change: ();
|
|
138
|
-
@each $property in $properties {
|
|
139
|
-
$transition: append(
|
|
140
|
-
$transition, ($property $time), $separator: comma
|
|
141
|
-
);
|
|
142
|
-
$will-change: append(
|
|
143
|
-
$will-change, ($property), $separator: comma
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
transition: $transition;
|
|
147
|
-
will-change: $will-change;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
// fallback for clamp css function
|
|
151
|
-
@mixin clamp($property, $min-size, $scaler, $max-size, $viewport: tablet){
|
|
152
|
-
|
|
153
|
-
@include responsive(up, $viewport) {
|
|
154
|
-
#{$property}: $max-size;
|
|
155
|
-
#{$property}: clamp($min-size, $scaler, $max-size);
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
@include responsive(down, $viewport) {
|
|
159
|
-
#{$property}: $min-size;
|
|
160
|
-
#{$property}: clamp($min-size, $scaler, $max-size);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// custom (for IE)
|
|
3
|
-
// The new CSS Reset - version 1.2.0 (last updated 23.7.2021)
|
|
4
|
-
// Remove inputs icons
|
|
5
|
-
// —————————————————————————————————————————————————————————————————
|
|
6
|
-
|
|
7
|
-
// —————————————————————————————————————————————————————————————————
|
|
8
|
-
// custom (for IE)
|
|
9
|
-
// —————————————————————————————————————————————————————————————————
|
|
10
|
-
|
|
11
|
-
body,
|
|
12
|
-
html {
|
|
13
|
-
margin: 0;
|
|
14
|
-
accent-color: $primary;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
h1, h2, h3, h4, h5, h6, p {
|
|
18
|
-
margin: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// remove visited link styling
|
|
22
|
-
button, a {
|
|
23
|
-
color: inherit;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// remove space under picture tag
|
|
27
|
-
picture {
|
|
28
|
-
display: flex;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// —————————————————————————————————————————————————————————————————
|
|
32
|
-
// The new CSS Reset - version 1.2.0 (last updated 23.7.2021)
|
|
33
|
-
// —————————————————————————————————————————————————————————————————
|
|
34
|
-
|
|
35
|
-
// Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
|
|
36
|
-
*:where(:not(iframe, canvas, img, svg, video, pre):not(svg *)) {
|
|
37
|
-
all: unset;
|
|
38
|
-
display: revert;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Preferred box-sizing value
|
|
42
|
-
*,
|
|
43
|
-
*::before,
|
|
44
|
-
*::after {
|
|
45
|
-
box-sizing: border-box;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// Remove list styles (bullets/numbers) in case you use it with normalize.css
|
|
49
|
-
ol, ul {
|
|
50
|
-
list-style: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// For images to not be able to exceed their container
|
|
54
|
-
img {
|
|
55
|
-
max-width: 100%;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Removes spacing between cells in tables
|
|
59
|
-
table {
|
|
60
|
-
border-collapse: collapse;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Revert the 'white-space' property for textarea elements on Safari
|
|
64
|
-
textarea {
|
|
65
|
-
white-space: revert;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Add focus styles
|
|
69
|
-
a[href],
|
|
70
|
-
area[href],
|
|
71
|
-
input,
|
|
72
|
-
input[type="checkbox"],
|
|
73
|
-
input[type='radio'],
|
|
74
|
-
select,
|
|
75
|
-
textarea,
|
|
76
|
-
button,
|
|
77
|
-
iframe,
|
|
78
|
-
[tabindex],
|
|
79
|
-
[contentEditable=true] {
|
|
80
|
-
outline: revert;
|
|
81
|
-
|
|
82
|
-
&:focus {
|
|
83
|
-
outline: 2px solid $primary;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
// —————————————————————————————————————————————————————————————————
|
|
88
|
-
// Remove inputs icons
|
|
89
|
-
// —————————————————————————————————————————————————————————————————
|
|
90
|
-
|
|
91
|
-
// Remove default arrow for input[type=number] in Webkit browsers (Chrome, Safari, etc.)
|
|
92
|
-
input[type="number"]::-webkit-outer-spin-button,
|
|
93
|
-
input[type="number"]::-webkit-inner-spin-button {
|
|
94
|
-
opacity: 0;
|
|
95
|
-
margin: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
// Remove default arrow for input[type=number] in Firefox
|
|
99
|
-
input[type="number"] {
|
|
100
|
-
-moz-appearance: textfield;
|
|
101
|
-
appearance: textfield;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Remove default calendar and time picker icons in Webkit browsers
|
|
105
|
-
input[type="date"]::-webkit-calendar-picker-indicator,
|
|
106
|
-
input[type="time"]::-webkit-calendar-picker-indicator {
|
|
107
|
-
opacity: 0;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
// Remove default calendar icon in Edge and IE
|
|
111
|
-
input[type="date"]::-ms-clear,
|
|
112
|
-
input[type="date"]::-ms-input-placeholder {
|
|
113
|
-
opacity: 0;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
input[type="time"]::-ms-clear,
|
|
117
|
-
input[type="time"]::-ms-input-placeholder {
|
|
118
|
-
opacity: 0;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Remove default calendar and time picker icons in Mozilla Firefox
|
|
122
|
-
input[type="date"] {
|
|
123
|
-
-moz-appearance: textfield;
|
|
124
|
-
appearance: textfield;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
input[type="time"] {
|
|
128
|
-
-moz-appearance: textfield;
|
|
129
|
-
appearance: textfield;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// For additional browser support
|
|
133
|
-
input[type="date"],
|
|
134
|
-
input[type="time"] {
|
|
135
|
-
appearance: none;
|
|
136
|
-
-webkit-appearance: none;
|
|
137
|
-
-moz-appearance: none;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
// Hide the clear button in Edge
|
|
141
|
-
input::-ms-clear {
|
|
142
|
-
opacity: 0;
|
|
143
|
-
}
|
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// dependencies
|
|
3
|
-
// color palette
|
|
4
|
-
// spacing
|
|
5
|
-
// typography
|
|
6
|
-
// breakpoints
|
|
7
|
-
// misc
|
|
8
|
-
// components
|
|
9
|
-
// —————————————————————————————————————————————————————————————————
|
|
10
|
-
|
|
11
|
-
// —————————————————————————————————————————————————————————————————
|
|
12
|
-
// dependencies
|
|
13
|
-
// —————————————————————————————————————————————————————————————————
|
|
14
|
-
|
|
15
|
-
$fonts-path: './assets/fonts/' !default;
|
|
16
|
-
$icons-path: './assets/icons/' !default;
|
|
17
|
-
|
|
18
|
-
// —————————————————————————————————————————————————————————————————
|
|
19
|
-
// color palette
|
|
20
|
-
// —————————————————————————————————————————————————————————————————
|
|
21
|
-
|
|
22
|
-
// main
|
|
23
|
-
|
|
24
|
-
$main: #FFFFFF !default;
|
|
25
|
-
$contrast: #000A1E !default;
|
|
26
|
-
|
|
27
|
-
// grey
|
|
28
|
-
|
|
29
|
-
$grey-90: mix($contrast, $main, 90%) !default;
|
|
30
|
-
$grey-80: mix($contrast, $main, 80%) !default;
|
|
31
|
-
$grey-70: mix($contrast, $main, 70%) !default;
|
|
32
|
-
$grey-60: mix($contrast, $main, 60%) !default;
|
|
33
|
-
$grey-50: mix($contrast, $main, 50%) !default;
|
|
34
|
-
$grey-40: mix($contrast, $main, 40%) !default;
|
|
35
|
-
$grey-30: mix($contrast, $main, 30%) !default;
|
|
36
|
-
$grey-20: mix($contrast, $main, 20%) !default;
|
|
37
|
-
$grey-10: mix($contrast, $main, 10%) !default;
|
|
38
|
-
$grey-5: mix($contrast, $main, 5%) !default;
|
|
39
|
-
|
|
40
|
-
// background
|
|
41
|
-
|
|
42
|
-
$background-default: $grey-5 !default;
|
|
43
|
-
$background-paper: $main !default;
|
|
44
|
-
|
|
45
|
-
// text
|
|
46
|
-
|
|
47
|
-
$text: $contrast !default;
|
|
48
|
-
$text-alt: rgba($text, 0.5) !default;
|
|
49
|
-
$text-disabled: rgba($text, 0.25) !default;
|
|
50
|
-
|
|
51
|
-
$text-contrast: $main !default;
|
|
52
|
-
$text-contrast-alt: rgba($text-contrast, 0.6) !default;
|
|
53
|
-
$text-contrast-disabled: rgba($text-contrast, 0.3) !default;
|
|
54
|
-
|
|
55
|
-
// brand
|
|
56
|
-
|
|
57
|
-
$primary: #0076AC !default;
|
|
58
|
-
$primary-light: mix($main, $primary, 70%) !default;
|
|
59
|
-
$primary-dark: mix($contrast, $primary, 50%) !default;
|
|
60
|
-
$primary-contrast: $text-contrast !default;
|
|
61
|
-
|
|
62
|
-
$secondary: #C24889 !default;
|
|
63
|
-
$secondary-light: mix($main, $secondary, 70%) !default;
|
|
64
|
-
$secondary-dark: mix($contrast, $secondary, 50%) !default;
|
|
65
|
-
$secondary-contrast: $text-contrast !default;
|
|
66
|
-
|
|
67
|
-
// feedback
|
|
68
|
-
|
|
69
|
-
$success: #27AE60 !default;
|
|
70
|
-
$success-light: mix($main, $success, 70%) !default;
|
|
71
|
-
$success-dark: mix($contrast, $success, 50%) !default;
|
|
72
|
-
$success-contrast: $text-contrast !default;
|
|
73
|
-
|
|
74
|
-
$info: #17A0CC !default;
|
|
75
|
-
$info-light: mix($main, $info, 70%) !default;
|
|
76
|
-
$info-dark: mix($contrast, $info, 50%) !default;
|
|
77
|
-
$info-contrast: $text-contrast !default;
|
|
78
|
-
|
|
79
|
-
$warning: #FFDC46 !default;
|
|
80
|
-
$warning-light: mix($main, $warning, 70%) !default;
|
|
81
|
-
$warning-dark: mix($contrast, $warning, 50%) !default;
|
|
82
|
-
$warning-contrast: $text !default;
|
|
83
|
-
|
|
84
|
-
$error: #EB5757 !default;
|
|
85
|
-
$error-light: mix($main, $error, 70%) !default;
|
|
86
|
-
$error-dark: mix($contrast, $error, 50%) !default;
|
|
87
|
-
$error-contrast: $text-contrast !default;
|
|
88
|
-
|
|
89
|
-
// others
|
|
90
|
-
|
|
91
|
-
$border-color: rgba($text, 0.2) !default;
|
|
92
|
-
$border: 1px solid $border-color !default;
|
|
93
|
-
$border-color-contrast: rgba($text-contrast, 0.3) !default;
|
|
94
|
-
$border-contrast: 1px solid $border-color-contrast !default;
|
|
95
|
-
|
|
96
|
-
$hover: rgba($text, 0.12) !default;
|
|
97
|
-
$hover-contrast: rgba($text-contrast, 0.12) !default;
|
|
98
|
-
|
|
99
|
-
$overlay: rgba($text-contrast, 0.8) !default;
|
|
100
|
-
$overlay-contrast: rgba($text, 0.2) !default;
|
|
101
|
-
|
|
102
|
-
$input-background: rgba($text, 0.05);
|
|
103
|
-
|
|
104
|
-
// —————————————————————————————————————————————————————————————————
|
|
105
|
-
// spacing
|
|
106
|
-
// —————————————————————————————————————————————————————————————————
|
|
107
|
-
|
|
108
|
-
$col: calc(100%/12);
|
|
109
|
-
|
|
110
|
-
$spacing-xxs: 0.125rem !default;
|
|
111
|
-
$spacing-xs: 0.25rem !default;
|
|
112
|
-
$spacing-sm: 0.5rem !default;
|
|
113
|
-
$spacing-md: 1rem !default;
|
|
114
|
-
$spacing-lg: 2rem !default;
|
|
115
|
-
$spacing-xl: 4rem !default;
|
|
116
|
-
$spacing-xxl: 7rem !default;
|
|
117
|
-
|
|
118
|
-
$max-width-subtitle: 27.5rem !default;
|
|
119
|
-
$max-width-editor: 40rem !default;
|
|
120
|
-
$max-width-form: 40rem !default;
|
|
121
|
-
|
|
122
|
-
$navbar-height: 4rem !default;
|
|
123
|
-
$navbar-height-sm: 3rem !default;
|
|
124
|
-
$nav-item: $spacing-md !default;
|
|
125
|
-
|
|
126
|
-
// —————————————————————————————————————————————————————————————————
|
|
127
|
-
// typography
|
|
128
|
-
// —————————————————————————————————————————————————————————————————
|
|
129
|
-
|
|
130
|
-
// Functions to unquote and remove spaces
|
|
131
|
-
@function str-replace($string, $search, $replace: "") {
|
|
132
|
-
$index: str-index($string, $search);
|
|
133
|
-
|
|
134
|
-
@if $index {
|
|
135
|
-
@return str-replace(
|
|
136
|
-
str-slice($string, 1, $index - 1) + $replace + str-slice($string, $index + str-length($search), str-length($string)),
|
|
137
|
-
$search,
|
|
138
|
-
$replace
|
|
139
|
-
);
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
@return $string;
|
|
143
|
-
}
|
|
144
|
-
@function clean-string($string) {
|
|
145
|
-
@return str-replace(unquote($string), " ");
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
// typefaces
|
|
149
|
-
$font: "Source Sans Pro" !default;
|
|
150
|
-
$font-clean: clean-string($font);
|
|
151
|
-
$font-fallback: Arial, sans-serif !default;
|
|
152
|
-
$font-code: monospace !default;
|
|
153
|
-
|
|
154
|
-
// weight
|
|
155
|
-
|
|
156
|
-
$font-regular: 400 !default;
|
|
157
|
-
$font-bold: 700 !default;
|
|
158
|
-
|
|
159
|
-
// styles
|
|
160
|
-
|
|
161
|
-
$h1-size: 3rem !default;
|
|
162
|
-
$h1-weight: $font-bold !default;
|
|
163
|
-
$h1-line-height: 1.25 !default;
|
|
164
|
-
|
|
165
|
-
$h2-size: 2.5rem !default;
|
|
166
|
-
$h2-weight: $font-bold !default;
|
|
167
|
-
$h2-line-height: 1.25 !default;
|
|
168
|
-
|
|
169
|
-
$h3-size: 2rem !default;
|
|
170
|
-
$h3-weight: $font-bold !default;
|
|
171
|
-
$h3-line-height: 1.25 !default;
|
|
172
|
-
|
|
173
|
-
$h4-size: 1.75rem !default;
|
|
174
|
-
$h4-weight: $font-bold !default;
|
|
175
|
-
$h4-line-height: 1.25 !default;
|
|
176
|
-
|
|
177
|
-
$h5-size: 1.5rem !default;
|
|
178
|
-
$h5-weight: $font-bold !default;
|
|
179
|
-
$h5-line-height: 1.25 !default;
|
|
180
|
-
|
|
181
|
-
$h6-size: 1.25rem !default;
|
|
182
|
-
$h6-weight: $font-bold !default;
|
|
183
|
-
$h6-line-height: 1.25 !default;
|
|
184
|
-
|
|
185
|
-
$subtitle-size: 1.125rem !default;
|
|
186
|
-
$subtitle-weight: $font-regular !default;
|
|
187
|
-
$subtitle-line-height: 1.5 !default;
|
|
188
|
-
|
|
189
|
-
$body-size: 1rem !default;
|
|
190
|
-
$body-weight: $font-regular !default;
|
|
191
|
-
$body-line-height: 1.5 !default;
|
|
192
|
-
|
|
193
|
-
$caption-size: 0.875rem !default;
|
|
194
|
-
$caption-weight: $font-regular !default;
|
|
195
|
-
$caption-line-height: 1.5 !default;
|
|
196
|
-
|
|
197
|
-
$overline-size: 0.75rem !default;
|
|
198
|
-
$overline-weight: $font-regular !default;
|
|
199
|
-
$overline-line-height: 1.5 !default;
|
|
200
|
-
|
|
201
|
-
// —————————————————————————————————————————————————————————————————
|
|
202
|
-
// breakpoints
|
|
203
|
-
// —————————————————————————————————————————————————————————————————
|
|
204
|
-
|
|
205
|
-
$desktop-lg: 1440px !default;
|
|
206
|
-
$desktop-lg-down: calc(#{$desktop-lg} - 0.02px);
|
|
207
|
-
|
|
208
|
-
$desktop: 1280px !default;
|
|
209
|
-
$desktop-down: calc(#{$desktop} - 0.02px);
|
|
210
|
-
|
|
211
|
-
$laptop: 1024px !default;
|
|
212
|
-
$laptop-down: calc(#{$laptop} - 0.02px);
|
|
213
|
-
|
|
214
|
-
$tablet: 768px !default;
|
|
215
|
-
$tablet-down: calc(#{$tablet} - 0.02px);
|
|
216
|
-
|
|
217
|
-
$mobile: 568px !default;
|
|
218
|
-
$mobile-down: calc(#{$mobile} - 0.02px);
|
|
219
|
-
|
|
220
|
-
$mobile-sm: 350px !default;
|
|
221
|
-
$mobile-sm-down: calc(#{$mobile-sm} - 0.02px);
|
|
222
|
-
|
|
223
|
-
// —————————————————————————————————————————————————————————————————
|
|
224
|
-
// misc
|
|
225
|
-
// —————————————————————————————————————————————————————————————————
|
|
226
|
-
|
|
227
|
-
// box-shadow
|
|
228
|
-
|
|
229
|
-
$box-shadow: 0 0 .5rem 0 rgba($text, 0.2) !default;
|
|
230
|
-
|
|
231
|
-
// transition
|
|
232
|
-
|
|
233
|
-
$transition-md: 0.4s ease 0s !default;
|
|
234
|
-
$transition-lg: 0.8s ease 0s !default;
|
|
235
|
-
|
|
236
|
-
// border-radius
|
|
237
|
-
|
|
238
|
-
$border-radius-sm: .25rem !default;
|
|
239
|
-
$border-radius-md: .5rem !default;
|
|
240
|
-
$border-radius-lg: 1rem !default;
|
|
241
|
-
|
|
242
|
-
// —————————————————————————————————————————————————————————————————
|
|
243
|
-
// components
|
|
244
|
-
// —————————————————————————————————————————————————————————————————
|
|
245
|
-
|
|
246
|
-
// input
|
|
247
|
-
|
|
248
|
-
$input-height: 2.5rem;
|
|
249
|
-
$checkbox-width: 1.5rem;
|