-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstepper.css
153 lines (124 loc) · 2.88 KB
/
stepper.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/* TAKEN FROM: https://codepen.io/lenmorld/pen/wxNRPX
SOME CHANGES HAS BEEN MADE */
:root {
--primary-color: #e67e22;
--primary-color-1: #e67e22;
--primary-color-2: #cf711f;
--primary-color-3: #d35400;
--gray-1: #111;
--gray-2: #333;
--gray-3: #555;
--dark-primary-color: #ff7f50; /* Coral */
--dark-primary-color-1: #ff6347; /* Tomato */
--dark-primary-color-2: #ff4500; /* OrangeRed */
--dark-primary-color-3: #dc143c; /* Crimson */
--dark-gray-1: #eee; /* Light gray for text */
--dark-gray-2: #ccc; /* Medium gray for secondary text */
--dark-gray-3: #aaa; /* Dark gray for tertiary text */
--dark-background-color: #222; /* Very dark gray for backgrounds */
--dark-background-color-1: #333; /* Dark gray for secondary backgrounds */
--dark-background-color-2: #444; /* Medium dark gray for tertiary backgrounds */
}
.stepper-container {
width: 50%;
}
.step {
padding: 10px;
display: flex;
flex-direction: row;
justify-content: flex-start;
background-color: cream;
}
.v-stepper {
position: relative;
}
.step .circle {
background-color: #fff;
border: 3px solid var(--gray-2);
border-radius: 100%;
width: 20px;
height: 20px;
display: inline-block;
}
body.dark .step .circle {
border: 3px solid var(--dark-gray-2);
}
.step .line {
top: 20px;
left: 9px;
height: 100%;
position: absolute;
border-left: 3px solid var(--primary-color);
}
body.dark .step .line {
border-left: 3px solid var(--dark-primary-color);
}
.step.completed .circle {
visibility: visible;
background-color: var(--primary-color);
border-color: var(--primary-color);
}
body.dark .step.completed .circle {
background-color: var(--dark-primary-color);
border-color: var(--dark-primary-color);
}
.step.completed .line {
border-left: 3px solid var(--primary-color);
}
body.dark .step.completed .circle {
background-color: var(--dark-primary-color);
border-color: var(--dark-primary-color);
}
.step.active .circle {
visibility: visible;
border-color: var(--primary-color);
}
body.dark .step.active .circle {
border-color: var(--dark-primary-color);
}
.step.empty .circle {
visibility: hidden;
}
.step.empty .line {
top: 0;
height: 150%;
}
.step:last-child .line {
border-left: 3px solid white;
z-index: -1;
}
.stepper-content {
margin-left: 20px;
display: inline-block;
font-size: 1rem;
transform: translateY(-2px);
}
.stepper-content h5 {
margin: 0;
padding: 0;
font-size: 1rem;
font-weight: bold;
color: var(--gray-2);
}
body.dark .stepper-content h5 {
color: var(--dark-gray-2);
}
.stepper-content p {
color: var(--gray-3);
}
body.dark .stepper-content p {
color: var(--dark-gray-3);
}
@media only screen and (max-width: 768px) {
.stepper-container {
width: 100%;
}
.stepper-content {
margin-left: 10px;
font-size: 0.8rem;
transform: translateY(0);
}
.stepper-content h5 {
font-size: 0.8rem;
}
}