From 33d87cd8a47c8f388e3156eaf319eb49b6e8df57 Mon Sep 17 00:00:00 2001 From: Alexis Gousseau Date: Tue, 10 Feb 2026 10:34:25 +0100 Subject: [PATCH] fix: :rotating_light: resolve stylelint errors --- resources/sass/back/app.scss | 5 +- resources/sass/back/inputs/_wysiwyg.scss | 2 +- resources/sass/common/_wysiwyg.scss | 100 ++++++++++++----------- resources/sass/front/base/_common.scss | 5 +- 4 files changed, 58 insertions(+), 54 deletions(-) diff --git a/resources/sass/back/app.scss b/resources/sass/back/app.scss index ba467341..6c67bc4f 100644 --- a/resources/sass/back/app.scss +++ b/resources/sass/back/app.scss @@ -1,7 +1,6 @@ @use '/node_modules/flag-icons/css/flag-icons.min.css'; @use './fonts'; @use './inputs/wysiwyg'; - @tailwind base; @tailwind components; @tailwind utilities; @@ -196,7 +195,7 @@ html { } .jer-edit-buttons > div:hover { - opacity: 80%; + opacity: 0.8; } .jer-copy-pulse:hover { @@ -205,4 +204,4 @@ html { .jer-collection-item-count { @apply cursor-pointer; -} \ No newline at end of file +} diff --git a/resources/sass/back/inputs/_wysiwyg.scss b/resources/sass/back/inputs/_wysiwyg.scss index ed85066a..aaf4d392 100644 --- a/resources/sass/back/inputs/_wysiwyg.scss +++ b/resources/sass/back/inputs/_wysiwyg.scss @@ -16,7 +16,7 @@ @apply cursor-pointer; } - [data-type="taskList"] > li { + [data-type='taskList'] > li { @apply flex flex-row justify-start items-center gap-1.5; } diff --git a/resources/sass/common/_wysiwyg.scss b/resources/sass/common/_wysiwyg.scss index b6b82174..d2c96f03 100644 --- a/resources/sass/common/_wysiwyg.scss +++ b/resources/sass/common/_wysiwyg.scss @@ -1,44 +1,45 @@ $primary-color: #ff4e4e; -$secondary-color: #666666; -$tertiary-color: #222222; +$secondary-color: #666; +$tertiary-color: #222; +$quaternary-color: #fff; .description { - font-weight: 500; - font-size: 14px; - color: $secondary-color; - line-height: 1.75; display: flow-root; + color: $secondary-color; + font-size: 14px; + font-weight: 500; + line-height: 1.75; } .description.small { - font-style: italic; font-size: 14px; + font-style: italic; } .description h1 { + margin-bottom: 0.9em; font-size: 35px; line-height: 1.2; - margin-bottom: 0.9em; } .description h2 { + margin-bottom: 0.7em; font-size: 28px; line-height: 1.2; - margin-bottom: 0.7em; } .description h3 { + margin-bottom: 15px; + color: $tertiary-color; + font-size: 24px; font-weight: 500; line-height: 1.3; - font-size: 24px; - color: $tertiary-color; - margin-bottom: 15px; } .description h4 { - font-weight: 700; - font-size: 18px; margin-bottom: 10px; + font-size: 18px; + font-weight: 700; } .description p { @@ -53,10 +54,6 @@ $tertiary-color: #222222; color: $tertiary-color; } -.description a:hover { - cursor: pointer; -} - .description a:not(.btn) { display: contents; color: $primary-color; @@ -64,6 +61,7 @@ $tertiary-color: #222222; } .description a:hover { + cursor: pointer; text-decoration: none; } @@ -77,40 +75,40 @@ $tertiary-color: #222222; } .description ol { - list-style: decimal; padding-left: 0.75rem; + list-style: decimal; } .description ol li::marker { - font-size: 12px; - margin-right: 12px; margin-top: 6px; + margin-right: 12px; + font-size: 12px; } .description ul li { display: flex; - list-style: none; - font-weight: 500; - font-size: 16px; - color: $tertiary-color; margin-bottom: 15px; + color: $tertiary-color; + font-size: 16px; + font-weight: 500; + list-style: none; } .description ul li::before { - content: "\2714 \fe0e"; - flex: 0 0 auto; display: flex; - align-items: center; - justify-content: center; width: 18px; height: 18px; + flex: 0 0 auto; + align-items: center; + justify-content: center; border-radius: 100%; - background: $primary-color; - font-size: 12px; - color: white; - line-height: 1; - margin-right: 12px; margin-top: 6px; + margin-right: 12px; + background: $primary-color; + color: $quaternary-color; + content: '\2714 \fe0e'; + font-size: 12px; + line-height: 1; } .description figure figcaption { @@ -118,53 +116,61 @@ $tertiary-color: #222222; } .description blockquote, +/* stylelint-disable-next-line selector-class-pattern */ .manifest__quote { - font-size: 30px; margin-bottom: 15px; + font-size: 30px; } .description blockquote, +/* stylelint-disable-next-line selector-class-pattern */ .quote__text { - color: #222222; width: 90%; - font-family: "Satisfy"; + margin-bottom: 20px; + color: #222; + font-family: Satisfy, cursive; font-size: 2vw; line-height: 1.4; - margin-bottom: 20px; } .description blockquote::before, .description blockquote::after, +/* stylelint-disable-next-line selector-class-pattern */ .quote__text::before, +/* stylelint-disable-next-line selector-class-pattern */ .quote__text::after { - content: '"'; - color: #ff4e4e; + color: $primary-color; + content: '"'; } +/* stylelint-disable-next-line no-descending-specificity */ .description blockquote p, +/* stylelint-disable-next-line no-descending-specificity, selector-class-pattern */ .quote__text p { - display: inline; + display: inline; } -@media screen and (max-width: 1240px) { +@media screen and (width <= 1240px) { .description { font-size: 14px; } } -@media screen and (max-width: 767px) { + +@media screen and (width <= 767px) { .description { font-size: 17px; } + .description h3 { - line-height: 1.3; font-size: 24px; + line-height: 1.3; } + .description ul li { font-size: 17px; } + .description ul li::before { - color: white !important; + color: $quaternary-color !important; } } - - diff --git a/resources/sass/front/base/_common.scss b/resources/sass/front/base/_common.scss index d7f16195..013bbd5e 100644 --- a/resources/sass/front/base/_common.scss +++ b/resources/sass/front/base/_common.scss @@ -1,13 +1,12 @@ #newsletter-message { - margin: 6px 0; &.text-success { - color: green; + color: #008000; } &.text-danger { - color: red; + color: #f00; } &.d-none {