|
1 |
| - html { |
2 |
| - box-sizing: border-box; |
3 |
| - background:#ffc600; |
4 |
| - font-family:'helvetica neue'; |
5 |
| - font-size: 20px; |
6 |
| - font-weight: 200; |
7 |
| - } |
8 |
| - *, *:before, *:after { |
9 |
| - box-sizing: inherit; |
10 |
| - } |
11 |
| - input { |
12 |
| - width: 100%; |
13 |
| - padding:20px; |
14 |
| - } |
| 1 | +html { |
| 2 | + box-sizing: border-box; |
| 3 | + background: #ffc600; |
| 4 | + font-family: 'helvetica neue'; |
| 5 | + font-size: 20px; |
| 6 | + font-weight: 200; |
| 7 | +} |
15 | 8 |
|
16 |
| - .search-form { |
17 |
| - max-width:400px; |
18 |
| - margin:50px auto; |
19 |
| - } |
| 9 | +*, *:before, *:after { box-sizing: inherit; } |
20 | 10 |
|
21 |
| - input.search { |
22 |
| - margin: 0; |
23 |
| - text-align: center; |
24 |
| - outline:0; |
25 |
| - border: 10px solid #F7F7F7; |
26 |
| - width: 120%; |
27 |
| - left: -10%; |
28 |
| - position: relative; |
29 |
| - top: 10px; |
30 |
| - z-index: 2; |
31 |
| - border-radius: 5px; |
32 |
| - font-size: 40px; |
33 |
| - box-shadow: 0 0 5px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.19); |
34 |
| - } |
| 11 | +input { |
| 12 | + width: 100%; |
| 13 | + padding: 20px; |
| 14 | +} |
35 | 15 |
|
| 16 | +.search-form { |
| 17 | + max-width: 400px; |
| 18 | + margin: 50px auto; |
| 19 | +} |
36 | 20 |
|
37 |
| - .suggestions { |
38 |
| - margin: 0; |
39 |
| - padding: 0; |
40 |
| - position: relative; |
41 |
| - /*perspective:20px;*/ |
42 |
| - } |
43 |
| - .suggestions li { |
44 |
| - background:white; |
45 |
| - list-style: none; |
46 |
| - border-bottom: 1px solid #D8D8D8; |
47 |
| - box-shadow: 0 0 10px rgba(0, 0, 0, 0.14); |
48 |
| - margin:0; |
49 |
| - padding:20px; |
50 |
| - transition:background 0.2s; |
51 |
| - display:flex; |
52 |
| - justify-content:space-between; |
53 |
| - text-transform: capitalize; |
54 |
| - } |
| 21 | +input.search { |
| 22 | + margin: 0; |
| 23 | + text-align: center; |
| 24 | + outline: 0; |
| 25 | + border: 10px solid #f7f7f7; |
| 26 | + width: 120%; |
| 27 | + left: -10%; |
| 28 | + position: relative; |
| 29 | + top: 10px; |
| 30 | + z-index: 2; |
| 31 | + border-radius: 5px; |
| 32 | + font-size: 40px; |
| 33 | + box-shadow: 0 0 5px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.19); |
| 34 | +} |
55 | 35 |
|
56 |
| - .suggestions li:nth-child(even) { |
57 |
| - transform: perspective(100px) rotateX(3deg) translateY(2px) scale(1.001); |
58 |
| - background: linear-gradient(to bottom, #ffffff 0%,#EFEFEF 100%); |
59 |
| - } |
60 |
| - .suggestions li:nth-child(odd) { |
61 |
| - transform: perspective(100px) rotateX(-3deg) translateY(3px); |
62 |
| - background: linear-gradient(to top, #ffffff 0%,#EFEFEF 100%); |
63 |
| - } |
| 36 | +.suggestions { |
| 37 | + margin: 0; |
| 38 | + padding: 0; |
| 39 | + position: relative; |
| 40 | + /*perspective:20px;*/ |
| 41 | +} |
64 | 42 |
|
65 |
| - span.population { |
66 |
| - font-size: 15px; |
67 |
| - } |
| 43 | +.suggestions li { |
| 44 | + background: #fff; |
| 45 | + list-style: none; |
| 46 | + border-bottom: 1px solid #d8d8d8; |
| 47 | + box-shadow: 0 0 10px rgba(0, 0, 0, 0.14); |
| 48 | + margin: 0; |
| 49 | + padding: 20px; |
| 50 | + transition: background 0.2s; |
| 51 | + display: flex; |
| 52 | + justify-content: space-between; |
| 53 | + text-transform: capitalize; |
| 54 | +} |
68 | 55 |
|
| 56 | +.suggestions li:nth-child(even) { |
| 57 | + transform: perspective(100px) rotateX(3deg) translateY(2px) scale(1.001); |
| 58 | + background: linear-gradient(to bottom, #ffffff 0%,#EFEFEF 100%); |
| 59 | +} |
69 | 60 |
|
70 |
| - .details { |
71 |
| - text-align: center; |
72 |
| - font-size: 15px; |
73 |
| - } |
| 61 | +.suggestions li:nth-child(odd) { |
| 62 | + transform: perspective(100px) rotateX(-3deg) translateY(3px); |
| 63 | + background: linear-gradient(to top, #ffffff 0%,#EFEFEF 100%); |
| 64 | +} |
74 | 65 |
|
75 |
| - .hl { |
76 |
| - background:#ffc600; |
77 |
| - } |
| 66 | +span.population { |
| 67 | + font-size: 15px; |
| 68 | +} |
78 | 69 |
|
79 |
| - .love { |
80 |
| - text-align: center; |
81 |
| - } |
| 70 | +.details { |
| 71 | + text-align: center; |
| 72 | + font-size: 15px; |
| 73 | +} |
82 | 74 |
|
83 |
| - a { |
84 |
| - color:black; |
85 |
| - background:rgba(0,0,0,0.1); |
86 |
| - text-decoration: none; |
87 |
| - } |
| 75 | +.hl { |
| 76 | + background: #ffc600; |
| 77 | +} |
| 78 | + |
| 79 | +.love { |
| 80 | + text-align: center; |
| 81 | +} |
| 82 | + |
| 83 | +a { |
| 84 | + color: #000; |
| 85 | + background: rgba(0,0,0,0.1); |
| 86 | + text-decoration: none; |
| 87 | +} |
0 commit comments