made css more portable (for cellphones)

This commit is contained in:
Andrey Parhomenko 2024-03-04 03:13:49 +05:00
parent 971d692af5
commit 17e20579a0
3 changed files with 16 additions and 6 deletions

View file

@ -60,8 +60,15 @@ body {
/*gap: 1rem;*/ /*gap: 1rem;*/
} }
@media screen and (max-width: 480px) {
body {
flex-direction: column;
position: static;
}
}
header { header {
width: fit-content; max-width: fit-content;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -69,8 +76,9 @@ header {
border-right: var(--bd-width) var(--bd-style) var(--bd-color); border-right: var(--bd-width) var(--bd-style) var(--bd-color);
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
flex-shrink: 0; flex-shrink: 1;
padding-right: 1rem; padding-right: 1rem;
resize: horizontal;
} }
header > nav { header > nav {
@ -89,8 +97,10 @@ nav {
main { main {
/*margin-left: calc(var(--header-width) + 1rem);*/ /*margin-left: calc(var(--header-width) + 1rem);*/
padding-left: 1rem; padding-left: 1rem;
flex-shrink: 1; padding: .5rem;
flex-shrink: 100;
overflow-y: auto; overflow-y: auto;
} }

View file

@ -2,5 +2,5 @@
Перевод-модификация правил Savage Worlds AE для использования внутри VULTRAS. Перевод-модификация правил Savage Worlds AE для использования внутри VULTRAS.
* [Характеристики](char) * [Характеристики](./char)
* [Бой](fight) * [Бой](./fight)

View file

@ -2,4 +2,4 @@
Описания миров Описания миров
* [Атриум](atrium) * [Атриум](./atrium)