@onepercentio/one-ui 0.8.2 → 0.8.3
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/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
.hidden {
|
|
4
|
+
width: 0px;
|
|
5
|
+
height: 0px;
|
|
6
|
+
position: fixed;
|
|
7
|
+
opacity: 0.01;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.container {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
background-color: $fileInputBackgroundColor;
|
|
16
|
+
padding: 72px;
|
|
17
|
+
border: 1px solid;
|
|
18
|
+
border-color: $fileInputBorderColor;
|
|
19
|
+
position: relative;
|
|
20
|
+
margin-bottom: 28px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.footer {
|
|
24
|
+
position: absolute;
|
|
25
|
+
bottom: -24px;
|
|
26
|
+
left: 0px;
|
|
27
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
.container {
|
|
4
|
+
.headingImg {
|
|
5
|
+
width: 100%;
|
|
6
|
+
margin: 0px -33px;
|
|
7
|
+
}
|
|
8
|
+
height: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
button {
|
|
13
|
+
width: 100%;
|
|
14
|
+
border-top: 1px solid $lightGray;
|
|
15
|
+
}
|
|
16
|
+
.transition {
|
|
17
|
+
margin-top: -105px;
|
|
18
|
+
height: 100%;
|
|
19
|
+
.content {
|
|
20
|
+
padding: 0px 33px 33px 33px;
|
|
21
|
+
margin-top: 105px;
|
|
22
|
+
max-height: calc(100% - 105px);
|
|
23
|
+
|
|
24
|
+
&.fullHeight {
|
|
25
|
+
margin-top: 0px;
|
|
26
|
+
max-height: 100%;
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
section {
|
|
31
|
+
border-top: 1px solid $lightGray;
|
|
32
|
+
margin: 0px -33px;
|
|
33
|
+
padding: 0px 33px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
header {
|
|
37
|
+
margin: 55px 33px;
|
|
38
|
+
margin-bottom: 33px;
|
|
39
|
+
}
|
|
40
|
+
footer {
|
|
41
|
+
transition: opacity $fast;
|
|
42
|
+
opacity: 1;
|
|
43
|
+
}
|
|
44
|
+
footer.hidden {
|
|
45
|
+
opacity: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
.header {
|
|
4
|
+
position: sticky;
|
|
5
|
+
top: 0px;
|
|
6
|
+
width: 100%;
|
|
7
|
+
background-color: $headerFillBackgroundColor;
|
|
8
|
+
display: flex;
|
|
9
|
+
padding: 32px;
|
|
10
|
+
align-items: center;
|
|
11
|
+
font-family: $mainFontFamily;
|
|
12
|
+
z-index: 100;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.logo {
|
|
16
|
+
align-self: stretch;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
|
|
20
|
+
@media (orientation: portrait) {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.option {
|
|
26
|
+
font-size: 18px;
|
|
27
|
+
line-height: 22px;
|
|
28
|
+
margin-right: 28px;
|
|
29
|
+
color: $headerTextColor;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.logoDivider {
|
|
33
|
+
margin: -32px 32px;
|
|
34
|
+
width: 1px;
|
|
35
|
+
background-color: $headerBackgroundColor;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.profile {
|
|
39
|
+
background-color: $headerBrightColor;
|
|
40
|
+
height: 36px;
|
|
41
|
+
width: 36px;
|
|
42
|
+
border-radius: 18px;
|
|
43
|
+
line-height: 36px;
|
|
44
|
+
text-align: center;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.profile,
|
|
48
|
+
.profileName {
|
|
49
|
+
margin-right: 8px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.profileName {
|
|
53
|
+
color: $headerBrightColor;
|
|
54
|
+
|
|
55
|
+
@media (orientation: portrait) {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.headerOptions {
|
|
60
|
+
right: 0px;
|
|
61
|
+
width: fit-content;
|
|
62
|
+
margin-top: 18px;
|
|
63
|
+
z-index: 1000;
|
|
64
|
+
> * {
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
backdrop-filter: var(--header-submenu-backdrop, initial);
|
|
67
|
+
padding: 12px 32px;
|
|
68
|
+
margin-bottom: 8px;
|
|
69
|
+
margin-left: 4px;
|
|
70
|
+
margin-right: 4px;
|
|
71
|
+
text-align: left;
|
|
72
|
+
border-radius: 4px;
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
.indicator {
|
|
77
|
+
@include iteractibleElement();
|
|
78
|
+
transition: transform $fast;
|
|
79
|
+
transform: rotateX(0deg);
|
|
80
|
+
|
|
81
|
+
&.open {
|
|
82
|
+
transform: rotateX(180deg);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
display: none;
|
|
86
|
+
@media screen and (max-width: 640px) {
|
|
87
|
+
display: initial;
|
|
88
|
+
}
|
|
89
|
+
&.withMoreOptions {
|
|
90
|
+
display: initial;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.desktopOnly {
|
|
95
|
+
@media screen and (max-width: 640px) {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.mobileOnly {
|
|
101
|
+
@media screen and (min-width: 640px) {
|
|
102
|
+
display: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.options-right {
|
|
107
|
+
.logo {
|
|
108
|
+
margin-right: auto;
|
|
109
|
+
}
|
|
110
|
+
.sectionDivider {
|
|
111
|
+
margin-left: initial;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.options-left {
|
|
116
|
+
.sectionDivider {
|
|
117
|
+
margin-left: auto;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
.headerButton {
|
|
4
|
+
width: 22px;
|
|
5
|
+
height: 22px;
|
|
6
|
+
position: relative;
|
|
7
|
+
opacity: 1;
|
|
8
|
+
@include iteractibleElement();
|
|
9
|
+
transition: opacity $fast, transform $fast;
|
|
10
|
+
&.pointOfNoReturn {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
}
|
|
13
|
+
div {
|
|
14
|
+
transition: width $fast, top $fast, left $fast;
|
|
15
|
+
position: absolute;
|
|
16
|
+
height: 3px;
|
|
17
|
+
border-radius: 1.5px;
|
|
18
|
+
width: 22px;
|
|
19
|
+
background-color: $digitalBlue;
|
|
20
|
+
transform-origin: 1.5px 1.5px;
|
|
21
|
+
&:nth-child(1) {
|
|
22
|
+
transform: rotateZ(45deg);
|
|
23
|
+
}
|
|
24
|
+
&:nth-child(2) {
|
|
25
|
+
transform: rotateZ(-45deg);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&.back div {
|
|
29
|
+
width: 12.5px;
|
|
30
|
+
top: 5.5px;
|
|
31
|
+
left: 0px;
|
|
32
|
+
}
|
|
33
|
+
&.close div {
|
|
34
|
+
width: 22px;
|
|
35
|
+
&:nth-child(1) {
|
|
36
|
+
top: 0px;
|
|
37
|
+
left: 0px;
|
|
38
|
+
}
|
|
39
|
+
&:nth-child(2) {
|
|
40
|
+
top: 13px;
|
|
41
|
+
left: 0px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
7
|
+
&::-webkit-scrollbar {
|
|
8
|
+
display: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* Hide scrollbar for IE, Edge and Firefox */
|
|
12
|
+
& {
|
|
13
|
+
-ms-overflow-style: none; /* IE and Edge */
|
|
14
|
+
scrollbar-width: none; /* Firefox */
|
|
15
|
+
}
|
|
16
|
+
> * {
|
|
17
|
+
width: 100%;
|
|
18
|
+
min-width: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
> :first-child {
|
|
22
|
+
// background-color: green;
|
|
23
|
+
}
|
|
24
|
+
> :nth-child(2) {
|
|
25
|
+
// background-color: yellow;
|
|
26
|
+
}
|
|
27
|
+
> :nth-child(3) {
|
|
28
|
+
// background-color: blue;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
.inputContainer {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
.icon {
|
|
7
|
+
position: absolute;
|
|
8
|
+
top: 1.5px;
|
|
9
|
+
right: 1.5px;
|
|
10
|
+
min-height: 30px;
|
|
11
|
+
min-width: 30px;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
user-select: none;
|
|
14
|
+
&img {
|
|
15
|
+
height: 30px;
|
|
16
|
+
width: 30px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
&.withIcon {
|
|
20
|
+
padding-right: 33px;
|
|
21
|
+
}
|
|
22
|
+
input,
|
|
23
|
+
textarea {
|
|
24
|
+
border: none;
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
width: 100%;
|
|
27
|
+
font-size: 22px;
|
|
28
|
+
line-height: 33px;
|
|
29
|
+
font-family: $mainFontFamily;
|
|
30
|
+
color: var(--input-text-color, $spaceBlue);
|
|
31
|
+
margin-bottom: 18px;
|
|
32
|
+
outline: none;
|
|
33
|
+
&:placeholder-shown ~ .border {
|
|
34
|
+
animation-iteration-count: infinite;
|
|
35
|
+
animation-duration: $verySlow;
|
|
36
|
+
animation-name: pulse;
|
|
37
|
+
animation-delay: $slow;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
& .border {
|
|
41
|
+
position: absolute;
|
|
42
|
+
left: 0px;
|
|
43
|
+
right: 0px;
|
|
44
|
+
bottom: 18px;
|
|
45
|
+
height: 1px;
|
|
46
|
+
background-color: $spaceBlue;
|
|
47
|
+
opacity: 0;
|
|
48
|
+
}
|
|
49
|
+
.caption {
|
|
50
|
+
position: absolute;
|
|
51
|
+
bottom: 0px;
|
|
52
|
+
white-space: nowrap;
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
max-width: 100%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@keyframes pulse {
|
|
60
|
+
0% {
|
|
61
|
+
opacity: 0;
|
|
62
|
+
}
|
|
63
|
+
50% {
|
|
64
|
+
opacity: 0.1;
|
|
65
|
+
}
|
|
66
|
+
100% {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@import "../../assets/styles/variables.scss";
|
|
2
|
+
|
|
3
|
+
.indicator {
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
font-size: 14px;
|
|
6
|
+
& span {
|
|
7
|
+
display: inline-block;
|
|
8
|
+
width: 0.75em;
|
|
9
|
+
height: 0.75em;
|
|
10
|
+
border-radius: 0.375em;
|
|
11
|
+
margin-left: 4px;
|
|
12
|
+
background-color: $digitalBlue;
|
|
13
|
+
animation-name: transparentToOpaque;
|
|
14
|
+
animation-duration: $normal;
|
|
15
|
+
animation-iteration-count: infinite;
|
|
16
|
+
animation-timing-function: ease-out;
|
|
17
|
+
&:nth-child(1) {
|
|
18
|
+
margin-left: initial;
|
|
19
|
+
animation-delay: 0;
|
|
20
|
+
}
|
|
21
|
+
&:nth-child(2) {
|
|
22
|
+
animation-delay: $veryFast;
|
|
23
|
+
}
|
|
24
|
+
&:nth-child(3) {
|
|
25
|
+
animation-delay: $fast;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@keyframes transparentToOpaque {
|
|
31
|
+
0% {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
}
|
|
34
|
+
50% {
|
|
35
|
+
opacity: 1;
|
|
36
|
+
}
|
|
37
|
+
100% {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
justify-content: space-between;
|
|
6
|
+
|
|
7
|
+
// TODO: Priorize reducing width of empty elements insteas of the main container
|
|
8
|
+
> :nth-child(1),
|
|
9
|
+
> :nth-child(3) {
|
|
10
|
+
flex: 1;
|
|
11
|
+
max-width: 250px;
|
|
12
|
+
min-width: 150px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.content {
|
|
16
|
+
min-width: 250px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
> :nth-child(2) {
|
|
20
|
+
flex: 1;
|
|
21
|
+
max-width: 1200px;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.section {
|
|
26
|
+
align-items: flex-start;
|
|
27
|
+
min-height: initial;
|
|
28
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@import "../../assets/styles/index.scss";
|
|
3
|
+
|
|
4
|
+
$slice: math.div(1, 7);
|
|
5
|
+
|
|
6
|
+
.container {
|
|
7
|
+
box-sizing: content-box;
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
width: 1em;
|
|
10
|
+
height: 1em;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: space-evenly;
|
|
15
|
+
background-size: 0 0;
|
|
16
|
+
background-repeat: no-repeat;
|
|
17
|
+
transition: transform 250ms;
|
|
18
|
+
transition-timing-function: ease-in-out;
|
|
19
|
+
&:active {
|
|
20
|
+
transform: scale(0.9);
|
|
21
|
+
}
|
|
22
|
+
> * {
|
|
23
|
+
position: relative;
|
|
24
|
+
flex-shrink: 0;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
width: 0.8em;
|
|
27
|
+
height: #{$slice}em;
|
|
28
|
+
border-radius: #{math.div($slice, 2)}em;
|
|
29
|
+
transition: transform $veryFast, width $veryFast, height $veryFast,
|
|
30
|
+
border-width $veryFast, background-color $veryFast,
|
|
31
|
+
border-radius $veryFast, top $veryFast;
|
|
32
|
+
background: var(--mutable-hamburger-background, $digitalBlue);
|
|
33
|
+
background-size: 1em 1em;
|
|
34
|
+
background-repeat: no-repeat;
|
|
35
|
+
border: 0em solid #0000;
|
|
36
|
+
top: 0px;
|
|
37
|
+
&:nth-child(1) {
|
|
38
|
+
border-top-color: var(--mutable-hamburger-background, $digitalBlue);
|
|
39
|
+
}
|
|
40
|
+
&:nth-child(2) {
|
|
41
|
+
border-right-color: var(--mutable-hamburger-background, $digitalBlue);
|
|
42
|
+
}
|
|
43
|
+
&:nth-child(3) {
|
|
44
|
+
border-bottom-color: var(--mutable-hamburger-background, $digitalBlue);
|
|
45
|
+
border-left-color: var(--mutable-hamburger-background, $digitalBlue);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
& > * {
|
|
49
|
+
background-position-x: -0.1em;
|
|
50
|
+
}
|
|
51
|
+
& > :nth-child(1) {
|
|
52
|
+
background-position-y: #{$slice * -1}em;
|
|
53
|
+
}
|
|
54
|
+
& > :nth-child(2) {
|
|
55
|
+
background-position-y: #{$slice * -3}em;
|
|
56
|
+
}
|
|
57
|
+
& > :nth-child(3) {
|
|
58
|
+
background-position-y: #{$slice * -5}em;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.closed {
|
|
62
|
+
> :nth-child(1) {
|
|
63
|
+
transform: translateY(#{$slice * 2}em) rotateZ(-45deg);
|
|
64
|
+
}
|
|
65
|
+
> :nth-child(2) {
|
|
66
|
+
transform: rotateZ(45deg);
|
|
67
|
+
}
|
|
68
|
+
> :nth-child(3) {
|
|
69
|
+
transform: translateY(-#{$slice * 2}em) rotateZ(-45deg);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.arrow-up {
|
|
74
|
+
> * {
|
|
75
|
+
width: 0.4em;
|
|
76
|
+
}
|
|
77
|
+
> :nth-child(1) {
|
|
78
|
+
transform: translateX(0.1em) translateY(#{$slice * 2}em) rotateZ(45deg);
|
|
79
|
+
}
|
|
80
|
+
> :nth-child(2) {
|
|
81
|
+
transform: translateX(0.1em) rotateZ(45deg);
|
|
82
|
+
}
|
|
83
|
+
> :nth-child(3) {
|
|
84
|
+
transform: translateX(-0.1em) translateY(-#{$slice * 2}em) rotateZ(-45deg);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&.arrow-down {
|
|
89
|
+
> * {
|
|
90
|
+
width: 0.4em;
|
|
91
|
+
}
|
|
92
|
+
> :nth-child(1) {
|
|
93
|
+
transform: translateX(0.1em) translateY(#{$slice * 2}em) rotateZ(-45deg);
|
|
94
|
+
}
|
|
95
|
+
> :nth-child(2) {
|
|
96
|
+
transform: translateX(0.1em) rotateZ(-45deg);
|
|
97
|
+
}
|
|
98
|
+
> :nth-child(3) {
|
|
99
|
+
transform: translateX(-0.1em) translateY(-#{$slice * 2}em) rotateZ(45deg);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&.search {
|
|
104
|
+
> :nth-child(1) {
|
|
105
|
+
$rate: 1.8;
|
|
106
|
+
width: #{$slice * $rate + math.div($slice, 1.35)}em;
|
|
107
|
+
height: #{$slice * $rate + math.div($slice, 1.35)}em;
|
|
108
|
+
border-radius: #{$slice * $rate * 2}em;
|
|
109
|
+
background-color: transparent;
|
|
110
|
+
border: #{math.div($slice, 1.35)}em solid
|
|
111
|
+
var(--mutable-hamburger-background, $digitalBlue);
|
|
112
|
+
transform: translateX(-0.15em);
|
|
113
|
+
}
|
|
114
|
+
> :nth-child(2) {
|
|
115
|
+
transform: translateX(0.12em) translateY(-0.05em) rotateZ(45deg);
|
|
116
|
+
height: #{math.div($slice, 1.35)}em;
|
|
117
|
+
width: 0.55em;
|
|
118
|
+
}
|
|
119
|
+
> :nth-child(3) {
|
|
120
|
+
transform: translateX(0.12em) translateY(-#{($slice * 1.3) + 0.085}em)
|
|
121
|
+
rotateZ(45deg);
|
|
122
|
+
height: #{math.div($slice, 1.35)}em;
|
|
123
|
+
width: 0.55em;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&.checkmark {
|
|
128
|
+
> :nth-child(1) {
|
|
129
|
+
transform: translateY(#{$slice * 2}em) translateX(-0.178em)
|
|
130
|
+
translateY(0.13em) rotate(45deg);
|
|
131
|
+
height: #{$slice}em;
|
|
132
|
+
width: 0.45em;
|
|
133
|
+
}
|
|
134
|
+
> :nth-child(2) {
|
|
135
|
+
height: #{$slice}em;
|
|
136
|
+
width: 0.7em;
|
|
137
|
+
transform: translateX(0.1em) rotate(-55deg);
|
|
138
|
+
}
|
|
139
|
+
> :nth-child(3) {
|
|
140
|
+
transform: translateY(-#{$slice * 2}em) translateX(0.1em) rotate(-55deg);
|
|
141
|
+
height: #{$slice}em;
|
|
142
|
+
width: 0.7em;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&.loading {
|
|
147
|
+
$slice: math.div(1, 6);
|
|
148
|
+
@keyframes rotate {
|
|
149
|
+
0% {
|
|
150
|
+
transform: rotate(0deg);
|
|
151
|
+
}
|
|
152
|
+
100% {
|
|
153
|
+
transform: rotate(360deg);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
animation-name: rotate;
|
|
157
|
+
animation-duration: 1s;
|
|
158
|
+
animation-delay: $veryFast;
|
|
159
|
+
animation-iteration-count: infinite;
|
|
160
|
+
animation-timing-function: linear;
|
|
161
|
+
> * {
|
|
162
|
+
background-color: #0000;
|
|
163
|
+
width: #{$slice * 4.5}em;
|
|
164
|
+
height: #{$slice * 4.5}em;
|
|
165
|
+
border-radius: #{$slice * 4.5}em;
|
|
166
|
+
border-width: #{$slice}em;
|
|
167
|
+
}
|
|
168
|
+
> :nth-child(1) {
|
|
169
|
+
top: (#{$slice * 4.5}em);
|
|
170
|
+
}
|
|
171
|
+
> :nth-child(2) {
|
|
172
|
+
transform: rotateZ(-5deg);
|
|
173
|
+
}
|
|
174
|
+
> :nth-child(3) {
|
|
175
|
+
transform: rotateZ(-95deg);
|
|
176
|
+
top: (-#{$slice * 4.5}em);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import "../../assets/styles/variables.scss";
|
|
2
|
+
|
|
3
|
+
.container {
|
|
4
|
+
animation-fill-mode: forwards;
|
|
5
|
+
animation-duration: $fast;
|
|
6
|
+
animation-name: expand;
|
|
7
|
+
width: auto;
|
|
8
|
+
min-width: 250px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.success {
|
|
12
|
+
background-color: $success;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@keyframes expand {
|
|
16
|
+
0% {
|
|
17
|
+
padding: 0px 12px;
|
|
18
|
+
max-height: 0%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
100% {
|
|
22
|
+
padding: 12px 12px;
|
|
23
|
+
max-height: 100%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@import "../../assets/styles/index.scss";
|
|
2
|
+
|
|
3
|
+
.parallax {
|
|
4
|
+
display: flex;
|
|
5
|
+
position: relative;
|
|
6
|
+
transition: transform $fast;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
user-select: none;
|
|
9
|
+
transform: translate3d(0, 0, 0);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.reflection {
|
|
13
|
+
transform: translateX(-50%) translateY(-50%);
|
|
14
|
+
width: 40%;
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
&::after {
|
|
17
|
+
background: radial-gradient(#fff2, #fff2 5%, #aaa0 50%);
|
|
18
|
+
background-size: 100% 100%;
|
|
19
|
+
content: "";
|
|
20
|
+
display: block;
|
|
21
|
+
padding-bottom: 100%;
|
|
22
|
+
border-radius: 50%;
|
|
23
|
+
background-repeat: no-repeat;
|
|
24
|
+
}
|
|
25
|
+
position: absolute;
|
|
26
|
+
left: -50%;
|
|
27
|
+
top: -50%;
|
|
28
|
+
}
|