[skip ci] polyfill .hidden selector

This commit is contained in:
Clement Ho 2018-04-10 11:23:10 -05:00
parent 9bcf8f43c6
commit 28b0ed33cf
3 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,7 @@
/*
* Scss to help with bootstrap 3 to 4 migration
*/
$text-color: $gl-text-color;
$brand-primary: $gl-primary;
@ -14,3 +18,15 @@ $input-border-focus: $focus-border-color;
$padding-base-vertical: $gl-vert-padding;
$padding-base-horizontal: $gl-padding;
html {
// Override default font size used in bs4
font-size: 14px;
}
// Polyfill deprecated selectors
.hidden {
@extend .d-none;
@extend .invisible;
}

View File

@ -1,5 +0,0 @@
// Override variables from bs4
html {
font-size: 14px;
}

View File

@ -1,8 +1,7 @@
@import "framework/variables";
@import "framework/mixins";
@import "framework.bs4";
@import "../../../node_modules/bootstrap/scss/bootstrap";
@import "framework.bs3";
@import "bootstrap_migration";
@import "framework/layout";
@import "framework/animations";