Skip to content
代码片段 群组 项目
提交 be1ab0cd 编辑于 作者: Mark Florian's avatar Mark Florian
浏览文件

Merge branch 'master-patch-7e1e' into 'master'

Explain when to avoid utility mixins

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/117864



Merged-by: default avatarMark Florian <mflorian@gitlab.com>
Approved-by: default avatarMark Florian <mflorian@gitlab.com>
Co-authored-by: default avatarMartin Wortschack <mwortschack@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -76,7 +76,7 @@ These mixins should be used to replace _magic values_ in our code.
For example a `margin-top: 8px` is a good candidate for the `@include gl-mt-3` mixin replacement.
Avoid using utility mixins for [pre-defined CSS keywords](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_and_Units#pre-defined_keyword_values).
For example prefer `display: flex` over `@include gl-display-flex`.
For example prefer `display: flex` over `@include gl-display-flex`. Utility mixins are particularly useful for encapsulating our design system but there is no need to encapsulate simple properties.
```scss
// Bad
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册