Commit e573d8ca authored by Henrik Tramberend's avatar Henrik Tramberend
Browse files

Merge branch 'update-scss'

parents cd0c163d 31715718
......@@ -297,22 +297,15 @@ body {
/////////////////////////////////////////////
// Column settings
/////////////////////////////////////////////
&.slide-column {
@mixin columns($number-of-columns) {
&.columns-#{$number-of-columns} {
display: inline-block;
vertical-align: top;
$column-border-sum: 8%;
width: calc((100% - #{$column-border-sum}) / #{$number-of-columns} - 7px);
&:not(:last-child) {
margin-right: calc(#{$column-border-sum} / (#{$number-of-columns} - 1));
}
}
}
@for $i from 2 through 10 {
@include columns(#{$i})
&.css-columns {
column-count: 2;
column-gap: 2em;
column-rule-style: none;
padding-left: 0.7em;
margin-left: -0.7em;
>* {
break-inside: avoid-column;
}
}
......@@ -359,6 +352,7 @@ body {
display: block;
border: none;
box-shadow: none;
border-radius: 0.25em;
&.float-left {
float: left;
......@@ -413,6 +407,7 @@ body {
word-wrap: break-word;
box-shadow: none;
font-size: 90%;
margin: 0;
code {
display: block;
......@@ -425,6 +420,21 @@ body {
}
}
// Special case: source code inside highlighted box
div.box {
&.question, &.answer, &.observation, &.example, &.def, &.definition, &.note, &.ale, &.alert, &.equ, &.equation, &.theorem {
div.sourceCode {
margin: 0;
background: rgba(255, 255, 255, 0.4);
padding: 0 0.2em;
pre {
margin: 0.2em 0;
}
}
}
}
/////////////////////////////////////////////
// References
/////////////////////////////////////////////
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment