From fea27f8fd4e30ddc56c5f3277c8be4c5245a77bc Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sun, 8 May 2022 22:05:48 -0700 Subject: [PATCH] Update inline block skeleton loaders --- index.html | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index 09092b2..cc8bd6d 100644 --- a/index.html +++ b/index.html @@ -38,27 +38,28 @@ } .skeleton-inline-container { - display: flex; + display: grid; + grid-template-columns: 12% 1fr; + grid-template-rows: repeat(15, 1em); + gap: .15em; } - .skeleton-inline-square { - inline-size: 1em; - block-size: 1em; - animation: shimmer 1s infinite alternate; - background: hsl(0deg 0% 50%); - } - - .skeleton-inline-circle { - inline-size: 1em; - block-size: 1em; - border-radius: 1em; + .skeleton-inline-portrait { + grid-row-end: span 5; + aspect-ratio: 1; + border-radius: 5em; animation: shimmer 1s infinite alternate; background: hsl(0deg 0% 50%); } .skeleton-inline-line { - flex-grow: 1; - block-size: 1em; + animation: shimmer 1s infinite alternate; + background: hsl(0deg 0% 50%); + } + + .skeleton-inline-block { + grid-column-end: span 2; + grid-row-end: span 10; animation: shimmer 1s infinite alternate; background: hsl(0deg 0% 50%); } @@ -154,11 +155,15 @@

A block skeleton line loader:

-

An inline skeleton square, circle, and line loader:

+

Multiple skeleton loaders in a block:

- - + + + + + +
-- 2.47.3