From e74a893812b15d9da0c47e7ae26328003ecc285f Mon Sep 17 00:00:00 2001 From: Elisabeth Dickinson Date: Mon, 2 Jan 2023 14:03:03 +0100 Subject: [PATCH] [IMP][CSS] Replace text-decoration on link with BS override --- .../odoo_theme/static/scss/bootstrap_overridden.scss | 5 ++++- extensions/odoo_theme/static/style.scss | 10 +++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/extensions/odoo_theme/static/scss/bootstrap_overridden.scss b/extensions/odoo_theme/static/scss/bootstrap_overridden.scss index 4d0199439..8ba5a965d 100644 --- a/extensions/odoo_theme/static/scss/bootstrap_overridden.scss +++ b/extensions/odoo_theme/static/scss/bootstrap_overridden.scss @@ -56,10 +56,13 @@ $font-weight-bolder: 700; $thumbnail-padding: .5rem; +// Links +$link-decoration: none; +$link-hover-decoration: underline; + // Buttons // For each of Bootstrap's buttons, define text, background, and border color. -$btn-font-size: .875rem; $btn-close-padding-x: 0; $btn-font-weight: 500; $btn-close-focus-shadow: 0 0 0 0 transparent; diff --git a/extensions/odoo_theme/static/style.scss b/extensions/odoo_theme/static/style.scss index 67c88da53..0756e815b 100644 --- a/extensions/odoo_theme/static/style.scss +++ b/extensions/odoo_theme/static/style.scss @@ -17,13 +17,7 @@ body { position: relative; a { - &:not(:hover), &.o_logo { - text-decoration: none !important; - } - - &:hover { - text-underline-position: from-font; - } + text-underline-position: from-font; &.external:not(.image-reference):after { content: '#{$i-external-link}'; @@ -100,6 +94,8 @@ header { } > .o_logo { + text-decoration: none; + img { vertical-align: baseline; margin-bottom: -2px;