-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
108 lines (103 loc) · 2 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
103
104
105
106
107
108
*{
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
main{
height: 100vh;
margin-top: 5px;
background-color: #8f2b9b;
}
header{
background-color: rgba(0,0,0,0.2);
box-shadow: 0px 5px 8px rgba(0,0,0,0.9);
padding: 10px 20px;
}
nav{
display: flex;
justify-content: space-between;
align-items: center;
}
.logo img{
height: 50px;
border-radius: 50%;
border: 1px solid rgb(219, 50, 50);
}
.ul{
display: flex;
justify-content: space-around;
flex-basis: 50%;
}
ul li{
list-style-type: none;
}
ul li a{
text-decoration: none;
font-weight: 600;
color: white;
}
ul li a:hover,ul li a.active{
text-decoration: underline 2px;
text-underline-offset: 4px;
text-decoration-color: white;
color: rgb(120, 118, 223);
}
.btn{
font-weight: 800;
padding: 8px 15px;
background: transparent;
color: rgb(19, 228, 12);
background-color: rgba(0,0,0,0.4);
border-radius: 10px;
cursor: pointer;
}
.btn:hover{
background-color: rgb(19, 228, 12);
color: rgba(0,0,0,0.4);
text-decoration: none;
}
/*css for hamburger*/
.hamburger {
display: inline-block;
cursor: pointer;
display: none;
}
.bar1, .bar2, .bar3 {
width: 35px;
height: 5px;
background-color: #333;
margin: 6px 0;
transition: 0.4s;
}
.change .bar1 {
transform: translate(0, 11px) rotate(-45deg);
}
.change .bar2 {opacity: 0;}
.change .bar3 {
transform: translate(0, -11px) rotate(45deg);
}
@media (max-width:1024px) {
.hamburger{
display: block;
}
.ul{
display: none;
}
.listOnClick{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: rgba(0,0,0,0.6);
width: 100%;
height: 250px;
gap: 20px;
position: absolute;
top: 70px;
left: 0px;
}
header{
box-shadow: 0px 5px 8px rgba(0,0,0,0.9);
}
}