 /* 6. Slide-over drawer (native ) ---------------------------------- */ html.ekbs-no-scroll { overflow: hidden; } html.ekbs-no-scroll body { padding-inline-end: var(--ekbs-sbw, 0px); } .ekbs-drawer { position: fixed; inset-block: 0; inset-inline-end: 0; /* RTL → left edge */ inset-inline-start: auto; width: min(420px, 100vw); max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-inline-start: 1px solid var(--ekbf-border); border-radius: 0; background-color: var(--ekbf-card); color: var(--ekbf-fg); box-shadow: var(--ekbf-shadow-lg); overflow: hidden; direction: rtl; font-family: var(--ekbf-font); } .ekbs-drawer:not([open]) { display: none; } .ekbs-drawer[open] { animation: ekbf-drawer-in .28s var(--ekbf-ease); } .ekbs-drawer::backdrop { background-color: rgba(0, 21, 33, .38); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); } @keyframes ekbf-drawer-in { from { transform: translateX(-100%); opacity: .5; } to { transform: translateX(0); opacity: 1; } } @media (max-width: 480px) { .ekbs-drawer { width: 100vw; border-inline-start: 0; } } .ekbs-drawer__panel { display: flex; flex-direction: column; height: 100%; min-height: 0; } .ekbs-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--ekbf-border); background-color: var(--ekbf-card); } .ekbs-drawer__title { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--ekbf-font-serif); font-size: 23px; line-height: 1.25; font-weight: 700; color: var(--ekbf-heading); } .ekbs-drawer__count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background-color: var(--ekbf-mint); color: var(--ekbf-mint-ink); font-family: var(--ekbf-font); font-size: 12px; font-weight: 700; line-height: 24px; font-variant-numeric: tabular-nums; } .ekbs-drawer__sub { margin: 5px 0 0; font-size: 12px; line-height: 1.5; color: var(--ekbf-muted-fg); } .ekbs-drawer__close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; padding: 0; border: 0; border-radius: var(--theme-button-border-radius, 3px); background: transparent; color: var(--theme-text-color, var(--ekbf-heading)); cursor: pointer; appearance: none; transition: all .12s cubic-bezier(0.455, 0.03, 0.515, 0.955); } .ekbs-drawer__close:hover { background: var(--theme-palette-color-5, var(--ekbf-muted)); color: var(--theme-link-hover-color, var(--theme-palette-color-2)); } .ekbs-drawer__close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; } .ekbs-drawer__actions { display: flex; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--ekbf-border); } .ekbs-drawer__actions .ekbf-btn { flex: 1; } .ekbs-drawer__actions .ekbf-btn--ghost { flex: 0 0 auto; padding-inline: 12px; } /* CSV export / restore row inside the drawer */ .ekbs-drawer__csv { display: flex; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--ekbf-border); background-color: var(--ekbf-bg); } .ekbs-drawer__csv .ekbf-btn { flex: 1 1 0; min-height: 32px; font-size: 12px; gap: 6px; color: var(--ekbf-muted-fg); } .ekbs-drawer__csv .ekbf-btn:hover { color: var(--ekbf-primary); } .ekbs-drawer__csv .ekbf-btn svg { width: 14px; height: 14px; } .ekbs-drawer__csv .ekbf-btn[disabled] { color: var(--ekbf-muted-fg); } .ekbs-drawer__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 12px; -webkit-overflow-scrolling: touch; } .ekbs-drawer__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ekbf-border); background-color: var(--ekbf-bg); } .ekbs-drawer__foot-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ekbf-primary); font-size: 12.5px; font-weight: 600; text-decoration: none; } .ekbs-drawer__foot-link:hover { text-decoration: underline; text-underline-offset: 3px; } /* 7. Saved-book row (drawer) ---------------------------------------------- */ .ekbs-item { display: grid; grid-template-columns: 54px minmax(0, 1fr) 30px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ekbf-border); } .ekbs-item:last-child { border-bottom: 0; } .ekbs-item__cover { position: relative; display: block; width: 54px; aspect-ratio: 3 / 4; border-radius: var(--ekbf-radius-sm); border: 1px solid var(--ekbf-border); background-color: var(--ekbf-muted); overflow: hidden; text-decoration: none; } .ekbs-item__cover img { width: 100%; height: 100%; object-fit: cover; display: block; } .ekbs-item__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--ekbf-mint), var(--ekbf-muted)); color: var(--ekbf-mint-ink); font-family: var(--ekbf-font-serif); font-size: 20px; font-weight: 700; } .ekbs-item__body { min-width: 0; } .ekbs-item__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-family: var(--ekbf-font-serif); font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--ekbf-heading); text-decoration: none; } .ekbs-item__title:hover { color: var(--ekbf-primary); } .ekbs-item__author { margin: 3px 0 0; font-size: 12px; line-height: 1.45; color: var(--ekbf-muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ekbs-item__cat { display: inline-flex; align-items: center; margin-top: 6px; padding: 2px 8px; border-radius: var(--ekbf-radius-sm); background-color: var(--ekbf-muted); border: 1px solid var(--ekbf-border); color: var(--ekbf-primary); font-size: 10.5px; line-height: 1.5; font-weight: 600; } .ekbs-item__cat:empty { display: none; } .ekbs-item__remove { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: var(--theme-button-border-radius, 3px); background: transparent; color: color-mix(in srgb, var(--theme-text-color) 70%, transparent); cursor: pointer; appearance: none; transition: background-color .15s var(--ekbf-ease), color .15s var(--ekbf-ease), border-color .15s var(--ekbf-ease); } .ekbs-item__remove:hover { background-color: color-mix(in srgb, #d92d20 10%, var(--theme-palette-color-8)); border-color: color-mix(in srgb, #d92d20 25%, var(--theme-palette-color-8)); color: color-mix(in srgb, #d92d20 45%, var(--theme-text-color)); } .ekbs-item__remove svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } /* 9. Toast ----------------------------------------------------------------- */ .ekbs-toast-host { position: fixed; inset-block-end: 22px; inset-inline-start: 22px; z-index: 2147483000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; } .ekbs-toast { display: flex; align-items: center; gap: 12px; max-width: min(400px, calc(100vw - 32px)); padding: 11px 13px 11px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--theme-palette-color-8) 28%, transparent); background-color: var(--theme-palette-color-4); color: var(--theme-palette-color-8); box-shadow: var(--ekbf-shadow-lg); font-family: var(--ekbf-font); font-size: 13px; line-height: 1.5; pointer-events: auto; animation: ekbf-toast-in .24s var(--ekbf-ease); } @keyframes ekbf-toast-in { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } .ekbs-toast__text { flex: 1 1 auto; } .ekbs-toast__action { flex: 0 0 auto; padding: 4px 8px; border: 0; border-radius: var(--theme-button-border-radius, 3px); background: var(--theme-button-background-initial-color, var(--theme-palette-color-1)); color: var(--theme-button-text-initial-color, var(--theme-palette-color-8)); font-family: var(--ekbf-font); font-size: 12px; font-weight: 700; cursor: pointer; appearance: none; } .ekbs-toast__close { flex: 0 0 auto; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--theme-button-border-radius, 3px); background: transparent; color: color-mix(in srgb, var(--theme-palette-color-8) 75%, transparent); font-size: 16px; line-height: 1; cursor: pointer; } .ekbs-toast__close:hover { background: color-mix(in srgb, var(--theme-palette-color-8) 8%, transparent); color: var(--theme-palette-color-8); }