bugfix and phone view optimizations
This commit is contained in:
212
app/styles.css
212
app/styles.css
@@ -42,6 +42,22 @@
|
||||
.topbar-home-button[aria-pressed="true"] {
|
||||
color: #fbbf24;
|
||||
}
|
||||
.topbar-menu-toggle {
|
||||
display: none;
|
||||
padding: 7px 12px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid #3f3f46;
|
||||
background: #27272a;
|
||||
color: #f4f4f5;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
line-height: 1;
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
.topbar-menu-toggle:hover {
|
||||
background: #3f3f46;
|
||||
}
|
||||
.topbar-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -113,6 +129,104 @@
|
||||
.settings-trigger[aria-pressed="true"] {
|
||||
background: #3f3f46;
|
||||
}
|
||||
@media (max-width: 900px) {
|
||||
.topbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
padding: 10px 12px;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
background: rgba(24, 24, 27, 0.96);
|
||||
-webkit-backdrop-filter: blur(14px);
|
||||
backdrop-filter: blur(14px);
|
||||
}
|
||||
.topbar-home-button {
|
||||
font-size: 17px;
|
||||
min-height: 38px;
|
||||
}
|
||||
.topbar-menu-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 38px;
|
||||
margin-left: auto;
|
||||
}
|
||||
.topbar-actions {
|
||||
display: none;
|
||||
flex: 1 0 100%;
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
margin: 4px 0 0;
|
||||
border: 1px solid #2f2f39;
|
||||
border-radius: 16px;
|
||||
background: linear-gradient(180deg, rgba(24, 24, 34, 0.98), rgba(12, 12, 18, 0.98));
|
||||
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
|
||||
overflow: visible;
|
||||
pointer-events: auto;
|
||||
gap: 10px;
|
||||
max-height: calc(100svh - 88px);
|
||||
overflow-y: auto;
|
||||
}
|
||||
.topbar.is-menu-open .topbar-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.topbar-actions > * {
|
||||
width: 100%;
|
||||
}
|
||||
.topbar-dropdown {
|
||||
display: grid;
|
||||
width: 100%;
|
||||
}
|
||||
.topbar-dropdown-menu {
|
||||
position: static;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
margin-top: 6px;
|
||||
padding: 6px;
|
||||
border-radius: 12px;
|
||||
border-color: #31313d;
|
||||
background: rgba(10, 10, 16, 0.92);
|
||||
box-shadow: none;
|
||||
}
|
||||
.topbar-dropdown:hover .topbar-dropdown-menu,
|
||||
.topbar-dropdown:focus-within .topbar-dropdown-menu {
|
||||
display: none;
|
||||
}
|
||||
.topbar-dropdown.is-open .topbar-dropdown-menu {
|
||||
display: grid;
|
||||
}
|
||||
.settings-trigger {
|
||||
width: 100%;
|
||||
min-height: 42px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
text-align: left;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
.topbar-sub-trigger {
|
||||
min-height: 40px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
.topbar {
|
||||
padding: 9px 10px;
|
||||
}
|
||||
.topbar-home-button {
|
||||
font-size: 16px;
|
||||
}
|
||||
.topbar-actions {
|
||||
padding: 10px;
|
||||
border-radius: 14px;
|
||||
max-height: calc(100svh - 78px);
|
||||
}
|
||||
.settings-trigger {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
body.connection-gated {
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -475,6 +589,16 @@
|
||||
border: 1px solid #3f3f46;
|
||||
background: #09090b;
|
||||
}
|
||||
.tarot-detail-heading {
|
||||
position: relative;
|
||||
padding-right: 108px;
|
||||
}
|
||||
.tarot-detail-heading .detail-toggle-inline {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
.tarot-detail-heading h2 {
|
||||
margin: 0;
|
||||
font-size: 24px;
|
||||
@@ -1160,6 +1284,13 @@
|
||||
.planet-detail-heading {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
padding-right: 108px;
|
||||
}
|
||||
.planet-detail-heading .detail-toggle-inline {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
.planet-detail-heading h2 {
|
||||
margin: 0;
|
||||
@@ -3368,10 +3499,18 @@
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.planet-detail-heading,
|
||||
.tarot-detail-heading,
|
||||
.alpha-text-detail-heading {
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.planet-detail-heading,
|
||||
.tarot-detail-heading {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.alpha-text-controls--heading {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
@@ -3380,10 +3519,29 @@
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.planet-detail-heading .detail-toggle-inline,
|
||||
.tarot-detail-heading .detail-toggle-inline,
|
||||
.alpha-text-detail-heading .detail-toggle-inline {
|
||||
position: static;
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.tarot-detail-top {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.tarot-detail-image {
|
||||
width: min(180px, 60vw);
|
||||
height: auto;
|
||||
aspect-ratio: 2 / 3;
|
||||
justify-self: center;
|
||||
}
|
||||
|
||||
.tarot-meanings,
|
||||
.tarot-meta-grid,
|
||||
#kab-detail-body {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
.alpha-text-meta-grid {
|
||||
@@ -5244,9 +5402,61 @@
|
||||
.now-stats-planets {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
}
|
||||
.planet-layout {
|
||||
.planet-layout,
|
||||
.tarot-layout {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
.kab-layout {
|
||||
grid-template-rows: minmax(220px, 42svh) minmax(0, 1fr);
|
||||
}
|
||||
.planet-list-panel,
|
||||
.tarot-list-panel {
|
||||
border-right: none;
|
||||
border-bottom: 1px solid #27272a;
|
||||
max-height: min(42svh, 420px);
|
||||
}
|
||||
.planet-list-item,
|
||||
.tarot-list-item {
|
||||
min-height: 48px;
|
||||
padding: 10px 12px;
|
||||
}
|
||||
.planet-card-list,
|
||||
.tarot-card-list {
|
||||
padding-bottom: 18px;
|
||||
}
|
||||
.planet-detail-panel,
|
||||
.tarot-detail-panel,
|
||||
.kab-detail-panel {
|
||||
padding: 14px 14px calc(84px + env(safe-area-inset-bottom, 0px));
|
||||
gap: 14px;
|
||||
}
|
||||
.sidebar-toggle-inline,
|
||||
.detail-toggle-inline {
|
||||
min-height: 38px;
|
||||
padding: 8px 10px;
|
||||
}
|
||||
.sidebar-popout-open,
|
||||
.detail-popout-open {
|
||||
position: fixed;
|
||||
top: auto;
|
||||
bottom: calc(14px + env(safe-area-inset-bottom, 0px));
|
||||
z-index: 35;
|
||||
min-height: 42px;
|
||||
padding: 10px 14px;
|
||||
border-radius: 999px;
|
||||
font-size: 13px;
|
||||
line-height: 1.2;
|
||||
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.36);
|
||||
background: rgba(24, 24, 27, 0.96);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
.sidebar-popout-open {
|
||||
right: 14px;
|
||||
}
|
||||
.detail-popout-open {
|
||||
left: 14px;
|
||||
}
|
||||
.planet-meta-grid {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user