@onepercentio/one-ui 0.8.2 → 0.8.4
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/assets/img/svg/checkbox.svg +3 -0
- package/dist/assets/styles/index.scss +2 -0
- package/dist/assets/styles/mixins.scss +12 -0
- package/dist/assets/styles/variables.scss +51 -0
- package/dist/components/AdaptiveContainer/AdaptiveContainer.module.scss +51 -0
- package/dist/components/AdaptiveDialog/AdaptiveDialog.module.scss +145 -0
- package/dist/components/AdaptiveSidebar/AdaptiveSidebar.module.scss +52 -0
- package/dist/components/AnchoredTooltip/AnchoredTooltip.module.scss +62 -0
- package/dist/components/AnimatedEntrance/AnimatedEntrance.module.scss +107 -0
- package/dist/components/Avatar/Avatar.module.scss +22 -0
- package/dist/components/BucketFill/BucketFill.module.scss +36 -0
- package/dist/components/BucketFill/BucketFill.stories.module.scss +3 -0
- package/dist/components/Button/Button.module.scss +42 -0
- package/dist/components/Card/Card.module.scss +12 -0
- package/dist/components/CheckBox/CheckBox.module.scss +25 -0
- package/dist/components/Collapsable/Collapsable.module.scss +34 -0
- package/dist/components/Divider/Divider.module.scss +7 -0
- package/dist/components/EmailInput/EmailInput.module.scss +0 -0
- package/dist/components/FadeIn/FadeIn.module.scss +18 -0
- package/dist/components/FileInput/FileInput.module.scss +27 -0
- package/dist/components/FlowController/FlowController.module.scss +47 -0
- package/dist/components/Header/Header.module.scss +119 -0
- package/dist/components/HeaderCloseBtn/HeaderCloseBtn.module.scss +44 -0
- package/dist/components/InfinityScroll/InfinityScroll.module.scss +30 -0
- package/dist/components/Input/Input.module.scss +69 -0
- package/dist/components/LinkToId/LinkToId.module.scss +4 -0
- package/dist/components/Loader/Loader.module.scss +40 -0
- package/dist/components/MainGrid/MainGrid.module.scss +28 -0
- package/dist/components/MutableHamburgerButton/MutableHamburgerButton.module.scss +179 -0
- package/dist/components/Notification/Notification.module.scss +25 -0
- package/dist/components/Parallax/Parallax.module.scss +28 -0
- package/dist/components/PasswordInput/PasswordInput.module.scss +11 -0
- package/dist/components/PixelatedScan/PixelatedScan.module.scss +86 -0
- package/dist/components/Portal/Portal.module.scss +3 -0
- package/dist/components/ProgressBar/ProgressBar.module.scss +32 -0
- package/dist/components/ProgressTexts/ProgressTexts.module.scss +37 -0
- package/dist/components/SectionContainer/SectionContainer.module.scss +30 -0
- package/dist/components/Select/Select.module.scss +46 -0
- package/dist/components/Spacing/Spacing.module.scss +13 -0
- package/dist/components/Table/Table.module.scss +76 -0
- package/dist/components/Tabs/Tabs.module.scss +22 -0
- package/dist/components/Text/Text.module.scss +77 -0
- package/dist/components/Transition/Transition.module.scss +188 -0
- package/dist/components/UncontrolledTransition/UncontrolledTransition.stories.module.scss +66 -0
- package/dist/components/utilitary/ScrollAndFocusLock/ScrollAndFocusLock.module.scss +5 -0
- package/dist/hooks/usePagination.js +11 -7
- package/dist/hooks/usePagination.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
$digitalBlue: var(--digital-blue, #558eff);
|
|
2
|
+
$mediumGray: var(--medium-gray, #bababa);
|
|
3
|
+
$lightGray: var(--light-gray, #d6d6d6);
|
|
4
|
+
$spaceBlue: var(--space-blue, #0f113a);
|
|
5
|
+
$warningRed: var(--warning-red, #e84b4b);
|
|
6
|
+
$sunsetPink: var(--sunset-pink, #ff3e7d);
|
|
7
|
+
$darkestGray: var(--darkest-gray, #727272);
|
|
8
|
+
$gray: var(--gray, #0f113a);
|
|
9
|
+
$success: var(--success, lightgreen);
|
|
10
|
+
$mainBackgroundColor: var(--bg-color, white);
|
|
11
|
+
|
|
12
|
+
//FONTS
|
|
13
|
+
$mainFontFamily: var(--main-font, Roboto);
|
|
14
|
+
$secondaryFontFamily: var(--second-font, Manrope);
|
|
15
|
+
|
|
16
|
+
// Component specific variables on the format --<component>-<element>-<category>
|
|
17
|
+
$headerFillBackgroundColor: var(--header-background-color, $digitalBlue);
|
|
18
|
+
$headerBackgroundColor: var(--header-divider-bg-color, #467eea);
|
|
19
|
+
$headerTextColor: var(--header-text-color, #94b8ff);
|
|
20
|
+
$headerBrightColor: var(--header-bright-color, white);
|
|
21
|
+
|
|
22
|
+
$tableRowBgColor: var(--table-row-bg-color, white);
|
|
23
|
+
$tableRowBorderColor: var(--table-row-border-color, #bec1ca);
|
|
24
|
+
|
|
25
|
+
$buttonMinHeight: var(--button-min-height, 62px);
|
|
26
|
+
$buttonMinWidth: var(--button-min-width, 150px);
|
|
27
|
+
$buttonBorderRadius: var(--button-border-radius, 8px);
|
|
28
|
+
$buttonTextColor: var(--button-text-color, white);
|
|
29
|
+
|
|
30
|
+
$tooltipBackgroudColor: var(--tooltip-background-color, $digitalBlue);
|
|
31
|
+
|
|
32
|
+
$checkboxBaseColor: var(--checkbox-base-color, $digitalBlue);
|
|
33
|
+
|
|
34
|
+
$textDefaultColor: var(--text-default-color, $digitalBlue);
|
|
35
|
+
|
|
36
|
+
$buttonPrimaryBackgroundColor: var(--button-primary-bg-color, #1e22aa);
|
|
37
|
+
|
|
38
|
+
$fileInputBackgroundColor: var(--file-input-bg-color, #f2f6f7);
|
|
39
|
+
$fileInputBorderColor: var(--file-input-border-color, #dce1e8);
|
|
40
|
+
|
|
41
|
+
$avatarBackgroundColor: var(--avatar-bg-color, $lightGray);
|
|
42
|
+
|
|
43
|
+
$pixelatedGuideBackground: var(--pixelated-scan-bg, var(--digital-blue));
|
|
44
|
+
|
|
45
|
+
// Animation speed variables
|
|
46
|
+
$almostInstant: var(--animation--speed-almostInstant, 50ms);
|
|
47
|
+
$veryFast: var(--animation--speed-veryfast, 125ms);
|
|
48
|
+
$fast: var(--animation--speed-fast, 250ms);
|
|
49
|
+
$normal: var(--animation--speed-normal, 500ms);
|
|
50
|
+
$slow: var(--animation--speed-slow, 1s);
|
|
51
|
+
$verySlow: var(--animation--speed-veryslow, 2s);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.resetSection {
|
|
2
|
+
min-height: 0px;
|
|
3
|
+
transition: width 400ms;
|
|
4
|
+
transition-timing-function: linear;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
> * {
|
|
7
|
+
min-width: auto !important;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.resetButton {
|
|
12
|
+
min-width: 0px !important;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
text-align: center;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes fadeInDelayed {
|
|
20
|
+
0% {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
}
|
|
23
|
+
50% {
|
|
24
|
+
opacity: 0.1;
|
|
25
|
+
}
|
|
26
|
+
100% {
|
|
27
|
+
opacity: 1;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@keyframes fadeOutDelayed {
|
|
31
|
+
0% {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
50% {
|
|
35
|
+
opacity: 0.1;
|
|
36
|
+
}
|
|
37
|
+
100% {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.fadeInDelayed {
|
|
43
|
+
animation-name: fadeInDelayed;
|
|
44
|
+
animation-duration: 500ms !important;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.fadeOutAbsolute {
|
|
48
|
+
position: absolute;
|
|
49
|
+
animation-name: fadeOutDelayed;
|
|
50
|
+
animation-duration: 500ms !important;
|
|
51
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
.backdrop {
|
|
4
|
+
position: fixed;
|
|
5
|
+
top: 0px;
|
|
6
|
+
left: 0px;
|
|
7
|
+
right: 0px;
|
|
8
|
+
bottom: 0px;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
z-index: 1000;
|
|
13
|
+
transition: backdrop-filter $veryFast linear;
|
|
14
|
+
backdrop-filter: var(--adaptive-dialog-backdrop-backdrop, initial);
|
|
15
|
+
|
|
16
|
+
@media screen and (orientation: "portrait") {
|
|
17
|
+
align-items: flex-end;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
.backdrop,
|
|
21
|
+
.container {
|
|
22
|
+
animation-duration: $fast;
|
|
23
|
+
animation-fill-mode: forwards;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.open {
|
|
27
|
+
&.backdrop {
|
|
28
|
+
animation-name: backdropAppear;
|
|
29
|
+
}
|
|
30
|
+
.container {
|
|
31
|
+
animation-name: reveal;
|
|
32
|
+
}
|
|
33
|
+
@media screen and (orientation: "portrait") {
|
|
34
|
+
.container {
|
|
35
|
+
animation-timing-function: ease-in-out;
|
|
36
|
+
animation-name: slideUp;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.close {
|
|
42
|
+
&.backdrop {
|
|
43
|
+
animation-name: backdropDismiss;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.container {
|
|
47
|
+
animation-name: dismiss;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media screen and (orientation: "portrait") {
|
|
51
|
+
.container {
|
|
52
|
+
animation-name: slideDown;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.container {
|
|
58
|
+
> .closeBtn {
|
|
59
|
+
position: absolute;
|
|
60
|
+
right: 16px;
|
|
61
|
+
top: 16px;
|
|
62
|
+
background: none;
|
|
63
|
+
border: none;
|
|
64
|
+
width: auto;
|
|
65
|
+
height: auto;
|
|
66
|
+
padding: 0px !important;
|
|
67
|
+
}
|
|
68
|
+
padding: 16px 32px;
|
|
69
|
+
position: relative;
|
|
70
|
+
width: 100%;
|
|
71
|
+
max-width: 640px;
|
|
72
|
+
background: $mainBackgroundColor;
|
|
73
|
+
backdrop-filter: var(--adaptive-dialog-backdrop, initial);
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
max-height: 90% !important;
|
|
79
|
+
overscroll-behavior: contain;
|
|
80
|
+
@media screen and (orientation: "portrait") {
|
|
81
|
+
min-height: initial;
|
|
82
|
+
align-items: flex-start;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@keyframes backdropAppear {
|
|
87
|
+
0% {
|
|
88
|
+
background-color: #0000;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
100% {
|
|
92
|
+
background-color: #0005;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@keyframes backdropDismiss {
|
|
97
|
+
0% {
|
|
98
|
+
background-color: #0005;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
100% {
|
|
102
|
+
background-color: #0000;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@keyframes reveal {
|
|
107
|
+
0% {
|
|
108
|
+
opacity: 0;
|
|
109
|
+
}
|
|
110
|
+
100% {
|
|
111
|
+
opacity: 1;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@keyframes dismiss {
|
|
116
|
+
0% {
|
|
117
|
+
opacity: 1;
|
|
118
|
+
}
|
|
119
|
+
100% {
|
|
120
|
+
opacity: 0;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@keyframes slideUp {
|
|
125
|
+
0% {
|
|
126
|
+
min-height: 0px;
|
|
127
|
+
transform: translateY(100%);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
100% {
|
|
131
|
+
min-height: 0px;
|
|
132
|
+
transform: translateY(0%);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@keyframes slideDown {
|
|
137
|
+
0% {
|
|
138
|
+
transform: translateY(0%);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
100% {
|
|
142
|
+
min-height: 0px;
|
|
143
|
+
transform: translateY(100%);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
$hamburgerSize: 48;
|
|
4
|
+
$hamburgerOffset: 24;
|
|
5
|
+
|
|
6
|
+
@value hamburgerSize #{$hamburgerSize};
|
|
7
|
+
|
|
8
|
+
.hamburger {
|
|
9
|
+
position: fixed;
|
|
10
|
+
top: #{$hamburgerOffset}px;
|
|
11
|
+
left: #{$hamburgerOffset}px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.hamburger {
|
|
15
|
+
display: initial;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.hamburger,
|
|
19
|
+
.container {
|
|
20
|
+
z-index: 1000;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@media screen and (min-width: 640px) {
|
|
24
|
+
.hamburger {
|
|
25
|
+
display: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.container {
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
height: 100%;
|
|
32
|
+
|
|
33
|
+
@media screen and (max-width: 639px) {
|
|
34
|
+
&.defaultPadding {
|
|
35
|
+
padding-top: #{$hamburgerSize + $hamburgerOffset * 2}px;
|
|
36
|
+
}
|
|
37
|
+
position: fixed;
|
|
38
|
+
width: 100%;
|
|
39
|
+
overflow: auto;
|
|
40
|
+
z-index: 1000;
|
|
41
|
+
left: 0;
|
|
42
|
+
|
|
43
|
+
&.open {
|
|
44
|
+
transition: transform $veryFast ease-out;
|
|
45
|
+
transform: translateX(-0%);
|
|
46
|
+
}
|
|
47
|
+
&.closed {
|
|
48
|
+
transition: transform $veryFast ease-in;
|
|
49
|
+
transform: translateX(-100%);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Some notions to take into account
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.tooltipContainer {
|
|
8
|
+
& > div {
|
|
9
|
+
background-color: $tooltipBackgroudColor;
|
|
10
|
+
}
|
|
11
|
+
// It should not overflow the viewport (screen)
|
|
12
|
+
max-width: 100vw;
|
|
13
|
+
max-height: 100vh;
|
|
14
|
+
min-width: fit-content;
|
|
15
|
+
|
|
16
|
+
// It should be floating over some point into the viewport
|
|
17
|
+
position: fixed;
|
|
18
|
+
|
|
19
|
+
// The position will be calculated via the javascript and the context
|
|
20
|
+
|
|
21
|
+
transition: top $almostInstant, left $almostInstant;
|
|
22
|
+
z-index: 1000;
|
|
23
|
+
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
|
|
26
|
+
&.open {
|
|
27
|
+
pointer-events: initial;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&::after,
|
|
31
|
+
&::before {
|
|
32
|
+
content: " ";
|
|
33
|
+
width: 0px;
|
|
34
|
+
height: 0px;
|
|
35
|
+
border: 16px solid $tooltipBackgroudColor;
|
|
36
|
+
border-top-color: transparent;
|
|
37
|
+
border-right-color: transparent;
|
|
38
|
+
transform: translateY(-16px) rotate(-45deg);
|
|
39
|
+
display: block;
|
|
40
|
+
margin: auto;
|
|
41
|
+
position: relative;
|
|
42
|
+
left: var(--anchor-indicator-offset-left, 0px);
|
|
43
|
+
z-index: -1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&::before {
|
|
47
|
+
display: none;
|
|
48
|
+
transform: translateY(16px) rotate(135deg);
|
|
49
|
+
}
|
|
50
|
+
&.anchoredTop {
|
|
51
|
+
transform: translateY(4px);
|
|
52
|
+
}
|
|
53
|
+
&.anchoredBottom {
|
|
54
|
+
transform: translateY(-4px);
|
|
55
|
+
&::after {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
&::before {
|
|
59
|
+
display: block;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@keyframes expand {
|
|
3
|
+
0% {
|
|
4
|
+
transform: translateX(100%);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
35% {
|
|
8
|
+
transform: translateX(100%);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
85% {
|
|
12
|
+
transform: translateX(-5%);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
100% {
|
|
16
|
+
transform: translateX(0%);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@keyframes exiting {
|
|
21
|
+
100% {
|
|
22
|
+
transform: translateX(100%);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
65% {
|
|
26
|
+
transform: translateX(100%);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
50% {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
15% {
|
|
34
|
+
transform: translateX(-5%);
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
0% {
|
|
39
|
+
transform: translateX(0%);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
$duration: 1s;
|
|
43
|
+
|
|
44
|
+
.elementExiting {
|
|
45
|
+
animation-duration: $duration !important;
|
|
46
|
+
animation-name: exiting;
|
|
47
|
+
position: absolute;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.elementEntering {
|
|
51
|
+
animation-duration: $duration !important;
|
|
52
|
+
animation-name: expand;
|
|
53
|
+
}
|
|
54
|
+
.elementExitingReverse {
|
|
55
|
+
animation-duration: $duration !important;
|
|
56
|
+
animation-name: exiting;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.elementEnteringReverse {
|
|
60
|
+
animation-duration: $duration !important;
|
|
61
|
+
animation-name: expand;
|
|
62
|
+
position: absolute;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.resetHeight {
|
|
66
|
+
transition: max-height math.div($duration, 2) $duration * 0.2;
|
|
67
|
+
min-height: initial;
|
|
68
|
+
align-items: flex-start !important;
|
|
69
|
+
> * {
|
|
70
|
+
justify-content: flex-start !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.maxHeight {
|
|
75
|
+
max-height: 0px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@keyframes nothing {
|
|
79
|
+
100% {
|
|
80
|
+
transform: translateX(0%);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
0% {
|
|
84
|
+
transform: translateX(0%);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.elementShrinking {
|
|
89
|
+
animation-duration: $duration !important;
|
|
90
|
+
animation-name: nothing;
|
|
91
|
+
position: absolute;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.elementExpanding {
|
|
95
|
+
animation-duration: $duration !important;
|
|
96
|
+
animation-name: nothing;
|
|
97
|
+
}
|
|
98
|
+
.elementShrinkingReverse {
|
|
99
|
+
animation-duration: $duration !important;
|
|
100
|
+
animation-name: nothing;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.elementExpandingReverse {
|
|
104
|
+
animation-duration: $duration !important;
|
|
105
|
+
animation-name: nothing;
|
|
106
|
+
position: absolute;
|
|
107
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
.container {
|
|
4
|
+
&.noImg {
|
|
5
|
+
background-color: $avatarBackgroundColor;
|
|
6
|
+
}
|
|
7
|
+
display: inline-block;
|
|
8
|
+
width: 1em;
|
|
9
|
+
height: 1em;
|
|
10
|
+
border-radius: 0.5em;
|
|
11
|
+
|
|
12
|
+
> span,
|
|
13
|
+
> img {
|
|
14
|
+
font-size: 0.4em;
|
|
15
|
+
width: inherit;
|
|
16
|
+
height: inherit;
|
|
17
|
+
text-align: center;
|
|
18
|
+
line-height: 2.5em;
|
|
19
|
+
display: block;
|
|
20
|
+
color: $digitalBlue;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@import "../../assets/styles/variables.scss";
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
position: relative;
|
|
5
|
+
z-index: 1;
|
|
6
|
+
> :not(div) {
|
|
7
|
+
mix-blend-mode: color;
|
|
8
|
+
}
|
|
9
|
+
> div > * {
|
|
10
|
+
mix-blend-mode: color;
|
|
11
|
+
}
|
|
12
|
+
&::before,
|
|
13
|
+
&::after {
|
|
14
|
+
background: var(--bg);
|
|
15
|
+
width: 100%;
|
|
16
|
+
position: absolute;
|
|
17
|
+
content: " ";
|
|
18
|
+
z-index: -1;
|
|
19
|
+
transition: height $fast, background-size $fast;
|
|
20
|
+
}
|
|
21
|
+
&::before {
|
|
22
|
+
opacity: 0;
|
|
23
|
+
top: 0;
|
|
24
|
+
height: var(--fill-height);
|
|
25
|
+
}
|
|
26
|
+
&::after {
|
|
27
|
+
opacity: 0.6;
|
|
28
|
+
bottom: 0;
|
|
29
|
+
height: var(--empty-height);
|
|
30
|
+
background-size: 100% var(--bg-offset);
|
|
31
|
+
background-position: bottom;
|
|
32
|
+
}
|
|
33
|
+
.ignoreFill {
|
|
34
|
+
mix-blend-mode: multiply;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@import "../../assets/styles/variables.scss";
|
|
2
|
+
|
|
3
|
+
.button {
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
display: block;
|
|
6
|
+
min-width: $buttonMinWidth;
|
|
7
|
+
min-height: $buttonMinHeight;
|
|
8
|
+
padding: 16px;
|
|
9
|
+
border: none;
|
|
10
|
+
transition: color $fast;
|
|
11
|
+
color: $digitalBlue;
|
|
12
|
+
border-radius: $buttonBorderRadius;
|
|
13
|
+
&:disabled {
|
|
14
|
+
cursor: initial;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
///"transparent" | "filled" | "outline";
|
|
19
|
+
|
|
20
|
+
.transparent {
|
|
21
|
+
background-color: transparent;
|
|
22
|
+
&:disabled {
|
|
23
|
+
color: $mediumGray;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.filled {
|
|
28
|
+
background-color: $buttonPrimaryBackgroundColor;
|
|
29
|
+
color: $buttonTextColor;
|
|
30
|
+
border-width: 0px;
|
|
31
|
+
&:disabled {
|
|
32
|
+
color: $mediumGray;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.outline {
|
|
37
|
+
border: 1px solid $digitalBlue;
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
&:disabled {
|
|
40
|
+
color: $mediumGray;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
.container {
|
|
4
|
+
display: flex;
|
|
5
|
+
line-height: 1.5em;
|
|
6
|
+
vertical-align: middle;
|
|
7
|
+
|
|
8
|
+
> span:first-child {
|
|
9
|
+
visibility: visible;
|
|
10
|
+
width: 1.5em;
|
|
11
|
+
height: 1.5em;
|
|
12
|
+
border-radius: 0.45em;
|
|
13
|
+
background-image: url("../../assets/img/svg/checkbox.svg");
|
|
14
|
+
background-color: transparent;
|
|
15
|
+
transition: background-color 250ms, border 250ms, box-shadow 250ms;
|
|
16
|
+
border: 1px solid rgb(40, 43, 53);
|
|
17
|
+
box-shadow: 0px 0px 0px -4px $digitalBlue;
|
|
18
|
+
margin-right: 0.45em;
|
|
19
|
+
}
|
|
20
|
+
> span:first-child.checked {
|
|
21
|
+
background-color: $digitalBlue;
|
|
22
|
+
border: 1px solid $digitalBlue;
|
|
23
|
+
box-shadow: 0px 0px 12px -4px $digitalBlue;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
.container {
|
|
4
|
+
> .title {
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
margin: 0px;
|
|
7
|
+
display: block;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.open .title::after {
|
|
12
|
+
transform: translateX(-0.5em) rotateX(180deg) rotateZ(45deg);
|
|
13
|
+
}
|
|
14
|
+
.closed .title::after {
|
|
15
|
+
transform: translateX(-0.5em) rotateX(0deg) rotateZ(45deg);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.content {
|
|
19
|
+
width: 100%;
|
|
20
|
+
max-width: 500px;
|
|
21
|
+
overflow: hidden;
|
|
22
|
+
transition: height $fast ease-in;
|
|
23
|
+
height: 0px;
|
|
24
|
+
&.float {
|
|
25
|
+
position: fixed;
|
|
26
|
+
z-index: 100;
|
|
27
|
+
background: $mainBackgroundColor;
|
|
28
|
+
overflow: auto;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.open {
|
|
33
|
+
transition: height $fast ease-out;
|
|
34
|
+
}
|
|
File without changes
|