From 9c573fb454ae634ccfe06f5b4a099a074de0d7b2 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Wed, 22 Feb 2023 14:18:36 -0500 Subject: [PATCH] add autoloader to docs --- docs/assets/styles/docs.css | 11 +++++++++++ docs/index.html | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/assets/styles/docs.css b/docs/assets/styles/docs.css index a33e3dd42..1341846af 100644 --- a/docs/assets/styles/docs.css +++ b/docs/assets/styles/docs.css @@ -8,6 +8,17 @@ html { box-sizing: inherit; } +/* Show custom elements only after they're registered */ +:not(:defined), +:not(:defined) * { + opacity: 0; +} + +:defined { + opacity: 1; + transition: 0.1s opacity; +} + body { font-family: var(--sl-font-sans); font-size: var(--sl-font-size-medium); diff --git a/docs/index.html b/docs/index.html index 16a440cb1..19499aac2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -39,9 +39,9 @@ - + - +