Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions app/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,17 @@ rt {
[un-prose] .math-inline {
--uno: 'text-[1.05em]';
}

.home-fold-sheet {
pointer-events: none;
}

.home-fold-sheet .home-fold-hit {
pointer-events: auto;
}

@media (max-width: 759px) {
.home-fold-sheet {
pointer-events: auto;
}
}
19 changes: 17 additions & 2 deletions app/assets/css/rough-ink.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,26 @@ html.dark a[data-external] > .rough-ink[data-kind='mark'] {
transition: visibility 0s;
}

:is([data-hover-ink], [data-ink]):is(:hover, :focus-visible) > .rough-ink[data-reveal='hover'] .ink-reveal,
.ink-host:is(:hover, :focus-visible) [data-hover-ink] > .rough-ink[data-reveal='hover'] .ink-reveal {
html:not([data-sticky-cursor]) :is([data-hover-ink], [data-ink]):is(:hover, :focus-visible) > .rough-ink[data-reveal='hover'] .ink-reveal,
html[data-sticky-cursor] *:not([data-rail-ink]) > :is([data-hover-ink], [data-ink]):is(:hover, :focus-visible) > .rough-ink[data-reveal='hover'] .ink-reveal,
html:not([data-sticky-cursor]) .ink-host:is(:hover, :focus-visible) [data-hover-ink] > .rough-ink[data-reveal='hover'] .ink-reveal,
html[data-sticky-cursor] .ink-host:not([data-rail-ink]):is(:hover, :focus-visible) [data-hover-ink] > .rough-ink[data-reveal='hover'] .ink-reveal,
html[data-sticky-cursor] [data-rail-ink]:focus-visible [data-hover-ink] > .rough-ink[data-reveal='hover'] .ink-reveal {
stroke-dashoffset: 0;
}

html[data-sticky-cursor] [data-rail-ink]:hover [data-hover-ink] > .rough-ink[data-reveal='hover'],
html[data-sticky-cursor] [data-rail-ink][data-ink-draw] [data-hover-ink] > .rough-ink[data-reveal='hover'],
html[data-sticky-cursor] [data-rail-ink][data-ink-draw] [data-ink] > .rough-ink[data-reveal='hover'] {
visibility: visible;
transition: none;
}

html[data-sticky-cursor] [data-rail-ink]:hover [data-hover-ink] > .rough-ink[data-reveal='hover'] .ink-reveal {
/* Pointer drawing is owned by JS; do not snap the stroke closed. */
transition: none;
}

@media (prefers-reduced-motion: reduce) {
.rough-ink[data-reveal='hover'],
.rough-ink[data-reveal='hover'] .ink-reveal,
Expand Down
12 changes: 10 additions & 2 deletions app/components/SiteHub.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function toggleLayers() {
un-py-3
un-mx="[calc(-1*var(--hub-pad))]"
un-px="[var(--hub-pad)]"
un-lg="fixed top-[8vh] right-[var(--hub-chrome-inset)] left-auto z-10 items-start gap-6 w-[var(--hub-side)] min-h-0 max-h-[calc(100dvh-8vh-6rem)] m-0 p-0 overflow-x-hidden overflow-y-auto border-0 bg-transparent backdrop-blur-none"
un-lg="fixed top-[8vh] right-[var(--hub-chrome-inset)] left-auto z-10 items-start gap-6 w-[var(--hub-side)] min-h-0 max-h-[calc(100dvh-8vh-6rem)] m-0 p-0 overflow-x-visible overflow-y-auto border-0 bg-transparent backdrop-blur-none"
>
<header
un-flex
Expand Down Expand Up @@ -178,7 +178,6 @@ function toggleLayers() {
<div
class="hub-layers__clip"
un-min-h-0
un-overflow-hidden
>
<div
un-flex
Expand Down Expand Up @@ -224,6 +223,14 @@ function toggleLayers() {
</template>

<style scoped>
.hub-layers__clip {
overflow: hidden;
}

.hub-layers[data-open] .hub-layers__clip {
overflow: visible;
}

@media (max-width: 1199px) {
.hub-layers__clip {
opacity: 0;
Expand Down Expand Up @@ -276,6 +283,7 @@ function toggleLayers() {

@media (min-width: 1200px) {
.hub-layers__clip {
overflow: visible;
opacity: 1;
transform: none;
-webkit-mask-image: none;
Expand Down
2 changes: 2 additions & 0 deletions app/components/SiteRailLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ watch(() => props.active, async (_active, prev) => {
<NuxtLink
:to="to"
class="ink-host"
data-rail-ink=""
active-class=""
exact-active-class=""
un-flex
Expand All @@ -51,6 +52,7 @@ watch(() => props.active, async (_active, prev) => {
:data-hover-ink="active ? undefined : hoverKind"
:data-current="active ? '' : undefined"
un-relative
un-pb="[0.38em]"
un-font-serif
un-leading-none
un-text="[clamp(1.15rem,1.7vw,1.45rem)] ink/80 data-[current]:ink max-md:lg"
Expand Down
Loading