From 10baa62e94914d3d45236347b4306fce0c86a25b Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Sun, 18 May 2025 14:08:40 +0200 Subject: [PATCH] Linting of .scss files --- assets/scss/_content.scss | 2 +- assets/scss/_drawio.scss | 2 +- assets/scss/_nav.scss | 12 ++++++------ assets/scss/_search.scss | 6 +++--- assets/scss/_sidebar-tree.scss | 2 +- assets/scss/_taxonomy.scss | 10 +++++----- assets/scss/main.scss | 14 +++++++------- assets/scss/shortcodes.scss | 4 ++-- assets/scss/support/_utilities.scss | 5 +---- 9 files changed, 27 insertions(+), 30 deletions(-) diff --git a/assets/scss/_content.scss b/assets/scss/_content.scss index 2225809226..165aab8a08 100644 --- a/assets/scss/_content.scss +++ b/assets/scss/_content.scss @@ -96,7 +96,7 @@ } .td-heading-self-link { - &:before { + &::before { content: '#'; } diff --git a/assets/scss/_drawio.scss b/assets/scss/_drawio.scss index 0bbafe6342..6dd735e269 100644 --- a/assets/scss/_drawio.scss +++ b/assets/scss/_drawio.scss @@ -23,7 +23,7 @@ div.drawioframe { height: 100%; width: 100%; top: 0; - left: 0px; + left: 0; z-index: 1000; background: #000b; border: 0; diff --git a/assets/scss/_nav.scss b/assets/scss/_nav.scss index cea78cfebe..8087f906e4 100644 --- a/assets/scss/_nav.scss +++ b/assets/scss/_nav.scss @@ -114,7 +114,7 @@ li i { padding-right: 0.5em; - &:before { + &::before { display: inline-block; text-align: center; min-width: 1em; @@ -127,7 +127,7 @@ border: 0; font-weight: inherit; - &:before { + &::before { display: inline-block; font-style: normal; font-variant: normal; @@ -182,7 +182,7 @@ nav.foldable-nav { padding-left: 1.5em; } - .ul-1 .with-child > label:before { + .ul-1 .with-child > label::before { display: inline-block; font-style: normal; font-variant: normal; @@ -203,7 +203,7 @@ nav.foldable-nav { } } - .ul-1 .with-child > input:checked ~ label:before { + .ul-1 .with-child > input:checked ~ label::before { color: var(--bs-secondary-color); transform: rotate(90deg); transition: transform 0.5s; @@ -216,12 +216,12 @@ nav.foldable-nav { @media (hover: hover) and (pointer: fine) { nav.foldable-nav { - .ul-1 .with-child > label:hover:before { + .ul-1 .with-child > label:hover::before { color: var(--bs-link-color); transition: color 0.3s; } - .ul-1 .with-child > input:checked ~ label:hover:before { + .ul-1 .with-child > input:checked ~ label:hover::before { color: var(--bs-link-color); transition: color 0.3s; } diff --git a/assets/scss/_search.scss b/assets/scss/_search.scss index ad97201966..3df37e55ad 100644 --- a/assets/scss/_search.scss +++ b/assets/scss/_search.scss @@ -19,7 +19,7 @@ // Click-through to the underlying input. pointer-events: none; - &:before { + &::before { @extend .fa; content: fa-content($fa-var-search); } @@ -67,7 +67,7 @@ } .td-search-input { - text-indent: 0px; + text-indent: 0; } } @@ -114,7 +114,7 @@ // cursor: pointer; float: right; - &:after { + &::after { @extend .fas; content: fa-content($fa-var-times); } diff --git a/assets/scss/_sidebar-tree.scss b/assets/scss/_sidebar-tree.scss index 38ca55636a..07eb74185b 100644 --- a/assets/scss/_sidebar-tree.scss +++ b/assets/scss/_sidebar-tree.scss @@ -100,7 +100,7 @@ li i { // Layout of icons padding-right: 0.5em; - &:before { + &::before { display: inline-block; text-align: center; min-width: 1em; diff --git a/assets/scss/_taxonomy.scss b/assets/scss/_taxonomy.scss index 90f2ca80e7..5e8a40300b 100644 --- a/assets/scss/_taxonomy.scss +++ b/assets/scss/_taxonomy.scss @@ -288,7 +288,7 @@ margin-bottom: 1.5rem; } -.article-teaser.article-type-docs h3 a:before { +.article-teaser.article-type-docs h3 a::before { display: inline-block; font-style: normal; font-variant: normal; @@ -299,7 +299,7 @@ padding-right: 0.5em; } -.article-teaser.article-type-blog h3 a:before { +.article-teaser.article-type-blog h3 a::before { display: inline-block; font-style: normal; font-variant: normal; @@ -315,7 +315,7 @@ line-height: 1.2; font-size: 1.5rem; - &:before { + &::before { display: inline-block; font-style: normal; font-variant: normal; @@ -334,11 +334,11 @@ } .breadcrumb { - margin-bottom: 0em; + margin-bottom: 0; font-size: 0.85rem; } .article-meta { - margin-bottom: 0em; + margin-bottom: 0; } } diff --git a/assets/scss/main.scss b/assets/scss/main.scss index ae0129cdc8..4926a6a8eb 100644 --- a/assets/scss/main.scss +++ b/assets/scss/main.scss @@ -8,9 +8,9 @@ @import "../vendor/bootstrap/scss/bootstrap"; @import "support/bootstrap_vers_test"; -@import "../vendor/Font-Awesome/scss/fontawesome.scss"; -@import "../vendor/Font-Awesome/scss/solid.scss"; -@import "../vendor/Font-Awesome/scss/brands.scss"; +@import "../vendor/Font-Awesome/scss/fontawesome"; +@import "../vendor/Font-Awesome/scss/solid"; +@import "../vendor/Font-Awesome/scss/brands"; @import "variables_project_after_bs"; @@ -102,10 +102,10 @@ visibility: hidden; } - h2[id]:before, - h3[id]:before, - h4[id]:before, - h5[id]:before { + h2[id]::before, + h3[id]::before, + h4[id]::before, + h5[id]::before { display: block; content: " "; margin-top: -5rem; diff --git a/assets/scss/shortcodes.scss b/assets/scss/shortcodes.scss index 517d3e8225..eb05199821 100644 --- a/assets/scss/shortcodes.scss +++ b/assets/scss/shortcodes.scss @@ -1,2 +1,2 @@ -@import "shortcodes/tabbed-pane.scss"; -@import "shortcodes/cards-pane.scss"; +@import "shortcodes/tabbed-pane"; +@import "shortcodes/cards-pane"; diff --git a/assets/scss/support/_utilities.scss b/assets/scss/support/_utilities.scss index c691c3b355..245c2bb9d5 100644 --- a/assets/scss/support/_utilities.scss +++ b/assets/scss/support/_utilities.scss @@ -25,10 +25,7 @@ &::after { content: ""; position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; + inset: 0; } &--dark::after {