-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
103 lines (85 loc) · 1.82 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
/* General Setttings */
@import url('https://fonts.googleapis.com/css2?family=Acme&family=Source+Sans+Pro:wght@600&display=swap');
* {
margin: 0;
}
body {
background-image: url('img-01.jpg');
background-size: cover;
background-repeat: no-repeat;
width: 100vw;
height: 100vh;
background-color: #ffc600;
font-family: 'Source Sans Pro', sans-serif;
}
/* Variables */
:root {
--bg-gradient: linear-gradient(to bottom, #fff 0%, #f1dcb5 100%);
}
/* Intro */
.nav-bar {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
min-height: 5rem;
background: var(--bg-gradient);
}
h1 {
margin: 1.6vmax 2vmax;
text-align: center;
white-space: wrap;
user-select: none;
font: 2.15vmax 'Acme', sans-serif;
color: #8a0808;
}
/* Form */
input {
width: 100%;
padding: 1vmax;
}
.search-form {
max-width: 30vmax;
margin: 50px auto;
}
.search {
position: relative;
z-index: 2;
left: -6%;
top: 10px;
outline: 0;
border: 10px solid #f7f7f7;
border-radius: 5px;
text-align: center;
font-size: 2.7vmax;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.19);
}
.suggestions {
padding: 0;
position: relative;
}
.suggestions li {
display: flex;
justify-content: space-between;
padding: 20px;
list-style: none;
text-transform: capitalize;
font: 1.6vmax 'helvetica neue';
background-color: #fff;
border-bottom: 1px solid #d8d8d8;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.14);
transform: background 0.2s;
}
.suggestions li:nth-child(even) {
transform: perspective(100px) rotateX(1.7deg) translateY(2px) scale(1.001);
background: var(--bg-gradient);
}
.suggestions li:nth-child(odd) {
transform: perspective(100px) rotateX(-1.7deg) translateY(3px) scale(1.001);
}
span.population {
font-size: 1.1vmax;
}
.hl {
background: #ffc600;
}