Skip to content

Commit 5b4b4c8

Browse files
committed
add styling
1 parent ac7bd14 commit 5b4b4c8

File tree

1 file changed

+103
-0
lines changed

1 file changed

+103
-0
lines changed

ProgressSteps/style.css

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
:root {
2+
--line-border-filler: #3498db;
3+
--line-border-empty: #e0e0e0;
4+
}
5+
6+
* {
7+
box-sizing: border-box;
8+
}
9+
10+
body {
11+
background-color: #fff;
12+
font-family: Georgia, 'Times New Roman', Times, serif;
13+
margin: 0;
14+
overflow: hidden;
15+
height: 100vh;
16+
padding: 20px;
17+
}
18+
19+
h1 {
20+
text-align: center;
21+
}
22+
23+
.container {
24+
display: flex;
25+
flex-direction: column;
26+
align-items: center;
27+
margin-top: 15%;
28+
}
29+
30+
.progress-container {
31+
display: flex;
32+
justify-content: space-between;
33+
position: relative;
34+
margin-bottom: 30px;
35+
max-width: 100%;
36+
width: 350px;
37+
}
38+
39+
.progress-container::before {
40+
content: '';
41+
background-color: var(--line-border-empty);
42+
position: absolute;
43+
top: 50%;
44+
left: 0;
45+
height: 4px;
46+
width: 100%;
47+
z-index: -1;
48+
transform: translateY(-50%);
49+
}
50+
51+
.progress {
52+
background-color: var(--line-border-filler);
53+
position: absolute;
54+
top: 50%;
55+
left: 0;
56+
height: 4px;
57+
width: 0;
58+
z-index: -1;
59+
transform: translateY(-50%);
60+
transition: 0.4s ease;
61+
}
62+
63+
.circle {
64+
background-color: #fff;
65+
color: #999;
66+
border-radius: 50%;
67+
height: 30px;
68+
width: 30px;
69+
display: flex;
70+
align-items: center;
71+
justify-content: center;
72+
border: 3px solid var(--line-border-empty);
73+
transition: 0.4s ease;
74+
}
75+
76+
.circle.active {
77+
border-color: var(--line-border-filler);
78+
}
79+
80+
button {
81+
background-color: var(--line-border-filler);
82+
color: #fff;
83+
border: 0;
84+
border-radius: 6px;
85+
cursor: pointer;
86+
font-family: inherit;
87+
padding: 8px 30px;
88+
margin: 5px;
89+
font-size: 14px;
90+
}
91+
92+
button:active {
93+
transform: scale(0.98);
94+
}
95+
96+
button:focus {
97+
outline: 0;
98+
}
99+
100+
button:disabled {
101+
background-color: var(--line-border-empty);
102+
cursor: not-allowed;
103+
}

0 commit comments

Comments
 (0)