-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
102 lines (102 loc) · 2.16 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
@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700,800,900&display=swap');
*,
*::before,
*::after {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
min-height: 100vh;
width: 100vw;
background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
background-repeat: no-repeat;
overflow-x: hidden;
}
section {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
margin-top: 3rem;
margin-bottom: 3rem;
width: 100%;
}
h1 {
color: #fff;
margin-bottom: 1rem;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
section .border {
min-width: 300px;
width: 50vw;
height: 20vh;
background: #f7f7f7;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
border-radius: 5px;
padding: 1rem;
}
section .border input {
outline: none;
border: none;
width: 100%;
height: 100%;
border-radius: inherit;
text-align: center;
font-size: 2rem;
caret-color: #2e2e2e;
}
section ul {
list-style: none;
}
section ul li {
min-width: 250px;
width: 40vw;
height: 70px;
background: #fff;
border: 1px solid silver;
padding: 1rem;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
section ul li:nth-child(2n) {
-webkit-transform: perspective(100px) rotateX(2deg);
transform: perspective(100px) rotateX(2deg);
}
section ul li:nth-child(2n + 1) {
-webkit-transform: perspective(100px) translateY(1px) rotateX(-2deg);
transform: perspective(100px) translateY(1px) rotateX(-2deg);
}
section ul li:hover {
background: #f0f0f0;
}
section ul li a {
text-decoration: none;
color: #000;
}