mirror of
https://github.com/sirwanafifi/inkplane.git
synced 2026-07-22 08:32:24 +00:00
Prior releases published ~3s after attesting, so Obsidian's dashboard could scan the release before the attestation propagated to GitHub's public API and cache a failed verdict — matching a same-day report from another plugin author where every post-hoc check (gh attestation verify, one attestation per digest, matching repo/commit) passed yet the dashboard still failed. - Gate release creation on gh attestation verify succeeding against the public API (retry loop), so we never publish before the attestation is queryable. - Upgrade to actions/attest-build-provenance@v4. - Fresh 0.2.9 asset digests (styles.css comment + main.js version banner) so the new scan runs against digests with a single clean attestation. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1102 lines
26 KiB
CSS
1102 lines
26 KiB
CSS
/* Inkplane 0.2.9 plugin styles. */
|
|
|
|
.view-content.ink-canvas-view-content {
|
|
height: 100%;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.ink-canvas-view {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 280px;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(circle, color-mix(in srgb, var(--text-muted) 16%, transparent) 1px, transparent 1px),
|
|
var(--background-primary);
|
|
background-size: 24px 24px, auto;
|
|
outline: none;
|
|
touch-action: none;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
-webkit-touch-callout: none;
|
|
}
|
|
|
|
.ink-canvas-viewport {
|
|
position: absolute;
|
|
inset: 0;
|
|
overflow: hidden;
|
|
cursor: crosshair;
|
|
touch-action: none;
|
|
overscroll-behavior: none;
|
|
}
|
|
|
|
.ink-canvas-view.is-pan-tool .ink-canvas-viewport,
|
|
.ink-canvas-view.is-panning .ink-canvas-viewport {
|
|
cursor: grab;
|
|
}
|
|
|
|
.ink-canvas-view.is-panning .ink-canvas-viewport {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.ink-canvas-layer {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ink-layer-toolbar {
|
|
position: absolute;
|
|
z-index: 6;
|
|
top: max(12px, env(safe-area-inset-top));
|
|
left: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
min-height: 74px;
|
|
max-width: calc(100% - 28px);
|
|
padding: 8px 10px;
|
|
overflow-x: auto;
|
|
color: var(--text-normal);
|
|
background: color-mix(in srgb, var(--background-primary) 90%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--background-modifier-border) 64%, white 8%);
|
|
border-radius: 999px;
|
|
box-shadow: 0 18px 52px rgb(0 0 0 / 20%), 0 4px 16px rgb(0 0 0 / 10%), inset 0 1px 0 rgb(255 255 255 / 10%);
|
|
transform: translateX(-50%);
|
|
backdrop-filter: blur(28px) saturate(1.32);
|
|
pointer-events: auto;
|
|
touch-action: manipulation;
|
|
-webkit-overflow-scrolling: touch;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.ink-layer-toolbar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.ink-canvas-view.toolbar-at-bottom .ink-layer-toolbar {
|
|
top: auto;
|
|
bottom: max(14px, env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.ink-toolbar-group {
|
|
display: flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
gap: 3px;
|
|
min-height: 54px;
|
|
padding: 0 9px;
|
|
background: transparent;
|
|
border: 0;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.ink-toolbar-group + .ink-toolbar-group {
|
|
border-left: 1px solid color-mix(in srgb, var(--background-modifier-border) 68%, transparent);
|
|
}
|
|
|
|
.ink-toolbar-history {
|
|
padding-left: 2px;
|
|
}
|
|
|
|
.ink-toolbar-view {
|
|
padding-right: 2px;
|
|
}
|
|
|
|
.ink-layer-tool {
|
|
position: relative;
|
|
display: inline-flex;
|
|
flex: 0 0 auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 38px;
|
|
height: 38px;
|
|
padding: 0;
|
|
color: var(--text-muted);
|
|
background: color-mix(in srgb, var(--background-modifier-hover) 48%, transparent);
|
|
border: 0;
|
|
border-radius: 50%;
|
|
box-shadow: none;
|
|
transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
|
|
}
|
|
|
|
.ink-layer-tool:hover,
|
|
.ink-layer-tool:focus-visible {
|
|
color: var(--text-normal);
|
|
background: color-mix(in srgb, var(--background-modifier-hover) 88%, transparent);
|
|
}
|
|
|
|
.ink-layer-tool.is-selected {
|
|
color: var(--text-normal);
|
|
background: color-mix(in srgb, var(--interactive-accent) 12%, transparent);
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--interactive-accent) 20%, transparent);
|
|
}
|
|
|
|
.ink-layer-tool:active:not(:disabled) {
|
|
transform: scale(0.94);
|
|
}
|
|
|
|
.ink-layer-tool:disabled {
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.ink-layer-tool svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.ink-toolbar-instruments {
|
|
gap: 1px;
|
|
min-height: 58px;
|
|
padding-inline: 8px;
|
|
}
|
|
|
|
.ink-toolbar-instruments .ink-layer-tool {
|
|
width: 43px;
|
|
height: 58px;
|
|
overflow: visible;
|
|
background: transparent;
|
|
border-radius: 14px;
|
|
}
|
|
|
|
.ink-toolbar-instruments .ink-layer-tool:hover,
|
|
.ink-toolbar-instruments .ink-layer-tool:focus-visible {
|
|
background: color-mix(in srgb, var(--background-modifier-hover) 44%, transparent);
|
|
}
|
|
|
|
.ink-toolbar-instruments .ink-layer-tool.is-selected {
|
|
background: color-mix(in srgb, var(--background-modifier-hover) 34%, transparent);
|
|
box-shadow: none;
|
|
transform: translateY(-3px);
|
|
}
|
|
|
|
.ink-layer-tool[data-tool="pen"] > svg,
|
|
.ink-layer-tool[data-tool="highlighter"] > svg,
|
|
.ink-layer-tool[data-tool="eraser"] > svg {
|
|
display: none;
|
|
}
|
|
|
|
.ink-layer-tool[data-tool="pen"]::before,
|
|
.ink-layer-tool[data-tool="highlighter"]::before,
|
|
.ink-layer-tool[data-tool="eraser"]::before,
|
|
.ink-layer-tool[data-tool="lasso"]::before {
|
|
position: absolute;
|
|
bottom: 7px;
|
|
left: 50%;
|
|
content: "";
|
|
filter: drop-shadow(0 2px 2px rgb(0 0 0 / 18%));
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.ink-layer-tool[data-tool="pen"]::before {
|
|
width: 9px;
|
|
height: 39px;
|
|
background: linear-gradient(
|
|
to bottom,
|
|
#f8f8f6 0 52%,
|
|
var(--ink-instrument-color) 53% 65%,
|
|
#f7f7f4 66% 100%
|
|
);
|
|
border-radius: 2px 2px 1px 1px;
|
|
}
|
|
|
|
.ink-layer-tool[data-tool="highlighter"]::before {
|
|
width: 13px;
|
|
height: 37px;
|
|
background: linear-gradient(
|
|
to bottom,
|
|
var(--ink-instrument-color) 0 15%,
|
|
#fafaf8 16% 50%,
|
|
var(--ink-instrument-color) 51% 64%,
|
|
#f8f8f5 65% 100%
|
|
);
|
|
border-radius: 2px 2px 1px 1px;
|
|
}
|
|
|
|
.ink-layer-tool[data-tool="pen"]::after,
|
|
.ink-layer-tool[data-tool="highlighter"]::after {
|
|
position: absolute;
|
|
bottom: 46px;
|
|
left: 50%;
|
|
width: 0;
|
|
height: 0;
|
|
border-right: 5px solid transparent;
|
|
border-bottom: 8px solid var(--ink-instrument-color);
|
|
border-left: 5px solid transparent;
|
|
content: "";
|
|
filter: drop-shadow(0 1px 1px rgb(0 0 0 / 14%));
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.ink-layer-tool[data-tool="highlighter"]::after {
|
|
border-right-width: 6px;
|
|
border-bottom-width: 7px;
|
|
border-left-width: 6px;
|
|
}
|
|
|
|
.ink-layer-tool[data-tool="eraser"]::before {
|
|
width: 22px;
|
|
height: 43px;
|
|
background: linear-gradient(to bottom, #dfa09d 0 27%, #fafaf8 28% 100%);
|
|
border: 1px solid rgb(0 0 0 / 9%);
|
|
border-radius: 8px 8px 3px 3px;
|
|
box-shadow: inset 3px 0 5px rgb(255 255 255 / 35%);
|
|
}
|
|
|
|
.ink-layer-tool[data-tool="lasso"]::before {
|
|
width: 18px;
|
|
height: 44px;
|
|
background: repeating-linear-gradient(135deg, #f8f8f6 0 4px, #b7b7b5 4px 7px);
|
|
border: 1px solid rgb(0 0 0 / 10%);
|
|
border-radius: 9px 9px 3px 3px;
|
|
}
|
|
|
|
.ink-layer-tool[data-tool="lasso"] > svg {
|
|
z-index: 1;
|
|
width: 13px;
|
|
height: 13px;
|
|
color: #4f4f52;
|
|
}
|
|
|
|
.ink-layer-tool[data-tool="pan"] {
|
|
width: 40px;
|
|
height: 40px;
|
|
margin-inline: 1px;
|
|
align-self: center;
|
|
background: color-mix(in srgb, var(--background-modifier-hover) 58%, transparent);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.ink-tool-selection-indicator {
|
|
position: absolute;
|
|
bottom: -1px;
|
|
left: 50%;
|
|
width: 19px;
|
|
height: 3px;
|
|
background: var(--interactive-accent);
|
|
border-radius: 999px;
|
|
opacity: 0;
|
|
transform: translateX(-50%) scaleX(0.55);
|
|
transition: opacity 140ms ease, transform 140ms ease;
|
|
}
|
|
|
|
.ink-layer-tool.is-selected .ink-tool-selection-indicator {
|
|
opacity: 1;
|
|
transform: translateX(-50%) scaleX(1);
|
|
}
|
|
|
|
.ink-toolbar-colors {
|
|
gap: 8px;
|
|
padding-inline: 12px;
|
|
}
|
|
|
|
.ink-quick-color,
|
|
.ink-color-more {
|
|
position: relative;
|
|
flex: 0 0 auto;
|
|
width: 34px;
|
|
height: 34px;
|
|
padding: 0;
|
|
appearance: none;
|
|
border: 2px solid color-mix(in srgb, var(--background-primary) 84%, white);
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 0 1px color-mix(in srgb, var(--text-muted) 30%, transparent), inset 0 0 0 1px rgb(255 255 255 / 16%);
|
|
cursor: pointer;
|
|
transition: filter 120ms ease, box-shadow 120ms ease, transform 120ms ease;
|
|
}
|
|
|
|
.ink-canvas-view .ink-layer-toolbar button.ink-quick-color {
|
|
background: var(--ink-quick-color);
|
|
}
|
|
|
|
.ink-canvas-view .ink-layer-toolbar button.ink-quick-color.is-adaptive {
|
|
background: linear-gradient(135deg, #fafafa 0 48%, #111 49% 100%);
|
|
}
|
|
|
|
.ink-quick-color:hover,
|
|
.ink-quick-color:focus-visible,
|
|
.ink-color-more:hover,
|
|
.ink-color-more:focus-visible {
|
|
filter: brightness(1.06);
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
.ink-quick-color:focus-visible,
|
|
.ink-color-more:focus-visible {
|
|
outline: 2px solid var(--background-modifier-border-focus);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
.ink-quick-color.is-selected {
|
|
box-shadow: 0 0 0 2px var(--background-primary), 0 0 0 4px var(--text-normal), inset 0 0 0 1px rgb(255 255 255 / 16%);
|
|
}
|
|
|
|
.ink-canvas-view .ink-layer-toolbar button.ink-color-more {
|
|
width: 34px;
|
|
min-width: 34px;
|
|
height: 34px;
|
|
color: white;
|
|
background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444);
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.ink-color-more > svg {
|
|
width: 17px;
|
|
height: 17px;
|
|
padding: 3px;
|
|
background: rgb(0 0 0 / 34%);
|
|
border-radius: 50%;
|
|
box-sizing: border-box;
|
|
filter: drop-shadow(0 1px 1px rgb(0 0 0 / 30%));
|
|
}
|
|
|
|
.ink-color-more.is-selected {
|
|
box-shadow: 0 0 0 2px var(--background-primary), 0 0 0 4px var(--interactive-accent), inset 0 0 0 1px rgb(255 255 255 / 18%);
|
|
}
|
|
|
|
.ink-layer-zoom {
|
|
width: auto;
|
|
min-width: 48px;
|
|
padding: 0 6px;
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-smaller);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.ink-canvas-empty-state {
|
|
position: absolute;
|
|
z-index: 2;
|
|
top: 50%;
|
|
left: 50%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
transform: translate(-50%, -50%);
|
|
transition: opacity 160ms ease, transform 160ms ease;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ink-canvas-empty-state strong {
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-medium);
|
|
font-weight: var(--font-semibold);
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.ink-canvas-empty-state > span:last-child {
|
|
font-size: var(--font-ui-smaller);
|
|
}
|
|
|
|
.ink-empty-icon {
|
|
display: grid;
|
|
width: 46px;
|
|
height: 46px;
|
|
margin-bottom: 4px;
|
|
color: var(--interactive-accent);
|
|
background: color-mix(in srgb, var(--interactive-accent) 12%, var(--background-primary));
|
|
border: 1px solid color-mix(in srgb, var(--interactive-accent) 25%, var(--background-modifier-border));
|
|
border-radius: 50%;
|
|
box-shadow: 0 6px 18px rgb(0 0 0 / 8%);
|
|
place-items: center;
|
|
}
|
|
|
|
.ink-empty-icon svg {
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
.ink-canvas-view.has-ink .ink-canvas-empty-state {
|
|
opacity: 0;
|
|
transform: translate(-50%, calc(-50% + 6px));
|
|
}
|
|
|
|
.ink-canvas-status {
|
|
position: absolute;
|
|
z-index: 3;
|
|
right: 12px;
|
|
bottom: max(12px, env(safe-area-inset-bottom));
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-height: 26px;
|
|
padding: 3px 9px;
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-smaller);
|
|
font-variant-numeric: tabular-nums;
|
|
background: color-mix(in srgb, var(--background-primary) 76%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--background-modifier-border) 62%, transparent);
|
|
border-radius: 999px;
|
|
backdrop-filter: blur(12px);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ink-canvas-view.toolbar-at-bottom .ink-canvas-status {
|
|
top: max(12px, env(safe-area-inset-top));
|
|
bottom: auto;
|
|
}
|
|
|
|
.ink-canvas-status-tool {
|
|
color: var(--text-normal);
|
|
font-weight: var(--font-medium);
|
|
}
|
|
|
|
.ink-canvas-status-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ink-canvas-status-meta::before {
|
|
width: 3px;
|
|
height: 3px;
|
|
background: var(--text-faint);
|
|
border-radius: 50%;
|
|
content: "";
|
|
}
|
|
|
|
.ink-tool-inspector {
|
|
--ink-inspector-anchor-x: 50%;
|
|
--ink-inspector-x: 50%;
|
|
position: absolute;
|
|
z-index: 7;
|
|
top: calc(env(safe-area-inset-top) + 98px);
|
|
left: var(--ink-inspector-x);
|
|
width: min(360px, calc(100% - 24px));
|
|
max-height: calc(100% - env(safe-area-inset-top) - 122px);
|
|
padding: 16px;
|
|
overflow-y: auto;
|
|
color: var(--text-normal);
|
|
background: color-mix(in srgb, var(--background-primary) 96%, transparent);
|
|
border: 1px solid color-mix(in srgb, var(--background-modifier-border) 84%, var(--interactive-accent) 16%);
|
|
border-radius: calc(var(--radius-l) + 6px);
|
|
box-shadow: 0 22px 64px rgb(0 0 0 / 26%), 0 3px 12px rgb(0 0 0 / 12%), inset 0 1px 0 rgb(255 255 255 / 7%);
|
|
opacity: 0;
|
|
transform: translate(-50%, -8px) scale(0.98);
|
|
transform-origin: top center;
|
|
visibility: hidden;
|
|
backdrop-filter: blur(22px) saturate(1.2);
|
|
transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
|
|
pointer-events: none;
|
|
touch-action: manipulation;
|
|
outline: none;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
.ink-tool-inspector::before {
|
|
position: absolute;
|
|
top: 0;
|
|
left: var(--ink-inspector-anchor-x);
|
|
width: 32px;
|
|
height: 3px;
|
|
background: var(--interactive-accent);
|
|
border-radius: 0 0 999px 999px;
|
|
content: "";
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.ink-canvas-view.toolbar-at-bottom .ink-tool-inspector {
|
|
top: auto;
|
|
bottom: calc(env(safe-area-inset-bottom) + 98px);
|
|
transform: translate(-50%, 8px) scale(0.98);
|
|
transform-origin: bottom center;
|
|
max-height: calc(100% - env(safe-area-inset-bottom) - 122px);
|
|
}
|
|
|
|
.ink-canvas-view.toolbar-at-bottom .ink-tool-inspector::before {
|
|
top: auto;
|
|
bottom: 0;
|
|
border-radius: 999px 999px 0 0;
|
|
}
|
|
|
|
.ink-tool-inspector.is-open,
|
|
.ink-canvas-view.toolbar-at-bottom .ink-tool-inspector.is-open {
|
|
opacity: 1;
|
|
transform: translate(-50%, 0) scale(1);
|
|
visibility: visible;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.ink-inspector-header,
|
|
.ink-inspector-section-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.ink-inspector-heading {
|
|
display: flex;
|
|
min-width: 0;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.ink-inspector-tool-icon {
|
|
display: grid;
|
|
flex: 0 0 auto;
|
|
width: 36px;
|
|
height: 36px;
|
|
color: var(--text-accent);
|
|
background: color-mix(in srgb, var(--interactive-accent) 13%, var(--background-secondary));
|
|
border: 1px solid color-mix(in srgb, var(--interactive-accent) 24%, var(--background-modifier-border));
|
|
border-radius: var(--radius-m);
|
|
place-items: center;
|
|
}
|
|
|
|
.ink-inspector-tool-icon svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.ink-inspector-title {
|
|
font-size: var(--font-ui-medium);
|
|
font-weight: var(--font-semibold);
|
|
letter-spacing: -0.015em;
|
|
}
|
|
|
|
.ink-inspector-description {
|
|
margin-top: 1px;
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-smaller);
|
|
}
|
|
|
|
.ink-inspector-close {
|
|
display: grid;
|
|
width: 34px;
|
|
height: 34px;
|
|
padding: 0;
|
|
color: var(--text-muted);
|
|
background: transparent;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
box-shadow: none;
|
|
place-items: center;
|
|
transition: color 120ms ease, background-color 120ms ease, transform 120ms ease;
|
|
}
|
|
|
|
.ink-inspector-close:hover,
|
|
.ink-inspector-close:focus-visible {
|
|
color: var(--text-normal);
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.ink-inspector-close:active {
|
|
transform: scale(0.92);
|
|
}
|
|
|
|
.ink-stroke-preview {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 58px;
|
|
margin: 14px 0 12px;
|
|
padding: 0 20px;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(circle, color-mix(in srgb, var(--text-muted) 14%, transparent) 0.75px, transparent 0.8px),
|
|
color-mix(in srgb, var(--background-secondary) 76%, transparent);
|
|
background-size: 12px 12px, auto;
|
|
border: 1px solid color-mix(in srgb, var(--background-modifier-border) 70%, transparent);
|
|
border-radius: calc(var(--radius-m) + 2px);
|
|
box-shadow: inset 0 1px 4px rgb(0 0 0 / 5%);
|
|
}
|
|
|
|
.ink-stroke-preview-line {
|
|
width: 100%;
|
|
height: var(--ink-preview-width);
|
|
max-height: 26px;
|
|
background: var(--ink-preview-color);
|
|
border-radius: 999px;
|
|
box-shadow: 0 1px 2px rgb(0 0 0 / 18%);
|
|
transform: rotate(-1.5deg);
|
|
transition: height 100ms ease, background-color 100ms ease;
|
|
}
|
|
|
|
.ink-stroke-preview.is-highlighter .ink-stroke-preview-line {
|
|
opacity: 0.38;
|
|
}
|
|
|
|
.ink-stroke-preview.is-eraser .ink-stroke-preview-line {
|
|
height: 22px;
|
|
background: repeating-linear-gradient(135deg, var(--background-modifier-border) 0 4px, transparent 4px 8px);
|
|
border: 1px dashed var(--text-muted);
|
|
}
|
|
|
|
.ink-inspector-section-label {
|
|
margin: 0 0 7px;
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: var(--font-semibold);
|
|
letter-spacing: 0.015em;
|
|
}
|
|
|
|
.ink-inspector-section-row {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.ink-inspector-section-row.is-color {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.ink-inspector-section-row .ink-inspector-section-label {
|
|
margin-bottom: 7px;
|
|
}
|
|
|
|
.ink-width-value {
|
|
min-width: 54px;
|
|
margin-bottom: 7px;
|
|
padding: 2px 7px;
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-smaller);
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: center;
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.ink-color-value {
|
|
max-width: 132px;
|
|
margin-bottom: 7px;
|
|
overflow: hidden;
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-smaller);
|
|
font-variant-numeric: tabular-nums;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ink-color-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
gap: 12px 8px;
|
|
padding: 2px 0 4px;
|
|
}
|
|
|
|
.ink-tool-inspector .ink-color-swatch,
|
|
.ink-tool-inspector .ink-custom-color {
|
|
position: relative;
|
|
display: grid;
|
|
width: 44px;
|
|
height: 44px;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
color: var(--text-normal);
|
|
appearance: none;
|
|
background: var(--ink-swatch-color, transparent);
|
|
border: 2px solid color-mix(in srgb, var(--background-primary) 82%, var(--background-modifier-border));
|
|
border-radius: 50%;
|
|
box-shadow: 0 0 0 1px color-mix(in srgb, var(--text-muted) 25%, transparent), inset 0 0 0 1px rgb(255 255 255 / 14%);
|
|
justify-self: center;
|
|
place-items: center;
|
|
cursor: pointer;
|
|
transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
|
|
}
|
|
|
|
.ink-color-swatch:hover,
|
|
.ink-color-swatch:focus-visible,
|
|
.ink-custom-color:hover,
|
|
.ink-custom-color:focus-within {
|
|
filter: brightness(1.06);
|
|
transform: scale(1.04);
|
|
}
|
|
|
|
.ink-color-swatch:focus-visible,
|
|
.ink-custom-color:focus-within {
|
|
outline: 2px solid var(--background-modifier-border-focus);
|
|
outline-offset: 4px;
|
|
}
|
|
|
|
.ink-color-swatch.is-selected,
|
|
.ink-custom-color.is-selected {
|
|
box-shadow: 0 0 0 2px var(--background-primary), 0 0 0 4px var(--interactive-accent), inset 0 0 0 1px rgb(255 255 255 / 16%);
|
|
}
|
|
|
|
.ink-tool-inspector .ink-color-swatch.is-adaptive {
|
|
color: var(--text-normal);
|
|
font-size: var(--font-ui-smaller);
|
|
font-weight: var(--font-semibold);
|
|
background: linear-gradient(135deg, var(--background-primary) 0 50%, var(--text-normal) 50% 100%);
|
|
text-shadow: 0 1px 2px var(--background-primary);
|
|
}
|
|
|
|
.ink-tool-inspector .ink-custom-color {
|
|
background: conic-gradient(#ef4444, #f59e0b, #22c55e, #06b6d4, #3b82f6, #a855f7, #ef4444);
|
|
}
|
|
|
|
.ink-custom-color input {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.ink-custom-color-glyph {
|
|
display: grid;
|
|
width: 22px;
|
|
height: 22px;
|
|
color: white;
|
|
background: rgb(0 0 0 / 38%);
|
|
border-radius: 50%;
|
|
text-shadow: 0 1px 2px rgb(0 0 0 / 45%);
|
|
place-items: center;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ink-custom-color-glyph svg {
|
|
width: 13px;
|
|
height: 13px;
|
|
}
|
|
|
|
.ink-color-swatch-check {
|
|
position: absolute;
|
|
right: 2px;
|
|
bottom: 2px;
|
|
z-index: 1;
|
|
display: none;
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--text-on-accent);
|
|
background: var(--interactive-accent);
|
|
border: 2px solid var(--background-primary);
|
|
border-radius: 50%;
|
|
box-sizing: border-box;
|
|
place-items: center;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ink-color-swatch-check svg {
|
|
width: 10px;
|
|
height: 10px;
|
|
stroke-width: 3;
|
|
}
|
|
|
|
.ink-color-swatch.is-selected .ink-color-swatch-check,
|
|
.ink-custom-color.is-selected .ink-color-swatch-check {
|
|
display: grid;
|
|
}
|
|
|
|
.ink-width-presets {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 7px;
|
|
}
|
|
|
|
.ink-width-preset {
|
|
display: flex;
|
|
min-width: 0;
|
|
min-height: 46px;
|
|
padding: 6px 8px;
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-smaller);
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: var(--radius-s);
|
|
box-shadow: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 7px;
|
|
transition: color 120ms ease, background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
|
|
}
|
|
|
|
.ink-width-preset:hover,
|
|
.ink-width-preset:focus-visible {
|
|
color: var(--text-normal);
|
|
background: var(--background-modifier-hover);
|
|
}
|
|
|
|
.ink-width-preset.is-selected {
|
|
color: var(--text-normal);
|
|
background: color-mix(in srgb, var(--interactive-accent) 14%, var(--background-primary));
|
|
border-color: color-mix(in srgb, var(--interactive-accent) 68%, var(--background-modifier-border));
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--interactive-accent) 13%, transparent);
|
|
}
|
|
|
|
.ink-width-preset:active {
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
.ink-width-preset-sample {
|
|
display: block;
|
|
flex: 0 0 auto;
|
|
width: 25px;
|
|
height: var(--ink-preset-width);
|
|
max-height: 14px;
|
|
background: var(--ink-preset-color);
|
|
border-radius: 999px;
|
|
box-shadow: 0 1px 1px rgb(0 0 0 / 14%);
|
|
}
|
|
|
|
.ink-width-preset-sample.is-highlighter {
|
|
opacity: 0.45;
|
|
}
|
|
|
|
.ink-width-preset-sample.is-eraser {
|
|
height: min(var(--ink-preset-width), 12px);
|
|
background: repeating-linear-gradient(135deg, var(--text-muted) 0 2px, transparent 2px 4px);
|
|
border: 1px dashed var(--text-muted);
|
|
border-radius: 3px;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.ink-tool-inspector input.ink-width-slider {
|
|
--ink-range-progress: 0%;
|
|
width: 100%;
|
|
height: 32px;
|
|
margin: 7px 0 0;
|
|
padding: 0;
|
|
appearance: none;
|
|
background: transparent;
|
|
border: 0;
|
|
box-shadow: none;
|
|
cursor: ew-resize;
|
|
}
|
|
|
|
.ink-tool-inspector input.ink-width-slider::-webkit-slider-runnable-track {
|
|
width: 100%;
|
|
height: 5px;
|
|
background: linear-gradient(to right, var(--interactive-accent) 0 var(--ink-range-progress), var(--background-modifier-border) var(--ink-range-progress) 100%);
|
|
border: 0;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.ink-width-slider::-webkit-slider-thumb {
|
|
width: 20px;
|
|
height: 20px;
|
|
margin-top: -7.5px;
|
|
appearance: none;
|
|
background: var(--background-primary);
|
|
border: 3px solid var(--interactive-accent);
|
|
border-radius: 50%;
|
|
box-shadow: 0 1px 5px rgb(0 0 0 / 28%);
|
|
}
|
|
|
|
.ink-width-slider::-moz-range-track {
|
|
height: 5px;
|
|
background: var(--background-modifier-border);
|
|
border: 0;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.ink-width-slider::-moz-range-progress {
|
|
height: 5px;
|
|
background: var(--interactive-accent);
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.ink-width-slider::-moz-range-thumb {
|
|
width: 14px;
|
|
height: 14px;
|
|
background: var(--background-primary);
|
|
border: 3px solid var(--interactive-accent);
|
|
border-radius: 50%;
|
|
box-shadow: 0 1px 5px rgb(0 0 0 / 28%);
|
|
}
|
|
|
|
.ink-width-slider:focus-visible {
|
|
outline: none;
|
|
}
|
|
|
|
.ink-width-slider:focus-visible::-webkit-slider-thumb {
|
|
box-shadow: 0 0 0 4px color-mix(in srgb, var(--interactive-accent) 22%, transparent), 0 1px 5px rgb(0 0 0 / 28%);
|
|
}
|
|
|
|
.ink-width-slider:focus-visible::-moz-range-thumb {
|
|
box-shadow: 0 0 0 4px color-mix(in srgb, var(--interactive-accent) 22%, transparent), 0 1px 5px rgb(0 0 0 / 28%);
|
|
}
|
|
|
|
.ink-width-slider:active::-webkit-slider-thumb {
|
|
background: color-mix(in srgb, var(--interactive-accent) 12%, var(--background-primary));
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
.ink-width-slider:active::-moz-range-thumb {
|
|
background: color-mix(in srgb, var(--interactive-accent) 12%, var(--background-primary));
|
|
cursor: ew-resize;
|
|
}
|
|
|
|
.internal-embed.ink-layer-embed {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
.ink-embed-preview {
|
|
position: relative;
|
|
width: min(100%, var(--ink-embed-width));
|
|
aspect-ratio: var(--ink-embed-ratio);
|
|
min-height: 180px;
|
|
margin: 0.75em auto;
|
|
overflow: hidden;
|
|
background:
|
|
radial-gradient(circle, color-mix(in srgb, var(--text-muted) 11%, transparent) 1px, transparent 1px),
|
|
var(--background-primary);
|
|
background-size: 20px 20px, auto;
|
|
border: 1px solid color-mix(in srgb, var(--background-modifier-border) 78%, transparent);
|
|
border-radius: var(--radius-l);
|
|
box-shadow: 0 5px 22px rgb(0 0 0 / 8%);
|
|
transition: border-color 140ms ease, box-shadow 140ms ease;
|
|
}
|
|
|
|
.ink-embed-preview:hover,
|
|
.ink-embed-preview:focus-within {
|
|
border-color: color-mix(in srgb, var(--interactive-accent) 32%, var(--background-modifier-border));
|
|
box-shadow: 0 9px 30px rgb(0 0 0 / 12%);
|
|
}
|
|
|
|
.ink-embed-layer {
|
|
position: absolute;
|
|
inset: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.ink-embed-open {
|
|
position: absolute;
|
|
z-index: 2;
|
|
top: 8px;
|
|
right: 8px;
|
|
color: var(--text-muted);
|
|
background: color-mix(in srgb, var(--background-primary) 88%, transparent);
|
|
border: 1px solid var(--background-modifier-border);
|
|
box-shadow: var(--shadow-s);
|
|
opacity: 0;
|
|
transform: translateY(-2px);
|
|
transition: opacity 120ms ease, transform 120ms ease;
|
|
}
|
|
|
|
.ink-embed-preview:hover .ink-embed-open,
|
|
.ink-embed-preview:focus-within .ink-embed-open,
|
|
.ink-embed-open:focus-visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.ink-embed-preview.is-error::after,
|
|
.ink-embed-missing::after {
|
|
display: block;
|
|
padding: 1rem;
|
|
color: var(--text-error);
|
|
content: "Ink drawing could not be loaded";
|
|
}
|
|
|
|
@media (hover: none) {
|
|
.ink-embed-open {
|
|
opacity: 0.86;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.ink-layer-toolbar {
|
|
min-height: 70px;
|
|
max-width: calc(100% - 12px);
|
|
padding: 6px 8px;
|
|
}
|
|
|
|
.ink-toolbar-group {
|
|
padding-inline: 6px;
|
|
}
|
|
|
|
.ink-layer-tool {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
|
|
.ink-toolbar-instruments .ink-layer-tool {
|
|
width: 42px;
|
|
height: 56px;
|
|
}
|
|
|
|
.ink-canvas-view .ink-layer-toolbar button.ink-quick-color,
|
|
.ink-canvas-view .ink-layer-toolbar button.ink-color-more {
|
|
width: 36px;
|
|
min-width: 36px;
|
|
height: 36px;
|
|
}
|
|
|
|
.ink-layer-zoom {
|
|
width: auto;
|
|
min-width: 54px;
|
|
}
|
|
|
|
.ink-layer-tool svg {
|
|
width: 21px;
|
|
height: 21px;
|
|
}
|
|
|
|
.ink-tool-inspector {
|
|
top: calc(env(safe-area-inset-top) + 94px);
|
|
width: calc(100% - 20px);
|
|
max-height: calc(100% - env(safe-area-inset-top) - 114px);
|
|
padding: 16px;
|
|
border-radius: calc(var(--radius-l) + 6px);
|
|
}
|
|
|
|
.ink-canvas-view.toolbar-at-bottom .ink-tool-inspector {
|
|
bottom: calc(env(safe-area-inset-bottom) + 94px);
|
|
max-height: calc(100% - env(safe-area-inset-bottom) - 114px);
|
|
}
|
|
|
|
.ink-color-swatch,
|
|
.ink-custom-color {
|
|
width: 46px;
|
|
height: 46px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.ink-width-preset {
|
|
min-height: 48px;
|
|
}
|
|
|
|
.ink-canvas-status {
|
|
right: 10px;
|
|
bottom: max(10px, env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.ink-canvas-view.toolbar-at-bottom .ink-canvas-status {
|
|
top: max(10px, env(safe-area-inset-top));
|
|
}
|
|
|
|
.ink-canvas-status-meta {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-transparency: reduce) {
|
|
.ink-layer-toolbar,
|
|
.ink-tool-inspector,
|
|
.ink-canvas-status,
|
|
.ink-embed-open {
|
|
background: var(--background-primary);
|
|
backdrop-filter: none;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.ink-layer-tool,
|
|
.ink-quick-color,
|
|
.ink-color-more,
|
|
.ink-tool-selection-indicator,
|
|
.ink-canvas-empty-state,
|
|
.ink-tool-inspector,
|
|
.ink-color-swatch,
|
|
.ink-custom-color,
|
|
.ink-inspector-close,
|
|
.ink-stroke-preview-line,
|
|
.ink-width-preset,
|
|
.ink-embed-preview,
|
|
.ink-embed-open {
|
|
transition: none;
|
|
}
|
|
}
|