-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
90 lines (72 loc) · 1.33 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
* {
margin: 0;
padding: 0;
}
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
:root {
--spacing: 1rem;
--max-width: 56rem;
--font-size-button: 1rem;
--font-family: -system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--color-light-gray: #f5f5f5;
--color-background-zebra: var(--color-light-gray);
}
.hidden {
/* Viljum að þetta feli alltaf element, notum því !important */
display: none !important;
}
html {
font-family: var(--font-family);
}
input,
textarea,
button {
font-size: inherit;
}
button {
padding: 0.25rem 0.5rem;
}
main {
display: flex;
flex-direction: column;
gap: var(--spacing);
margin: var(--spacing) auto;
padding-inline: var(--spacing);
max-width: var(--max-width);
}
.weather {
display: flex;
flex-direction: column;
gap: var(--spacing);
}
.locations,
.results {
display: flex;
flex-direction: column;
gap: var(--spacing);
}
.locations__list {
display: flex;
gap: var(--spacing);
flex-wrap: wrap;
list-style-type: none;
}
.forecast {
border-spacing: 0;
}
.forecast th,
.forecast td {
padding: calc(var(--spacing) / 2);
text-align: left;
}
.forecast tbody tr:nth-child(2n + 1) {
background-color: var(--color-background-zebra);
}