From 767a812ca8f5b44b6eb1443f3c33e2bfa951bd4b Mon Sep 17 00:00:00 2001 From: nzbin Date: Mon, 21 Nov 2022 22:10:54 +0800 Subject: [PATCH] docs: improve styles of the site --- docs/index.html | 48 ++++++++++++++++++++++++++++-------------------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/docs/index.html b/docs/index.html index c7c62e3..2899f01 100644 --- a/docs/index.html +++ b/docs/index.html @@ -23,32 +23,42 @@ font-size: 16px; } + .heading { + margin: 36px 0; + padding: 24px 32px; + background: rgba(255, 255, 255, 0.4); + border: 1px solid rgba(0, 32, 128, 0.12); + border-radius: 16px; + font-size: 18px; + } + .snippet { position: relative; background: #fff; - padding: 2rem 5%; - margin: 1.5rem 0; - box-shadow: 0 4px 12px -2px rgba(0, 32, 128, .1), 0 0 0 1px #f0f2f7; - border-radius: .25rem; + padding: 32px 5%; + margin: 24px 0; + box-shadow: 0 4px 12px -2px rgba(0, 32, 128, .1), 0 0 0 1px rgba(60, 80, 120, 0.1); + border-radius: 16px; } - .examples .snippet::before { + .snippet::before { display: inline-block; position: absolute; - top: 0; - left: 0; + top: 6px; + left: 6px; padding: 0 8px; content: attr(data-title); - font-size: .75rem; + font-size: 12px; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; color: white; background-color: rgb(255, 25, 100); - border-radius: .25rem 0 .25rem 0; + border-radius: 10px; + line-height: 20px; } - .examples .snippet:hover { + .snippet:hover { cursor: pointer; - outline: solid rgb(255, 25, 100); + outline: 2px solid rgb(255, 25, 100); } .stage { @@ -56,7 +66,7 @@ justify-content: center; align-items: center; position: relative; - padding: 2rem 0; + padding: 32px 0; margin: 0 -5%; overflow: hidden; } @@ -81,8 +91,8 @@ border-radius: 4px; font-size: 12px; line-height: 1; + color: white; background-color: rgba(97, 97, 97, .9); - color: #fff; transform: translateX(-50%); content: attr(aria-label); pointer-events: none; @@ -96,7 +106,7 @@
-
+
🔮 Three Dots is a set of CSS loading animations made with just single element. I hope this project can not only enhance your CSS skills but also inspire your imagination. @@ -216,7 +226,7 @@
-
+
⚗️ Experiment: The experimental loading animations require some special conditions.
@@ -286,7 +296,7 @@ integrity="sha512-7O5pXpc0oCRrxk8RUfDYFgn0nO1t+jLuIOQdOMRp4APB7uZ4vSjspzp5y6YDtDs4VzUSTbWzBFZ/LKJhnyFOKw==" crossorigin="anonymous" referrerpolicy="no-referrer">