2020-07-06 18:55:32 +00:00
|
|
|
// {{< expand "Label" "icon" >}}
|
|
|
|
.gblog-expand {
|
2023-02-16 09:38:45 +00:00
|
|
|
margin: $padding-16 0;
|
2020-07-06 18:55:32 +00:00
|
|
|
|
2021-11-23 15:53:25 +00:00
|
|
|
border: $border-1 solid var(--accent-color);
|
2020-07-06 18:55:32 +00:00
|
|
|
border-radius: $border-radius;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
&__head {
|
2021-11-23 15:53:25 +00:00
|
|
|
background: var(--accent-color-lite);
|
2020-07-06 18:55:32 +00:00
|
|
|
padding: $padding-8 $padding-16;
|
|
|
|
cursor: pointer;
|
2022-01-08 12:57:17 +00:00
|
|
|
user-select: none;
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__content {
|
|
|
|
display: none;
|
2023-02-16 09:38:45 +00:00
|
|
|
padding: 0 $padding-16;
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__control:checked + &__content {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2021-11-23 15:53:25 +00:00
|
|
|
.gblog-post__anchor {
|
2020-07-06 18:55:32 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// {{< tabs >}}
|
|
|
|
.gblog-tabs {
|
2023-02-16 09:38:45 +00:00
|
|
|
margin: $padding-16 0;
|
2020-07-06 18:55:32 +00:00
|
|
|
|
2021-11-23 15:53:25 +00:00
|
|
|
border: $border-1 solid var(--accent-color);
|
2020-07-06 18:55:32 +00:00
|
|
|
border-radius: $border-radius;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
&__label {
|
|
|
|
display: inline-block;
|
|
|
|
padding: $padding-8 $padding-16;
|
2021-02-21 21:39:34 +00:00
|
|
|
border-bottom: $border-1 transparent;
|
2020-07-06 18:55:32 +00:00
|
|
|
cursor: pointer;
|
2022-01-08 12:57:17 +00:00
|
|
|
user-select: none;
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&__content {
|
|
|
|
order: 999; //Move content blocks to the end
|
|
|
|
width: 100%;
|
2021-11-23 15:53:25 +00:00
|
|
|
border-top: $border-1 solid var(--accent-color-lite);
|
2023-02-16 09:38:45 +00:00
|
|
|
padding: 0 $padding-16;
|
2020-07-06 18:55:32 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__control:checked + &__label {
|
2021-11-23 15:53:25 +00:00
|
|
|
border-bottom: $border-2 solid var(--link-color);
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
|
|
|
&__control:checked + &__label + &__content {
|
|
|
|
display: block;
|
|
|
|
}
|
2021-11-23 15:53:25 +00:00
|
|
|
|
|
|
|
.gblog-post__anchor {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// {{< columns >}}
|
|
|
|
.gblog-columns {
|
2023-02-16 09:38:45 +00:00
|
|
|
margin: $padding-16 0;
|
|
|
|
|
2022-07-11 13:09:48 +00:00
|
|
|
&--regular > :first-child {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--small > :first-child {
|
|
|
|
flex: 0.35;
|
|
|
|
min-width: $body-min-width * 0.35;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--large > :first-child {
|
|
|
|
flex: 1.65;
|
|
|
|
min-width: $body-min-width * 1.65;
|
|
|
|
}
|
2020-07-06 18:55:32 +00:00
|
|
|
|
|
|
|
&__content {
|
2022-07-11 13:09:48 +00:00
|
|
|
flex: 1 1;
|
2020-07-06 18:55:32 +00:00
|
|
|
min-width: $body-min-width * 0.66;
|
2022-07-11 13:09:48 +00:00
|
|
|
padding: 0;
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
|
|
|
|
2021-11-23 15:53:25 +00:00
|
|
|
.gblog-post__anchor {
|
2020-07-06 18:55:32 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// {{< button >}}
|
|
|
|
.gblog-button {
|
2021-05-24 13:22:22 +00:00
|
|
|
$root: &;
|
2023-02-16 09:38:45 +00:00
|
|
|
margin: $padding-16 0;
|
2021-05-24 13:22:22 +00:00
|
|
|
|
2020-07-06 18:55:32 +00:00
|
|
|
display: inline-block;
|
2021-11-23 15:53:25 +00:00
|
|
|
background: var(--accent-color-lite);
|
|
|
|
border: $border-1 solid var(--accent-color);
|
2020-07-06 18:55:32 +00:00
|
|
|
border-radius: $border-radius;
|
|
|
|
cursor: pointer;
|
2022-01-08 12:57:17 +00:00
|
|
|
user-select: none;
|
2020-07-06 18:55:32 +00:00
|
|
|
|
|
|
|
&__link {
|
|
|
|
display: inline-block;
|
|
|
|
color: inherit !important;
|
|
|
|
text-decoration: none !important;
|
2022-01-08 12:57:17 +00:00
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:visited:hover {
|
|
|
|
background: none;
|
|
|
|
}
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2021-11-23 15:53:25 +00:00
|
|
|
background: var(--button-background);
|
|
|
|
border-color: var(--button-border-color);
|
2020-07-06 18:55:32 +00:00
|
|
|
color: $gray-100;
|
|
|
|
}
|
2021-05-24 13:22:22 +00:00
|
|
|
|
|
|
|
&--regular {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
|
|
|
|
#{$root}__link {
|
|
|
|
padding: $padding-4 $padding-8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--large {
|
|
|
|
font-size: $font-size-20;
|
|
|
|
|
|
|
|
#{$root}__link {
|
|
|
|
padding: $padding-8 $padding-16;
|
|
|
|
}
|
|
|
|
}
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
|
|
|
|
2022-07-11 12:37:17 +00:00
|
|
|
// {{< box >}}
|
|
|
|
.gblog-box {
|
2023-02-16 09:38:45 +00:00
|
|
|
flex-direction: column;
|
2022-07-11 12:37:17 +00:00
|
|
|
background: var(--accent-color-lite);
|
|
|
|
border: $border-1 solid var(--accent-color);
|
|
|
|
border-radius: $border-radius;
|
|
|
|
text-align: center;
|
|
|
|
flex: 1 1 0;
|
|
|
|
|
|
|
|
&--regular {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
padding: $padding-4 $padding-8;
|
|
|
|
min-width: 8rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&--large {
|
|
|
|
font-size: $font-size-20;
|
|
|
|
padding: $padding-8 $padding-16;
|
|
|
|
min-width: 12rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
|
|
|
word-wrap: break-word;
|
|
|
|
overflow-wrap: anywhere;
|
|
|
|
gap: $padding-8;
|
|
|
|
|
|
|
|
svg.gblog-icon {
|
2023-02-16 09:38:45 +00:00
|
|
|
width: $padding-24;
|
|
|
|
height: $padding-24;
|
|
|
|
min-width: $padding-24;
|
2022-07-11 12:37:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text {
|
|
|
|
margin: $padding-8 0;
|
|
|
|
font-size: $font-size-16;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-06 18:55:32 +00:00
|
|
|
// {{< hint >}}
|
|
|
|
.gblog-hint {
|
|
|
|
@each $name, $color in $hint-colors {
|
|
|
|
&.#{$name} {
|
|
|
|
border-left-color: $color;
|
2021-11-23 15:53:25 +00:00
|
|
|
background-color: scale-color($color, $lightness: 95%, $saturation: -30%);
|
|
|
|
color: $body-font-color;
|
2022-04-30 12:32:07 +00:00
|
|
|
padding: 0;
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
|
|
|
}
|
2021-11-23 15:53:25 +00:00
|
|
|
|
2022-04-30 12:32:07 +00:00
|
|
|
&__title {
|
|
|
|
padding: $padding-4 $padding-16;
|
|
|
|
background-color: scale-color($gray-600, $alpha: -95%);
|
|
|
|
font-weight: bold;
|
|
|
|
color: scale-color($body-font-color, $alpha: -15%);
|
|
|
|
|
|
|
|
i.fa::after {
|
|
|
|
content: attr(title);
|
|
|
|
font-style: normal;
|
|
|
|
padding-left: $padding-24;
|
|
|
|
}
|
|
|
|
|
|
|
|
i.fa {
|
|
|
|
color: $black;
|
|
|
|
background-size: auto 90%;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
filter: invert(30%);
|
|
|
|
margin-left: -5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $name, $icon in $hint-icons {
|
|
|
|
i.fa.#{$name} {
|
2022-06-02 12:01:56 +00:00
|
|
|
background-image: url(img/geekblog-stack.svg##{$icon});
|
2022-04-30 12:32:07 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.gblog-icon {
|
|
|
|
width: $font-size-24;
|
|
|
|
height: $font-size-24;
|
|
|
|
margin-left: -5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__text {
|
|
|
|
padding: $padding-4 $padding-16;
|
|
|
|
}
|
|
|
|
|
2023-10-27 19:57:55 +00:00
|
|
|
.gblog-post__anchor {
|
2021-11-23 15:53:25 +00:00
|
|
|
display: none;
|
|
|
|
}
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// {{< mermaid >}}
|
|
|
|
.gblog-mermaid {
|
|
|
|
font-family: "Liberation Sans", sans-serif;
|
2022-08-30 19:40:45 +00:00
|
|
|
|
|
|
|
// Fix height of mermaid SVG elements (see https://github.com/mermaid-js/mermaid/issues/2481)
|
|
|
|
> svg {
|
|
|
|
height: 100%;
|
|
|
|
padding: $padding-8;
|
|
|
|
}
|
2020-07-06 18:55:32 +00:00
|
|
|
}
|
2022-08-31 08:15:13 +00:00
|
|
|
|
2023-10-27 19:57:55 +00:00
|
|
|
// {{< propertylist >}}
|
|
|
|
.gblog-props {
|
|
|
|
&__title,
|
|
|
|
&__default {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
font-family: "Liberation Mono", monospace;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__meta {
|
|
|
|
gap: 0.5em;
|
|
|
|
line-height: normal;
|
|
|
|
margin-bottom: $padding-4;
|
|
|
|
|
|
|
|
&:hover .gblog-post__anchor svg.gblog-icon {
|
|
|
|
color: var(--control-icons);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@each $name, $color in $hint-colors {
|
|
|
|
&__tag.#{$name} {
|
|
|
|
border-color: scale-color($color, $lightness: 90%, $saturation: -30%);
|
|
|
|
background-color: scale-color($color, $lightness: 95%, $saturation: -30%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__tag {
|
|
|
|
font-size: $font-size-14;
|
|
|
|
font-weight: normal;
|
|
|
|
background-color: $gray-100;
|
|
|
|
border: $border-1 solid $gray-200;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
padding: $padding-2 $padding-4;
|
|
|
|
color: $body-font-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__default {
|
|
|
|
font-size: $font-size-14;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-03 08:55:39 +00:00
|
|
|
// {{% progress %}}
|
2022-08-31 08:15:13 +00:00
|
|
|
.gblog-progress {
|
|
|
|
margin-bottom: $padding-16;
|
|
|
|
|
|
|
|
&__label {
|
|
|
|
padding: $padding-4 0;
|
|
|
|
|
|
|
|
&--name {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__wrap {
|
|
|
|
background-color: var(--accent-color-lite);
|
|
|
|
border-radius: 1em;
|
|
|
|
box-shadow: inset 0 0 0 $border-1 var(--accent-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
&__bar {
|
|
|
|
height: 1em;
|
|
|
|
border-radius: 1em;
|
|
|
|
background-image: linear-gradient(
|
|
|
|
-45deg,
|
|
|
|
rgba(255, 255, 255, 0.125) 25%,
|
|
|
|
transparent 25%,
|
|
|
|
transparent 50%,
|
|
|
|
rgba(255, 255, 255, 0.125) 50%,
|
|
|
|
rgba(255, 255, 255, 0.125) 75%,
|
|
|
|
transparent 75%,
|
|
|
|
transparent
|
|
|
|
);
|
|
|
|
background-size: 2.5em 2.5em;
|
|
|
|
background-color: $main-color !important;
|
|
|
|
}
|
|
|
|
}
|