From 0bb883a2c5e49a645549fac8a6dfa2ea40e3a6ed Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Mon, 28 Nov 2022 10:42:13 -0600 Subject: [PATCH] Merge pull request #10694 from overleaf/jel-link-color [web] Remove not pseudo-class GitOrigin-RevId: 6cb1abc45c01f408808672a47782d0769f442a20 --- .../frontend/stylesheets/app/cms-page.less | 23 +++++++++++++++ .../stylesheets/app/content_page.less | 29 +++++++++---------- 2 files changed, 37 insertions(+), 15 deletions(-) diff --git a/services/web/frontend/stylesheets/app/cms-page.less b/services/web/frontend/stylesheets/app/cms-page.less index cb0bdb38c7..6ce9eb4b10 100644 --- a/services/web/frontend/stylesheets/app/cms-page.less +++ b/services/web/frontend/stylesheets/app/cms-page.less @@ -4,6 +4,29 @@ including About and Blog */ .cms-page { + &.page-style { + /* + Links and Buttons + */ + + a { + color: @link-color; + &:hover { + color: @link-hover-color; + } + } + // correct color property set on above: + .reset-btns; + .alert { + .alert; + } + .alert-info { + .btn-info { + .btn-alert-info; + } + } + } + padding-bottom: 0; img { height: auto; diff --git a/services/web/frontend/stylesheets/app/content_page.less b/services/web/frontend/stylesheets/app/content_page.less index ba883b0580..71f804d549 100644 --- a/services/web/frontend/stylesheets/app/content_page.less +++ b/services/web/frontend/stylesheets/app/content_page.less @@ -8,22 +8,21 @@ /* Links and Buttons */ - &.cms-page&:not(.page-style) { - a { - color: @link-color-alt; - &:hover { - color: @link-hover-color-alt; - } + + a { + color: @link-color-alt; + &:hover { + color: @link-hover-color-alt; } - // correct color property set on above: - .reset-btns; - .alert { - .alert; - } - .alert-info { - .btn-info { - .btn-alert-info; - } + } + // correct color property set on above: + .reset-btns; + .alert { + .alert; + } + .alert-info { + .btn-info { + .btn-alert-info; } }