2020-04-06 09:26:35 +00:00
|
|
|
.markdown {
|
|
|
|
// {{< expand "Label" "icon" >}}
|
|
|
|
.book-expand {
|
|
|
|
margin-top: $padding-16;
|
|
|
|
margin-bottom: $padding-16;
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2020-09-13 22:02:55 +00:00
|
|
|
border: $padding-1 solid var(--gray-200);
|
2020-04-06 09:26:35 +00:00
|
|
|
border-radius: $border-radius;
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
overflow: hidden;
|
2019-06-19 11:58:46 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
.book-expand-head {
|
2020-09-13 22:02:55 +00:00
|
|
|
background: var(--gray-100);
|
2020-04-06 09:26:35 +00:00
|
|
|
padding: $padding-8 $padding-16;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-06-19 11:58:46 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
.book-expand-content {
|
|
|
|
display: none;
|
|
|
|
padding: $padding-16;
|
|
|
|
}
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
input[type="checkbox"]:checked + .book-expand-content {
|
|
|
|
display: block;
|
|
|
|
}
|
2019-05-22 12:37:31 +00:00
|
|
|
}
|
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
// {{< tabs >}}
|
|
|
|
.book-tabs {
|
|
|
|
margin-top: $padding-16;
|
|
|
|
margin-bottom: $padding-16;
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2020-09-13 22:02:55 +00:00
|
|
|
border: $padding-1 solid var(--gray-200);
|
2020-04-06 09:26:35 +00:00
|
|
|
border-radius: $border-radius;
|
2019-06-19 11:58:46 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
overflow: hidden;
|
2019-06-19 11:58:46 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2019-06-19 11:58:46 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
label {
|
|
|
|
display: inline-block;
|
|
|
|
padding: $padding-8 $padding-16;
|
|
|
|
border-bottom: $padding-1 transparent;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
.book-tabs-content {
|
|
|
|
order: 999; //Move content blocks to the end
|
|
|
|
width: 100%;
|
2020-09-13 22:02:55 +00:00
|
|
|
border-top: $padding-1 solid var(--gray-100);
|
2020-04-06 09:26:35 +00:00
|
|
|
padding: $padding-16;
|
|
|
|
display: none;
|
|
|
|
}
|
2019-05-22 12:37:31 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
input[type="radio"]:checked + label {
|
2020-09-13 22:02:55 +00:00
|
|
|
border-bottom: $padding-1 solid var(--color-link);
|
2020-04-06 09:26:35 +00:00
|
|
|
}
|
|
|
|
input[type="radio"]:checked + label + .book-tabs-content {
|
|
|
|
display: block;
|
|
|
|
}
|
2020-07-07 21:06:21 +00:00
|
|
|
input[type="radio"]:focus + label {
|
2020-09-13 22:02:55 +00:00
|
|
|
@include outline;
|
2020-07-07 21:06:21 +00:00
|
|
|
}
|
2019-05-22 12:37:31 +00:00
|
|
|
}
|
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
// {{< columns >}}
|
|
|
|
.book-columns {
|
|
|
|
margin-left: -$padding-16;
|
|
|
|
margin-right: -$padding-16;
|
2019-05-23 14:30:26 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
> div {
|
|
|
|
margin: $padding-16 0;
|
|
|
|
min-width: $body-min-width / 2;
|
|
|
|
padding: 0 $padding-16;
|
|
|
|
}
|
|
|
|
}
|
2019-06-18 21:20:29 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
// {{< button >}}
|
|
|
|
a.book-btn {
|
|
|
|
display: inline-block;
|
|
|
|
font-size: $font-size-14;
|
2020-09-13 22:02:55 +00:00
|
|
|
color: var(--color-link);
|
2020-04-06 09:26:35 +00:00
|
|
|
line-height: $padding-16 * 2;
|
2019-06-18 21:20:29 +00:00
|
|
|
padding: 0 $padding-16;
|
2020-09-13 22:02:55 +00:00
|
|
|
border: $padding-1 solid var(--color-link);
|
2020-04-06 09:26:35 +00:00
|
|
|
border-radius: $border-radius;
|
|
|
|
cursor: pointer;
|
2019-05-27 16:25:58 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2020-02-10 16:49:18 +00:00
|
|
|
}
|
2019-10-03 16:15:24 +00:00
|
|
|
|
2020-04-06 09:26:35 +00:00
|
|
|
// {{< hint >}}
|
|
|
|
.book-hint {
|
|
|
|
@each $name, $color in $hint-colors {
|
|
|
|
&.#{$name} {
|
2020-05-17 11:09:48 +00:00
|
|
|
border-color: $color;
|
2020-04-06 09:26:35 +00:00
|
|
|
background-color: rgba($color, 0.1);
|
|
|
|
}
|
2019-10-03 16:15:24 +00:00
|
|
|
}
|
2020-04-06 09:26:35 +00:00
|
|
|
}
|
2019-10-03 16:15:24 +00:00
|
|
|
}
|