Skip to content
代码片段 群组 项目
未验证 提交 8af5cc22 编辑于 作者: Sujal Gupta's avatar Sujal Gupta 提交者: GitLab
浏览文件

Move CSS Classes `tab-width-X` from `utilities.scss` to...

Move CSS Classes `tab-width-X` from `utilities.scss` to `app/assets/stylesheets/framework/layout.scss`
上级 c3958fe4
No related branches found
No related tags found
无相关合并请求
......@@ -169,3 +169,18 @@ html {
padding-right: 0;
}
}
/*
* These are used by the `Tab width` user preference in
* `https://gitlab.com/-/profile/preferences`. The `css_class_for_user` method in
* `lib/gitlab/tab_width.rb` is used to add one of these classes to the `body` element.
*/
@for $i from 1 through 12 {
#{'.tab-width-#{$i}'} {
/* stylelint-disable-next-line property-no-vendor-prefix */
-moz-tab-size: $i;
tab-size: $i;
}
}
......@@ -40,14 +40,6 @@ $type-scale: (
}
}
@for $i from 1 through 12 {
#{'.tab-width-#{$i}'} {
/* stylelint-disable-next-line property-no-vendor-prefix */
-moz-tab-size: $i;
tab-size: $i;
}
}
// stylelint-disable-next-line gitlab/no-gl-class
.gl-top-app-header {
top: $calc-application-header-height;
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册