hugo-book/assets/_shortcode.scss

83 lines
1.5 KiB
SCSS
Raw Normal View History

2019-05-22 12:37:31 +00:00
@import "variables";
.markdown-inner { // Util class to remove extra margin in nested markdown content
> :first-child {
2019-05-22 12:37:31 +00:00
margin-top: 0;
}
> :last-child {
2019-05-22 12:37:31 +00:00
margin-bottom: 0;
}
}
2019-05-23 15:48:30 +00:00
// {{< expand "Label" "icon" >}}
2019-05-22 12:37:31 +00:00
.book-expand {
border: 1px solid $gray-200;
.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 15:48:30 +00:00
// {{< tabs >}}
2019-05-22 12:37:31 +00:00
.book-tabs {
border: 1px solid $gray-200;
2019-05-23 15:48:30 +00:00
display: flex;
flex-wrap: wrap;
2019-05-22 12:37:31 +00:00
2019-05-23 15:48:30 +00:00
label {
display: inline-block;
padding: $padding-8 $padding-16;
border-bottom: $padding-1 transparent;
2019-05-23 15:48:30 +00:00
cursor: pointer;
2019-05-22 12:37:31 +00:00
}
.book-tabs-content {
2019-05-23 15:48:30 +00:00
order: 999; //Move content blocks to the end
width: 100%;
2019-05-23 15:48:30 +00:00
border-top: $padding-1 solid $gray-100;
2019-05-22 12:37:31 +00:00
padding: $padding-16;
display: none;
}
2019-05-23 15:48:30 +00:00
input[type="radio"]:checked + label {
border-bottom: $padding-1 solid $color-link;
}
input[type="radio"]:checked + label + .book-tabs-content {
2019-05-22 12:37:31 +00:00
display: block;
}
}
2019-05-23 15:48:30 +00:00
// {{< columns >}}
.book-columns > {
div {
max-width: 50%;
}
div + div {
margin-left: $padding-16 * 2;
}
}
2019-05-27 16:25:58 +00:00
// {{< button >}}
a.book-btn {
display: inline-block;
color: $color-link !important;
text-decoration: none !important;
border: $padding-1 solid $color-link;
border-radius: $padding-4;
padding: $padding-4 $padding-16;
margin-top: $padding-8;
margin-bottom: $padding-8;
cursor: pointer;
}