2024-04-30 12:16:09 +02:00
|
|
|
@define-mixin block-type $type {
|
|
|
|
.block--$(type) {
|
2023-11-23 17:07:49 +01:00
|
|
|
.block__content {
|
2024-04-30 12:16:09 +02:00
|
|
|
border-color: var(--$(type)-border-color);
|
|
|
|
background: var(--$(type)-dark-color);
|
2023-11-23 17:07:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.block__footer {
|
2024-04-30 12:16:09 +02:00
|
|
|
background: var(--$(type)-color);
|
2023-11-23 17:07:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.block--muted {
|
2024-04-30 12:16:09 +02:00
|
|
|
border-color: var(--$(type)-color);
|
2023-11-23 17:07:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.block--fixed {
|
2024-04-30 12:16:09 +02:00
|
|
|
background: var(--$(type)-color);
|
2023-11-23 17:07:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
& a {
|
2024-04-30 12:16:09 +02:00
|
|
|
color: var(--$(type)-link-color);
|
2023-11-23 17:07:49 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--link-hover-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.block {
|
|
|
|
margin-bottom: var(--padding-normal);
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.block .block {
|
|
|
|
border-radius: var(--border-radius-inner);
|
|
|
|
}
|
|
|
|
|
|
|
|
.block--muted {
|
|
|
|
border-color: var(--primary-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.block--borderless {
|
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.block__content {
|
|
|
|
border: 1px solid var(--primary-border-color);
|
|
|
|
border-radius: var(--border-radius-outer);
|
|
|
|
padding: var(--padding-normal);
|
|
|
|
background: var(--primary-dark-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.block__content--small {
|
|
|
|
padding: var(--padding-small);
|
|
|
|
}
|
|
|
|
|
2024-04-30 12:16:09 +02:00
|
|
|
.block__footer, .block__footer--small {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2023-11-23 17:07:49 +01:00
|
|
|
background: var(--primary-muted-color);
|
|
|
|
padding: var(--padding-normal);
|
|
|
|
margin: var(--padding-normal);
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.block__footer--small {
|
|
|
|
margin: var(--padding-small);
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2024-04-30 12:16:09 +02:00
|
|
|
@mixin if-phone {
|
2023-11-23 17:07:49 +01:00
|
|
|
.block__content {
|
|
|
|
padding: var(--padding-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
.block__footer {
|
|
|
|
margin: var(--padding-small);
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-04-30 12:16:09 +02:00
|
|
|
.block__header, .block__header--single-item {
|
2023-11-23 17:07:49 +01:00
|
|
|
line-height: var(--block-header-height);
|
|
|
|
padding: 0 var(--padding-normal);
|
|
|
|
font-size: var(--font-header-size);
|
2024-04-28 18:51:40 +02:00
|
|
|
margin-bottom: var(--padding-small);
|
2023-11-23 17:07:49 +01:00
|
|
|
|
|
|
|
& > .fa {
|
|
|
|
margin-right: var(--padding-normal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.block__header--single-item {
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
font-weight: bold;
|
|
|
|
color: var(--link-color) !important;
|
|
|
|
}
|
|
|
|
|
2024-04-28 18:51:40 +02:00
|
|
|
.block__header__buttons {
|
|
|
|
display: flex;
|
|
|
|
gap: var(--padding-normal);
|
|
|
|
line-height: var(--block-header-height);
|
|
|
|
font-size: var(--font-size);
|
|
|
|
padding: 0 var(--padding-normal);
|
|
|
|
}
|
|
|
|
|
2023-11-23 17:07:49 +01:00
|
|
|
.block--fixed {
|
|
|
|
padding: var(--padding-normal);
|
2023-11-23 22:20:02 +01:00
|
|
|
border-radius: var(--border-radius-inner);
|
2024-04-17 16:52:50 +02:00
|
|
|
background: var(--primary-muted-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.block__content > *:last-child, .block--fixed > *:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.block__content > *:first-child, .block--fixed > *:first-child {
|
|
|
|
margin-top: 0;
|
2023-11-23 17:07:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.block__tab {
|
|
|
|
padding: var(--padding-normal);
|
|
|
|
}
|
|
|
|
|
|
|
|
.block__header--js-tabbed {
|
|
|
|
display: flex;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
& a {
|
|
|
|
display: block;
|
|
|
|
color: var(--text-color);
|
|
|
|
padding: 0 var(--padding-normal);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background: var(--background-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.selected {
|
|
|
|
background: var(--background-color);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.block--spaced-top {
|
|
|
|
margin-top: var(--padding-normal);
|
|
|
|
}
|
|
|
|
|
2024-04-30 12:16:09 +02:00
|
|
|
@mixin block-type secondary;
|
|
|
|
@mixin block-type success;
|
|
|
|
@mixin block-type warning;
|
|
|
|
@mixin block-type danger;
|
|
|
|
@mixin block-type information;
|
|
|
|
@mixin block-type special;
|