-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles2.css
108 lines (92 loc) · 1.79 KB
/
styles2.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
/* Basic styles */
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
transition: margin-left 0.3s;
}
.navbar {
background-color: #333;
padding: 15px;
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1000;
display: flex;
justify-content: flex-start;
align-items: center;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add shadow for better visibility */
}
.hamburger {
cursor: pointer;
display: flex;
flex-direction: column;
justify-content: space-around;
height: 30px;
width: 30px;
}
.hamburger .line {
width: 30px;
height: 4px;
background-color: white;
border-radius: 10px;
}
.sidebar {
height: 100%;
width: 250px;
position: fixed;
top: 0;
left: -250px;
background-color: #111;
padding-top: 60px;
transition: left 0.3s ease-in-out;
}
.sidebar a {
padding: 15px 25px;
text-decoration: none;
font-size: 20px;
color: white;
display: block;
transition: background-color 0.3s ease;
}
.sidebar a:hover {
background-color: #575757;
}
.content {
padding: 20px;
margin-top: 60px; /* Ensure content doesn't go behind navbar */
transition: margin-left 0.3s;
}
/* Active state for sidebar */
.sidebar.active {
left: 0;
}
.content.active {
margin-left: 250px;
}
@media screen and (max-width: 768px) {
.sidebar {
width: 100%;
}
.content.active {
margin-left: 0;
}
}
/* Formula1 Fonts Import */
@font-face {
font-family: 'Formula1-Wide';
src: url('Fonts/Formula1-Wide.ttf') format('truetype');
}
@font-face {
font-family: 'Formula1-Regular';
src: url('Fonts/Formula1-Regular.ttf') format('truetype');
}
@font-face {
font-family: 'Formula1-Bold';
src: url('Fonts/Formula1-Bold.ttf') format('truetype');
}
@font-face {
font-family: 'Formula1-Black';
src: url('Fonts/Formula1-Black.ttf') format('truetype');
}