-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
132 lines (115 loc) · 2.27 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
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
@import url("https://fonts.googleapis.com/css2?family=Heebo&family=Roboto+Condensed:wght@700&display=swap");
body {
background-color: rgb(63, 63, 63);
}
h1 {
font-family: "Roboto Condensed", sans-serif;
text-align: center;
font-size: 4rem;
letter-spacing: 1.5px;
color: #f0f0f0;
margin-bottom: 2em;
}
.converter {
text-align: center;
font-size: 1.5rem;
font-family: "Heebo", sans-serif;
}
label {
font-size: 0.9em;
font-weight: bold;
color: #f0f0f0;
transition: color 0.3s cubic-bezier(0.25, 0.01, 0.25, 1) 0s;
}
input {
margin-bottom: 2em;
margin-left: 0.5em;
max-width: 190px;
height: 30px;
background-color: #f0f0f0;
border-radius: 0.5rem;
padding: 0 1rem;
border: 3px solid transparent;
font-size: 0.6em;
transition: border-color 0.3s cubic-bezier(0.25, 0.01, 0.25, 1) 0s,
color 0.3s cubic-bezier(0.25, 0.01, 0.25, 1) 0s,
background 0.2s cubic-bezier(0.25, 0.01, 0.25, 1) 0s;
}
input:hover,
input:focus {
outline: none;
border-color: #e5d283;
}
.wrapper {
margin-inline: auto;
left: 0;
right: 0;
text-align: center;
width: 15em;
height: 36px;
background-color: #f0f0f0;
border: 2px solid black;
border-radius: 34px;
display: flex;
flex-direction: row;
box-shadow: 4px 4px #e5d283;
}
.scales {
width: 118px;
height: 28px;
position: relative;
top: 2px;
left: 2px;
}
.scale_input {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
opacity: 0;
cursor: pointer;
}
.btn {
width: 90%;
height: 100%;
background-color: #f0f0f0;
border-radius: 50px;
display: flex;
justify-content: center;
align-items: center;
}
.scale_input.first:checked + .btn {
background-color: #e5d283;
}
#to {
display: block;
color: #f0f0f0;
margin-block: 0.5em;
font-family: "Heebo", sans-serif;
}
.scale_input.second:checked + .btn {
background-color: #e5d283;
}
#convert {
margin-top: 2em;
background: #e5d283;
padding: 0.6em 3.3em;
font-weight: 900;
font-size: 1rem;
border: 3px solid black;
border-radius: 0.4em;
box-shadow: 0.1em 0.1em;
cursor: pointer;
}
#convert:hover {
transform: translate(-0.05em, -0.05em);
box-shadow: 0.15em 0.15em;
}
#convert:active {
transform: translate(0.05em, 0.05em);
box-shadow: 0.05em 0.05em;
}
#result {
color: #f0f0f0;
}