-
Notifications
You must be signed in to change notification settings - Fork 0
/
mystyle.css
117 lines (94 loc) · 1.93 KB
/
mystyle.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Montserrat;
}
body {
min-height: 100vh;
background: url("https://wallpapercave.com/wp/wp5195301.jpg") no-repeat;
background-size: cover;
background-position: center;
}
.header {
position: fixed;
top: 0;
left; 0;
width: 100%;
padding: 1.3rem 10%;
background: rgba(0, 0, 0, .1);
backdrop-filter: blur(40px);
display: flex;
justify-content: space-between;
align-items: center;
z-index: 100%;
}
.logo {
font-size: 2rem;
color: rgba(229, 250, 253, 0.788);
text-decoration: none;
font-weight: 700;
}
.Navbar a {
font-size: 1.15rem;
color: white;
text-decoration: none;
font-weight: 400;
margin-left: 2rem;
}
#check {
display: none;
}
.icons {
font-size: 2.4rem;
position: absolute;
right: 4%;
color: #fff;
cursor: pointer;
display: none;
}
@media (max-width: 992px) {
.header {
padding: 1.3rem 5%;
}
}
@media (max-width: 768px) {
.icons {
display: inline-flex;
}
#check:checked~.icons #menu-icon {
display: none;
}
#check:checked~.icons #close-icon {
display: block;
}
.icons #close-icon {
display: none;
}
.Navbar {
position: absolute;
top: 100%;
left: 0;
width: 100%;
height: 0;
background-color: rgba(0, 0, 0, .1);
backdrop-filter: blur(60px);
transition: 1s ease;
overflow: hidden;
}
#check:checked~.Navbar {
height: 17.7rem;
}
.Navbar a {
display: block;
font-size: 1.1rem;
margin: 1.5rem 0;
text-align: center;
transform: translateY(-50px);
transition: 1s ease;
}
#check:checked~.Navbar a {
transform: translateY(0px);
}
}