Skip to content

Commit 403e30f

Browse files
fix: починил адаптив
1 parent 079ffd2 commit 403e30f

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

www/resources/css/style.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
1+
2+
html, body {
3+
height: 100%;
4+
}
5+
6+
body {
7+
display: flex;
8+
flex-direction: column;
9+
padding-top: 56px; /* Высота фиксированного навбара */
10+
}
11+
12+
main {
13+
flex: 1 0 auto;
14+
width: 100%;
15+
}
16+
17+
footer {
18+
flex-shrink: 0;
19+
}
20+
21+
/* Дополнительные стили для мобильных устройств */
22+
@media (max-width: 768px) {
23+
body {
24+
padding-top: 66px; /* Увеличиваем отступ для мобильных устройств */
25+
}
26+
27+
/* Убедимся, что контент не выходит за пределы экрана */
28+
.container-fluid, .container {
29+
padding-left: 10px;
30+
padding-right: 10px;
31+
overflow-x: hidden;
32+
}
33+
34+
/* Улучшаем отображение форм на мобильных */
35+
input, textarea, button {
36+
max-width: 100%;
37+
}
38+
}
39+
140
.main-picture {
241
position: relative;
342
}

0 commit comments

Comments
 (0)