2019-06-19 13:58:46 +02:00
|
|
|
@import "variables";
|
2019-05-22 14:37:31 +02:00
|
|
|
|
2019-06-19 13:58:46 +02:00
|
|
|
.markdown-inner {
|
|
|
|
// Util class to remove extra margin in nested markdown content
|
2019-05-23 16:30:26 +02:00
|
|
|
> :first-child {
|
2019-05-22 14:37:31 +02:00
|
|
|
margin-top: 0;
|
|
|
|
}
|
2019-05-23 16:30:26 +02:00
|
|
|
> :last-child {
|
2019-05-22 14:37:31 +02:00
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-23 17:48:30 +02:00
|
|
|
// {{< expand "Label" "icon" >}}
|
2019-05-22 14:37:31 +02:00
|
|
|
.book-expand {
|
2019-06-10 15:14:05 +02:00
|
|
|
margin-top: $padding-16;
|
|
|
|
margin-bottom: $padding-16;
|
2019-05-22 14:37:31 +02:00
|
|
|
|
2019-06-19 13:58:46 +02:00
|
|
|
border: $padding-1 solid $gray-200;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
2019-05-22 14:37:31 +02:00
|
|
|
.book-expand-head {
|
|
|
|
background: $gray-100;
|
|
|
|
padding: $padding-8 $padding-16;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.book-expand-content {
|
|
|
|
display: none;
|
|
|
|
padding: $padding-16;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type="checkbox"]:checked + .book-expand-content {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-05-23 17:48:30 +02:00
|
|
|
// {{< tabs >}}
|
2019-05-22 14:37:31 +02:00
|
|
|
.book-tabs {
|
2019-06-19 13:58:46 +02:00
|
|
|
margin-top: $padding-16;
|
|
|
|
margin-bottom: $padding-16;
|
|
|
|
|
|
|
|
border: $padding-1 solid $gray-200;
|
|
|
|
border-radius: $border-radius;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
2019-05-23 17:48:30 +02:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2019-05-22 14:37:31 +02:00
|
|
|
|
2019-05-23 17:48:30 +02:00
|
|
|
label {
|
|
|
|
display: inline-block;
|
|
|
|
padding: $padding-8 $padding-16;
|
2019-05-24 14:07:44 +02:00
|
|
|
border-bottom: $padding-1 transparent;
|
2019-05-23 17:48:30 +02:00
|
|
|
cursor: pointer;
|
2019-05-22 14:37:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.book-tabs-content {
|
2019-05-23 17:48:30 +02:00
|
|
|
order: 999; //Move content blocks to the end
|
2019-05-24 14:07:44 +02:00
|
|
|
width: 100%;
|
2019-05-23 17:48:30 +02:00
|
|
|
border-top: $padding-1 solid $gray-100;
|
2019-05-22 14:37:31 +02:00
|
|
|
padding: $padding-16;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2019-05-23 17:48:30 +02:00
|
|
|
input[type="radio"]:checked + label {
|
|
|
|
border-bottom: $padding-1 solid $color-link;
|
|
|
|
}
|
|
|
|
input[type="radio"]:checked + label + .book-tabs-content {
|
2019-05-22 14:37:31 +02:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2019-05-23 16:30:26 +02:00
|
|
|
|
2019-05-23 17:48:30 +02:00
|
|
|
// {{< columns >}}
|
2019-06-12 17:27:46 +02:00
|
|
|
.book-columns {
|
2019-06-18 23:20:29 +02:00
|
|
|
margin-left: -$padding-16;
|
|
|
|
margin-right: -$padding-16;
|
|
|
|
|
|
|
|
> div {
|
|
|
|
margin: $padding-16 0;
|
|
|
|
// max-width: 50%;
|
|
|
|
min-width: $body-min-width * 0.66;
|
|
|
|
padding: 0 $padding-16;
|
2019-05-23 16:30:26 +02:00
|
|
|
}
|
|
|
|
}
|
2019-05-27 18:25:58 +02:00
|
|
|
|
|
|
|
// {{< button >}}
|
|
|
|
a.book-btn {
|
|
|
|
display: inline-block;
|
|
|
|
color: $color-link !important;
|
|
|
|
text-decoration: none !important;
|
|
|
|
border: $padding-1 solid $color-link;
|
2019-06-19 13:58:46 +02:00
|
|
|
border-radius: $border-radius;
|
2019-05-27 18:25:58 +02:00
|
|
|
padding: $padding-4 $padding-16;
|
|
|
|
margin-top: $padding-8;
|
|
|
|
margin-bottom: $padding-8;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-10-03 18:15:24 +02:00
|
|
|
|
|
|
|
// {{< hint >}}
|
|
|
|
.book-hint {
|
|
|
|
@each $name, $color in $hint-colors {
|
|
|
|
&.#{$name} {
|
|
|
|
border-left-color: $color;
|
|
|
|
background-color: rgba($color, 0.1);
|
|
|
|
// background-color: $gray-100;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|