]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+signup/+register/custom-stepper.component.scss
Handle input error in custom input text
[github/Chocobozzz/PeerTube.git] / client / src / app / +signup / +register / custom-stepper.component.scss
CommitLineData
8cbc40b2
C
1@use 'sass:math';
2@use '_variables' as *;
3@use '_mixins' as *;
1d5342ab 4
6f03f944 5$index-block-height: 40px;
1d5342ab 6
6f03f944
C
7header {
8 margin-bottom: 40px;
9 padding-bottom: 60px;
10 width: 100%;
11 background-color: pvar(--mainColorVeryLight);
40360c17
K
12}
13
6f03f944
C
14.header-steps {
15 max-width: 800px;
1d5342ab
C
16 display: flex;
17 justify-content: space-between;
6f03f944
C
18 margin: auto;
19
20 // Useful on small screens
21 padding: 0 20px;
22}
1d5342ab 23
6f03f944
C
24.step-index {
25 display: flex;
26 justify-content: center;
27 align-items: center;
28 width: $index-block-height;
29 height: $index-block-height;
30 border-radius: $index-block-height;
31 border: 1px solid pvar(--mainColor);
32 margin-bottom: 10px;
33 font-size: 24px;
34 position: relative;
35
36 .completed-icon {
37 width: 16px;
38 height: 16px;
39 border-radius: 16px;
40 background-color: pvar(--mainBackgroundColor);
41 position: absolute;
42 bottom: 0;
43 right: 0;
1d5342ab 44 display: flex;
6f03f944 45 justify-content: center;
1d5342ab 46 align-items: center;
6f03f944
C
47 border: 1px solid pvar(--mainColor);
48
49 my-global-icon {
50 @include apply-svg-color(pvar(--mainColor));
1d5342ab 51
6f03f944
C
52 display: flex;
53 width: 12px;
54 height: 12px;
40360c17 55 }
6f03f944
C
56 }
57}
40360c17 58
6f03f944
C
59.step-label {
60 width: max-content;
61 font-size: 18px;
62}
63
64.step-info {
65 color: pvar(--mainColor);
66 display: flex;
67 flex-direction: column;
68 align-items: center;
69 width: $index-block-height;
70 opacity: 0.5;
71 cursor: default;
72
73 &.c-hand {
74 cursor: pointer;
75 }
76
77 &.active,
78 &.completed {
1d5342ab 79 .step-index {
6f03f944
C
80 background-color: pvar(--mainColor);
81 color: pvar(--mainBackgroundColor);
1d5342ab
C
82 }
83
84 .step-label {
6f03f944 85 color: pvar(--mainColor);
1d5342ab 86 }
6f03f944 87 }
1d5342ab 88
6f03f944
C
89 &.active {
90 opacity: 1;
91 }
92}
1d5342ab 93
6f03f944
C
94.connector {
95 flex: auto;
96 margin: math.div($index-block-height, 2) 10px 0 10px;
97 height: 2px;
98 background-color: pvar(--mainColor);
99 opacity: 0.3;
100}
101
102@media screen and (min-width: $small-view) {
103 .margin-content {
104 max-width: 1000px;
e10c936b 105 margin: auto;
1d5342ab 106 }
6f03f944 107}
1d5342ab 108
6f03f944
C
109@media screen and (max-width: $small-view) {
110 .step-label {
111 width: auto;
112 text-align: center;
1d5342ab
C
113 }
114}