.nomargin { margin: 0; } .wellmargin { margin: 0.25em 1em; } .nopadding { padding: 0; } .wellpadding { padding: 0.25em 1em; } .infobox { margin: 0; padding: 0 1.5em; background: $major-color; border: 1px solid $border-color; } .remarkbox { margin: 0; padding: 0 1.5em; background: $minor-color; border: 1px solid $border-color; } .quote { margin: 0; padding: 0 1.5em; border-left: 0.25em solid $major-color; } .quote > p:last-child:not(:only-child) { text-align: right; font-style: italic; } .quote > p:last-child:not(:only-child)::before { content: "\2014\00a0"; } .convo { display: flex; flex-direction: column; flex-wrap: wrap; margin: .5em; } .convo::after { content: attr(data-name); margin: 0 1em; } .convo > p { display: inline-block; margin: .125em 1em; padding: 0.5em 1em; border: solid 1px $border-color; border-radius: 1em; } .convo.left { align-content: flex-start; align-items: flex-start; } .convo.left > p { text-align: left; margin-right: 5em; background-color: $minor-color; } .convo.left > p:last-child { border-bottom-left-radius: 0; } .convo.right { align-content: flex-end; align-items: flex-end; } .convo.right > p { text-align: right; margin-left: 5em; background-color: $major-color; } .convo.right > p:last-child { border-bottom-right-radius: 0; } .figure { padding: 0; margin: auto; border: none; } .figure > *:last-child:not(:only-child) { color: rgba($font-color, 0.7); margin-top: 0.75em; text-align: center; font-style: italic; } .spoiler { background: $minor-color; color: $minor-color; } .spoiler::before { content: "spoiler alert!"; color: $font-color; } .oversized { @extend .flex, .column; padding: 0; border: none; overflow-x: auto; width: calc(100vw - 2em); margin-left: calc(1em - ((100vw - 100%) / 2)); @include mobile { width: 100vw; margin-left: calc(-1 * ((100vw - 100%) / 2)); } } .oversized > * { margin: auto; padding: 0; } .mainmatter { @extend .sep-bottom; background: $background-color; } .mainmatter::after { display: block; content: ""; height: 3em; } .container { margin: 0 auto; padding: 0 1em; width: 100%; max-width: $content-width; } .hidden, .target:not(:target) { display: none; } .float-left { float: left; margin-right: 1em; } .float-right { float: right; margin-left: 1em; } .clear-float { clear: both; overflow: auto; } .text-left { text-align: left; } .text-right { text-align: right; } .sep-left { border-left: 1px solid $border-color; } .sep-right { border-right: 1px solid $border-color; } .sep-top { border-top: 1px solid $border-color; } .sep-bottom { border-bottom: 1px solid $border-color; } .flex { display: -ms-flex; display: flex; } .flex.column { flex-direction: column; } .flex.align-center { align-items: center; } .flex.wrap { flex-wrap: wrap; } .flex.mobile-column { @include mobile { flex-direction: column; } } .flex.mobile-column.align-center { @include mobile { text-align: center; } } .flexitem.fill { flex: 1; } .flexitem.mobile-first { @include mobile { order: -1; } } .MathJax[display="true"] { overflow: auto; padding: 0.75em 0.5em; } .highlight.flexitem { overflow-y: hidden; } .revise-item > p { display: inline; }