2023-01-09 18:02:16 +00:00
|
|
|
/* stylelint-disable no-descending-specificity */
|
2022-04-05 14:15:30 +00:00
|
|
|
.panel {
|
2024-03-04 16:24:29 +00:00
|
|
|
--__panel-background: var(--background);
|
|
|
|
--__panel-backdrop-filter: var(--backdrop-filter);
|
|
|
|
|
2024-03-25 14:29:24 +00:00
|
|
|
.tab-switcher .tabs {
|
|
|
|
background: var(--__panel-background);
|
|
|
|
backdrop-filter: var(--__panel-backdrop-filter);
|
|
|
|
}
|
|
|
|
|
2022-04-05 14:15:30 +00:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
|
2024-02-07 13:53:34 +00:00
|
|
|
.panel-heading {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
|
|
|
|
2022-04-05 14:15:30 +00:00
|
|
|
&::after,
|
|
|
|
& {
|
2024-02-13 00:09:43 +00:00
|
|
|
border-radius: var(--roundness);
|
2022-04-05 14:15:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
2023-01-09 18:02:16 +00:00
|
|
|
content: "";
|
2022-04-05 14:15:30 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2022-05-09 20:18:39 +00:00
|
|
|
z-index: 5;
|
2024-02-11 21:11:28 +00:00
|
|
|
box-shadow: var(--shadow);
|
2022-04-05 14:15:30 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-28 07:57:06 +00:00
|
|
|
.panel-body {
|
|
|
|
padding: var(--panel-body-padding, 0);
|
2024-03-04 16:24:29 +00:00
|
|
|
background: var(--background);
|
|
|
|
backdrop-filter: var(--__panel-backdrop-filter);
|
2022-04-28 07:57:06 +00:00
|
|
|
|
2024-03-25 14:29:24 +00:00
|
|
|
.tab-switcher .tabs {
|
|
|
|
background: none;
|
|
|
|
backdrop-filter: none;
|
|
|
|
}
|
|
|
|
|
2022-04-28 07:57:06 +00:00
|
|
|
&:empty::before {
|
|
|
|
content: "¯\\_(ツ)_/¯"; // Could use words but it'd require translations
|
|
|
|
display: block;
|
2024-03-06 22:28:16 +00:00
|
|
|
padding: 1em;
|
2022-04-28 07:57:06 +00:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
> p {
|
|
|
|
line-height: 1.3;
|
|
|
|
padding: 1em;
|
|
|
|
margin: 0;
|
|
|
|
}
|
2022-04-05 14:15:30 +00:00
|
|
|
}
|
|
|
|
|
2022-04-26 15:11:46 +00:00
|
|
|
.panel-heading,
|
|
|
|
.panel-footer {
|
2024-07-24 12:43:03 +00:00
|
|
|
--panel-heading-height-padding: calc(var(--panel-header-height) * 0.2);
|
|
|
|
--__panel-heading-gap: calc(var(--panel-header-height) * 0.1565);
|
|
|
|
--__panel-heading-height: var(--panel-header-height);
|
2022-08-22 21:50:38 +00:00
|
|
|
--__panel-heading-height-inner: calc(var(--__panel-heading-height) - 2 * var(--panel-heading-height-padding, 0));
|
2022-04-10 19:37:08 +00:00
|
|
|
|
2024-06-19 19:16:31 +00:00
|
|
|
font-size: calc(var(--panelHeaderSize) / 3.2);
|
2024-03-04 16:24:29 +00:00
|
|
|
backdrop-filter: var(--__panel-backdrop-filter);
|
2022-04-05 14:15:30 +00:00
|
|
|
position: relative;
|
|
|
|
box-sizing: border-box;
|
2022-04-20 16:44:31 +00:00
|
|
|
display: grid;
|
|
|
|
grid-auto-flow: column;
|
2022-04-20 21:39:54 +00:00
|
|
|
grid-template-columns: minmax(50%, 1fr);
|
2022-04-20 16:44:31 +00:00
|
|
|
grid-auto-columns: auto;
|
2022-09-29 08:52:48 +00:00
|
|
|
grid-column-gap: var(--__panel-heading-gap);
|
2022-04-05 14:15:30 +00:00
|
|
|
flex: none;
|
|
|
|
background-size: cover;
|
2022-08-22 21:50:38 +00:00
|
|
|
padding: var(--panel-heading-height-padding);
|
2022-04-25 21:10:51 +00:00
|
|
|
height: var(--__panel-heading-height);
|
2022-04-26 15:11:46 +00:00
|
|
|
line-height: var(--__panel-heading-height-inner);
|
2022-05-09 20:18:39 +00:00
|
|
|
z-index: 4;
|
2022-04-05 14:15:30 +00:00
|
|
|
|
|
|
|
&.-flexible-height {
|
2022-04-25 21:12:24 +00:00
|
|
|
--__panel-heading-height: auto;
|
2022-04-05 14:15:30 +00:00
|
|
|
|
|
|
|
&::after,
|
|
|
|
&::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-26 15:11:46 +00:00
|
|
|
&.-stub {
|
|
|
|
&,
|
|
|
|
&::after {
|
2024-02-13 00:09:43 +00:00
|
|
|
border-radius: var(--roundness);
|
2022-04-26 15:11:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-04-05 14:15:30 +00:00
|
|
|
&.-sticky {
|
|
|
|
position: sticky;
|
2022-04-10 15:44:22 +00:00
|
|
|
top: var(--navbar-height);
|
2022-04-05 14:15:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&::after,
|
|
|
|
&::before {
|
2023-01-09 18:02:16 +00:00
|
|
|
content: "";
|
2022-04-05 14:15:30 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
font-size: 1.3em;
|
2024-10-22 08:24:06 +00:00
|
|
|
margin: 0;
|
|
|
|
font-weight: normal;
|
2022-04-05 14:15:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.alert {
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
|
2022-04-20 16:44:31 +00:00
|
|
|
&: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;
|
2022-04-05 14:15:30 +00:00
|
|
|
}
|
2024-02-28 12:25:22 +00:00
|
|
|
|
|
|
|
> .alert {
|
|
|
|
line-height: calc(var(--__panel-heading-height-inner) - 2px);
|
|
|
|
}
|
2022-04-26 15:11:46 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO Should refactor panels into separate component and utilize slots
|
|
|
|
|
|
|
|
.panel-heading {
|
2024-02-13 00:09:43 +00:00
|
|
|
border-radius: var(--roundness) var(--roundness) 0 0;
|
2023-01-09 18:02:16 +00:00
|
|
|
border-width: 0 0 1px;
|
2022-04-28 13:36:53 +00:00
|
|
|
align-items: start;
|
2024-03-04 16:24:29 +00:00
|
|
|
background-image:
|
|
|
|
linear-gradient(to bottom, var(--background), var(--background)),
|
|
|
|
linear-gradient(to bottom, var(--__panel-background), var(--__panel-background));
|
2022-04-05 14:15:30 +00:00
|
|
|
|
2022-04-26 15:11:46 +00:00
|
|
|
&::after {
|
2024-02-07 13:53:34 +00:00
|
|
|
background-color: var(--background);
|
2022-04-26 15:11:46 +00:00
|
|
|
z-index: -2;
|
2024-03-25 15:02:36 +00:00
|
|
|
border-radius: var(--roundness) var(--roundness) 0 0;
|
2024-02-11 21:11:28 +00:00
|
|
|
box-shadow: var(--shadow);
|
2022-04-28 07:52:41 +00:00
|
|
|
}
|
|
|
|
|
2022-04-26 15:11:46 +00:00
|
|
|
&:not(.-flexible-height) {
|
2022-04-20 16:44:31 +00:00
|
|
|
> .button-default {
|
|
|
|
flex-shrink: 0;
|
2022-04-05 14:15:30 +00:00
|
|
|
}
|
|
|
|
}
|
2022-10-09 15:50:13 +00:00
|
|
|
|
|
|
|
.rightside-button {
|
|
|
|
align-self: stretch;
|
|
|
|
text-align: center;
|
|
|
|
width: var(--__panel-heading-height);
|
|
|
|
height: var(--__panel-heading-height);
|
|
|
|
margin: calc(-1 * var(--panel-heading-height-padding)) 0;
|
|
|
|
margin-right: calc(-1 * var(--__panel-heading-gap));
|
|
|
|
|
|
|
|
> button {
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding: calc(1 * var(--panel-heading-height-padding)) 0;
|
|
|
|
height: 100%;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.rightside-icon {
|
|
|
|
align-self: stretch;
|
|
|
|
text-align: center;
|
|
|
|
width: var(--__panel-heading-height);
|
|
|
|
margin-right: calc(-1 * var(--__panel-heading-gap));
|
|
|
|
|
|
|
|
svg {
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
}
|
2022-04-05 14:15:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.panel-footer {
|
2024-02-13 00:09:43 +00:00
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top-right-radius: 0;
|
2022-04-21 21:28:58 +00:00
|
|
|
align-items: center;
|
2023-01-09 18:02:16 +00:00
|
|
|
border-width: 1px 0 0;
|
2022-04-05 14:15:30 +00:00
|
|
|
border-style: solid;
|
2024-02-11 21:11:28 +00:00
|
|
|
border-color: var(--border);
|
2024-03-04 16:24:29 +00:00
|
|
|
background-color: var(--__panel-background);
|
2022-04-05 14:15:30 +00:00
|
|
|
}
|
2023-01-09 18:02:16 +00:00
|
|
|
/* stylelint-enable no-descending-specificity */
|