-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgioithieu.css
More file actions
374 lines (320 loc) · 7.85 KB
/
gioithieu.css
File metadata and controls
374 lines (320 loc) · 7.85 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
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
.navbar {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: #596869 !important;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
padding: 10px 20px;
z-index: 1000;
display: flex;
align-items: center;
justify-content: space-between;
border-radius: 1% !important;
}
.navbar a:focus,
.navbar button:focus {
outline: none;
box-shadow: none;
}
/* Giữ nội dung không bị che bởi navbar */
body {
padding-top: 80px; /* Dành khoảng trống cho navbar */
overflow-x: hidden; /* Tránh thanh cuộn ngang */
padding: 0 !important;
margin: 0 !important;
width: 100% !important;
}
/* Logo */
.navbar img {
filter: brightness(0) invert(1);
width: 10rem;
}
/* Định dạng container để giữ nội dung không bị co giãn sai */
.container-fluid {
max-width: 1200px; /* Định nghĩa chiều rộng tối đa */
width: 100%;
margin: 0 auto; /* Căn giữa navbar */
display: flex;
align-items: center;
justify-content: space-between;
}
/* Chữ "Vinabook Kết nối tri thức Việt" */
.navbar-brand {
font-size: 2.0rem;
font-weight: bold;
color: #E6EFE6 !important; /* Màu trắng */
white-space: nowrap; /* Tránh xuống dòng */
transition: color 0.3s ease-in-out;
margin-left: -50px;
margin-right: 50px;
font-family: 'Dancing Script';
}
/* Menu */
.navbar-nav {
display: flex;
align-items: center;
gap: 20px; /* Khoảng cách giữa các mục menu */
}
.navbar-nav .nav-link {
font-size: 1.1rem;
font-weight: 500;
color: #E6EFE6 !important;
padding: 8px 15px;
transition: all 0.3s ease-in-out;
white-space: nowrap; /* Giữ nội dung không bị xuống dòng */
}
.navbar-nav .nav-link:hover {
color: #79B791 !important; /* Màu vàng khi hover */
transform: scale(1.1); /* Phóng to nhẹ */
}
.navbar-item{
justify-items: center;
}
/* Dropdown menu */
.dropdown-menu {
background-color: #6C8976; /* Màu nền */
border: none;
max-height: 300px; /* Tùy chỉnh chiều cao tối đa */
overflow-y: auto; /* Bật thanh cuộn nếu quá nhiều mục */
position: absolute !important; /* Giữ dropdown cố định, không làm thay đổi navbar */
z-index: 1050;
}
.dropdown-menu .dropdown-item {
color: #E6EFE6 !important;
transition: all 0.3s ease-in-out;
}
.dropdown-menu .dropdown-item:hover {
background-color: #79B791; /* Màu vàng khi hover */
color: #000000 !important;
}
/* Nút search */
.navbar .form-control {
min-width: 200px;
border-radius: 20px;
border: none;
padding: 8px 15px;
transition: box-shadow 0.3s ease-in-out;
}
.navbar .form-control:focus {
box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.navbar .btn-outline-success {
color: #E6EFE6;
border-color: #E6EFE6;
border-radius: 20px;
padding: 8px 15px;
transition: all 0.3s ease-in-out;
}
.navbar .btn-outline-success:hover {
background-color: #79B791;
border-color: #79B791;
color: #000000;
}
/* Responsive cho mobile */
@media (max-width: 992px) {
.navbar {
padding: 10px;
}
.navbar img {
max-width: 120px; /* Logo nhỏ hơn trên màn hình nhỏ */
}
.navbar-nav {
flex-direction: column;
align-items: center;
width: 100%;
}
.navbar-nav .nav-link {
font-size: 1rem;
text-align: center;
}
.navbar .form-control {
min-width: 100px;
}
}
/* Đảm bảo không có khoảng trống ngang khi phóng to hoặc thu nhỏ cửa sổ */
html, body {
width: 100%;
max-width: 100%;
overflow-x: hidden; /* Loại bỏ thanh cuộn ngang */
}
.modal{
backdrop-filter: blur(5px);
background-color: rgba(50, 50, 50, 0.4) !important;
}
/* Căn giữa tiêu đề pop-up */
.modal-header {
display: flex;
justify-content: center;
align-items: center;
width: 100%; /* Đảm bảo chiếm toàn bộ chiều rộng */
text-align: center;
position: relative; /* Để căn giữa chính xác */
}
/* Đảm bảo tiêu đề nằm giữa */
.modal-title {
flex-grow: 1; /* Giúp tiêu đề mở rộng để nằm giữa */
text-align: center; /* Căn giữa chữ */
font-size: 1.5rem;
font-weight: bold;
}
/* Điều chỉnh nút đóng không bị lệch */
.modal-header .btn-close {
position: absolute;
right: 15px; /* Đưa về góc phải */
top: 50%;
transform: translateY(-50%);
}
.modal-header .btn-close:focus{
outline: none !important;
box-shadow: none !important;
}
.modal-content{
background-color: #596869;
color: #E6EFE6;
}
.modal-body .btn{
background-color: #79B791;
border-color: #79B791;
}
.modal-body .btn:hover{
background-color: #6C8976;
color: #E6EFE6;
border: #6C8976;
}
.modal-body .btn:active{
background-color: #6C8976;
color: #E6EFE6;
border: #6C8976;
}
.modal-body a{
color: #E6EFE6;
}
.modal-body .form-control:focus{
outline: none !important;
box-shadow: none !important ;
border: none !important;
}
/* Thiết lập chung */
.container {
max-width: 1100px;
}
h2 {
color: #596869;
font-weight: bold;
margin-bottom: 20px;
}
/* Cột trái: Vì sao lựa chọn chúng tôi */
ul.list-unstyled {
padding-left: 0;
}
ul.list-unstyled li {
font-size: 18px;
margin-bottom: 10px;
display: flex;
align-items: center;
color: #333;
}
ul.list-unstyled li i {
color: #79B791;
font-size: 20px;
margin-right: 10px;
}
/* Cột phải: Dẫn dắt về sách */
.col-md-6 p {
font-size: 16px;
line-height: 1.6;
color: #444;
text-align: justify;
}
/* Responsive tối ưu trên mobile */
@media (max-width: 768px) {
.col-md-6 {
margin-bottom: 30px;
}
h2 {
text-align: center;
}
}
.col-md-6 {
margin-top: 150px; /* Điều chỉnh giá trị này theo ý muốn */
margin-bottom: -30px;
}
.col-md-6 img {
width: 80%;
max-height: 350px;
object-fit: cover; /* Giúp ảnh không bị méo */
object-position: center ;
border-radius: 10px;
margin-top: 15px;
}
.footer {
background-color: #596869;
width: 100%;
padding: 20px 0; /* Đồng bộ với index */
border-radius: 1cm; /* Đồng bộ với index */
width: 100%;
background-color: #596869;
color: #E6EFE6;
padding: 20px 0;
text-align: center;
position: relative;
bottom: 0;
}
body {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.main-content {
flex: 1;
}
html, body {
height: 100%;
margin: 0;
display: flex;
flex-direction: column;
}
#main-content {
flex: 1;
}
.navbar .bi-cart {
color: #E6EFE6; /* Màu icon */
font-size: 1.8rem; /* Kích thước icon */
margin-left: 15px; /* Đẩy icon sang phải */
position: relative;
top: 2px; /* Dịch chuyển icon xuống một chút */
transition: color 0.3s ease; /* Hiệu ứng hover */
}
.navbar .bi-cart:hover {
color: #79B791; /* Màu icon khi hover */
}
.navbar .cart-badge {
font-size: 0.75rem;
padding: 0px 6px;
position: absolute;
top: -5px; /* Điều chỉnh vị trí số lượng */
right: -10px; /* Dịch sang phải một chút */
background-color: #ff5656; /* Màu nền số lượng */
color: white; /* Màu chữ */
border-radius: 1cm;
}
#logout-btn {
color: white; /* Màu chữ */
margin-left: 10px; /* Khoảng cách với icon giỏ hàng */
border: none;
}
#logout-btn:hover{
background-color: #596869;
background: #E6EFE6;
color: #000000;
}
/* --------------------------------------------------------------------------------------- */
/* -------------------Nguoicode------------------- */
.nguoicode{
display: inline-block;
text-align: left;
}
.text-light {
text-decoration: none;
}