diff --git a/static/style.css b/static/style.css index db7966f..5f0b16f 100644 --- a/static/style.css +++ b/static/style.css @@ -13,7 +13,7 @@ body { font-family: system-ui, sans-serif; background: var(--bg); color: #111; - max-width: 800px; + max-width: 1200px; margin: 2rem auto; padding: 0 1rem; } @@ -79,3 +79,35 @@ button.secondary:hover { background: #e5e7eb; } pointer-events:none; } #toast.show { opacity:1; } + +/* Responsivita pro mobily */ +@media (max-width: 640px) { + body { padding: 0 .5rem; } + .row, .link-row { + flex-direction: column; + align-items: stretch; + } + textarea { min-height: 140px; } + button { width: 100%; } +} + +/* Grid layout pro široké obrazovky */ +.grid { + display: block; +} + +@media (min-width: 1024px) { + .grid { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 1.5rem; + align-items: start; + } + .left-col, .right-col { + display: flex; + flex-direction: column; + gap: 1.5rem; + } +} + + diff --git a/templates/decrypt.html b/templates/decrypt.html index 61a4ebb..13468c6 100644 --- a/templates/decrypt.html +++ b/templates/decrypt.html @@ -3,5 +3,6 @@
Jednoduché HTMX rozhraní pro šifrování zpráv cizím klíčem
-