-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.css
More file actions
125 lines (120 loc) · 2.32 KB
/
header.css
File metadata and controls
125 lines (120 loc) · 2.32 KB
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
120
121
122
123
124
125
.header-section {
height: 100vh;
background-image: url("./images/desktop/image-hero.jpg");
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.navbar {
padding-top: 30px;
display: flex;
justify-content: space-around;
align-items: center;
}
.nav-items {
margin-left: 500px;
}
.nav-items > a {
text-decoration: none;
color: white;
margin-left: 10px;
font-weight: 500;
}
.hero-heading {
color: white;
font-weight: 300;
font-size: 70px;
line-height: 1;
margin-left: 11.8rem;
margin-top: 9rem;
height: max-content;
width: max-content;
border: 2px solid white;
padding: 15px 35px;
}
/* Mobile nav styles */
.mobile-nav {
position: fixed;
background: url("./images/mobile/image-hero.jpg");
width: 100vw;
height: 100vh;
padding: 24px;
display: none;
transform: translateX(-100%);
transition: transform 300ms ease-in-out;
}
.mobile-nav-open {
transform: translateX(0%);
}
.mobile-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 35px;
}
.menu-close > button {
border: none;
background: none;
font-size: 1.5rem;
color: white;
}
.mob-nav-item {
text-decoration: none;
display: block;
color: White;
margin-bottom: 24px;
text-align: center;
}
.mob-nav-item:hover {
color: grey;
}
/* Hamburger Menu styles */
.ham-btn > button {
display: none;
border: none;
background: none;
font-size: 1.5rem;
}
/* Media queries for responsiveness */
@media only screen and (max-width: 768px) {
.header-section {
height: 100vh;
width: 100vw;
background-image: url("./images/mobile/image-hero.jpg");
background-position: center;
background-size: cover;
background-repeat: no-repeat;
overflow-x: hidden;
overflow-y: hidden;
}
.nav-items {
display: none;
}
.hero-heading {
color: white;
font-weight: 200;
font-size: 35px;
line-height: 1.1;
margin: 175px auto;
height: max-content;
width: 350px;
border: 2px solid white;
padding: 15px 35px;
letter-spacing: 2px;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 20px;
/* width: 100%; */
}
.mobile-nav {
display: block;
}
.ham-btn > button {
display: inline;
color: white;
cursor: pointer;
}
}