-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyleHeader.css
119 lines (112 loc) · 1.78 KB
/
styleHeader.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
118
119
*{
margin: 0;
padding: 0;
list-style: none;
text-decoration: none;
}
body{
font-family: sans-serif;
user-select: none;
background: linear-gradient(45deg,#5a5a5a,#192435);
}
nav .logo{
color: white;
font-size: 33px;
font-weight: bold;
line-height: 70px;
padding-left: 50px;
}
nav{
height: 70px;
background: #00adb5;
box-shadow: 0 3px 15px rgba(0,0,0,.4);
}
nav ul{
float: right;
margin-right: 30px;
}
nav ul li{
display: inline-block;
}
nav ul li a{
color: white;
display: block;
padding: 0 15px;
line-height: 70px;
font-size: 20px;
background: #00adb5;
transition: .5s;
}
nav ul li a:hover,
nav ul li a.active{
color: #5a5a5a;;
}
nav ul ul{
position: absolute;
top: 85px;
border-top: 3px solid #5a5a5a;
opacity: 0;
visibility: hidden;
z-index: 3;
}
nav ul li:hover > ul{
top: 70px;
opacity: 1;
visibility: visible;
transition: .3s linear;
}
nav ul ul li{
width: 150px;
display: list-item;
position: relative;
border: 1px solid #042331;
border-top: none;
}
nav ul ul li a{
line-height: 50px;
}
nav ul ul ul{
border-top: none;
}
nav ul ul ul li{
position: relative;
top: -70px;
left: 150px;
}
nav ul ul li a i{
margin-left: 45px;
}
/*media query*/
@media only screen and (max-width: 768px) {
header{
width: 100%;
height: 100%;
}
nav .logo{
padding-left: 35%;
}
nav ul {
position: absolute;
display: flex;
flex-direction: column;
width: 100%;
left: 0;
top: 60px;
height: 100vh;
text-align: center;
}
nav ul ul li{
position: relative;
display: flex;
width: 100%;
flex-direction: column;
}
.break{
display: flex;
justify-content: space-between;
max-width: 800px;
margin: 0 auto;
height: 300px;
padding: 235px 0;
}
}