From 2d41f5b2fafae69e6a975e36d3fca49976ab1d60 Mon Sep 17 00:00:00 2001 From: Ryan Wyllie Date: Mon, 27 Aug 2018 16:51:59 +0800 Subject: [PATCH] MDL-63044 theme_boost: add line-height classes --- theme/boost/scss/moodle/core.scss | 5 +++++ theme/boost/style/moodle.css | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) diff --git a/theme/boost/scss/moodle/core.scss b/theme/boost/scss/moodle/core.scss index 2439e4b2dcb..530d20e7eef 100644 --- a/theme/boost/scss/moodle/core.scss +++ b/theme/boost/scss/moodle/core.scss @@ -2135,3 +2135,8 @@ div.editor_atto_toolbar button .icon { } } +@each $size, $length in $spacers { + .line-height-#{$size} { + line-height: $length !important; /* stylelint-disable-line declaration-no-important */ + } +} \ No newline at end of file diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 339920763a8..ddf13abd58c 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -10438,6 +10438,30 @@ div.editor_atto_toolbar button .icon { 100% { background-color: #f8f9fa; } } +.line-height-0 { + line-height: 0 !important; + /* stylelint-disable-line declaration-no-important */ } + +.line-height-1 { + line-height: 0.25rem !important; + /* stylelint-disable-line declaration-no-important */ } + +.line-height-2 { + line-height: 0.5rem !important; + /* stylelint-disable-line declaration-no-important */ } + +.line-height-3 { + line-height: 1rem !important; + /* stylelint-disable-line declaration-no-important */ } + +.line-height-4 { + line-height: 1.5rem !important; + /* stylelint-disable-line declaration-no-important */ } + +.line-height-5 { + line-height: 3rem !important; + /* stylelint-disable-line declaration-no-important */ } + .icon { font-size: 16px; width: 16px;