/
style.css
65 lines (50 loc) · 881 Bytes
/
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
nav{
width:100%;
min-height: 10vh;
box-shadow: 0 3px 10px rgba(60, 60, 60, 0.2);
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
padding:2rem;
font-size: large;
}
nav a{
color: black;
text-decoration: none;
}
nav a:hover{
color: goldenrod;
text-decoration: underline;
}
nav ul{
list-style: none;
display: flex;
gap:1.5rem;
}
nav label, nav input{
display:none;
}
@media screen and (max-width:600px){
nav ul{
display:none;
}
nav label{
display:block;
}
nav label:hover{
cursor:pointer;
}
nav input:checked ~ ul{
display:flex;
flex-direction: column;
width:100%;
text-align: center;
margin-top:2rem;
}
}