aboutsummaryrefslogtreecommitdiff
path: root/src/panel.scss
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-04-26 18:11:46 +0300
committerHenry Jameson <me@hjkos.com>2022-04-26 18:12:58 +0300
commitf0f56bf1485dfbfa73fda5437fa928ce61b4b43a (patch)
treed8c88c17ba4907aad6b77a5d5ce2c881a00e85b7 /src/panel.scss
parent49db16318b8072cf15f2ffd5a8a237ee86034b74 (diff)
more cleanup/fixes, gap b/w panels and topbar is closer to original now
Diffstat (limited to 'src/panel.scss')
-rw-r--r--src/panel.scss80
1 files changed, 42 insertions, 38 deletions
diff --git a/src/panel.scss b/src/panel.scss
index 2f0b9ba5..b801976b 100644
--- a/src/panel.scss
+++ b/src/panel.scss
@@ -32,7 +32,8 @@
text-align: center;
}
-.panel-heading {
+.panel-heading,
+.panel-footer {
--panel-heading-height-padding: 0.6em;
--__panel-heading-height: 3.2em;
--__panel-heading-height-inner: calc(var(--__panel-heading-height) - 2 * var(--panel-heading-height-padding));
@@ -45,17 +46,10 @@
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;
background-size: cover;
- padding: 0.6em 0.6em;
- text-align: left;
- line-height: var(--__panel-heading-height-inner);
- color: var(--panelText);
- background-color: $fallback--bg;
- background-color: var(--bg, $fallback--bg);
- align-items: center;
+ padding: 0.6em;
height: var(--__panel-heading-height);
+ line-height: var(--__panel-heading-height-inner);
z-index: 2;
&.-flexible-height {
@@ -67,6 +61,14 @@
}
}
+ &.-stub {
+ &,
+ &::after {
+ border-radius: $fallback--panelRadius;
+ border-radius: var(--panelRadius, $fallback--panelRadius);
+ }
+ }
+
&.-sticky {
position: sticky;
top: var(--navbar-height);
@@ -83,15 +85,6 @@
pointer-events: none;
}
- &::after {
- background-color: $fallback--fg;
- background-color: var(--panel, $fallback--fg);
- z-index: -2;
- border-radius: $fallback--panelRadius $fallback--panelRadius 0 0;
- border-radius: var(--panelRadius, $fallback--panelRadius) var(--panelRadius, $fallback--panelRadius) 0 0;
- box-shadow: var(--panelHeaderShadow);
- }
-
.title {
font-size: 1.3em;
}
@@ -125,7 +118,37 @@
padding-bottom: 0;
align-self: stretch;
}
+ }
+}
+
+// TODO Should refactor panels into separate component and utilize slots
+
+.panel-heading {
+ border-radius: $fallback--panelRadius $fallback--panelRadius 0 0;
+ border-radius: var(--panelRadius, $fallback--panelRadius) var(--panelRadius, $fallback--panelRadius) 0 0;
+ border-width: 0 0 1px 0;
+ align-items: left;
+ // panel theme
+ color: var(--panelText);
+ background-color: $fallback--bg;
+ background-color: var(--bg, $fallback--bg);
+ &::after {
+ background-color: $fallback--fg;
+ background-color: var(--panel, $fallback--fg);
+ z-index: -2;
+ border-radius: $fallback--panelRadius $fallback--panelRadius 0 0;
+ border-radius: var(--panelRadius, $fallback--panelRadius) var(--panelRadius, $fallback--panelRadius) 0 0;
+ box-shadow: var(--panelHeaderShadow);
+ }
+
+ a,
+ .-link {
+ color: $fallback--link;
+ color: var(--panelLink, $fallback--link);
+ }
+
+ &:not(.-flexible-height) {
> .button-default {
flex-shrink: 0;
@@ -153,30 +176,11 @@
}
}
}
-
- a,
- .-link {
- color: $fallback--link;
- color: var(--panelLink, $fallback--link);
- }
}
-.panel-heading.stub {
- border-radius: $fallback--panelRadius;
- border-radius: var(--panelRadius, $fallback--panelRadius);
-}
-
-/* TODO Should remove timeline-footer from here when we refactor panels into
- * separate component and utilize slots
- */
.panel-footer {
- display: flex;
border-radius: 0 0 $fallback--panelRadius $fallback--panelRadius;
border-radius: 0 0 var(--panelRadius, $fallback--panelRadius) var(--panelRadius, $fallback--panelRadius);
- flex: none;
- padding: 0.6em 0.6em;
- text-align: left;
- line-height: 2;
align-items: center;
border-width: 1px 0 0 0;
border-style: solid;