summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-03-30 18:08:07 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-03-30 18:08:07 +0000
commit2c72daf2f1744f2b8c8c6674c266907e9ef55558 (patch)
treee489b6e87557d3f6d8a94f2e7d4d47e633d646b5 /app/assets/stylesheets
parent4e9acbfba3682c552b3de707c535e6257ef41054 (diff)
downloadgitlab-ce-2c72daf2f1744f2b8c8c6674c266907e9ef55558.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/stylesheets')
-rw-r--r--app/assets/stylesheets/framework/common.scss37
-rw-r--r--app/assets/stylesheets/framework/variables.scss32
-rw-r--r--app/assets/stylesheets/utilities.scss3
3 files changed, 69 insertions, 3 deletions
diff --git a/app/assets/stylesheets/framework/common.scss b/app/assets/stylesheets/framework/common.scss
index 4d8ae8a5652..0aae2f20671 100644
--- a/app/assets/stylesheets/framework/common.scss
+++ b/app/assets/stylesheets/framework/common.scss
@@ -483,6 +483,34 @@ img.emoji {
}
/** COMMON SPACING CLASSES **/
+/**
+ 🚨 Do not use these classes — they are deprecated and being removed. 🚨
+ See https://gitlab.com/gitlab-org/gitlab/issues/36857 for more details.
+
+ Instead, if you need a spacing class, add it below using the following values.
+ $gl-spacing-scale-0: 0;
+ $gl-spacing-scale-1: 2px;
+ $gl-spacing-scale-2: 4px;
+ $gl-spacing-scale-3: 8px;
+ $gl-spacing-scale-4: 12px;
+ $gl-spacing-scale-5: 16px;
+ $gl-spacing-scale-6: 24px;
+ $gl-spacing-scale-7: 32px;
+ $gl-spacing-scale-8: 40px;
+ $gl-spacing-scale-9: 48px;
+ $gl-spacing-scale-10: 56px;
+ $gl-spacing-scale-11: 64px;
+ $gl-spacing-scale-12: 80px;
+ $gl-spacing-scale-13: 96px;
+
+ E.g., a padding top of 96px can be added using:
+ .gl-shim-pt-13 {
+ padding-top: 96px;
+ }
+
+ Please use -shim- so it can be differentiated from the old scale classes.
+ These will be replaced when the Gitlab UI utilities are included.
+**/
@each $index, $padding in $spacing-scale {
#{'.gl-p-#{$index}'} { padding: $padding; }
#{'.gl-pl-#{$index}'} { padding-left: $padding; }
@@ -583,13 +611,11 @@ img.emoji {
.gl-font-size-large { font-size: $gl-font-size-large; }
.gl-line-height-24 { line-height: $gl-line-height-24; }
-.gl-line-height-14 { line-height: $gl-line-height-14; }
.gl-font-size-0 { font-size: 0; }
.gl-font-size-12 { font-size: $gl-font-size-12; }
.gl-font-size-14 { font-size: $gl-font-size-14; }
.gl-font-size-16 { font-size: $gl-font-size-16; }
-.gl-font-size-20 { font-size: $gl-font-size-20; }
.gl-font-size-28 { font-size: $gl-font-size-28; }
.gl-font-size-42 { font-size: $gl-font-size-42; }
@@ -599,3 +625,10 @@ img.emoji {
border-top: 1px solid $border-color;
}
+
+/**
+🚨 Do not use these classes — they clash with the Gitlab UI design system and will be removed. 🚨
+See https://gitlab.com/gitlab-org/gitlab/issues/36857 for more details.
+**/
+.gl-line-height-14 { line-height: $gl-line-height-14; }
+.gl-font-size-20 { font-size: $gl-font-size-20; }
diff --git a/app/assets/stylesheets/framework/variables.scss b/app/assets/stylesheets/framework/variables.scss
index 4d858f88921..86b65ea34f3 100644
--- a/app/assets/stylesheets/framework/variables.scss
+++ b/app/assets/stylesheets/framework/variables.scss
@@ -11,6 +11,38 @@ $default-transition-duration: 0.15s;
$contextual-sidebar-width: 220px;
$contextual-sidebar-collapsed-width: 50px;
$toggle-sidebar-height: 48px;
+
+/**
+ 🚨 Do not use this spacing scale — it is deprecated and being removed. 🚨
+ See https://gitlab.com/gitlab-org/gitlab/issues/36857 for more details.
+
+ Instead, if you need a spacing class, add it to app/assets/stylesheets/framework/common.scss,
+ using the following values.
+
+ $gl-spacing-scale-0: 0;
+ $gl-spacing-scale-1: 2px;
+ $gl-spacing-scale-2: 4px;
+ $gl-spacing-scale-3: 8px;
+ $gl-spacing-scale-4: 12px;
+ $gl-spacing-scale-5: 16px;
+ $gl-spacing-scale-6: 24px;
+ $gl-spacing-scale-7: 32px;
+ $gl-spacing-scale-8: 40px;
+ $gl-spacing-scale-9: 48px;
+ $gl-spacing-scale-10: 56px;
+ $gl-spacing-scale-11: 64px;
+ $gl-spacing-scale-12: 80px;
+ $gl-spacing-scale-13: 96px;
+
+ E.g., a padding top of 96px can be added using:
+ .gl-shim-pt-13 {
+ padding-top: 96px;
+ }
+
+ Please use -shim- so it can be differentiated from the old scale classes.
+
+ These will be replaced when the Gitlab UI utilities are included.
+**/
$spacing-scale: (
0: 0,
1: #{0.5 * $grid-size},
diff --git a/app/assets/stylesheets/utilities.scss b/app/assets/stylesheets/utilities.scss
index f161d76c623..925c15262e9 100644
--- a/app/assets/stylesheets/utilities.scss
+++ b/app/assets/stylesheets/utilities.scss
@@ -67,7 +67,8 @@
.gl-bg-purple-light { background-color: $purple-light; }
// Classes using mixins coming from @gitlab-ui
-// can be removed once https://gitlab.com/gitlab-org/gitlab/merge_requests/19021 has been merged
+// can be removed once the mixins are added.
+// See https://gitlab.com/gitlab-org/gitlab/issues/36857 for more details.
.gl-bg-blue-50 { @include gl-bg-blue-50; }
.gl-bg-red-100 { @include gl-bg-red-100; }
.gl-bg-orange-100 { @include gl-bg-orange-100; }