mirror of
https://github.com/ivan-94/obsidian-plugin-manushelf.git
synced 2026-07-22 08:33:19 +00:00
575 lines
12 KiB
CSS
575 lines
12 KiB
CSS
.tactile-library-view-content {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
padding: 0 !important;
|
|
}
|
|
|
|
.tactile-scene-library,
|
|
.tactile-scene-library * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.tactile-scene-library {
|
|
--tl-bg: #f3ede4;
|
|
--tl-panel: rgba(250, 247, 242, 0.96);
|
|
--tl-panel-border: rgba(117, 91, 60, 0.14);
|
|
--tl-text: #514940;
|
|
--tl-muted: #7c7063;
|
|
--tl-search-bg: rgba(255, 253, 249, 0.98);
|
|
--tl-search-border: rgba(139, 105, 65, 0.28);
|
|
--tl-shadow: rgba(73, 55, 37, 0.08);
|
|
--tl-focus: rgba(183, 138, 67, 0.14);
|
|
--tl-dot: #dfd2c0;
|
|
--tl-brass: #bd8d43;
|
|
--tl-control-hover: rgba(143, 108, 65, 0.09);
|
|
--tl-message: rgba(250, 247, 241, 0.94);
|
|
--tl-error: #7d423b;
|
|
container-type: inline-size;
|
|
display: grid;
|
|
grid-template-rows: 52px minmax(0, 1fr);
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 320px;
|
|
overflow: hidden;
|
|
color: var(--tl-text);
|
|
color-scheme: light;
|
|
background: var(--tl-bg);
|
|
font-family: var(--font-interface);
|
|
}
|
|
|
|
.tactile-scene-library[data-theme="dark"] {
|
|
--tl-bg: #15191f;
|
|
--tl-panel: rgba(27, 32, 39, 0.97);
|
|
--tl-panel-border: rgba(226, 199, 162, 0.13);
|
|
--tl-text: #eee7dc;
|
|
--tl-muted: #b8aea1;
|
|
--tl-search-bg: #242a32;
|
|
--tl-search-border: rgba(222, 190, 147, 0.24);
|
|
--tl-shadow: rgba(0, 0, 0, 0.3);
|
|
--tl-focus: rgba(202, 153, 82, 0.2);
|
|
--tl-dot: #4b4742;
|
|
--tl-brass: #c89548;
|
|
--tl-control-hover: rgba(226, 199, 162, 0.1);
|
|
--tl-message: rgba(31, 37, 45, 0.95);
|
|
--tl-error: #efa89f;
|
|
color-scheme: dark;
|
|
}
|
|
|
|
.tactile-scene-library__header {
|
|
z-index: 2;
|
|
display: grid;
|
|
grid-template-columns: minmax(180px, 420px) auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 14px;
|
|
padding: 7px 14px;
|
|
border-bottom: 1px solid var(--tl-panel-border);
|
|
background: var(--tl-panel);
|
|
box-shadow: 0 6px 22px var(--tl-shadow);
|
|
}
|
|
|
|
.tactile-scene-search {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 36px;
|
|
padding: 0 12px;
|
|
color: var(--tl-muted);
|
|
border: 1px solid var(--tl-search-border);
|
|
border-radius: 999px;
|
|
background: var(--tl-search-bg);
|
|
box-shadow: 0 3px 10px var(--tl-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
|
|
transition: border-color 150ms ease, box-shadow 150ms ease;
|
|
}
|
|
|
|
.tactile-scene-search:focus-within {
|
|
border-color: var(--tl-brass);
|
|
box-shadow: 0 0 0 3px var(--tl-focus), 0 4px 12px var(--tl-shadow);
|
|
}
|
|
|
|
.tactile-scene-search svg {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.tactile-scene-search input[type="search"] {
|
|
flex: 1;
|
|
min-width: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0 !important;
|
|
padding: 0 0 0 9px !important;
|
|
color: var(--tl-text) !important;
|
|
border: 0 !important;
|
|
border-radius: 0 !important;
|
|
outline: 0 !important;
|
|
appearance: none;
|
|
background: transparent !important;
|
|
box-shadow: none !important;
|
|
font-size: 13px;
|
|
line-height: normal;
|
|
}
|
|
|
|
.tactile-scene-search input[type="search"]::placeholder {
|
|
color: var(--tl-muted) !important;
|
|
opacity: 0.86;
|
|
}
|
|
|
|
.tactile-scene-search input[type="search"]::-webkit-search-cancel-button {
|
|
filter: opacity(0.62);
|
|
}
|
|
|
|
.tactile-scene-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 7px;
|
|
min-width: max-content;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.tactile-scene-page-indicators {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
min-width: 8px;
|
|
}
|
|
|
|
.tactile-scene-page-arrow,
|
|
.tactile-scene-page-dot {
|
|
display: grid;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
place-items: center;
|
|
color: var(--tl-muted) !important;
|
|
border: 0 !important;
|
|
border-radius: 50% !important;
|
|
background: transparent !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.tactile-scene-page-arrow {
|
|
width: 28px;
|
|
height: 28px;
|
|
font-size: 23px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.tactile-scene-page-arrow:not(:disabled):hover {
|
|
color: var(--tl-text) !important;
|
|
background: var(--tl-control-hover) !important;
|
|
}
|
|
|
|
.tactile-scene-page-dot {
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
|
|
.tactile-scene-page-dot::before {
|
|
width: 8px;
|
|
height: 8px;
|
|
border: 1px solid var(--tl-search-border);
|
|
border-radius: 50%;
|
|
background: var(--tl-dot);
|
|
content: "";
|
|
}
|
|
|
|
.tactile-scene-page-dot.is-active::before {
|
|
border-color: var(--tl-brass);
|
|
background: var(--tl-brass);
|
|
box-shadow: 0 0 0 3px var(--tl-focus);
|
|
}
|
|
|
|
.tactile-scene-page-arrow:disabled,
|
|
.tactile-scene-page-dot:disabled {
|
|
opacity: 0.42;
|
|
}
|
|
|
|
.tactile-scene-page-arrow:focus-visible,
|
|
.tactile-scene-page-dot:focus-visible {
|
|
outline: 2px solid var(--tl-brass);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.tactile-scene-page-ellipsis {
|
|
color: var(--tl-muted);
|
|
font-size: 11px;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.tactile-scene-shell {
|
|
position: relative;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
background: var(--tl-bg);
|
|
}
|
|
|
|
.tactile-scene-canvas {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
outline: 0;
|
|
cursor: default;
|
|
touch-action: manipulation;
|
|
}
|
|
|
|
.tactile-scene-canvas.is-book-hovered {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tactile-scene-library.is-busy .tactile-scene-canvas {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tactile-scene-message {
|
|
position: absolute;
|
|
z-index: 3;
|
|
top: 50%;
|
|
left: 50%;
|
|
max-width: min(480px, calc(100% - 48px));
|
|
padding: 10px 15px;
|
|
color: var(--tl-muted);
|
|
border: 1px solid var(--tl-panel-border);
|
|
border-radius: 11px;
|
|
background: var(--tl-message);
|
|
box-shadow: 0 8px 24px var(--tl-shadow);
|
|
transform: translate(-50%, -50%);
|
|
font-size: 13px;
|
|
text-align: center;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.tactile-scene-message.is-error {
|
|
color: var(--tl-error);
|
|
}
|
|
|
|
.tactile-library-status {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 280px;
|
|
padding: 36px;
|
|
color: var(--text-muted);
|
|
background: var(--background-primary);
|
|
text-align: center;
|
|
}
|
|
|
|
.tactile-library-status h3,
|
|
.tactile-library-status p {
|
|
max-width: 620px;
|
|
margin: 4px 0;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.tactile-library-status.is-error {
|
|
color: var(--text-error);
|
|
}
|
|
|
|
.tactile-visually-hidden {
|
|
position: absolute !important;
|
|
width: 1px !important;
|
|
height: 1px !important;
|
|
padding: 0 !important;
|
|
overflow: hidden !important;
|
|
clip: rect(0, 0, 0, 0) !important;
|
|
white-space: nowrap !important;
|
|
border: 0 !important;
|
|
}
|
|
|
|
.manushelf-semantic-books {
|
|
position: absolute;
|
|
z-index: 5;
|
|
right: 12px;
|
|
bottom: 12px;
|
|
left: 12px;
|
|
display: flex;
|
|
justify-content: center;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.manushelf-semantic-books li:not(:focus-within) {
|
|
width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.manushelf-semantic-books button {
|
|
min-width: min(360px, calc(100vw - 48px));
|
|
min-height: 44px;
|
|
padding: 9px 14px;
|
|
color: var(--tl-text);
|
|
border: 1px solid var(--tl-brass);
|
|
border-radius: 10px;
|
|
background: var(--tl-panel);
|
|
box-shadow: 0 10px 30px var(--tl-shadow);
|
|
opacity: 0;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.manushelf-semantic-books button:focus-visible {
|
|
outline: 3px solid var(--tl-brass);
|
|
outline-offset: 2px;
|
|
opacity: 1;
|
|
}
|
|
|
|
.manushelf-book-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
|
|
gap: 18px;
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 30px clamp(18px, 5vw, 72px) 84px;
|
|
overflow: auto;
|
|
list-style: none;
|
|
}
|
|
|
|
.manushelf-book-list button {
|
|
display: grid;
|
|
grid-template-rows: minmax(150px, 1fr) auto;
|
|
gap: 9px;
|
|
width: 100%;
|
|
min-height: 220px;
|
|
padding: 10px;
|
|
color: var(--tl-text);
|
|
border: 1px solid var(--tl-panel-border);
|
|
border-radius: 12px;
|
|
background: var(--tl-panel);
|
|
box-shadow: 0 10px 26px var(--tl-shadow);
|
|
text-align: center;
|
|
}
|
|
|
|
.manushelf-book-list button:hover,
|
|
.manushelf-book-list button:focus-visible {
|
|
border-color: var(--tl-brass);
|
|
outline: 3px solid var(--tl-focus);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.manushelf-book-list img,
|
|
.manushelf-book-list__placeholder {
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 150px;
|
|
border-radius: 7px;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.manushelf-book-list__placeholder {
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--tl-muted);
|
|
background: var(--tl-bg);
|
|
font-family: var(--font-text-theme);
|
|
font-size: 44px;
|
|
}
|
|
|
|
.manushelf-diagnostics,
|
|
.manushelf-fallback-note {
|
|
position: absolute;
|
|
z-index: 4;
|
|
right: 14px;
|
|
bottom: 14px;
|
|
display: flex;
|
|
max-width: min(520px, calc(100% - 28px));
|
|
padding: 8px 11px;
|
|
color: var(--tl-muted);
|
|
border: 1px solid var(--tl-panel-border);
|
|
border-radius: 9px;
|
|
background: var(--tl-message);
|
|
box-shadow: 0 6px 18px var(--tl-shadow);
|
|
gap: 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.manushelf-fallback-note {
|
|
top: 12px;
|
|
right: 50%;
|
|
bottom: auto;
|
|
transform: translateX(50%);
|
|
}
|
|
|
|
.manushelf-config-modal-shell {
|
|
width: min(640px, calc(100vw - 32px));
|
|
max-width: calc(100vw - 32px);
|
|
}
|
|
|
|
.manushelf-config-modal-shell .modal-content,
|
|
.manushelf-config-modal {
|
|
min-width: 0;
|
|
overflow-x: clip;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item {
|
|
min-width: 0;
|
|
align-items: center;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item-info,
|
|
.manushelf-config-modal .setting-item-control {
|
|
min-width: 0;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item-info {
|
|
flex: 1 1 220px;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item-control {
|
|
flex: 0 1 360px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item-control select,
|
|
.manushelf-config-modal .setting-item-control input,
|
|
.manushelf-config-modal .setting-item-control textarea {
|
|
flex: 1 1 0;
|
|
width: min(100%, 340px);
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item-control .clickable-icon {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item-control textarea {
|
|
min-height: 96px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.manushelf-config-modal__actions .setting-item-info {
|
|
display: none;
|
|
}
|
|
|
|
.manushelf-config-modal__actions .setting-item-control {
|
|
flex: 1 1 auto;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.manushelf-config-modal-shell {
|
|
width: calc(100vw - 20px);
|
|
max-width: calc(100vw - 20px);
|
|
max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - 8px);
|
|
}
|
|
|
|
.manushelf-config-modal-shell .modal-content {
|
|
overscroll-behavior: contain;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item:not(.manushelf-config-modal__actions) {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 10px;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item-info,
|
|
.manushelf-config-modal .setting-item-control {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
flex-basis: auto;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item-control {
|
|
justify-content: stretch;
|
|
}
|
|
|
|
.manushelf-config-modal .setting-item-control select,
|
|
.manushelf-config-modal .setting-item-control input,
|
|
.manushelf-config-modal .setting-item-control textarea {
|
|
width: 100%;
|
|
}
|
|
|
|
.manushelf-config-modal__actions {
|
|
position: sticky;
|
|
z-index: 2;
|
|
bottom: calc(-1 * var(--size-4-3));
|
|
margin-top: 4px;
|
|
padding-bottom: max(var(--size-4-3), env(safe-area-inset-bottom));
|
|
background: var(--modal-background);
|
|
}
|
|
|
|
.manushelf-config-modal__actions .setting-item-control {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 8px;
|
|
}
|
|
|
|
.manushelf-config-modal__actions button {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
@container (max-width: 619px) {
|
|
.tactile-scene-library {
|
|
grid-template-rows: 48px minmax(0, 1fr);
|
|
}
|
|
|
|
.tactile-scene-library__header {
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 6px;
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.tactile-scene-search {
|
|
height: 34px;
|
|
padding-inline: 10px;
|
|
}
|
|
|
|
.tactile-scene-pagination {
|
|
gap: 3px;
|
|
}
|
|
|
|
.tactile-scene-page-indicators {
|
|
gap: 5px;
|
|
}
|
|
|
|
.tactile-scene-page-arrow {
|
|
width: 25px;
|
|
height: 25px;
|
|
font-size: 21px;
|
|
}
|
|
|
|
.tactile-scene-page-dot {
|
|
width: 25px;
|
|
height: 25px;
|
|
}
|
|
|
|
.manushelf-diagnostics {
|
|
right: 8px;
|
|
bottom: 8px;
|
|
left: 8px;
|
|
max-width: none;
|
|
}
|
|
|
|
.manushelf-book-list {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 10px;
|
|
padding: 16px 12px 72px;
|
|
}
|
|
}
|
|
|
|
@container (max-width: 379px) {
|
|
.tactile-scene-page-indicators {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.tactile-scene-library *,
|
|
.tactile-scene-library *::before,
|
|
.tactile-scene-library *::after {
|
|
scroll-behavior: auto !important;
|
|
transition-duration: 0.01ms !important;
|
|
}
|
|
}
|