-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
118 lines (101 loc) · 2.39 KB
/
styles.css
File metadata and controls
118 lines (101 loc) · 2.39 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
body {
font-family: Arial, sans-serif;
background-color: #6dacc9;
margin: 10px;
padding: 10px;
display: grid; /* Corrected missing semicolon */
grid-template-columns: 250px 1fr; /* Two columns: 250px for nav, remaining for main */
grid-gap: 20px;
}
header {
grid-column: 1 / span 2;
background-color: #333;
color: #fff;
padding: 10px;
border-radius: 8px;
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
nav {
background-xcolor: white;
color: #333; /* Corrected text color to be visible on white background */
padding: 10px;
border-radius: 8px;
display: flex;
flex-direction: column;
}
nav ul {
list-style-type: none; /* Remove default list styling */
padding: 0; /* Remove default padding */
margin: 0; /* Remove default margin */
}
nav li {
margin-bottom: 10px; /* Add space between each list item */
}
nav li:last-child {
margin-bottom: 0; /* Remove margin from the last list item */
}
nav a {
text-decoration: none; /* Remove underline from links */
color: inherit; /* Inherit text color */
display: block; /* Make the link fill the list item */
padding: 10px; /* Add padding inside the link */
border-radius: 8px; /* Add border radius to the link */
background-color: #f0f0f0; /* Add background color to the link */
}
nav a:hover {
background-color: #e0e0e0; /* Change background color on hover */
}
h3 {
color: #fff;
background-color: #333;
padding: 15px;
border-radius: 8px;
}
main {
background-color: #6dacc9;
padding: 10px;
border-radius: 8px;
}
footer {
grid-column: 1 / span 2; /* Footer spans both columns */
background-color: #333;
color: #fff;
padding: 10px;
border-radius: 8px;
text-align: center;
margin-top: 20px; /* Space above footer */
}
@media (max-width: 768px) {
body {
grid-template-columns: 1fr; /* Single column layout */
}
nav {
position: absolute;
top: 0;
left: -250px; /* Hide the menu by default */
width: 250px;
height: 100%;
background-color: white;
transition: left 0.3s ease;
}
nav.open {
left: 0; /* Show the menu when open */
}
nav ul {
flex-direction: column;
}
nav li {
margin-bottom: 10px;
}
.menu-toggle {
display: block;
background-color: #333;
color: #fff;
padding: 10px;
border-radius: 8px;
cursor: pointer;
}
}