diff --git a/content/demo/index.md b/content/demo/index.md index fe90674..6d4039e 100644 --- a/content/demo/index.md +++ b/content/demo/index.md @@ -359,6 +359,62 @@ To switch the keyboard layout, press ⌘ Super + Space. You know what? I'm gonna say some very important stuff, so important that even **bold** is not enough. +## Deleted and Inserted + +```html +Text deleted Text added +``` + +Text deleted Text added + +## Time + +```html + +``` + + + +For blinking animation, make the time bold + +```html + +``` + + + +## Progress bar + +```html + +``` + + + +## Sample Output + +```html +Sample Output +``` + +Sample Output + +## Inline Quote + +```html +Inline Quote +``` + +Blah blah Inline Quote hmm. + +## Grammar Mistakes + +```html +Trying to replicate grammar mistakes +``` + +Yeet the sus drip while vibing with the TikTok fam on a cap-free boomerang. + ## External link ```html diff --git a/sass/_code.scss b/sass/_code.scss index 7b37b1e..e2b94f9 100644 --- a/sass/_code.scss +++ b/sass/_code.scss @@ -1,7 +1,8 @@ // CODE pre, code, -kbd { +kbd, +samp { font-family: var(--font-monospace-code); } diff --git a/sass/_typography.scss b/sass/_typography.scss index f9afd8c..014e07d 100644 --- a/sass/_typography.scss +++ b/sass/_typography.scss @@ -56,14 +56,94 @@ blockquote { } } -mark { +mark, +del, +ins, +time, +samp, +q { box-shadow: var(--edge-highlight); border-radius: var(--rounded-corner-small); - background-color: var(--primary-color-alpha); padding: 0.125rem 0.375rem; +} + +mark { + background-color: var(--primary-color-alpha); color: var(--primary-color); } +del { + background-color: var(--red-bg); + color: var(--red-fg); + text-decoration: line-through; + text-decoration-thickness: max(1px, 0.0625em); +} + +ins { + background-color: var(--green-bg); + color: var(--green-fg); + text-decoration: underline; + text-decoration-thickness: max(1px, 0.0625em); +} + +time { + background-color: var(--primary-color-alpha); + color: var(--primary-color); + font-weight: bold; + + strong { + animation: clock-blink 1s infinite; + font-weight: bold; + + @keyframes clock-blink { + from { + color: var(--primary-color); + } + + 25% { + color: var(--primary-color-alpha); + } + + 50% { + color: var(--primary-color); + } + } + } +} + +samp { + background-color: var(--fg-muted-1); + color: var(--fg-muted-5); + font-size: 0.875rem; +} + +q { + background-color: var(--fg-muted-1); + color: var(--fg-muted-5); + font-style: italic; +} + +u { + text-decoration: underline; + text-decoration-style: wavy; + text-decoration-color: var(--red-fg); + text-decoration-thickness: max(1px, 0.0625em); +} + +progress { + border: none; + border-radius: 999px; + background-color: var(--fg-muted-1); + height: 0.5rem; + color: var(--primary-color); + + &::-webkit-progress-bar, + &::-moz-progress-bar { + border-radius: 999px; + background-color: var(--primary-color); + } +} + kbd { display: inline-block; transition: var(--transition);