summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2019-04-01 12:38:30 +0100
committerFilipa Lacerda <filipa@gitlab.com>2019-04-01 15:47:25 +0100
commit39b623e4fa9aacf1a6d03222ed5aa7aeb83f58ec (patch)
tree0aea293c13c814c4e8159d653ce5ad74a1b8f34e
parent9763c9cc0e3c12842ae214b314e2873b483f9583 (diff)
downloadgitlab-ce-docs-css.tar.gz
Adds documentation about the utility classesdocs-css
-rw-r--r--doc/development/fe_guide/style_guide_scss.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/development/fe_guide/style_guide_scss.md b/doc/development/fe_guide/style_guide_scss.md
index b09243598d5..a36229297f5 100644
--- a/doc/development/fe_guide/style_guide_scss.md
+++ b/doc/development/fe_guide/style_guide_scss.md
@@ -5,6 +5,15 @@ easy to maintain, and performant for the end-user.
## Rules
+### Utility Classes
+As part of the effort for [cleaning up our CSS and moving our components into GitLab-UI](https://gitlab.com/groups/gitlab-org/-/epics/950)
+led by the [GitLab UI WG](https://gitlab.com/gitlab-com/www-gitlab-com/merge_requests/20623) we prefer the use of utility classes over adding new CSS. However, complex CSS can be addressed by adding component classes.
+
+We have a few internal utility classes in [`common.scss`](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/stylesheets/framework/common.scss)
+and we use [Bootstrap's Utility Classes](https://getbootstrap.com/docs/4.3/utilities/)
+
+New utility classes should be added in [`common.scss`](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/assets/stylesheets/framework/common.scss) file.
+
### Naming
Filenames should use `snake_case`.