diff --git a/web/src/main/resources/static/css/app.css b/web/src/main/resources/static/css/app.css index 12d004e..06ddf42 100644 --- a/web/src/main/resources/static/css/app.css +++ b/web/src/main/resources/static/css/app.css @@ -731,20 +731,29 @@ th.th-filterable { padding-bottom: 0.35rem; } .offscreen { position: fixed; top: -1000px; left: 0; } -/* ---- Мобильное меню: бургер в хэдере, ссылки в выезжающем сайдбаре ---- */ +/* Материалы на мобильных: действия переносятся под заголовок */ +@media (max-width: 720px) { + .sort-row, .sort-list > li { flex-wrap: wrap; row-gap: 0.35rem; } + .sort-row .sort-actions, .sort-list > li .sort-actions { margin-left: 2.4rem; width: calc(100% - 2.4rem); justify-content: flex-start; } + .sort-row .sort-title { flex: 1 1 auto; } +} + +/* ---- Мобильное меню: бургер в хэдере, ссылки в выезжающем сайдбаре справа ---- */ .nav-burger { display: none; } .mobile-nav { display: none; } .mobile-nav-overlay { display: none; } @media (max-width: 720px) { .nav { display: none; } .page-header .user { display: none; } + .page-header .theme-btn { margin-left: auto; } .nav-burger { display: inline-flex; } .mobile-nav { display: flex; flex-direction: column; gap: 1rem; - position: fixed; top: 0; left: 0; bottom: 0; width: 17rem; max-width: 86vw; - z-index: 120; background: var(--c-surface); border-right: 1px solid var(--c-border); + position: fixed; top: 0; right: 0; bottom: 0; left: auto; width: 17rem; max-width: 86vw; + z-index: 120; background: var(--c-surface); + border-right: none; border-left: 1px solid var(--c-border); padding: 1rem; overflow-y: auto; - transform: translateX(-100%); transition: transform 0.2s; + transform: translateX(100%); transition: transform 0.2s; } .mobile-nav.open { transform: none; } .mobile-nav-overlay { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(0, 0, 0, 0.45); } diff --git a/web/src/main/resources/templates/admin/group.html b/web/src/main/resources/templates/admin/group.html index 9aadf08..8982f6f 100644 --- a/web/src/main/resources/templates/admin/group.html +++ b/web/src/main/resources/templates/admin/group.html @@ -344,7 +344,7 @@ - + diff --git a/web/src/main/resources/templates/admin/lab.html b/web/src/main/resources/templates/admin/lab.html index 18f308f..8c86347 100644 --- a/web/src/main/resources/templates/admin/lab.html +++ b/web/src/main/resources/templates/admin/lab.html @@ -196,7 +196,7 @@ - + diff --git a/web/src/main/resources/templates/fragments/base.html b/web/src/main/resources/templates/fragments/base.html index 16b3aa5..cae0158 100644 --- a/web/src/main/resources/templates/fragments/base.html +++ b/web/src/main/resources/templates/fragments/base.html @@ -15,17 +15,17 @@ - - - - - - - - - - - + + + + + + + + + + +
@@ -41,7 +41,11 @@ Смена пароля - + @@ -50,13 +54,9 @@ — — - - Войти + Войти
- +
diff --git a/web/src/main/resources/templates/learn/article.html b/web/src/main/resources/templates/learn/article.html index 9660cd4..7944edd 100644 --- a/web/src/main/resources/templates/learn/article.html +++ b/web/src/main/resources/templates/learn/article.html @@ -46,7 +46,7 @@
- +
@@ -124,7 +124,7 @@
- + diff --git a/web/src/main/resources/templates/learn/chapter.html b/web/src/main/resources/templates/learn/chapter.html index a4fb9be..c0809f4 100644 --- a/web/src/main/resources/templates/learn/chapter.html +++ b/web/src/main/resources/templates/learn/chapter.html @@ -89,8 +89,8 @@ th:text="${article.title}">Статья скрыто
- Править + @@ -183,7 +183,7 @@
- + diff --git a/web/src/main/resources/templates/learn/index.html b/web/src/main/resources/templates/learn/index.html index c1671ba..46eb731 100644 --- a/web/src/main/resources/templates/learn/index.html +++ b/web/src/main/resources/templates/learn/index.html @@ -95,8 +95,8 @@ - Править +
@@ -232,8 +232,8 @@ - - + + diff --git a/web/src/main/resources/templates/learn/section.html b/web/src/main/resources/templates/learn/section.html index 9214dde..9c39dc3 100644 --- a/web/src/main/resources/templates/learn/section.html +++ b/web/src/main/resources/templates/learn/section.html @@ -56,8 +56,8 @@ скрыто - Править + @@ -143,7 +143,7 @@ - + diff --git a/web/src/main/resources/templates/student/lab.html b/web/src/main/resources/templates/student/lab.html index d4eb57f..9453187 100644 --- a/web/src/main/resources/templates/student/lab.html +++ b/web/src/main/resources/templates/student/lab.html @@ -107,7 +107,7 @@

Ожидайте преподавателя с проверкой.

- +