2021-04-15 01:37:18 -07:00
|
|
|
@import "variables.scss";
|
|
|
|
@import "mixins.scss";
|
|
|
|
@import "margin.scss";
|
|
|
|
|
|
|
|
.sidenote {
|
|
|
|
&:hover {
|
|
|
|
.sidenote-label {
|
|
|
|
background-color: $primary-color;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenote-content {
|
|
|
|
border: $sidenote-highlight-border-width dashed;
|
|
|
|
padding: $sidenote-padding -
|
|
|
|
($sidenote-highlight-border-width - $standard-border-width);
|
|
|
|
border-color: $primary-color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenote-label {
|
|
|
|
border-bottom: .2rem dashed $primary-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenote-checkbox {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenote-content {
|
|
|
|
@include margin-content;
|
|
|
|
@include bordered-block;
|
|
|
|
margin-top: -1.5rem;
|
|
|
|
padding: $sidenote-padding;
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
&.sidenote-right {
|
|
|
|
@include margin-content-right;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.sidenote-left {
|
|
|
|
@include margin-content-left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenote-delimiter {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin hidden-sidenote {
|
|
|
|
position: static;
|
2024-07-16 14:30:26 -07:00
|
|
|
// Author can override margin inline to shift sidenote, but when displayed
|
|
|
|
// on mobile (and thus, between text), shifting it would overlap it
|
|
|
|
// with text, so override the shift.
|
|
|
|
margin-top: 1rem !important;
|
2021-04-15 01:37:18 -07:00
|
|
|
margin-bottom: 1rem;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.sidenote-checkbox:checked ~ & {
|
|
|
|
display: block;
|
|
|
|
}
|
2024-06-24 19:42:47 -07:00
|
|
|
|
|
|
|
@media print {
|
|
|
|
display: block;
|
|
|
|
}
|
2021-04-15 01:37:18 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
@include below-two-margins {
|
|
|
|
.sidenote-content.sidenote-left {
|
|
|
|
@include hidden-sidenote;
|
|
|
|
margin-left: 0rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include below-one-margin {
|
|
|
|
.sidenote-content.sidenote-right {
|
|
|
|
@include hidden-sidenote;
|
|
|
|
margin-right: 0rem;
|
|
|
|
}
|
|
|
|
}
|