Refocus responsive layouts on compact desktop use
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
All checks were successful
Deploy Sokko G / deploy (push) Successful in 19s
This commit is contained in:
parent
96d058293d
commit
0ac1a0974e
27 changed files with 610 additions and 190 deletions
|
|
@ -251,7 +251,3 @@
|
|||
height: 14px;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.mobile-nav {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,69 @@
|
|||
.about-reminders-list {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.home-onboarding-layout,
|
||||
.library-doc-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.library-example-layout,
|
||||
.hero,
|
||||
.origin-section {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.hero-stats {
|
||||
align-self: start;
|
||||
justify-self: start;
|
||||
width: min(520px, 100%);
|
||||
}
|
||||
|
||||
.home-visual {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.origin-copy {
|
||||
padding-right: 0;
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.library-doc-nav {
|
||||
position: static;
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
.page-heading,
|
||||
.toolbox-head {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.game-heading-actions,
|
||||
.guide-checklist-page-controls {
|
||||
width: 100%;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.guide-checklist-page-actions,
|
||||
.toolbar,
|
||||
.page-heading .actions,
|
||||
.toolbox-head .actions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
main {
|
||||
width: min(100% - 40px, 1280px);
|
||||
padding-top: var(--space-6);
|
||||
}
|
||||
|
||||
.toolbar,
|
||||
.page-heading .actions,
|
||||
.toolbox-head .actions {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-height: 760px) and (min-width: 1025px) {
|
||||
|
|
@ -58,22 +121,14 @@
|
|||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.drawer {
|
||||
--drawer-top-offset: 110px;
|
||||
.topbar {
|
||||
padding-inline: var(--space-4);
|
||||
}
|
||||
|
||||
.app-shell {
|
||||
display: block;
|
||||
padding-bottom: 76px;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
.topbar:has(.compact-game-view-switch) > div:first-child {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.topbar,
|
||||
.page-heading,
|
||||
.toolbox-head,
|
||||
.module .module-header {
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
|
|
@ -109,24 +164,6 @@
|
|||
order: 2;
|
||||
}
|
||||
|
||||
.topbar {
|
||||
padding: var(--space-4);
|
||||
}
|
||||
|
||||
.topbar-actions {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.topbar-actions > * {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.game-heading-actions,
|
||||
.guide-checklist-page-controls {
|
||||
width: 100%;
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.guide-checklist-page-controls {
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
|
@ -144,11 +181,8 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.hero,
|
||||
.game-hero,
|
||||
.page-hero,
|
||||
.origin-section,
|
||||
.home-onboarding-layout,
|
||||
.home-onboarding-cards,
|
||||
.about-story-section,
|
||||
.about-story-list,
|
||||
|
|
@ -231,10 +265,6 @@
|
|||
-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.14) 30%, #000 70%);
|
||||
}
|
||||
|
||||
.home-visual {
|
||||
width: min(320px, 100%);
|
||||
}
|
||||
|
||||
.origin-section {
|
||||
padding: var(--space-5);
|
||||
}
|
||||
|
|
@ -243,13 +273,6 @@
|
|||
padding-left: 0;
|
||||
}
|
||||
|
||||
.origin-copy {
|
||||
padding-right: 0;
|
||||
padding-bottom: var(--space-5);
|
||||
border-right: 0;
|
||||
border-bottom: 2px solid rgba(246, 196, 83, 0.66);
|
||||
}
|
||||
|
||||
.dialogue-line {
|
||||
max-width: 92%;
|
||||
}
|
||||
|
|
@ -322,7 +345,6 @@
|
|||
max-height: none;
|
||||
}
|
||||
|
||||
.library-example-layout,
|
||||
.library-tool-feature-list dl > div {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
|
@ -413,59 +435,12 @@
|
|||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.mobile-nav {
|
||||
position: fixed;
|
||||
right: 12px;
|
||||
bottom: 12px;
|
||||
left: 12px;
|
||||
z-index: 60;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 52px 1fr;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
padding: 8px;
|
||||
border: 1px solid var(--color-border);
|
||||
border-radius: var(--radius-xl);
|
||||
background: rgba(11, 14, 27, 0.9);
|
||||
backdrop-filter: blur(10px);
|
||||
box-shadow: var(--shadow-lg);
|
||||
}
|
||||
|
||||
.mobile-nav a,
|
||||
.mobile-nav button {
|
||||
min-height: 44px;
|
||||
padding: 0 8px;
|
||||
border-radius: var(--radius-md);
|
||||
font-size: var(--font-size-sm);
|
||||
}
|
||||
|
||||
.mobile-nav a {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--color-text-secondary);
|
||||
}
|
||||
|
||||
.mobile-nav a.active {
|
||||
background: var(--color-primary-soft);
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media (max-width: 699px) {
|
||||
.drawer-panel {
|
||||
width: 100vw;
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
@media (max-width: 767px) {
|
||||
.drawer-link-existing form {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.drawer-resize-handle {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
|
|
|
|||
|
|
@ -359,7 +359,7 @@
|
|||
flex-direction: column;
|
||||
}
|
||||
|
||||
@media (min-width: 700px) {
|
||||
@media (min-width: 1440px) {
|
||||
.app-shell.toolbox-drawer-open .content-shell {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 700px;
|
||||
|
|
@ -404,9 +404,19 @@
|
|||
|
||||
.topbar-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.compact-game-view-switch {
|
||||
display: inline-flex;
|
||||
min-width: 184px;
|
||||
}
|
||||
|
||||
.compact-game-view-switch > button {
|
||||
flex: 1 1 0;
|
||||
}
|
||||
|
||||
.toolbox-button {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
|
@ -426,3 +436,11 @@ main {
|
|||
margin: 0 auto;
|
||||
padding: var(--space-8) 0 var(--space-12);
|
||||
}
|
||||
|
||||
.route-content-view {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.app-shell.compact-toolbox-visible .route-content-view {
|
||||
display: none;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,4 +57,3 @@
|
|||
max-width: 920px;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -99,3 +99,22 @@ body.is-resizing-drawer * {
|
|||
.drawer-panel .modules {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
@media (max-width: 1439px) {
|
||||
.drawer.is-compact .drawer-panel {
|
||||
inset: 68px 0 0 248px;
|
||||
width: auto;
|
||||
min-width: 0;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.drawer.is-compact .drawer-resize-handle {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.drawer.is-compact .drawer-panel {
|
||||
left: 72px;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,11 +90,11 @@
|
|||
.global-memos-ticker { left: 84px; }
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
@media (max-width: 767px) {
|
||||
.global-memos-ticker {
|
||||
right: 12px;
|
||||
bottom: 84px;
|
||||
left: 12px;
|
||||
bottom: 12px;
|
||||
left: 84px;
|
||||
}
|
||||
|
||||
.memos-settings label {
|
||||
|
|
|
|||
|
|
@ -6,6 +6,11 @@
|
|||
align-items: start;
|
||||
}
|
||||
|
||||
.toolbox-page {
|
||||
container-name: toolbox-page;
|
||||
container-type: inline-size;
|
||||
}
|
||||
|
||||
.modules[data-layout-cols="1"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
|
@ -21,6 +26,20 @@
|
|||
min-width: 0;
|
||||
}
|
||||
|
||||
@container toolbox-page (max-width: 899px) {
|
||||
.modules-toolbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.modules[data-layout-cols="2"] {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.modules[data-layout-cols="2"] .module-column {
|
||||
display: contents;
|
||||
}
|
||||
}
|
||||
|
||||
.module-column.is-empty-warning {
|
||||
min-height: 132px;
|
||||
border: 1px dashed rgba(246, 196, 83, 0.26);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue