-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
97 lines (83 loc) · 1.39 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
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap");
/* variables */
:root {
--body-clr: #212529;
}
/* reset */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
ul {
margin: 0;
list-style: none;
}
a {
text-decoration: none;
}
img {
max-width: 100%;
height: auto;
display: block;
}
body {
font-size: 1rem;
line-height: 1.5;
font-family: "Open Sans", sans-serif;
background-color: var(--body-clr);
color: white;
}
header {
background-color: #6e2cf4;
position: sticky;
top: 0;
box-shadow: 0px 5px 20px 10px rgba(0, 0, 0, 0.3);
}
.converter-section {
margin: 4rem 0;
}
.converter-box {
padding: 2rem 1.5rem;
border-radius: 0.5rem;
h2 {
margin-bottom: 1rem;
}
.input-label {
font-size: 1.2rem;
font-weight: 600;
margin-bottom: 1rem;
}
.output {
line-height: 2;
margin: 1rem 0;
span > span {
word-wrap: break-word;
}
}
.output-label {
font-size: 1.2rem;
font-weight: 600;
}
.output-num {
display: block;
}
}
.binary {
background-color: #0063db;
}
.octal {
background-color: #05be78;
}
.decimal {
background-color: #b87ddb;
}
.hexadecimal {
background-color: #cc5c46;
}
@media (max-width: 576px) {
.converter-box {
margin: 0 1rem;
}
}