aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Brattlof <hello@bryanbrattlof.com>2020-05-01 12:51:39 -0400
committerBryan Brattlof <hello@bryanbrattlof.com>2020-05-01 12:52:34 -0400
commitedd7fb35ca00cc2132aae4e1927d6a376fc79a6b (patch)
tree1e5cc18a6c5f0d04c223a5852f5318d06615d3d9
parentc028f42de16870e5d449e0c2a75225fe1816df29 (diff)
downloadbryanbrattlof.com-edd7fb35ca00cc2132aae4e1927d6a376fc79a6b.tar.gz
bryanbrattlof.com-edd7fb35ca00cc2132aae4e1927d6a376fc79a6b.tar.bz2
stop 'code' elements from breaking to multiple lines
use 'white-space: pre;' for code elements ensuring the entire element moves to a new line if a section does not fit.
-rw-r--r--stylesheets/code.scss2
1 files changed, 2 insertions, 0 deletions
diff --git a/stylesheets/code.scss b/stylesheets/code.scss
index a4872c3..c6258a6 100644
--- a/stylesheets/code.scss
+++ b/stylesheets/code.scss
@@ -14,6 +14,8 @@
code {
@extend %code-block;
padding: 3px 5px;
+
+ white-space: pre;
}
.highlight {