-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
121 lines (102 loc) · 1.73 KB
/
styles.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
/* Reset og border-box á allt */
* {
margin: 0;
padding: 0;
}
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
:root {
--spacing: 1rem;
--max-width: 56rem;
--font-family: -system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
img {
max-width: 100%;
}
html {
font-family: var(--font-family);
}
input,
select,
button {
font-size: inherit;
}
input[type='number'] {
padding-inline-start: calc(var(--spacing) / 2);
}
button {
padding-inline: calc(var(--spacing) / 2);
}
h1 {
font-size: 2rem;
margin-block-end: var(--spacing);
}
h2 {
font-size: 1.5rem;
}
html,
body {
height: auto;
min-height: 100vh;
margin: 0;
background-color: #333;
color: white;
display: flex;
justify-content: center;
}
main {
display: flex;
flex-direction: column;
gap: var(--spacing);
margin: var(--spacing) auto;
padding-inline: var(--spacing);
max-width: var(--max-width);
width: 100%;
align-self: flex-start;
overflow: hidden;
}
.heading {
font-size: 2rem;
font-weight: bold;
}
.search-form {
display: flex;
}
.search-box {
padding: 10px;
margin-top: 8px;
font-size: 16px;
border: 4px solid #555;
outline: none;
width: calc(100% - 100px);
border-top-left-radius: 10px;
border-bottom-left-radius: 10px;
}
.search-btn {
padding: 10px 20px;
margin-top: 8px;
font-size: 16px;
border: none;
background-color: #555;
color: white;
cursor: pointer;
border-top-right-radius: 10px;
border-bottom-right-radius: 10px;
}
.search-btn:hover {
background-color: #777;
}
.back a {
color: white;
text-decoration: none;
}
.back a:hover {
text-decoration: underline;
}