forked from CSEdgeOfficial/learn.csedge.courses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar.css
139 lines (119 loc) · 2.26 KB
/
navbar.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
nav {
display: flex;
justify-content: space-between;
align-items: center;
color: #000000;
padding: 15px 15px 15px 15px;
background-color: #ffffff;
}
nav img {
display: none;
cursor: pointer;
}
nav h1 {
font-size: 2rem;
padding-left: 50px;
margin: 0px;
}
nav a {
color: #000000;
text-decoration: none;
padding: 5px 20px;
}
nav ul {
list-style: none;
display: flex;
margin: 0;
padding: 0;
}
nav ul li a:hover {
color: #222;
transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
@media screen and (max-width: 768px) {
nav img {
display: inline-block;
padding-right: 15px;
}
nav {
padding: 15px;
position: relative;
}
nav ul {
position: fixed;
top: 70px;
left: -100%;
width: 100%;
height: 100%;
background: #f5f5f5;
flex-direction: column;
text-align: center;
transition: left 0.3s ease;
}
nav ul.show {
left: 0;
}
nav ul li {
margin: 30px 0;
}
nav img {
display: block;
}
nav ul a {
color: #000000;
font-size: 20px;
}
}
#goTopBtn {
display: none;
position: fixed;
bottom: 20px;
right: 30px;
z-index: 99;
border: none;
outline: none;
background-color: #555;
color: white;
cursor: pointer;
padding: 15px;
border-radius: 50%;
font-size: 18px;
}
#goTopBtn:hover {
background-color: #333;
/* Darker shade on hover */
}
#goTopBtn i {
font-size: 24px;
position: relative;
left: 2px;
/* Increase icon size for better visibility */
}
/* General Styles */
.section-heading {
text-align: center;
margin-bottom: 20px;
}
.logos-container {
display: flex;
justify-content: center;
align-items: center;
gap: 100px;
margin-top: 30px;
/* Space between logos */
}
.logo {
width: 100%;
/* Responsive width */
max-width: 200px;
/* Maximum size */
height: auto;
/* Maintain aspect ratio */
}
/* Responsive Design for smaller screens */
@media (max-width: 768px) {
.logos-container {
flex-direction: column;
/* Stack logos vertically on smaller screens */
}
}