-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
67 lines (61 loc) · 1.12 KB
/
main.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
html {
box-sizing:border-box;
background-color: #ffc600;
font-family: 'helvetica neue';
font-size:20px;
font-weight:200;
}
*, *:before, *:after {
box-sizing: inherit;
}
.container {
max-width: 480px;
margin:50px auto;
}
input.search {
width:120%;
left:-10%;
position: relative;
margin:0;
top:10px;
text-align:center;
font-size:40px;
border: 10px solid #F7F7F7;
border-radius:5px;
z-index:2;
}
.results {
margin:0;
padding:0;
}
.results li {
background-color:white;
list-style:none;
margin:0;
padding:20px;
border-bottom: 1px solid #D8D8D8;
}
.results li:nth-child(even) {
transform: perspective(100px) rotateX(2deg) translateY(2px) scale(1.001);
background: linear-gradient(to bottom, #ffffff 0%,#EFEFEF 100%);
}
.results li:nth-child(odd) {
transform: perspective(100px) rotateX(-2deg) translateY(3px);
background: linear-gradient(to top, #ffffff 0%,#EFEFEF 100%);
}
span.rank {
font-size: 18px;
float:left;
width:20%;
}
span.country {
font-weight:500;
text-transform: capitalize;
}
span.population {
font-size: 20px;
float:right;
}
.hl {
background-color: #ffc600;
}