-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
157 lines (135 loc) · 2.5 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
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
.body {
margin: 0;
height: 100vh;
width: 100vw;
display: grid;
grid-template-areas:
"header map"
"city map"
"artists map"
"footer map";
grid-template-rows: auto auto minmax(0px, 1fr) auto;
grid-template-columns: 300px 1fr;
background-color: #0d0221;
color: #86e2d5;
font-family: "Open Sans", sans-serif;
}
.header {
grid-area: header;
text-align: center;
}
.header__subtitle {
display: flex;
align-items: center;
justify-content: center;
}
.header__subtitle-text {
overflow: hidden;
white-space: nowrap;
height: 22px;
animation-delay: 2s;
animation-duration: 5s;
animation-iteration-count: infinite;
animation-name: header__subtitle--transition;
}
/* Extra steps are used to allow for delay between transitions */
@keyframes header__subtitle--transition {
0% {
width: 77px;
transform: scaleX(1);
}
20% {
width: 0;
transform: scaleX(0);
}
50% {
width: 0;
transform: scaleX(0);
}
80% {
width: 77px;
transform: scaleX(1);
}
100% {
width: 77px;
transform: scaleX(1);
}
}
.header__subtitle-text--bold {
font-weight: 800;
}
.title__text {
margin: 0;
font-family: "Black Ops One", cursive;
font-size: 3rem;
font-weight: 400;
}
.city {
grid-area: city;
margin: 0 1rem;
}
.city__header {
font-size: 1.25rem;
}
.city__text {
margin-left: 1rem;
}
.artists {
grid-area: artists;
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
}
.artists__header {
font-size: 1.25rem;
margin-left: 1rem;
}
.artists__list {
overflow-y: auto;
margin: 0;
padding-right: 1rem;
padding-left: 2.125rem;
}
.artists__list-item {
list-style: none;
}
.footer {
grid-area: footer;
display: flex;
justify-content: center;
margin: 0.5rem;
}
.map {
grid-area: map;
cursor: crosshair;
}
@media (max-width: 800px) {
.body {
grid-template-areas:
"header header"
"city artists"
"map map"
"footer footer";
grid-template-rows: auto minmax(0px, 1fr) minmax(0px, 1fr) auto;
grid-template-columns: 30% 70%;
}
.header {
display: flex;
justify-content: space-around;
align-items: center;
}
.city__text {
margin: 0;
}
.artists {
margin-left: 1rem;
}
.artists__header {
margin-left: 0;
}
.artists__list {
padding-bottom: 1rem;
padding-left: 0;
}
}