forked from mirrors/gecko-dev
Bug 1857522 - Reduce max nesting depth to 3. r=Gijs
That still doesn't trigger on the code in comment 2, so that is a bit confusing and needs investigation. Differential Revision: https://phabricator.services.mozilla.com/D190310
This commit is contained in:
parent
fac2ba040c
commit
f3e1e3ff01
15 changed files with 28 additions and 1 deletions
|
|
@ -83,6 +83,7 @@ python/mozbuild/mozbuild/test/backend/data/build/foo.css
|
||||||
|
|
||||||
# This is third-party in a way:
|
# This is third-party in a way:
|
||||||
toolkit/components/pdfjs/content/web/debugger.css
|
toolkit/components/pdfjs/content/web/debugger.css
|
||||||
|
toolkit/components/pdfjs/content/web/viewer.css
|
||||||
|
|
||||||
# Ignore web-platform tests as they are not necessarily under our control.
|
# Ignore web-platform tests as they are not necessarily under our control.
|
||||||
testing/web-platform/tests/
|
testing/web-platform/tests/
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ module.exports = {
|
||||||
],
|
],
|
||||||
|
|
||||||
"max-nesting-depth": [
|
"max-nesting-depth": [
|
||||||
8,
|
3,
|
||||||
{
|
{
|
||||||
ignore: ["blockless-at-rules", "pseudo-classes"],
|
ignore: ["blockless-at-rules", "pseudo-classes"],
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@
|
||||||
@import '../styles/feature-callout';
|
@import '../styles/feature-callout';
|
||||||
@import '../styles/shopping';
|
@import '../styles/shopping';
|
||||||
|
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
$break-point-small: 570px;
|
$break-point-small: 570px;
|
||||||
$break-point-medium: 610px;
|
$break-point-medium: 610px;
|
||||||
$break-point-large: 866px;
|
$break-point-large: 866px;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
.asrouter-toggle {
|
.asrouter-toggle {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
@use 'sass:math';
|
@use 'sass:math';
|
||||||
|
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
.card-outer {
|
.card-outer {
|
||||||
@include context-menu-button;
|
@include context-menu-button;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
.collapsible-section {
|
.collapsible-section {
|
||||||
padding: $section-vertical-padding $section-horizontal-padding;
|
padding: $section-vertical-padding $section-horizontal-padding;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
@use 'sass:math';
|
@use 'sass:math';
|
||||||
|
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
.context-menu {
|
.context-menu {
|
||||||
background: var(--newtab-background-color-secondary);
|
background: var(--newtab-background-color-secondary);
|
||||||
border-radius: $context-menu-border-radius;
|
border-radius: $context-menu-border-radius;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
.ds-highlights {
|
.ds-highlights {
|
||||||
.section {
|
.section {
|
||||||
.section-list {
|
.section-list {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
.ds-navigation {
|
.ds-navigation {
|
||||||
color: var(--newtab-text-primary-color);
|
color: var(--newtab-text-primary-color);
|
||||||
font-size: 11.5px;
|
font-size: 11.5px;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
.outer-wrapper {
|
.outer-wrapper {
|
||||||
.ds-top-sites {
|
.ds-top-sites {
|
||||||
.top-sites {
|
.top-sites {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
.ds-topics-widget {
|
.ds-topics-widget {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
@use 'sass:math';
|
@use 'sass:math';
|
||||||
|
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
$top-sites-size: $grid-unit-small;
|
$top-sites-size: $grid-unit-small;
|
||||||
$top-sites-border-radius: 8px;
|
$top-sites-border-radius: 8px;
|
||||||
$top-sites-icon-border-radius: 4px;
|
$top-sites-icon-border-radius: 4px;
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
@import 'feature-callout-theme';
|
@import 'feature-callout-theme';
|
||||||
|
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
#feature-callout {
|
#feature-callout {
|
||||||
// See _feature-callout-theme.scss for the theme mixins and
|
// See _feature-callout-theme.scss for the theme mixins and
|
||||||
// FeatureCallout.sys.mjs for the color values
|
// FeatureCallout.sys.mjs for the color values
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,8 @@
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
.onboardingContainer.shopping {
|
.onboardingContainer.shopping {
|
||||||
height: auto;
|
height: auto;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
|
/* stylelint-disable max-nesting-depth */
|
||||||
|
|
||||||
.pkt_ext_containerhome,
|
.pkt_ext_containerhome,
|
||||||
.pkt_ext_wrapperhome {
|
.pkt_ext_wrapperhome {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue