thejusticeman_obsidian-mobi.../styles.css
copilot-swe-agent[bot] 2653cc4b3c Fix all ESLint and code quality issues from automated plugin review
Co-authored-by: TheJusticeMan <115323007+TheJusticeMan@users.noreply.github.com>
2025-11-27 13:35:02 +00:00

148 lines
3.2 KiB
CSS

/*
Mobile Plugin Styles
Includes FAB and selection toolbar styles with mobile-friendly design
*/
/* Floating Action Button (FAB) */
.mobile-fab {
position: absolute;
bottom: calc(20px + env(safe-area-inset-bottom));
right: 20px;
width: 56px;
height: 56px;
border-radius: 50%;
background-color: var(--interactive-accent);
color: var(--text-on-accent);
border: none;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
z-index: 100;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mobile-fab:hover {
transform: scale(1.05);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
.mobile-fab:active {
transform: scale(0.95);
}
.mobile-fab svg {
width: 24px;
height: 24px;
}
/* Selection Toolbar */
.mobile-selection-toolbar {
display: flex;
flex-wrap: nowrap;
gap: 8px;
padding: 8px;
background-color: var(--background-primary);
border: 1px solid var(--background-modifier-border);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
position: absolute;
bottom: calc(10px + env(safe-area-inset-bottom));
left: 10px;
right: 10px;
max-width: calc(100% - 20px);
overflow-x: auto;
overflow-y: hidden;
/* Hide scrollbar for cleaner look while still allowing scroll */
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE and Edge */
-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
/* z-index: 1000; */
}
.mobile-selection-toolbar::-webkit-scrollbar {
display: none; /* Chrome, Safari, Opera */
}
/* Prevent toolbar buttons from shrinking */
.mobile-selection-toolbar > button,
.mobile-selection-toolbar > .clickable-icon {
flex-shrink: 0;
}
/* Settings Page Styles */
.mobile-toolbar-section {
margin: 1.5em 0;
padding: 1em;
background-color: var(--background-secondary);
border-radius: 8px;
border: 1px solid var(--background-modifier-border);
}
.mobile-command-list {
margin: 0.5em 0;
}
.mobile-add-command-btn {
margin-top: 0.5em;
}
/* Settings Drag and Drop */
.mobile-plugin-draggable-item {
cursor: grab;
}
.mobile-plugin-draggable-item.is-dragging {
opacity: 0.5;
cursor: grabbing;
}
.mobile-plugin-draggable-item.drag-over-top {
border-top: 2px solid var(--interactive-accent);
}
.mobile-plugin-draggable-item.drag-over-bottom {
border-bottom: 2px solid var(--interactive-accent);
}
.mobile-fab-dragline {
position: fixed;
height: 4px;
background-color: var(--interactive-accent);
top: 0;
left: 0;
transform-origin: 0 50%;
z-index: 101;
pointer-events: none;
transition: opacity 0.5s ease;
}
/* State classes for dragline animation */
.mobile-fab-dragline.is-fading {
opacity: 0;
height: 0;
}
/* Gesture feedback animation for FAB */
.mobile-fab.gesture-success {
background: var(--interactive-accent);
}
.mobile-fab.gesture-animating {
transition: background 2s;
}
.mobile-plugin-settings-header > .setting-item-control {
flex-wrap: wrap;
flex-direction: row;
gap: 0.5em;
justify-content: flex-start;
}
.mobile-plugin-settings-header > .setting-item-control > button {
flex-grow: 1;
}
.mobile-plugin-settings-header > .setting-item-control > button.mod-cta {
border-radius: var(--button-radius) var(--button-radius) 0 0;
}