-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
121 lines (99 loc) · 1.64 KB
/
main.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
body {
font-family: 'Poppins', sans-serif;
background-color: #22223B;
color: #F2E9E4;
}
.container {
margin: 0 auto;
text-align: center;
width: 50%;
height: 90vh;
background-color: #4A4E69;
border-radius: 15px;
}
.title {
font-size: 50px;
padding-top: 15%;
}
.binary-number-input-container {
display: flex;
justify-content: center;
}
.binary-number-input {
width: 50%;
height: 35px;
border-radius: 10px;
font-size: 20px;
letter-spacing: 5px;
text-align: center;
border: 1px solid #F2E9E4;
outline: none;
color: #F2E9E4;
}
.binary-number-input::placeholder {
color: #F2E9E4;
}
.binary-number-input:invalid {
background-color: #9A8C98;
}
.binary-number-input:valid {
background-color: #C9ADA7;
}
.validity-icon {
font-size: 25px;
}
#is-valid-check {
color: #C9ADA7;
display: none;
}
#is-not-valid-cross {
color: #9A8C98;
display: none;
}
.convert {
background-color: #22223B;
color: #F2E9E4;
width: 150px;
height: 40px;
border-radius: 10px;
border: 1px solid #878fc0;
margin-top: 2%;
}
.description-text {
margin: 0 auto;
text-align: center;
width: 50%;
}
#result-text {
font-size: 24px;
}
.fade-in-text {
opacity: 0;
transform: translateY(20px);
transition: opacity 1s ease, transform 1s ease;
}
.fade-in {
opacity: 1;
transform: translateY(0);
}
.footer {
text-align: center;
}
@media screen and (max-width: 600px) {
.container {
width: 95%;
}
.description-text {
width: 100%;
}
#binary-number-input {
width: 80%;
margin: 0 auto;
display: block;
}
}
@media screen and (max-height: 600px) {
.title {
padding-top: 0;
}
}