Use display: flow-root

This commit is contained in:
Mimi 2020-06-07 22:55:49 +08:00
parent 8e080e7e27
commit ec2bf48b94
2 changed files with 2 additions and 7 deletions

View File

@ -1,6 +1,5 @@
.reading-progress-bar { .reading-progress-bar {
background: unquote(hexo-config('reading_progress.color')); background: unquote(hexo-config('reading_progress.color'));
display: block;
height: unquote(hexo-config('reading_progress.height')); height: unquote(hexo-config('reading_progress.height'));
left: 0; left: 0;
position: fixed; position: fixed;

View File

@ -65,23 +65,19 @@ kbd {
figcaption { figcaption {
background: var(--highlight-gutter-background); background: var(--highlight-gutter-background);
color: var(--highlight-foreground); color: var(--highlight-foreground);
display: flex; display: flow-root;
font-size: $table-font-size; font-size: $table-font-size;
justify-content: space-between;
line-height: 1.2; line-height: 1.2;
padding: .5em; padding: .5em;
a { a {
color: var(--highlight-foreground); color: var(--highlight-foreground);
float: right;
&:hover { &:hover {
border-bottom-color: var(--highlight-foreground); border-bottom-color: var(--highlight-foreground);
} }
} }
a, span {
min-width: 0;
}
} }
.gutter { .gutter {