-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
93 lines (85 loc) · 1.41 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
body {
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: lightblue;
}
main {
display: grid;
place-items: center;
}
form {
width: 350px;
> div {
display: flex;
justify-content: space-between;
padding: 8px;
}
> div:last-child {
display: flex;
justify-content: center;
margin-top: 15px;
}
select {
width: 177px;
}
}
/* Dropdown -------------------------------------------- */
body {
background-color: lightblue;
}
header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-around;
padding-top: 30px;
padding-bottom: 30px;
background-color: #abc;
}
header img {
width: 60px;
height: 60px;
border-radius: 50%;
}
header div,
header nav {
display: flex;
align-items: center;
gap: 16px;
}
.dropbtn {
background-color: #04aa6d;
color: white;
padding: 16px;
font-size: 16px;
border: none;
}
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f1f1f1;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
}
.dropdown-content a,
nav a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {
background-color: #ddd;
}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: #3e8e41;
}