minor improvements

This commit is contained in:
Henry Jameson 2022-09-29 11:52:48 +03:00
parent a4e0eeea7a
commit ce6ce4b6cd
4 changed files with 9 additions and 6 deletions

View File

@ -36,7 +36,7 @@
width: var(--__panel-heading-height); width: var(--__panel-heading-height);
height: var(--__panel-heading-height); height: var(--__panel-heading-height);
margin: calc(-1 * var(--panel-heading-height-padding)) 0; margin: calc(-1 * var(--panel-heading-height-padding)) 0;
margin-right: -0.5em; margin-right: calc(-1 * var(--__panel-heading-gap));
> button { > button {
box-sizing: border-box; box-sizing: border-box;

View File

@ -19,7 +19,7 @@
width: var(--__panel-heading-height); width: var(--__panel-heading-height);
height: var(--__panel-heading-height); height: var(--__panel-heading-height);
margin: calc(-1 * var(--panel-heading-height-padding)) 0; margin: calc(-1 * var(--panel-heading-height-padding)) 0;
margin-right: -0.5em; margin-right: calc(-1 * var(--__panel-heading-gap));
> button { > button {
box-sizing: border-box; box-sizing: border-box;
@ -38,7 +38,7 @@
align-self: stretch; align-self: stretch;
text-align: center; text-align: center;
width: var(--__panel-heading-height); width: var(--__panel-heading-height);
margin-right: -0.5em; margin-right: calc(-1 * var(--__panel-heading-gap));
svg { svg {
font-size: 1.2em; font-size: 1.2em;

View File

@ -5,9 +5,11 @@
v-if="!embedded" v-if="!embedded"
:timeline-name="timelineName" :timeline-name="timelineName"
/> />
<div class="timeline-header-button"> <div
class="timeline-header-button"
v-if="showScrollTop && !embedded"
>
<button <button
v-if="showScrollTop"
class="button-unstyled scroll-to-top-button" class="button-unstyled scroll-to-top-button"
type="button" type="button"
@click="scrollToTop" @click="scrollToTop"

View File

@ -45,6 +45,7 @@
.panel-heading, .panel-heading,
.panel-footer { .panel-footer {
--panel-heading-height-padding: 0.6em; --panel-heading-height-padding: 0.6em;
--__panel-heading-gap: 0.5em;
--__panel-heading-height: 3.2em; --__panel-heading-height: 3.2em;
--__panel-heading-height-inner: calc(var(--__panel-heading-height) - 2 * var(--panel-heading-height-padding, 0)); --__panel-heading-height-inner: calc(var(--__panel-heading-height) - 2 * var(--panel-heading-height-padding, 0));
@ -54,7 +55,7 @@
grid-auto-flow: column; grid-auto-flow: column;
grid-template-columns: minmax(50%, 1fr); grid-template-columns: minmax(50%, 1fr);
grid-auto-columns: auto; grid-auto-columns: auto;
grid-column-gap: 0.5em; grid-column-gap: var(--__panel-heading-gap);
flex: none; flex: none;
background-size: cover; background-size: cover;
padding: var(--panel-heading-height-padding); padding: var(--panel-heading-height-padding);