Commit eb695207 authored by Dan Poltawski's avatar Dan Poltawski
Browse files

MDL-55452 stylelint: prevent use of !important

Don't try and fix existing issues, just prevent new ones landing..
parent 35d5053b
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
"declaration-colon-newline-after": "always-multi-line", "declaration-colon-newline-after": "always-multi-line",
"declaration-colon-space-after": "always-single-line", "declaration-colon-space-after": "always-single-line",
"declaration-colon-space-before": "never", "declaration-colon-space-before": "never",
"declaration-no-important": true,
"function-calc-no-unspaced-operator": true, "function-calc-no-unspaced-operator": true,
"function-comma-newline-after": "always-multi-line", "function-comma-newline-after": "always-multi-line",
"function-comma-space-after": "always-single-line", "function-comma-space-after": "always-single-line",
......
...@@ -850,7 +850,8 @@ span.editinstructions { ...@@ -850,7 +850,8 @@ span.editinstructions {
} }
.moodle-actionmenu { .moodle-actionmenu {
.iconsmall { .iconsmall {
max-width: none !important; /** reset sets 100% !important which breaks on IE8 without this !important */ /** reset sets 100% !important which breaks on IE8 without this !important */
max-width: none !important; /* stylelint-disable-line declaration-no-important */
width: 16px; width: 16px;
height: 16px; height: 16px;
padding: 4px; padding: 4px;
......
/* stylelint-disable declaration-no-important */
table#explaincaps, table#explaincaps,
table#defineroletable, table#defineroletable,
table.grading-report, table.grading-report,
......
/* stylelint-disable declaration-no-important */
// File Picker and File Manager // File Picker and File Manager
.filemanager, .filemanager,
.filepicker, .filepicker,
......
...@@ -136,7 +136,7 @@ select { ...@@ -136,7 +136,7 @@ select {
// Override hardcoded forum modules styling // Override hardcoded forum modules styling
.forumsearch input[type=text] { .forumsearch input[type=text] {
margin-bottom: 0 !important; margin-bottom: 0 !important; /* stylelint-disable-line declaration-no-important */
} }
#page-mod-forum-discuss .discussioncontrols { #page-mod-forum-discuss .discussioncontrols {
......
...@@ -397,8 +397,10 @@ ...@@ -397,8 +397,10 @@
padding-right: 10px; padding-right: 10px;
} }
#helppopupbox { #helppopupbox {
/* stylelint-disable declaration-no-important */
width: auto !important; width: auto !important;
left: 0 !important; left: 0 !important;
/* stylelint-enable declaration-no-important */
} }
} }
// Shrink calender when short on space in block // Shrink calender when short on space in block
......
...@@ -69,10 +69,9 @@ li.section.hidden, ...@@ -69,10 +69,9 @@ li.section.hidden,
* basically if you see things shifted left or right compared * basically if you see things shifted left or right compared
* with where they should be check for a .row * with where they should be check for a .row
*/ */
#turnitintool_style .row, #turnitintool_style .row,
.forumpost .row { .forumpost .row {
margin-left: 0 !important; margin-left: 0 !important; /* stylelint-disable-line declaration-no-important */
// not sure if this needs !important // not sure if this needs !important
} }
#turnitintool_style .row:before, #turnitintool_style .row:before,
......
Supports Markdown
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