Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Home: nothing shows past a tile's edge

Adarshcf848fe33892
diff --git a/src/components/home/home-bento.css b/src/components/home/home-bento.css
index 51201ca2..0f16d7c7 100644
--- a/src/components/home/home-bento.css
+++ b/src/components/home/home-bento.css
@@ -340,34 +340,57 @@
min-width: 0;
overflow: hidden;
border-radius: 14px;
- border: 1px solid rgb(255 255 255 / 8%);
background: var(--media);
color: #fff;
text-decoration: none;
- /* Transparent, so the box-shadow ring shows; forced colours (Windows High Contrast) paint it instead. */
- outline: 2px solid transparent;
- outline-offset: 2px;
container-type: inline-size;
- transition:
- border-color var(--motion-base) var(--ease-standard),
- transform var(--motion-base) var(--ease-standard),
- box-shadow 0.15s ease;
-webkit-tap-highlight-color: transparent;
}
+/*
+ * The tile's hairline edge is a ring drawn over its picture (not a border around it): a border leaves a pixel between
+ * the picture's box and the tile's edge, and on a 2x screen Safari places a moving picture's layer a hair off, so a sliver
+ * of the unshaded picture showed through the bottom edge.
+ */
+.hb-tile::before {
+ content: "";
+ position: absolute;
+ inset: 0;
+ z-index: 4;
+ border-radius: inherit;
+ box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
+ pointer-events: none;
+ transition: box-shadow var(--motion-base) var(--ease-standard);
+}
/* A pointed-at tile brightens its edge and stays in place: a tile moving out of the grid reads as a misalignment. */
@media (hover: hover) {
- .hb-tile:hover {
- border-color: rgb(255 255 255 / 26%);
+ .hb-tile:hover::before {
+ box-shadow: inset 0 0 0 1px rgb(255 255 255 / 26%);
}
}
-.hb-tile:focus-visible {
+/*
+ * The tile clips everything in it to its rounded corners with a clip path: Safari's overflow clip lets a playing clip, a
+ * zooming still or the reel's glowing progress line show past the corners and under the bottom edge. A clip path also
+ * cuts anything drawn outside the tile, so the keyboard's ring is drawn just inside its edge.
+ */
+.hb-tile {
+ clip-path: inset(0 round 14px);
+}
+.hb-tile::after {
+ content: "";
+ position: absolute;
+ inset: 0;
+ z-index: 5;
+ border-radius: inherit;
+ pointer-events: none;
+}
+.hb-tile:focus-visible::after {
box-shadow:
- 0 0 0 2px var(--background),
- 0 0 0 4px var(--ring);
+ inset 0 0 0 2px var(--ring),
+ inset 0 0 0 4px var(--background);
}
@media (forced-colors: active) {
- .hb-tile:focus-visible {
- outline-color: CanvasText;
+ .hb-tile:focus-visible::after {
+ border: 3px solid CanvasText;
}
}
.hb-fill {
@@ -386,7 +409,7 @@
/* White words read at 4.5:1 over any frame: the lower part of each tile is shaded. */
.hb-shade {
position: absolute;
- inset: auto 0 0;
+ inset: auto -1px -1px;
height: 62%;
background: linear-gradient(to top, rgb(0 0 0 / 90%), rgb(0 0 0 / 55%) 45%, transparent);
pointer-events: none;