forked from vramdhanie/national_parks
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
style.css
124 lines (106 loc) · 1.94 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap");
* {
box-sizing: border-box;
}
body {
margin: 0;
font-size: 16px;
font-family: "Roboto Condensed", sans-serif;
}
.banner {
background-color: #184031;
padding: 16px;
}
.banner > h1 {
color: #ffffff;
}
main {
padding: 6px;
display: grid;
grid-template-columns: 1fr;
gap: 10px;
margin: 0 auto;
width: 90%;
max-width: 1400px;
}
.park-display {
box-shadow: 0 0 3px 2px rgba(115, 66, 48, 0.2);
border-radius: 6px;
position: relative;
width: 100%;
max-width: 350px;
margin: 0 auto;
display: flex;
flex-direction: column;
}
.park-display > h2 {
background-color: #734230;
color: #fcc988;
padding: 4px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
margin-bottom: 2px;
margin-top: 0;
}
.location-display {
font-weight: 300;
font-size: 0.8rem;
padding-left: 4px;
}
.description-display {
margin-top: 4px;
padding: 4px;
flex: 1;
}
.stats {
display: flex;
padding: 4px;
}
.stat {
flex: 1;
margin: 0 2px;
border: solid 1px rgba(59, 161, 124, 0.3);
}
.stat > h3 {
background-color: #3ba17c;
color: #184031;
margin: 0;
padding: 2px;
text-align: center;
}
.stat > .value {
text-align: center;
color: #184031;
font-size: 0.9rem;
padding: 4px;
}
.rate-button {
position: absolute;
top: 6px;
right: 4px;
cursor: pointer;
background: rgba(255, 255, 255, 0.5);
border: none;
border-radius: 4px;
transition: all 0.5s;
}
.rate-button:hover {
background: rgba(255, 255, 255, 0.1);
border: solid 1px rgba(255, 255, 255, 0.5);
color: rgba(255, 255, 255, 0.5);
}
@media screen and (min-width: 600px) {
main {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (min-width: 900px) {
main {
grid-template-columns: repeat(3, 1fr);
}
}
@media screen and (min-width: 1200px) {
main {
grid-template-columns: repeat(4, 1fr);
}
}