Commit 706e012f authored by Dan Poltawski's avatar Dan Poltawski
Browse files

MDL-56889 boostrapbase: remove excessive stylelint-disables

From bs4-compat.less, replace with file level disable instead.
parent 660b51e0
// Bootstrap 4 compatibility for bootstrapbased themes.
// Disable some stylelint rules which are necessary these compatbility classses.
/* stylelint-disable declaration-no-important, block-no-empty */
// Add support for card. We map it to well.
// This is not meant to be perfect - but at least applies some styles to a bs4 card.
.card:extend(.well) {
/* stylelint-disable-line no-empty-source */
}
// Due to lessphp limitations, the following classes must be declared statically without use of a loop.
.p-l-1 {
padding-left: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-left: 1 * @baseFontSize !important;
}
.p-r-1 {
padding-right: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-right: 1 * @baseFontSize !important;
}
.p-t-1 {
padding-top: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-top: 1 * @baseFontSize !important;
}
.p-b-1 {
padding-bottom: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-bottom: 1 * @baseFontSize !important;
}
.p-x-1 {
padding-left: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-right: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-left: 1 * @baseFontSize !important;
padding-right: 1 * @baseFontSize !important;
}
.p-y-1 {
padding-top: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-bottom: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-top: 1 * @baseFontSize !important;
padding-bottom: 1 * @baseFontSize !important;
}
.p-a-1 {
padding: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding: 1 * @baseFontSize !important;
}
.m-l-1 {
margin-left: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-left: 1 * @baseFontSize !important;
}
.m-r-1 {
margin-right: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-right: 1 * @baseFontSize !important;
}
.m-t-1 {
margin-top: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-top: 1 * @baseFontSize !important;
}
.m-b-1 {
margin-bottom: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-bottom: 1 * @baseFontSize !important;
}
.m-x-1 {
margin-left: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-right: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-left: 1 * @baseFontSize !important;
margin-right: 1 * @baseFontSize !important;
}
.m-y-1 {
margin-top: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-bottom: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-top: 1 * @baseFontSize !important;
margin-bottom: 1 * @baseFontSize !important;
}
.m-a-1 {
margin: 1 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin: 1 * @baseFontSize !important;
}
.p-l-2 {
padding-left: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-left: 2 * @baseFontSize !important;
}
.p-r-2 {
padding-right: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-right: 2 * @baseFontSize !important;
}
.p-t-2 {
padding-top: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-top: 2 * @baseFontSize !important;
}
.p-b-2 {
padding-bottom: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-bottom: 2 * @baseFontSize !important;
}
.p-x-2 {
padding-left: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-right: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-left: 2 * @baseFontSize !important;
padding-right: 2 * @baseFontSize !important;
}
.p-y-2 {
padding-top: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-bottom: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-top: 2 * @baseFontSize !important;
padding-bottom: 2 * @baseFontSize !important;
}
.p-a-2 {
padding: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding: 2 * @baseFontSize !important;
}
.m-l-2 {
margin-left: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-left: 2 * @baseFontSize !important;
}
.m-r-2 {
margin-right: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-right: 2 * @baseFontSize !important;
}
.m-t-2 {
margin-top: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-top: 2 * @baseFontSize !important;
}
.m-b-2 {
margin-bottom: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-bottom: 2 * @baseFontSize !important;
}
.m-x-2 {
margin-left: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-right: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-left: 2 * @baseFontSize !important;
margin-right: 2 * @baseFontSize !important;
}
.m-y-2 {
margin-top: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-bottom: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-top: 2 * @baseFontSize !important;
margin-bottom: 2 * @baseFontSize !important;
}
.m-a-2 {
margin: 2 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin: 2 * @baseFontSize !important;
}
.p-l-3 {
padding-left: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-left: 3 * @baseFontSize !important;
}
.p-r-3 {
padding-right: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-right: 3 * @baseFontSize !important;
}
.p-t-3 {
padding-top: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-top: 3 * @baseFontSize !important;
}
.p-b-3 {
padding-bottom: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-bottom: 3 * @baseFontSize !important;
}
.p-x-3 {
padding-left: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-right: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-left: 3 * @baseFontSize !important;
padding-right: 3 * @baseFontSize !important;
}
.p-y-3 {
padding-top: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-bottom: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding-top: 3 * @baseFontSize !important;
padding-bottom: 3 * @baseFontSize !important;
}
.p-a-3 {
padding: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
padding: 3 * @baseFontSize !important;
}
.m-l-3 {
margin-left: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-left: 3 * @baseFontSize !important;
}
.m-r-3 {
margin-right: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-right: 3 * @baseFontSize !important;
}
.m-t-3 {
margin-top: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-top: 3 * @baseFontSize !important;
}
.m-b-3 {
margin-bottom: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-bottom: 3 * @baseFontSize !important;
}
.m-x-3 {
margin-left: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-right: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-left: 3 * @baseFontSize !important;
margin-right: 3 * @baseFontSize !important;
}
.m-y-3 {
margin-top: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-bottom: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin-top: 3 * @baseFontSize !important;
margin-bottom: 3 * @baseFontSize !important;
}
.m-a-3 {
margin: 3 * @baseFontSize !important; /* stylelint-disable-line declaration-no-important */
margin: 3 * @baseFontSize !important;
}
.d-inline {
display: inline !important; /* stylelint-disable-line declaration-no-important */
display: inline !important;
}
.d-block {
display: block !important; /* stylelint-disable-line declaration-no-important */
display: block !important;
}
.d-inline-block {
display: inline-block !important; /* stylelint-disable-line declaration-no-important */
display: inline-block !important;
}
// Horizontal centering.
.m-x-auto {
margin-left: auto !important; /* stylelint-disable-line declaration-no-important */
margin-right: auto !important; /* stylelint-disable-line declaration-no-important */
margin-left: auto !important;
margin-right: auto !important;
}
// Support img-fluid.
.img-fluid:extend(.img-responsive) {
/* stylelint-disable-line no-empty-source */
}
// Text danger
.text-danger:extend(.text-error) {
/* stylelint-disable-line no-empty-source */
}
.btn-secondary {
......@@ -223,13 +223,11 @@
// Floats
.pull-xs-left:extend(.pull-left) {
/* stylelint-disable-line no-empty-source */
}
.pull-xs-right:extend(.pull-right) {
/* stylelint-disable-line no-empty-source */
}
.text-nowrap {
white-space: nowrap !important; /* stylelint-disable-line declaration-no-important */
white-space: nowrap !important;
}
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
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