From 947970fc49a2d81e5b6df9fa1099a852a1b631f4 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Mon, 24 Oct 2016 12:40:40 +0800 Subject: [PATCH] MDL-55074 boost: Fixing issues reported by stylelint --- theme/boost/scss/moodle/debug.scss | 2 +- theme/boost/scss/moodle/drawer.scss | 14 +++++++------- theme/boost/scss/moodle/icons.scss | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/theme/boost/scss/moodle/debug.scss b/theme/boost/scss/moodle/debug.scss index 9d7ee0dfd19..ddf59f9aaae 100644 --- a/theme/boost/scss/moodle/debug.scss +++ b/theme/boost/scss/moodle/debug.scss @@ -9,7 +9,7 @@ body.behat-site { // We need more spacing in action menus so behat does not click on the wrong menu item. .dropdown-item { - margin-top: 4px ! important; + margin-top: 4px !important; /* stylelint-disable declaration-no-important */ } } diff --git a/theme/boost/scss/moodle/drawer.scss b/theme/boost/scss/moodle/drawer.scss index 1c5eb3c3100..c953a6f04f2 100644 --- a/theme/boost/scss/moodle/drawer.scss +++ b/theme/boost/scss/moodle/drawer.scss @@ -7,8 +7,8 @@ $drawer-padding-y: 20px; $drawer-offscreen-gutter: 20px; :target { - padding-top: ($fixed-header-y + 30px) ! important; /* negative fixed header height */ - margin-top: -$fixed-header-y ! important; /* negative fixed header height */ + padding-top: ($fixed-header-y + 30px) !important; /* stylelint-disable declaration-no-important */ + margin-top: -$fixed-header-y !important; /* negative fixed header height */ } .pagelayout-embedded :target { padding-top: initial; @@ -36,12 +36,12 @@ $drawer-bg: $gray-lighter !default; z-index: $zindex-dropdown - 1; background-color: $drawer-bg; -webkit-transition: right 0.5s ease, left 0.5s ease; - -moz-transition: right 0.5s ease, left 0.5s ease; - transition: right 0.5s ease, left 0.5s ease; + -moz-transition: right 0.5s ease, left 0.5s ease; + transition: right 0.5s ease, left 0.5s ease; } #nav-drawer { right: auto; - left: 0px; + left: 0; } #page { margin-top: $fixed-header-y; @@ -51,8 +51,8 @@ $drawer-bg: $gray-lighter !default; } body.drawer-ease { -webkit-transition: margin-left 0.5s ease, margin-right 0.5s ease; - -moz-transition: margin-left 0.5s ease, margin-right 0.5s ease; - transition: margin-left 0.5s ease, margin-right 0.5s ease; + -moz-transition: margin-left 0.5s ease, margin-right 0.5s ease; + transition: margin-left 0.5s ease, margin-right 0.5s ease; } body.drawer-open-left { diff --git a/theme/boost/scss/moodle/icons.scss b/theme/boost/scss/moodle/icons.scss index 70887e8044e..f2ba38f416e 100644 --- a/theme/boost/scss/moodle/icons.scss +++ b/theme/boost/scss/moodle/icons.scss @@ -38,5 +38,5 @@ a:first-of-type > .icon { } [data-action=toggle-drawer] .icon { - margin: 0px; + margin: 0; }