-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
103 lines (93 loc) · 2.08 KB
/
style.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
@import url('https://fonts.googleapis.com/css2?family=Muli&display=swap');
* {
box-sizing: border-box;
}
:root{
--line-border-fill: #3498db;
--line-border-empty:#e0e0e0;
}
body{
background-color: #f6f7fb;
font-family: 'Muli', sans-serif;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
overflow: hidden;
margin: 0;
}
.container{
text-align: center;
}
.progress-container{
display: flex;
justify-content: space-between; /* to take up the whole width with space in between */
position: relative;
margin-bottom: 30px;
max-width: 100%;
width:350px;
}
/* Default Line */
.progress-container::before {
content:'';
background-color: var(--line-border-empty);
position:absolute;
top:50%;
left: 0;
transform: translateY(-50%); /* have the line cross the middle */
height: 4px;
width:100%;
z-index: -1; /* have the line behind the circles */
transition: 0.4s ease;
}
/* Line */
.progress {
background-color: var(--line-border-fill);
position:absolute;
top:50%;
left: 0;
transform: translateY(-50%); /* have the line cross the middle */
height: 4px;
width:0%;
z-index: -1; /* have the line behind the circles */
transition: 0.4s ease;
}
.circle{
background-color: #fff;
color:#999;
border:3px solid var(--line-border-empty);
border-radius: 50%;
width:30px;
height:30px;
display:flex;
align-items: center; /* vertical center */
justify-content: center; /* horizontal center */
transition: 0.4s ease;
}
.circle.active{
background-color: #3498db;
color:#fff;
border-color: var(--line-border-fill);
}
.btn{
background-color: var(--line-border-fill);
border-radius: 5px;
color:#fff;
cursor: pointer;
border: 0;
font-family:inherit;
padding: 8px 30px;
margin:5px;
font-size:14px;
}
.btn:active{
transform:scale(0.98)
}
.btn:focus{
outline:0;
}
.btn:disabled{
background-color: var(--line-border-empty);
cursor:not-allowed;
}