diff options
| author | Henry Jameson <me@hjkos.com> | 2022-04-20 19:44:31 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2022-04-20 19:44:49 +0300 |
| commit | 631b8b93a4a8dd548bae5ab9fa7bc4d6e892ae3f (patch) | |
| tree | 70eafaf1c189471885124e2a52401574f60b2464 /src/panel.scss | |
| parent | aef6d529516f34d346faa7e6c424a16ff5f9a202 (diff) | |
tons of fixes mainly aimed at panel headings
Diffstat (limited to 'src/panel.scss')
| -rw-r--r-- | src/panel.scss | 77 |
1 files changed, 41 insertions, 36 deletions
diff --git a/src/panel.scss b/src/panel.scss index 147b17a9..167c60a6 100644 --- a/src/panel.scss +++ b/src/panel.scss @@ -39,7 +39,11 @@ position: relative; box-sizing: border-box; - display: flex; + display: grid; + grid-auto-flow: column; + grid-template-columns: 1fr; + grid-auto-columns: auto; + grid-column-gap: 0.5em; flex: none; border-radius: $fallback--panelRadius $fallback--panelRadius 0 0; border-radius: var(--panelRadius, $fallback--panelRadius) var(--panelRadius, $fallback--panelRadius) 0 0; @@ -89,7 +93,6 @@ } .title { - flex: 1 0 auto; font-size: 1.3em; } @@ -110,42 +113,44 @@ overflow-x: hidden; } - > .button-default, - > .alert { - height: var(--__panel-heading-height-inner); - min-height: 0; - box-sizing: border-box; - margin: 0; - margin-left: 0.5em; - min-width: 1px; - padding-top: 0; - padding-bottom: 0; - } - - > .button-default { - flex-shrink: 0; - - &, - i[class*=icon-] { - color: $fallback--text; - color: var(--btnPanelText, $fallback--text); - } - - &:active { - background-color: $fallback--fg; - background-color: var(--btnPressedPanel, $fallback--fg); - color: $fallback--text; - color: var(--btnPressedPanelText, $fallback--text); - } - - &:disabled { - color: $fallback--text; - color: var(--btnDisabledPanelText, $fallback--text); + &:not(.-flexible-height) { + > .button-default, + > .alert { + height: var(--__panel-heading-height-inner); + min-height: 0; + box-sizing: border-box; + margin: 0; + min-width: 1px; + padding-top: 0; + padding-bottom: 0; + align-self: stretch; } - &.toggled { - color: $fallback--text; - color: var(--btnToggledPanelText, $fallback--text); + > .button-default { + flex-shrink: 0; + + &, + i[class*=icon-] { + color: $fallback--text; + color: var(--btnPanelText, $fallback--text); + } + + &:active { + background-color: $fallback--fg; + background-color: var(--btnPressedPanel, $fallback--fg); + color: $fallback--text; + color: var(--btnPressedPanelText, $fallback--text); + } + + &:disabled { + color: $fallback--text; + color: var(--btnDisabledPanelText, $fallback--text); + } + + &.toggled { + color: $fallback--text; + color: var(--btnToggledPanelText, $fallback--text); + } } } |
