From 3e174dbd053761b90f7da60b6379c22dd72d9b38 Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Tue, 14 Jan 2025 11:10:16 -0500 Subject: [PATCH 1/6] Fix styling for visited button links in CK Editor --- stylesheets/components/form/_button.styl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stylesheets/components/form/_button.styl b/stylesheets/components/form/_button.styl index c33898f4..663c1b1d 100644 --- a/stylesheets/components/form/_button.styl +++ b/stylesheets/components/form/_button.styl @@ -156,4 +156,7 @@ #content a.btn:link, #content a.button:link, .main a.button:link, #content .button a:link text-decoration: none - background-image: none \ No newline at end of file + background-image: none + +#content a.btn:visited, #content a.button:visited, .main a.button:visited, #content .button a:visited + color: #fff From ac2a6dfee1346405dfbc4b5bff65222b3507e1e9 Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Tue, 14 Jan 2025 11:33:40 -0500 Subject: [PATCH 2/6] Remove underlined links from items on news page --- stylesheets/components/news/_news_card.styl | 1 + 1 file changed, 1 insertion(+) diff --git a/stylesheets/components/news/_news_card.styl b/stylesheets/components/news/_news_card.styl index 889e0330..4a473839 100644 --- a/stylesheets/components/news/_news_card.styl +++ b/stylesheets/components/news/_news_card.styl @@ -52,6 +52,7 @@ a display: inline-block text-transform: none + text-decoration: none span display: block From 69b2fa595937ad8b94a1656dc41ff71ec33d26b5 Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Wed, 15 Jan 2025 12:00:26 -0500 Subject: [PATCH 3/6] CKEditor Underline links --- stylesheets/base/global/_universal.styl | 3 --- stylesheets/components/news/_news_card.styl | 1 - stylesheets/patterns-cob-theme.styl | 22 ++++++++++++++------- 3 files changed, 15 insertions(+), 11 deletions(-) diff --git a/stylesheets/base/global/_universal.styl b/stylesheets/base/global/_universal.styl index d2487133..0aea51d8 100644 --- a/stylesheets/base/global/_universal.styl +++ b/stylesheets/base/global/_universal.styl @@ -4,9 +4,6 @@ img border: 0 -#content a:hover:not(p), #content a:hover:not(div), #content a - text-decoration: underline - a color: $optimistic-blue-dark text-decoration: none diff --git a/stylesheets/components/news/_news_card.styl b/stylesheets/components/news/_news_card.styl index 4a473839..889e0330 100644 --- a/stylesheets/components/news/_news_card.styl +++ b/stylesheets/components/news/_news_card.styl @@ -52,7 +52,6 @@ a display: inline-block text-transform: none - text-decoration: none span display: block diff --git a/stylesheets/patterns-cob-theme.styl b/stylesheets/patterns-cob-theme.styl index 81aeb0e4..4ee03c9b 100644 --- a/stylesheets/patterns-cob-theme.styl +++ b/stylesheets/patterns-cob-theme.styl @@ -93,9 +93,22 @@ svg:not(:root) { color: $optimistic-blue-dark; text-decoration: none } -#content a:link, .main a:link { +.intro-text a, +article .body a, +.field-three-col-description a, +.field-type-text-long a, +.paragraphs-item-text-one-column a, +.lcdl-d a { text-decoration: underline } +.intro-text a:visited, +article .body a:visited, +.field-three-col-description a:visited, +.field-type-text-long a:visited, +.paragraphs-item-text-one-column a:visited, +.lcdl-d a { + color: #393FAC +} #content p a[target=_blank], .main p a[target=_blank], #content span a[target=_blank], .main span a[target=_blank] { background-image: url(../images/global/icons/external-link.svg); background-repeat: no-repeat; @@ -114,9 +127,6 @@ svg:not(:root) { .inverted:visited { color: $freedom-red-dark } -#content p a:visited, .main p a:visited { - color: #393FAC -} a:hover, a:focus { color: $freedom-red-dark @@ -136,9 +146,7 @@ a:active, a:hover { outline: 0 } -#content a:hover:not(div), #content a:hover:not(p) { - text-decoration: underline -} + @media print { :link, :visited { From 2464ddea8913118402ae952349758d589edb51b1 Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Thu, 16 Jan 2025 10:57:33 -0500 Subject: [PATCH 4/6] CKEditoor external link icon removal. --- stylesheets/patterns-cob-theme.styl | 8 -------- 1 file changed, 8 deletions(-) diff --git a/stylesheets/patterns-cob-theme.styl b/stylesheets/patterns-cob-theme.styl index 4ee03c9b..7bff32fd 100644 --- a/stylesheets/patterns-cob-theme.styl +++ b/stylesheets/patterns-cob-theme.styl @@ -109,14 +109,6 @@ article .body a:visited, .lcdl-d a { color: #393FAC } -#content p a[target=_blank], .main p a[target=_blank], #content span a[target=_blank], .main span a[target=_blank] { - background-image: url(../images/global/icons/external-link.svg); - background-repeat: no-repeat; - background-position: calc(100% - 0px) 50%; - background-size: 16px; - padding-right: 20px; - display: inline-block; -} .inverted, .inverted:link { color: $freedom-red-dark From 8c59bf1ad774983c67278a879d486ee5ad8a60de Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Thu, 16 Jan 2025 14:54:06 -0500 Subject: [PATCH 5/6] Code cleanup foor CKEditor fix --- stylesheets/components/card/_card.styl | 3 --- stylesheets/components/card/_featured-guide.styl | 3 --- stylesheets/components/card/_guide-card.styl | 2 -- stylesheets/components/card/_link-card-list.styl | 2 -- stylesheets/components/card/_link-card-mini.styl | 3 --- stylesheets/components/card/_link-card.styl | 3 --- stylesheets/components/card/_person.styl | 3 --- stylesheets/components/card/_status.styl | 3 --- stylesheets/components/link-with-icon/_link.styl | 3 --- stylesheets/components/sticky-submenu/_sticky-submenu.styl | 3 --- 10 files changed, 28 deletions(-) diff --git a/stylesheets/components/card/_card.styl b/stylesheets/components/card/_card.styl index 861f2095..7404ed0c 100644 --- a/stylesheets/components/card/_card.styl +++ b/stylesheets/components/card/_card.styl @@ -217,6 +217,3 @@ .cd.g--4 @media $media-large-max lost-column: 12/12 - -#content a.cd:link, #content .cd a:link, .main .cd a:link - text-decoration: none \ No newline at end of file diff --git a/stylesheets/components/card/_featured-guide.styl b/stylesheets/components/card/_featured-guide.styl index d1285d3f..8b9a955d 100644 --- a/stylesheets/components/card/_featured-guide.styl +++ b/stylesheets/components/card/_featured-guide.styl @@ -190,6 +190,3 @@ .cdfg.focus-active:hover:before background-color: $optimistic-blue - -#content a.cdfg:link - text-decoration: none \ No newline at end of file diff --git a/stylesheets/components/card/_guide-card.styl b/stylesheets/components/card/_guide-card.styl index b0c8934d..1d080cc9 100644 --- a/stylesheets/components/card/_guide-card.styl +++ b/stylesheets/components/card/_guide-card.styl @@ -189,5 +189,3 @@ background-color: $blended-optimistic-blue background-blend-mode: multiply -#content a.gcd:link, .main a.gcd:link - text-decoration: none diff --git a/stylesheets/components/card/_link-card-list.styl b/stylesheets/components/card/_link-card-list.styl index 49f0a51b..7d45b4ec 100644 --- a/stylesheets/components/card/_link-card-list.styl +++ b/stylesheets/components/card/_link-card-list.styl @@ -138,5 +138,3 @@ .description line-height: 2em -#content a.lcdl:link, #content .lcdl a:link, .main .lcdl a:link - text-decoration: none diff --git a/stylesheets/components/card/_link-card-mini.styl b/stylesheets/components/card/_link-card-mini.styl index 6b023968..cb76bb6b 100644 --- a/stylesheets/components/card/_link-card-mini.styl +++ b/stylesheets/components/card/_link-card-mini.styl @@ -83,6 +83,3 @@ .external .lcd--sm-im background-image: url(/images/global/icons/external-link.svg) - -#content a.lcd--sm:link, #content .lcd--sm a:link, .main .lcd--sm a:link - text-decoration: none \ No newline at end of file diff --git a/stylesheets/components/card/_link-card.styl b/stylesheets/components/card/_link-card.styl index 638b878b..55461cd7 100644 --- a/stylesheets/components/card/_link-card.styl +++ b/stylesheets/components/card/_link-card.styl @@ -146,6 +146,3 @@ .external .lcd-im background-image: url(/images/global/icons/external-link.svg) - -#content a.lcd:link, .main a.lcd:link - text-decoration: none \ No newline at end of file diff --git a/stylesheets/components/card/_person.styl b/stylesheets/components/card/_person.styl index b37d15b7..11e2aa3f 100644 --- a/stylesheets/components/card/_person.styl +++ b/stylesheets/components/card/_person.styl @@ -127,6 +127,3 @@ .cdp-l.focus-active:hover:focus .cdp-st color: $white - -#content a.cdp-l:link - text-decoration: none \ No newline at end of file diff --git a/stylesheets/components/card/_status.styl b/stylesheets/components/card/_status.styl index 95630b7b..95b2b6ef 100644 --- a/stylesheets/components/card/_status.styl +++ b/stylesheets/components/card/_status.styl @@ -117,6 +117,3 @@ .cds-l.focus-active:focus .svg-fill-hover fill: $optimistic-blue-light - -#content a.cds-l:link - text-decoration: none \ No newline at end of file diff --git a/stylesheets/components/link-with-icon/_link.styl b/stylesheets/components/link-with-icon/_link.styl index 1b06b54a..245263f0 100644 --- a/stylesheets/components/link-with-icon/_link.styl +++ b/stylesheets/components/link-with-icon/_link.styl @@ -97,6 +97,3 @@ a.lwi.focus-active:focus .lwi.focus-active:focus .lwi-t color: $white - -#content a.lwi:link, .main a.lwi:link - text-decoration: none \ No newline at end of file diff --git a/stylesheets/components/sticky-submenu/_sticky-submenu.styl b/stylesheets/components/sticky-submenu/_sticky-submenu.styl index e5baa194..53400818 100644 --- a/stylesheets/components/sticky-submenu/_sticky-submenu.styl +++ b/stylesheets/components/sticky-submenu/_sticky-submenu.styl @@ -257,6 +257,3 @@ text-decoration: none color: $white background-color: $freedom-red-dark - -#content .ssm a:link, .main .ssm a:link, .ssm a - text-decoration: none From 0615b4215625e79831fedba3b3905dd1f94f9c3a Mon Sep 17 00:00:00 2001 From: "stella.ubaha@boston.gov" Date: Thu, 16 Jan 2025 15:18:21 -0500 Subject: [PATCH 6/6] Code cleanup foor CKEditor fix --- stylesheets/components/event-card/_event.styl | 3 --- stylesheets/components/news/_news.styl | 3 --- 2 files changed, 6 deletions(-) diff --git a/stylesheets/components/event-card/_event.styl b/stylesheets/components/event-card/_event.styl index 200648a4..2e5b7b1e 100644 --- a/stylesheets/components/event-card/_event.styl +++ b/stylesheets/components/event-card/_event.styl @@ -163,6 +163,3 @@ .evt.focus-active:hover .evt-t color: $optimistic-blue-light - -#content a.evt:link - text-decoration: none \ No newline at end of file diff --git a/stylesheets/components/news/_news.styl b/stylesheets/components/news/_news.styl index 917f2b44..db50d829 100644 --- a/stylesheets/components/news/_news.styl +++ b/stylesheets/components/news/_news.styl @@ -131,6 +131,3 @@ .news-item-news:last-child margin-bottom: 50px - -#content a.n--a:link - text-decoration: none \ No newline at end of file