summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-04-10 11:23:10 -0500
committerClement Ho <ClemMakesApps@gmail.com>2018-04-10 11:23:10 -0500
commit28b0ed33cf968ca39d485de3e2777564dc1c9724 (patch)
tree7a53c33ced2e72f37019e3636d3da31a3298b446 /app
parent9bcf8f43c6e50f4e00bda6fd693bd0bbd8a1fc4d (diff)
downloadgitlab-ce-28b0ed33cf968ca39d485de3e2777564dc1c9724.tar.gz
[skip ci] polyfill .hidden selector
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/bootstrap_migration.scss (renamed from app/assets/stylesheets/framework.bs3.scss)16
-rw-r--r--app/assets/stylesheets/framework.bs4.scss5
-rw-r--r--app/assets/stylesheets/framework.scss3
3 files changed, 17 insertions, 7 deletions
diff --git a/app/assets/stylesheets/framework.bs3.scss b/app/assets/stylesheets/bootstrap_migration.scss
index c895da5023c..fce08da3794 100644
--- a/app/assets/stylesheets/framework.bs3.scss
+++ b/app/assets/stylesheets/bootstrap_migration.scss
@@ -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;
+}
diff --git a/app/assets/stylesheets/framework.bs4.scss b/app/assets/stylesheets/framework.bs4.scss
deleted file mode 100644
index bd1627d2d77..00000000000
--- a/app/assets/stylesheets/framework.bs4.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-// Override variables from bs4
-
-html {
- font-size: 14px;
-}
diff --git a/app/assets/stylesheets/framework.scss b/app/assets/stylesheets/framework.scss
index dba97281c38..14e7b38fffc 100644
--- a/app/assets/stylesheets/framework.scss
+++ b/app/assets/stylesheets/framework.scss
@@ -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";