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,189 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// align
|
|
4
|
-
// —————————————————————————————————————————————————————————————————
|
|
5
|
-
|
|
6
|
-
// button apparition
|
|
7
|
-
@include keyframes(button-menu-opacity) {
|
|
8
|
-
0% { opacity: 0; }
|
|
9
|
-
50% { opacity: 0; }
|
|
10
|
-
100% { opacity: 100%; }
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// lines > close
|
|
14
|
-
@include keyframes(button-menu-open-before) {
|
|
15
|
-
0% { transform: translateY($spacing-xs*1.5); }
|
|
16
|
-
50% { transform: translateY(0);
|
|
17
|
-
transform: rotate(0); }
|
|
18
|
-
100% { transform: rotate(45deg); }
|
|
19
|
-
}
|
|
20
|
-
@include keyframes(button-menu-open-after) {
|
|
21
|
-
0% { transform: translateY(-$spacing-xs*1.5); }
|
|
22
|
-
50% { transform: translateY(0);
|
|
23
|
-
transform: rotate(0); }
|
|
24
|
-
100% { transform: rotate(-45deg); }
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// close > lines
|
|
28
|
-
@include keyframes(button-menu-close-before) {
|
|
29
|
-
0% { transform: rotate(45deg); }
|
|
30
|
-
50% { transform: rotate(0);
|
|
31
|
-
transform: translateY(0); }
|
|
32
|
-
100% { transform: translateY($spacing-xs*1.5); }
|
|
33
|
-
}
|
|
34
|
-
@include keyframes(button-menu-close-after) {
|
|
35
|
-
0% { transform: rotate(-45deg); }
|
|
36
|
-
50% { transform: rotate(0);
|
|
37
|
-
transform: translateY(0); }
|
|
38
|
-
100% { transform: translateY(-$spacing-xs*1.5); }
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// —————————————————————————————————————————————————————————————————
|
|
42
|
-
// elements
|
|
43
|
-
// —————————————————————————————————————————————————————————————————
|
|
44
|
-
|
|
45
|
-
.navbar {
|
|
46
|
-
top: 0;
|
|
47
|
-
left: 0;
|
|
48
|
-
width: 100%;
|
|
49
|
-
background-color: $background-paper;
|
|
50
|
-
border-bottom: $border;
|
|
51
|
-
z-index: 13;
|
|
52
|
-
|
|
53
|
-
@include responsive(up, tablet) {
|
|
54
|
-
height: $navbar-height;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@include responsive(down, tablet) {
|
|
58
|
-
z-index: 11;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&.section {
|
|
62
|
-
overflow: visible;
|
|
63
|
-
position: sticky;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.section_container {
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: row;
|
|
69
|
-
align-items: center;
|
|
70
|
-
justify-content: space-between;
|
|
71
|
-
padding-top: 0;
|
|
72
|
-
padding-bottom: 0;
|
|
73
|
-
|
|
74
|
-
@include responsive(up, tablet) {
|
|
75
|
-
height: 100%;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@include responsive(down, tablet) {
|
|
79
|
-
flex-direction: column;
|
|
80
|
-
align-items: stretch;
|
|
81
|
-
padding-top: 0;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&__main {
|
|
86
|
-
display: flex;
|
|
87
|
-
align-items: center;
|
|
88
|
-
|
|
89
|
-
@include responsive(down, tablet) {
|
|
90
|
-
height: $navbar-height-sm;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&__logo {
|
|
95
|
-
display: flex;
|
|
96
|
-
align-items: baseline;
|
|
97
|
-
font-weight: $font-bold;
|
|
98
|
-
flex-grow: 1;
|
|
99
|
-
|
|
100
|
-
> * {
|
|
101
|
-
margin-right: $spacing-xs;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&__button {
|
|
106
|
-
@include transition($transition-md, opacity);
|
|
107
|
-
animation: button-menu-opacity $transition-lg;
|
|
108
|
-
display: flex;
|
|
109
|
-
align-items: center;
|
|
110
|
-
justify-content: center;
|
|
111
|
-
cursor: pointer;
|
|
112
|
-
position: relative;
|
|
113
|
-
width: $spacing-md;
|
|
114
|
-
height: $spacing-md;
|
|
115
|
-
|
|
116
|
-
@include responsive(up, tablet) {
|
|
117
|
-
display: none;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
&:before,
|
|
121
|
-
&:after,
|
|
122
|
-
span {
|
|
123
|
-
background-color: $text;
|
|
124
|
-
border-radius: 0.15rem;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&:before,
|
|
128
|
-
&:after {
|
|
129
|
-
@include pseudo-element('', auto, auto, auto, auto, $spacing-md, 2px);
|
|
130
|
-
@include transition($transition-md, transform);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&:before {
|
|
134
|
-
transform: translateY($spacing-xs*1.5);
|
|
135
|
-
animation: button-menu-close-before $transition-lg;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&:after {
|
|
139
|
-
transform: translateY(-$spacing-xs*1.5);
|
|
140
|
-
animation: button-menu-close-after $transition-lg;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
span {
|
|
144
|
-
@include transition($transition-md, opacity);
|
|
145
|
-
position: absolute;
|
|
146
|
-
width: $spacing-md;
|
|
147
|
-
height: 2px;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
&.js-opened {
|
|
151
|
-
|
|
152
|
-
&:before { animation: button-menu-open-before $transition-lg forwards; }
|
|
153
|
-
&:after { animation: button-menu-open-after $transition-lg forwards; }
|
|
154
|
-
span { opacity: 0; }
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&__nav {
|
|
159
|
-
|
|
160
|
-
@include responsive(down, tablet) {
|
|
161
|
-
@include transition($transition-md, max-height);
|
|
162
|
-
align-items: flex-start;
|
|
163
|
-
max-height: 0;
|
|
164
|
-
overflow: hidden;
|
|
165
|
-
|
|
166
|
-
.js-opened & {
|
|
167
|
-
max-height: 80vh;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// —————————————————————————————————————————————————————————————————
|
|
174
|
-
// align
|
|
175
|
-
// —————————————————————————————————————————————————————————————————
|
|
176
|
-
|
|
177
|
-
.navbar--right {
|
|
178
|
-
|
|
179
|
-
.section_container {
|
|
180
|
-
|
|
181
|
-
@include responsive(up, tablet) {
|
|
182
|
-
flex-direction: row-reverse;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.navbar__main {
|
|
187
|
-
flex-direction: row-reverse;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// withSidebar
|
|
4
|
-
// —————————————————————————————————————————————————————————————————
|
|
5
|
-
|
|
6
|
-
// —————————————————————————————————————————————————————————————————
|
|
7
|
-
// elements
|
|
8
|
-
// —————————————————————————————————————————————————————————————————
|
|
9
|
-
|
|
10
|
-
.page {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
min-height: 100vh;
|
|
14
|
-
|
|
15
|
-
&__content {
|
|
16
|
-
width: 100%;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// —————————————————————————————————————————————————————————————————
|
|
21
|
-
// withSidebar
|
|
22
|
-
// —————————————————————————————————————————————————————————————————
|
|
23
|
-
|
|
24
|
-
.page--withSidebar {
|
|
25
|
-
|
|
26
|
-
.page__container {
|
|
27
|
-
display: flex;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.section_container {
|
|
31
|
-
max-width: none;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// align
|
|
4
|
-
// color
|
|
5
|
-
// landing (website title on homepage)
|
|
6
|
-
// header (page title)
|
|
7
|
-
// —————————————————————————————————————————————————————————————————
|
|
8
|
-
|
|
9
|
-
// —————————————————————————————————————————————————————————————————
|
|
10
|
-
// elements
|
|
11
|
-
// —————————————————————————————————————————————————————————————————
|
|
12
|
-
|
|
13
|
-
.section {
|
|
14
|
-
@include clamp(padding-right, 1rem, 4vw, 4rem);
|
|
15
|
-
@include clamp(padding-left, 1rem, 4vw, 4rem);
|
|
16
|
-
width: 100%;
|
|
17
|
-
overflow: hidden; // prevent horizontal scroll on mobile
|
|
18
|
-
position: relative;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
align-items: center;
|
|
22
|
-
|
|
23
|
-
&_container {
|
|
24
|
-
@include clamp(padding-top, 2rem, 8vw, 4rem);
|
|
25
|
-
@include clamp(padding-bottom, 2rem, 8vw, 4rem);
|
|
26
|
-
width: 100%;
|
|
27
|
-
max-width: $desktop;
|
|
28
|
-
position: relative; // needed to have the content over section-landing:before
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&_header {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
|
|
35
|
-
& + .section_content { @include clamp(padding-top, 2rem, 8vw, 4rem); }
|
|
36
|
-
&-dense + .section_content { padding-top: 2rem; }
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&_content {
|
|
40
|
-
width: 100%;
|
|
41
|
-
|
|
42
|
-
& + & {
|
|
43
|
-
@include clamp(padding-top, 2rem, 8vw, 4rem);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&_label {
|
|
48
|
-
color: $text-alt;
|
|
49
|
-
font-weight: $font-bold;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&_title {
|
|
53
|
-
@extend %h3;
|
|
54
|
-
color: $primary;
|
|
55
|
-
max-width: $desktop*0.75;
|
|
56
|
-
|
|
57
|
-
.section_label + & {
|
|
58
|
-
margin-top: .5rem;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&_subtitle {
|
|
63
|
-
@extend %subtitle;
|
|
64
|
-
max-width: $max-width-subtitle;
|
|
65
|
-
|
|
66
|
-
.section_title + & {
|
|
67
|
-
margin-top: 2rem - 1rem;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
& + & {
|
|
71
|
-
margin-top: 1rem;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&_actions {
|
|
76
|
-
|
|
77
|
-
.section_title + &,
|
|
78
|
-
.section_subtitle + & {
|
|
79
|
-
margin-top: 2rem;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// —————————————————————————————————————————————————————————————————
|
|
85
|
-
// align
|
|
86
|
-
// —————————————————————————————————————————————————————————————————
|
|
87
|
-
|
|
88
|
-
.section_container {
|
|
89
|
-
align-items: flex-start;
|
|
90
|
-
text-align: left;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.section-center .section_container,
|
|
94
|
-
.section-center .section_header,
|
|
95
|
-
.section_content-center {
|
|
96
|
-
align-items: center;
|
|
97
|
-
text-align: center;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.section-right .section_container,
|
|
101
|
-
.section-right .section_header,
|
|
102
|
-
.section_content-right {
|
|
103
|
-
align-items: flex-end;
|
|
104
|
-
text-align: right;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// —————————————————————————————————————————————————————————————————
|
|
108
|
-
// color
|
|
109
|
-
// —————————————————————————————————————————————————————————————————
|
|
110
|
-
|
|
111
|
-
@mixin color(
|
|
112
|
-
$background-color,
|
|
113
|
-
$title-color: $primary,
|
|
114
|
-
$color: $text,
|
|
115
|
-
$paper-color: $background-paper,
|
|
116
|
-
$border-color: $border-color
|
|
117
|
-
) {
|
|
118
|
-
background-color: $background-color;
|
|
119
|
-
color: $color;
|
|
120
|
-
|
|
121
|
-
& + & {
|
|
122
|
-
|
|
123
|
-
.section_container {
|
|
124
|
-
padding-top: 0;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.section_title { color: $title-color; }
|
|
129
|
-
.button-stroke { color: $color; }
|
|
130
|
-
.snippet {
|
|
131
|
-
border-color: $border-color;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.section {
|
|
136
|
-
&-default { @include color($background-default); }
|
|
137
|
-
&-paper { @include color($background-paper); }
|
|
138
|
-
&-primary { @include color(
|
|
139
|
-
$primary, // background-color
|
|
140
|
-
$primary-contrast, // title-color
|
|
141
|
-
$primary-contrast, // color
|
|
142
|
-
$hover-contrast, // paper-color
|
|
143
|
-
$border-color-contrast // border-color
|
|
144
|
-
);}
|
|
145
|
-
&-primaryLight { @include color(
|
|
146
|
-
$primary-light, // background-color
|
|
147
|
-
$text, // title-color
|
|
148
|
-
$text, // color
|
|
149
|
-
$hover-contrast, // paper-color
|
|
150
|
-
$border-color-contrast // border-color
|
|
151
|
-
);}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
// —————————————————————————————————————————————————————————————————
|
|
155
|
-
// landing (website title on homepage)
|
|
156
|
-
// —————————————————————————————————————————————————————————————————
|
|
157
|
-
|
|
158
|
-
.section-landing {
|
|
159
|
-
|
|
160
|
-
.section {
|
|
161
|
-
|
|
162
|
-
&_container {
|
|
163
|
-
@include clamp(padding-top, 2rem, 10vw, 7rem);
|
|
164
|
-
@include clamp(padding-bottom, 2rem, 10vw, 7rem);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&_title { @extend %h1; max-width: $desktop*0.5; }
|
|
168
|
-
&_subtitle { @extend %h5; }
|
|
169
|
-
&_title + .section_subtitle { margin-top: 2rem; }
|
|
170
|
-
&_title + .section_actions,
|
|
171
|
-
&_subtitle + .section_actions { margin-top: 3rem; }
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// —————————————————————————————————————————————————————————————————
|
|
176
|
-
// header (page title)
|
|
177
|
-
// —————————————————————————————————————————————————————————————————
|
|
178
|
-
|
|
179
|
-
.section-header {
|
|
180
|
-
|
|
181
|
-
.section {
|
|
182
|
-
|
|
183
|
-
&_title { @extend %h2; }
|
|
184
|
-
&_subtitle { @extend %subtitle; }
|
|
185
|
-
&_title + .section_subtitle { margin-top: 2rem; }
|
|
186
|
-
&_title + .section_actions,
|
|
187
|
-
&_subtitle + .section_actions { margin-top: 2.5rem; }
|
|
188
|
-
}
|
|
189
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
$sidebar-width: 200px;
|
|
2
|
-
|
|
3
|
-
.sidebar {
|
|
4
|
-
transition: left $transition-md;
|
|
5
|
-
@include calc(height, '100vh - '$navbar-height);
|
|
6
|
-
position: sticky;
|
|
7
|
-
flex-shrink: 0;
|
|
8
|
-
border-right: $border;
|
|
9
|
-
width: $sidebar-width;
|
|
10
|
-
top: $navbar-height;
|
|
11
|
-
padding: $spacing-md;
|
|
12
|
-
overflow-y: scroll;
|
|
13
|
-
scrollbar-color: light;
|
|
14
|
-
z-index: 11;
|
|
15
|
-
background-color: $background-default;
|
|
16
|
-
|
|
17
|
-
&.js-opened {
|
|
18
|
-
left: 0;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@include responsive(down, tablet) {
|
|
22
|
-
position: fixed;
|
|
23
|
-
height: 100vh;
|
|
24
|
-
top: 0;
|
|
25
|
-
left: -$sidebar-width;
|
|
26
|
-
padding-top: $navbar-height-sm;
|
|
27
|
-
z-index: 13;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&__button {
|
|
31
|
-
content: '';
|
|
32
|
-
border: solid $text;
|
|
33
|
-
border-width: 0 2px 2px 0;
|
|
34
|
-
padding: 4px;
|
|
35
|
-
transform: rotate(-45deg);
|
|
36
|
-
margin-right: $spacing-md;
|
|
37
|
-
display: none;
|
|
38
|
-
|
|
39
|
-
.page--withSidebar & { display: initial; }
|
|
40
|
-
@include responsive(up, tablet) { display: none !important; }
|
|
41
|
-
|
|
42
|
-
&--close {
|
|
43
|
-
position: absolute;
|
|
44
|
-
top: $navbar-height-sm*0.5;
|
|
45
|
-
left: $navbar-height-sm*0.5;
|
|
46
|
-
transform: translateY(-50%) rotate(135deg);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&__title {
|
|
51
|
-
@extend %overline;
|
|
52
|
-
color: $text-alt;
|
|
53
|
-
font-weight: $font-bold;
|
|
54
|
-
margin-bottom: $spacing-xs;
|
|
55
|
-
margin-left: 0;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// default
|
|
4
|
-
// dense
|
|
5
|
-
// —————————————————————————————————————————————————————————————————
|
|
6
|
-
|
|
7
|
-
// —————————————————————————————————————————————————————————————————
|
|
8
|
-
// elements
|
|
9
|
-
// —————————————————————————————————————————————————————————————————
|
|
10
|
-
|
|
11
|
-
.snippet {
|
|
12
|
-
@extend %caption;
|
|
13
|
-
font-family: "Roboto Mono", Courier, monospace;
|
|
14
|
-
word-wrap: break-word;
|
|
15
|
-
width: 100%;
|
|
16
|
-
position: relative;
|
|
17
|
-
border-radius: $border-radius-sm;
|
|
18
|
-
margin: 0;
|
|
19
|
-
padding: $spacing-sm $spacing-sm*1.5;
|
|
20
|
-
background-color: $hover;
|
|
21
|
-
border: $border;
|
|
22
|
-
|
|
23
|
-
& + & {
|
|
24
|
-
margin-top: $spacing-sm;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
p > & {
|
|
28
|
-
margin-right: $spacing-xs;
|
|
29
|
-
margin-left: $spacing-xs;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.tag {
|
|
33
|
-
font-family: $font, $font-fallback;
|
|
34
|
-
float: right;
|
|
35
|
-
margin-top: 1px;
|
|
36
|
-
margin-right: -$spacing-xs;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// —————————————————————————————————————————————————————————————————
|
|
41
|
-
// default
|
|
42
|
-
// —————————————————————————————————————————————————————————————————
|
|
43
|
-
|
|
44
|
-
.snippet--default {
|
|
45
|
-
|
|
46
|
-
&:after {
|
|
47
|
-
@extend %overline;
|
|
48
|
-
content: "Default";
|
|
49
|
-
font-family: $font, $font-fallback;
|
|
50
|
-
float: right;
|
|
51
|
-
margin-top: 1px;
|
|
52
|
-
margin-right: -$spacing-xs;
|
|
53
|
-
display: inline-flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
justify-content: center;
|
|
56
|
-
font-weight: $font-bold;
|
|
57
|
-
border-radius: $border-radius-sm;
|
|
58
|
-
white-space: nowrap; // prevent text to go on multiple lines
|
|
59
|
-
position: absolute;
|
|
60
|
-
top: $spacing-sm;
|
|
61
|
-
right: $spacing-md*0.75;
|
|
62
|
-
height: $spacing-md;
|
|
63
|
-
padding-right: $spacing-xs;
|
|
64
|
-
padding-left: $spacing-xs;
|
|
65
|
-
padding-bottom: 0.1em;
|
|
66
|
-
background-color: $text-disabled;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
// —————————————————————————————————————————————————————————————————
|
|
71
|
-
// dense
|
|
72
|
-
// —————————————————————————————————————————————————————————————————
|
|
73
|
-
|
|
74
|
-
.snippet--dense {
|
|
75
|
-
@extend %overline;
|
|
76
|
-
padding: $spacing-xs $spacing-sm !important;
|
|
77
|
-
|
|
78
|
-
&.snippet--default:after {
|
|
79
|
-
top: $spacing-xs;
|
|
80
|
-
right: $spacing-sm;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// color
|
|
4
|
-
// dense
|
|
5
|
-
// —————————————————————————————————————————————————————————————————
|
|
6
|
-
|
|
7
|
-
$spacing-status: .5rem;
|
|
8
|
-
|
|
9
|
-
// —————————————————————————————————————————————————————————————————
|
|
10
|
-
// elements
|
|
11
|
-
// —————————————————————————————————————————————————————————————————
|
|
12
|
-
|
|
13
|
-
.status {
|
|
14
|
-
|
|
15
|
-
&:before {
|
|
16
|
-
content: "";
|
|
17
|
-
display: inline-block;
|
|
18
|
-
height: $spacing-status;
|
|
19
|
-
width: $spacing-status;
|
|
20
|
-
background-color: $text-alt;
|
|
21
|
-
border-radius: 50%;
|
|
22
|
-
margin-right: 0.35em;
|
|
23
|
-
transform: translateY(-0.05em);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// —————————————————————————————————————————————————————————————————
|
|
28
|
-
// color
|
|
29
|
-
// —————————————————————————————————————————————————————————————————
|
|
30
|
-
|
|
31
|
-
@mixin color($color) {
|
|
32
|
-
|
|
33
|
-
&:before {
|
|
34
|
-
background-color: $color;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.status {
|
|
39
|
-
|
|
40
|
-
&-success { @include color($success); }
|
|
41
|
-
&-info { @include color($info); }
|
|
42
|
-
&-warning { @include color($warning); }
|
|
43
|
-
&-error { @include color($error); }
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
// —————————————————————————————————————————————————————————————————
|
|
47
|
-
// dense
|
|
48
|
-
// —————————————————————————————————————————————————————————————————
|
|
49
|
-
|
|
50
|
-
.status-dense {
|
|
51
|
-
@extend %caption;
|
|
52
|
-
|
|
53
|
-
&:before {
|
|
54
|
-
height: $spacing-status*0.75;
|
|
55
|
-
width: $spacing-status*0.75;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
// —————————————————————————————————————————————————————————————————
|
|
2
|
-
// elements
|
|
3
|
-
// disabled
|
|
4
|
-
// —————————————————————————————————————————————————————————————————
|
|
5
|
-
|
|
6
|
-
$spacing-switch: 1rem;
|
|
7
|
-
|
|
8
|
-
// —————————————————————————————————————————————————————————————————
|
|
9
|
-
// elements
|
|
10
|
-
// —————————————————————————————————————————————————————————————————
|
|
11
|
-
|
|
12
|
-
.switch {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
|
|
16
|
-
&_input {
|
|
17
|
-
position: absolute;
|
|
18
|
-
height: 0;
|
|
19
|
-
width: 0;
|
|
20
|
-
opacity: 0;
|
|
21
|
-
|
|
22
|
-
&:focus + .switch_switch {
|
|
23
|
-
outline: 2px solid $primary;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:checked + .switch_switch {
|
|
27
|
-
background-color: $primary-light;
|
|
28
|
-
|
|
29
|
-
.switch_toggle {
|
|
30
|
-
@include calc(left, '100% -'($spacing-switch));
|
|
31
|
-
background-color: $primary;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&_label {
|
|
37
|
-
|
|
38
|
-
&:first-child { margin-right: .75em; }
|
|
39
|
-
&:last-child { margin-left: .75em; }
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&_switch {
|
|
43
|
-
display: flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
justify-content: space-between;
|
|
46
|
-
cursor: pointer;
|
|
47
|
-
width: $spacing-switch*2;
|
|
48
|
-
height: $spacing-switch;
|
|
49
|
-
background: $input-background;
|
|
50
|
-
border: $border;
|
|
51
|
-
border-radius: $spacing-switch;
|
|
52
|
-
position: relative;
|
|
53
|
-
|
|
54
|
-
&:nth-child(2) { margin-left: .25rem; }
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&_toggle {
|
|
58
|
-
position: absolute;
|
|
59
|
-
left: -$spacing-xs;
|
|
60
|
-
width: $spacing-switch*1.25;
|
|
61
|
-
height: $spacing-switch*1.25;
|
|
62
|
-
border-radius: $spacing-switch*1.25;
|
|
63
|
-
background: $grey-50;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
// —————————————————————————————————————————————————————————————————
|
|
68
|
-
// disabled
|
|
69
|
-
// —————————————————————————————————————————————————————————————————
|
|
70
|
-
|
|
71
|
-
.switch-disabled {
|
|
72
|
-
opacity: 0.4;
|
|
73
|
-
|
|
74
|
-
* {
|
|
75
|
-
cursor: not-allowed;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.switch_switch {
|
|
79
|
-
outline: none !important;
|
|
80
|
-
}
|
|
81
|
-
}
|