diff --git a/src/demo/css/style.css b/src/demo/css/style.css index fa633e18..bde0a621 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%; @@ -263,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; @@ -310,3 +315,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..1f339ac6 100644 --- a/src/demo/index.php +++ b/src/demo/index.php @@ -106,37 +106,50 @@ function gtag() { -
-

Preview

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

Markdown

-
- +
+
+

Preview

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

Markdown

+
+ +
+ +
- -
+
+

HTML

+
+ +
-
-

HTML

-
- +
- - +
+