-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
77 lines (67 loc) · 1.11 KB
/
style.css
File metadata and controls
77 lines (67 loc) · 1.11 KB
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
.banner {
background: url(https://coverlux.hu/sources/pics/bg_leth.jpg);
}
body {
height: 100vh;
font-family: 'Arial', sans-serif;
background: #fff;
}
button {
background-color: #34373a;
font-weight: 700;
text-transform: uppercase;
}
#card {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
dropdown {
display: inline-block;
position: absolute;
top: 0;
left: 0;
}
dropdown label {
display: block;
width: 200px;
background: transparent;
padding: 15px 20px;
}
dropdown ul li {
display: block;
width: 200px;
background: rgb(255, 255, 255);
padding: 15px 20px;
}
dropdown label:hover,
dropdown ul li:hover {
text-decoration: underline;
color: black;
cursor: pointer;
}
dropdown label {
color: #000000;
position: relative;
z-index: 2;
}
dropdown input {
display: none;
}
dropdown input ~ ul {
position: relative;
visibility: hidden;
opacity: 0;
top: -20px;
z-index: 1;
}
dropdown input:checked + label {
background: transparent;
color: #000000;
}
dropdown input:checked ~ ul {
visibility: visible;
opacity: 1;
top: 0;
}