From ec2bf48b94288fa79c8507783f60a9b1e71be675 Mon Sep 17 00:00:00 2001 From: Mimi <1119186082@qq.com> Date: Sun, 7 Jun 2020 22:55:49 +0800 Subject: [PATCH] Use `display: flow-root` --- source/css/_common/components/reading-progress.styl | 1 - source/css/_common/scaffolding/highlight/highlight.styl | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/source/css/_common/components/reading-progress.styl b/source/css/_common/components/reading-progress.styl index a8fdd9e..84e0944 100644 --- a/source/css/_common/components/reading-progress.styl +++ b/source/css/_common/components/reading-progress.styl @@ -1,6 +1,5 @@ .reading-progress-bar { background: unquote(hexo-config('reading_progress.color')); - display: block; height: unquote(hexo-config('reading_progress.height')); left: 0; position: fixed; diff --git a/source/css/_common/scaffolding/highlight/highlight.styl b/source/css/_common/scaffolding/highlight/highlight.styl index 7995430..44d623d 100644 --- a/source/css/_common/scaffolding/highlight/highlight.styl +++ b/source/css/_common/scaffolding/highlight/highlight.styl @@ -65,23 +65,19 @@ kbd { figcaption { background: var(--highlight-gutter-background); color: var(--highlight-foreground); - display: flex; + display: flow-root; font-size: $table-font-size; - justify-content: space-between; line-height: 1.2; padding: .5em; a { color: var(--highlight-foreground); + float: right; &:hover { border-bottom-color: var(--highlight-foreground); } } - - a, span { - min-width: 0; - } } .gutter {