-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
95 lines (80 loc) · 1.58 KB
/
index.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
:root {
--main-bg-colour: seashell;
--textbox-bg-colour: seashell;
--textbox-border-invalid-colour: crimson;
--textbox-border-valid-colour: burlywood;
}
* { box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: var(--main-bg-colour);
padding: 25px;
display: flex;
flex-direction: column;
min-height: 100vh;
}
main {
display: flex;
flex-direction: column;
align-items: center;
flex: 1;
}
#label {
font-size: 2rem;
width: 40%;
text-align: center;
}
#description {
margin: 4px 0;
font-size: 1rem;
}
@media (max-width: 700px) {
#label {
width: 60%;
}
}
@media (max-width: 512px) {
#label {
width: 90%;
}
}
#numbers {
font-size: 1.5rem;
display: block;
width: 100%;
height: 40px;
text-align: center;
background-color: var(--textbox-bg-colour);
outline: 0;
color: black;
margin-top: 20px;
}
#numbers:invalid {
border: 1px solid var(--textbox-border-invalid-colour);
}
#numbers:valid {
border: 1px solid var(--textbox-border-valid-colour);
}
#result {
font-size: 1rem;
width: 70%;
padding: 10px;
text-align: center;
list-style: none;
}
#loading, #empty {
font-size: 1rem;
}
footer {
height: 100px;
display: flex;
justify-content: center;
align-items: center;
}
.fa-github {
font-size: 2.5em;
color: rgba(0, 0, 0, 0.7);
}
.fa-github:hover {
color: rgba(0, 0, 0, 0.8);
}