Enable NestingDepth (level 6) on scss-lint
This commit is contained in:
parent
6d7384f595
commit
1cd0fbd96b
5 changed files with 12 additions and 21 deletions
|
@ -121,7 +121,8 @@ linters:
|
|||
|
||||
# Avoid nesting selectors too deeply.
|
||||
NestingDepth:
|
||||
enabled: false
|
||||
enabled: true
|
||||
max_depth: 6
|
||||
|
||||
# Always use placeholder selectors in @extend.
|
||||
PlaceholderInExtend:
|
||||
|
|
|
@ -216,12 +216,9 @@ body {
|
|||
color: $theme-gray-900;
|
||||
}
|
||||
|
||||
&.active > a {
|
||||
&.active > a,
|
||||
&.active > a:hover {
|
||||
color: $white-light;
|
||||
|
||||
&:hover {
|
||||
color: $white-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -239,10 +239,8 @@
|
|||
fill: currentColor;
|
||||
}
|
||||
|
||||
&.header-user-dropdown-toggle {
|
||||
.header-user-avatar {
|
||||
border-color: $white-light;
|
||||
}
|
||||
&.header-user-dropdown-toggle .header-user-avatar {
|
||||
border-color: $white-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -269,7 +269,7 @@ ul.notes {
|
|||
display: none;
|
||||
}
|
||||
|
||||
&.system-note-commit-list {
|
||||
&.system-note-commit-list:not(.hide-shade) {
|
||||
max-height: 70px;
|
||||
overflow: hidden;
|
||||
display: block;
|
||||
|
@ -291,16 +291,6 @@ ul.notes {
|
|||
bottom: 0;
|
||||
background: linear-gradient(rgba($white-light, 0.1) -100px, $white-light 100%);
|
||||
}
|
||||
|
||||
&.hide-shade {
|
||||
max-height: 100%;
|
||||
overflow: auto;
|
||||
|
||||
&::after {
|
||||
display: none;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
5
changelogs/unreleased/39582-nestingdepth-6.yml
Normal file
5
changelogs/unreleased/39582-nestingdepth-6.yml
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Enable NestingDepth (level 6) on scss-lint
|
||||
merge_request: 15073
|
||||
author: Takuya Noguchi
|
||||
type: other
|
Loading…
Reference in a new issue