forked from techvaness/Skills-Rating-Bar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
99 lines (90 loc) · 2.24 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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap");
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #0a2b3c;
}
.container{
position: relative;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 30px;
border-radius: 10px;
box-shadow: -1px -1px 2px rgba(255,255,255,0.25),
inset 2px 2px 5px rgba(255,255,255,0.25),
8px 30px 30px rgba(0,0,0,0.4),
inset -2px -2px 5px rgba(0,0,0,0.3);
}
.container h2{
margin-bottom: 10px;
font-weight: 500;
color: #E3F6FF;
}
.container .skills{
display: flex;
justify-content: center;
align-items: center;
margin: 10px 0;
padding-right: 10px;
box-shadow: -1px -1px 2px rgba(255,255,255,0.25),
inset 2px 2px 5px rgba(255,255,255,0.25),
8px 30px 30px rgba(0,0,0,0.4),
inset -2px -2px 5px rgba(0,0,0,0.3);
}
.container .skills h3{
min-width: 180px;
text-align: right;
padding-right: 20px;
color: #fff;
font-size: 20px;
font-weight: 400;
letter-spacing: 2px;
}
.container .skills .rating{
position: relative;
display: flex;
margin: 10px 0;
flex-direction: row-reverse;
}
.container .skills .rating input{
position: relative;
width: 20px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
-webkit-appearance:none;
appearance: none;
overflow: hidden;
}
.container .skills .rating input::before{
content: '\f005 ';
position: absolute;
font-family: fontAwesome;
font-size: 34px;
position: absolute;
left: 4px;
color: #030b0f;
transition: 0.5s;
}
.container .skills .rating input:nth-child(2n+1)::before{
left: initial;
right: 4px;
}
.container .skills .rating input:hover ~ input::before,
.container .skills .rating input:hover::before,
.container .skills .rating input:checked ~ input::before,
.container .skills .rating input:checked::before{
color: #FF8B13;
}