-
Notifications
You must be signed in to change notification settings - Fork 0
/
responsive.css
230 lines (191 loc) · 4.22 KB
/
responsive.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
/* This is a CSS media query that applies styles to elements on the page when the screen width is below
a certain size. */
@media (max-width: 1100px) {
#hamburger {
display: block;
}
.container {
padding: 1.2rem;
}
.menu {
display: none;
position: absolute;
top: 87px;
left: 0;
min-height: 100vh;
width: 100vw;
}
.menu-bar li:first-child ul:nth-child(1) {
border-right: none;
border-bottom: var(--border);
}
.dropdown {
display: none;
min-width: 100%;
border: none !important;
border-radius: 5px;
position: static;
top: 0;
left: 0;
visibility: visible;
opacity: 1;
transform: none;
box-shadow: none;
}
.menu.show,
.dropdown.active {
display: block;
}
.dropdown ul {
padding-left: 0.3rem;
}
.menu-bar {
display: flex;
flex-direction: column;
align-items: stretch;
row-gap: 1rem;
padding: 1rem;
}
.menu-bar .nav-link {
display: flex;
justify-content: space-between;
width: 100%;
font-weight: 600;
font-size: 1.2rem;
margin: 0;
}
.menu-bar li:first-child .dropdown {
min-width: 100%;
}
.menu-bar>li:not(:last-child) {
padding-bottom: 0.5rem;
border-bottom: var(--border);
}
}
@media (max-width: 600px) {
.right-container {
display: none;
}
}
/* Add a media query for screens smaller than 768px */
@media only screen and (max-width: 768px) {
/* Adjust the logo size for smaller screens */
.logo img {
width: 120px;
}
/* Center align the navigation elements */
.container {
display: flex;
justify-content: center;
align-items: center;
}
/* Adjust the positioning of the right container */
.right-container {
margin-left: auto;
}
}
/* Add a media query for screens smaller than 480px */
@media only screen and (max-width: 480px) {
/* Reduce the font size of the heading */
h1 {
font-size: 24px;
}
/* Adjust the width of the image in the top section */
.top .right img {
width: 100%;
}
/* Adjust the positioning of the top section elements */
.top {
flex-direction: column;
}
/* Center align the elements in the top section */
.left,
.right {
text-align: center;
}
/* Adjust the width of the image in the top-bottom section */
.top-bottom img {
width: 80px;
}
/* Adjust the positioning of the top-bottom section elements */
.top-bottom {
flex-direction: column;
}
/* Center align the elements in the top-bottom section */
.left,
.center,
.right {
text-align: center;
margin-bottom: 20px;
}
}
/* Add general responsive styles */
/* Ensure images and other content resize properly */
img,
video,
canvas,
audio,
iframe,
embed,
object {
max-width: 100%;
height: auto;
}
/* Add a responsive font size for better readability on small screens */
html {
font-size: 16px;
}
/* Adjust font sizes for different screen sizes */
@media only screen and (max-width: 1366px) {
html {
font-size: 14px;
}
}
@media only screen and (max-width: 768px) {
html {
font-size: 12px;
}
}
@media only screen and (max-width: 480px) {
html {
font-size: 10px;
}
}
@media screen and (max-width: 480px) {
/* Adjust styles for mobile devices */
.top {
flex-direction: column;
}
.left,
.right {
text-align: center;
}
.left h1,
.left h4,
.left a {
text-align: center;
margin: 0 auto;
}
.right img {
margin: 20px 0;
}
.top-bottom {
flex-direction: column;
}
.top-bottom div {
text-align: center;
margin-bottom: 40px;
}
.center img,
.right img {
margin: 0 auto;
}
}
/* Styles for tablets */
@media screen and (max-width: 768px) {
/* Adjust styles for tablets */
}
/* Styles for larger screens */
@media screen and (min-width: 992px) {
/* Adjust styles for larger screens */
}