-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles_header.css
52 lines (47 loc) · 1.6 KB
/
styles_header.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
/* Styles for the header */
/* add bold to current page in header */
.current {
font-weight: bold;
}
header {
display: flex; /* Use flexbox for a responsive layout */
justify-content: left; /* Add some space between elements */
align-items: center; /* Align items vertically */
background-color: #3c6e71;
color: #353535;
text-align: center;
font-size: 15px;
padding: 0 20px;
position: fixed; /* Fix the position of the header */
top: 0; /* Align the header to the top of the viewport */
width: 100%; /* Make the header span the full width of the viewport */
z-index: 1000; /* Ensure the header is above other elements */
}
/* dark mode button */
.toggle-dark-mode {
background-color: transparent;
width: 30px;
height: 30px;
border: 0; /* Remove the default button border */
cursor: pointer; /* Change the cursor to a pointer when hovering over the button */
padding: 0; /* Remove padding */
position: fixed; /* Make the button stay in place when you scroll */
right: 20px; /* Position the button 20px from the right edge of the page */
top: 20px; /* Position the button 20px from the top of the page */
z-index: 1000; /* Ensure the button is above other elements */
color: #353535
}
.toggle-dark-mode img {
background-color: transparent;
width: 30px;
height: 30px;
}
/* Style the navigation menu */
nav ul a {
list-style-type: none; /* Remove bullets from all nav elements */
color: #353535;
text-decoration: none; /* Remove underline */
text-align: center;
padding: 0; /* Remove padding */
margin-right: 20px;
}