From fb09ccd7d3d1d7e93333f9f32cf01183b20935da Mon Sep 17 00:00:00 2001 From: Gabriel Cozma Date: Sun, 28 Apr 2024 21:44:44 +0300 Subject: [PATCH] cleanup: Make the time show a blink if it the time is bold (not span) --- CHANGELOG.md | 4 +++- styles/common.scss | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79696ed..da68291 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ - Remove dublicated styles that are now provided by `normalize.css` +- Provide a easier way to make the time blink in the `time` tag (now using bold instead of `span`) + ### Fix(es) - Allow a changable dark mode background color for code snippets @@ -30,4 +32,4 @@ ### Features -- **spoiler:** Provide a way to show spoilers while blurring the text \ No newline at end of file +- **spoiler:** Provide a way to show spoilers while blurring the text diff --git a/styles/common.scss b/styles/common.scss index c74c7cc..35af76c 100644 --- a/styles/common.scss +++ b/styles/common.scss @@ -234,8 +234,9 @@ time { font-size: 0.875rem; cursor: pointer; - span { + strong { display: inline-block; + font-weight: 700; animation: blink 0.7s infinite alternate; } @@ -255,7 +256,7 @@ time { font-weight: 800; padding-top: 0.25rem; - span { + strong { animation: none; } }