From a03114db7de9d4c32b5a626ac797c118fe6e2df7 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Mon, 8 Aug 2022 20:52:15 -0600 Subject: [PATCH 1/2] feat(demo): add faq link --- src/demo/css/style.css | 29 ++++++++++++++++++++++++++++- src/demo/index.php | 7 +++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/demo/css/style.css b/src/demo/css/style.css index fa633e18..8c90aeab 100644 --- a/src/demo/css/style.css +++ b/src/demo/css/style.css @@ -74,7 +74,6 @@ body { } @media only screen and (max-width: 1024px) { - .properties, .output { width: 100%; @@ -310,3 +309,31 @@ a.icon { .tooltip:disabled:before { content: "You must first input valid text."; } + +/* link underline effect */ +a.underline-hover { + position: relative; + text-decoration: none; + color: var(--text); + margin-top: 2em; + display: inline-flex; + align-items: center; + gap: 0.25em; +} +.underline-hover::before { + content: ""; + position: absolute; + bottom: 0; + right: 0; + width: 0; + height: 1px; + background-color: var(--blue-light); + transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); +} +@media (hover: hover) and (pointer: fine) { + .underline-hover:hover::before { + left: 0; + right: auto; + width: 100%; + } +} diff --git a/src/demo/index.php b/src/demo/index.php index 1ad7a7d7..4afd7159 100644 --- a/src/demo/index.php +++ b/src/demo/index.php @@ -138,6 +138,13 @@ function gtag() { Copy To Clipboard + + + + + + Frequently Asked Questions + From 13d1ad23bdfa7348d09939c7a687b7ee5e79e549 Mon Sep 17 00:00:00 2001 From: Jonah Lawrence Date: Mon, 8 Aug 2022 22:21:00 -0600 Subject: [PATCH 2/2] move link to bottom, change icon --- src/demo/css/style.css | 6 ++++ src/demo/index.php | 74 +++++++++++++++++++++++------------------- 2 files changed, 46 insertions(+), 34 deletions(-) diff --git a/src/demo/css/style.css b/src/demo/css/style.css index 8c90aeab..bde0a621 100644 --- a/src/demo/css/style.css +++ b/src/demo/css/style.css @@ -262,6 +262,12 @@ a.icon { color: var(--blue-light); } +.top-bottom-split { + display: flex; + flex-direction: column; + justify-content: space-between; +} + /* tooltips */ .tooltip { display: inline-flex; diff --git a/src/demo/index.php b/src/demo/index.php index 4afd7159..1f339ac6 100644 --- a/src/demo/index.php +++ b/src/demo/index.php @@ -106,45 +106,51 @@ function gtag() { -
-

Preview

- - Readme Typing SVG -
Loading...
- - - -
-

Markdown

-
- +
+
+

Preview

+ + Readme Typing SVG +
Loading...
+ + + +
+

Markdown

+
+ +
+ +
- -
+
+

HTML

+
+ +
-
-

HTML

-
- +
- -
- - - - - - Frequently Asked Questions - +