From 9495c2d7a77c3edd02eb0f3be8dfa940162534a3 Mon Sep 17 00:00:00 2001 From: Paul Holden Date: Tue, 27 Aug 2024 11:11:16 +0100 Subject: [PATCH] MDL-81157 files: consistent repository button styling on small screen. --- theme/boost/scss/moodle/core.scss | 3 +-- theme/boost/style/moodle.css | 15 +++++++-------- theme/classic/style/moodle.css | 15 +++++++-------- 3 files changed, 15 insertions(+), 18 deletions(-) diff --git a/theme/boost/scss/moodle/core.scss b/theme/boost/scss/moodle/core.scss index d89855f4297..65dcb0bf1e6 100644 --- a/theme/boost/scss/moodle/core.scss +++ b/theme/boost/scss/moodle/core.scss @@ -2704,8 +2704,7 @@ $picker-emojis-per-row: 7 !default; border: 0; margin: $spacer * 0.125; &.active { - @include button-outline-variant($gray-600); - border-color: $gray-600; + @include button-outline-variant($blue, $active-border: $gray-600); } } } diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 9f78abc228b..e7bc100c25b 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -25734,25 +25734,24 @@ input[disabled] { } .nav-tabs:not(.more-nav) .nav-link.active, .nav-pills .nav-link.active { - color: #6a737b; - border-color: #6a737b; - border-color: #6a737b; + color: #0f6cbf; + border-color: #0f6cbf; } .nav-tabs:not(.more-nav) .nav-link.active:hover, .nav-pills .nav-link.active:hover { color: #fff; - background-color: #6a737b; + background-color: #0f6cbf; border-color: #6a737b; } .nav-tabs:not(.more-nav) .nav-link.active:focus, .nav-tabs:not(.more-nav) .nav-link.active.focus, .nav-pills .nav-link.active:focus, .nav-pills .nav-link.active.focus { - box-shadow: 0 0 0 0.2rem rgba(106, 115, 123, 0.5); + box-shadow: 0 0 0 0.2rem rgba(15, 108, 191, 0.5); } .nav-tabs:not(.more-nav) .nav-link.active.disabled, .nav-tabs:not(.more-nav) .nav-link.active:disabled, .nav-pills .nav-link.active.disabled, .nav-pills .nav-link.active:disabled { - color: #6a737b; + color: #0f6cbf; background-color: transparent; } .nav-tabs:not(.more-nav) .nav-link.active:not(:disabled):not(.disabled):active, .nav-tabs:not(.more-nav) .nav-link.active:not(:disabled):not(.disabled).active, .show > .nav-tabs:not(.more-nav) .nav-link.active.dropdown-toggle, @@ -25760,14 +25759,14 @@ input[disabled] { .nav-pills .nav-link.active:not(:disabled):not(.disabled).active, .show > .nav-pills .nav-link.active.dropdown-toggle { color: #fff; - background-color: #6a737b; + background-color: #0f6cbf; border-color: #6a737b; } .nav-tabs:not(.more-nav) .nav-link.active:not(:disabled):not(.disabled):active:focus, .nav-tabs:not(.more-nav) .nav-link.active:not(:disabled):not(.disabled).active:focus, .show > .nav-tabs:not(.more-nav) .nav-link.active.dropdown-toggle:focus, .nav-pills .nav-link.active:not(:disabled):not(.disabled):active:focus, .nav-pills .nav-link.active:not(:disabled):not(.disabled).active:focus, .show > .nav-pills .nav-link.active.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(106, 115, 123, 0.5); + box-shadow: 0 0 0 0.2rem rgba(15, 108, 191, 0.5); } } @media (max-width: 576px) and (max-height: 320px) { diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 4621502cebd..0a46c109735 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -25734,25 +25734,24 @@ input[disabled] { } .nav-tabs:not(.more-nav) .nav-link.active, .nav-pills .nav-link.active { - color: #6a737b; - border-color: #6a737b; - border-color: #6a737b; + color: #0f6cbf; + border-color: #0f6cbf; } .nav-tabs:not(.more-nav) .nav-link.active:hover, .nav-pills .nav-link.active:hover { color: #fff; - background-color: #6a737b; + background-color: #0f6cbf; border-color: #6a737b; } .nav-tabs:not(.more-nav) .nav-link.active:focus, .nav-tabs:not(.more-nav) .nav-link.active.focus, .nav-pills .nav-link.active:focus, .nav-pills .nav-link.active.focus { - box-shadow: 0 0 0 0.2rem rgba(106, 115, 123, 0.5); + box-shadow: 0 0 0 0.2rem rgba(15, 108, 191, 0.5); } .nav-tabs:not(.more-nav) .nav-link.active.disabled, .nav-tabs:not(.more-nav) .nav-link.active:disabled, .nav-pills .nav-link.active.disabled, .nav-pills .nav-link.active:disabled { - color: #6a737b; + color: #0f6cbf; background-color: transparent; } .nav-tabs:not(.more-nav) .nav-link.active:not(:disabled):not(.disabled):active, .nav-tabs:not(.more-nav) .nav-link.active:not(:disabled):not(.disabled).active, .show > .nav-tabs:not(.more-nav) .nav-link.active.dropdown-toggle, @@ -25760,14 +25759,14 @@ input[disabled] { .nav-pills .nav-link.active:not(:disabled):not(.disabled).active, .show > .nav-pills .nav-link.active.dropdown-toggle { color: #fff; - background-color: #6a737b; + background-color: #0f6cbf; border-color: #6a737b; } .nav-tabs:not(.more-nav) .nav-link.active:not(:disabled):not(.disabled):active:focus, .nav-tabs:not(.more-nav) .nav-link.active:not(:disabled):not(.disabled).active:focus, .show > .nav-tabs:not(.more-nav) .nav-link.active.dropdown-toggle:focus, .nav-pills .nav-link.active:not(:disabled):not(.disabled):active:focus, .nav-pills .nav-link.active:not(:disabled):not(.disabled).active:focus, .show > .nav-pills .nav-link.active.dropdown-toggle:focus { - box-shadow: 0 0 0 0.2rem rgba(106, 115, 123, 0.5); + box-shadow: 0 0 0 0.2rem rgba(15, 108, 191, 0.5); } } @media (max-width: 576px) and (max-height: 320px) {