-
Notifications
You must be signed in to change notification settings - Fork 289
/
style.css
112 lines (92 loc) · 2.72 KB
/
style.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
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: Arial, sans-serif;
}
header {
background-color: #333; /* Header background color */
padding: 10px 20px; /* Padding around header */
}
.container {
display: flex; /* Flexbox for horizontal alignment */
justify-content: space-between; /* Space between elements */
align-items: center; /* Center elements vertically */
}
.logo img {
width: 50px; /* Logo width */
height: auto; /* Maintain aspect ratio */
}
nav {
flex-grow: 1; /* Allow nav to grow */
}
.menu ul {
list-style: none; /* Remove default list styling */
padding: 0; /* Remove padding */
margin: 0; /* Remove margin */
display: flex; /* Flexbox for horizontal alignment */
}
.menu a {
color: white; /* Menu link color */
text-decoration: none; /* Remove underline */
transition: color 0.3s; /* Transition effect */
}
.menu a:hover {
color: #ddd; /* Change color on hover */
}
.buttons {
display: flex; /* Flexbox for buttons */
}
.buttons .login,
.buttons .get-started {
margin-left: 10px; /* Spacing between buttons */
padding: 8px 16px; /* Padding for buttons */
border-radius: 5px; /* Rounded corners */
text-decoration: none; /* Remove underline */
color: white; /* Button text color */
background-color: #007bff; /* Button background color */
transition: background-color 0.3s; /* Transition effect */
}
.buttons .login:hover,
.buttons .get-started:hover {
background-color: #0056b3; /* Darker blue on hover */
}
.menu-toggle {
display: none; /* Hidden by default */
flex-direction: column; /* Stack bars vertically */
cursor: pointer; /* Pointer cursor on hover */
}
.menu-toggle .bar {
height: 4px; /* Height of menu bar */
width: 25px; /* Width of menu bar */
background-color: white; /* Bar color */
margin: 3px 0; /* Spacing between bars */
}
/* Responsive styles */
@media (max-width: 768px) {
.menu {
display: none; /* Hide menu by default */
width: 100%; /* Full width */
flex-direction: column; /* Stack items vertically */
position: absolute; /* Absolute positioning */
top: 60px; /* Position below the header */
left: 0; /* Align to the left */
background-color: #333; /* Background color */
z-index: 1; /* Above other content */
}
.menu ul {
flex-direction: column; /* Stack items vertically */
width: 100%; /* Full width */
}
.menu li {
text-align: center; /* Center text */
margin: 10px 0; /* Vertical spacing */
}
.menu-toggle {
display: flex; /* Show menu toggle */
}
.menu.show {
display: flex; /* Show menu when toggled */
}
}