# Description of Changes Move frontend code into `core` folder and add infrastructure for `proprietary` folder to include premium, non-OSS features
169 lines
3.1 KiB
CSS
169 lines
3.1 KiB
CSS
.mobile-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
width: 100%;
|
|
background-color: var(--bg-background);
|
|
}
|
|
|
|
.mobile-toggle {
|
|
padding: 0.5rem 0.75rem;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
background: var(--bg-toolbar);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.mobile-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.mobile-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.mobile-brand-icon {
|
|
height: 1.5rem;
|
|
width: auto;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.mobile-brand-text {
|
|
height: 1.5rem;
|
|
width: auto;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.mobile-toggle-buttons {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 0.25rem;
|
|
padding: 0.2rem;
|
|
border-radius: 9999px;
|
|
background: var(--bg-background);
|
|
border: 1px solid var(--border-subtle);
|
|
}
|
|
|
|
.mobile-toggle-button {
|
|
border: none;
|
|
border-radius: 9999px;
|
|
padding: 0.4rem 0.9rem;
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
background: transparent;
|
|
transition: background 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.mobile-toggle-button:focus-visible {
|
|
outline: 2px solid var(--primary-color, #228be6);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.mobile-toggle-button.active {
|
|
background: var(--primary-surface, rgba(34, 139, 230, 0.12));
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.mobile-toggle-hint {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
}
|
|
|
|
.mobile-slider {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
scroll-snap-type: x mandatory;
|
|
scroll-behavior: smooth;
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
touch-action: pan-x pinch-zoom;
|
|
}
|
|
|
|
.mobile-slider::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.mobile-slide {
|
|
flex: 0 0 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
scroll-snap-align: start;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
.mobile-slide-content {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.mobile-slide-content > * {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
.mobile-bottom-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
padding: 0.5rem;
|
|
border-top: 1px solid var(--border-subtle);
|
|
background: var(--bg-toolbar);
|
|
gap: 0.5rem;
|
|
position: relative;
|
|
z-index: 10;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.mobile-bottom-button {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.25rem;
|
|
padding: 0.5rem;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
border-radius: 0.5rem;
|
|
transition: background 0.2s ease;
|
|
touch-action: manipulation;
|
|
-webkit-tap-highlight-color: transparent;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
min-height: 44px;
|
|
}
|
|
|
|
@media (hover: hover) and (pointer: fine) {
|
|
.mobile-bottom-button:hover {
|
|
background: var(--bg-hover, rgba(0, 0, 0, 0.05));
|
|
}
|
|
}
|
|
|
|
.mobile-bottom-button:active {
|
|
background: var(--bg-active, rgba(0, 0, 0, 0.1));
|
|
}
|
|
|
|
.mobile-bottom-button-label {
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
}
|