Skip to content

Commit

Permalink
MDL-69391 theme: Darken navbar-light colour
Browse files Browse the repository at this point in the history
Increase the opacity for the sass variable $navbar-light-color a
little bit in order to achieve an acceptable colour contrast against
the white background.
  • Loading branch information
junpataleta committed Sep 3, 2020
1 parent 38abfb6 commit 338fd44
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions theme/boost/scss/preset/default.scss
Expand Up @@ -46,6 +46,7 @@ $headings-font-weight: 300 !default;

// Navbar
$navbar-dark-hover-color: rgba($white, 1) !default;
$navbar-light-color: rgba($black, 0.6) !default;
$navbar-light-hover-color: rgba($black, .9) !default;

// Breadcrumbs
Expand Down
8 changes: 4 additions & 4 deletions theme/boost/style/moodle.css
Expand Up @@ -5577,7 +5577,7 @@ input[type="button"].btn-block {
color: rgba(0, 0, 0, 0.9); }

.navbar-light .navbar-nav .nav-link {
color: rgba(0, 0, 0, 0.5); }
color: rgba(0, 0, 0, 0.6); }
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
color: rgba(0, 0, 0, 0.9); }
.navbar-light .navbar-nav .nav-link.disabled {
Expand All @@ -5590,14 +5590,14 @@ input[type="button"].btn-block {
color: rgba(0, 0, 0, 0.9); }

.navbar-light .navbar-toggler {
color: rgba(0, 0, 0, 0.5);
color: rgba(0, 0, 0, 0.6);
border-color: rgba(0, 0, 0, 0.1); }

.navbar-light .navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.6%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

.navbar-light .navbar-text {
color: rgba(0, 0, 0, 0.5); }
color: rgba(0, 0, 0, 0.6); }
.navbar-light .navbar-text a {
color: rgba(0, 0, 0, 0.9); }
.navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus {
Expand Down
1 change: 1 addition & 0 deletions theme/classic/scss/preset/default.scss
Expand Up @@ -46,6 +46,7 @@ $headings-font-weight: 300 !default;

// Navbar
$navbar-dark-hover-color: rgba($white, 1) !default;
$navbar-light-color: rgba($black, 0.6) !default;
$navbar-light-hover-color: rgba($black, .9) !default;

// Breadcrumbs
Expand Down
8 changes: 4 additions & 4 deletions theme/classic/style/moodle.css
Expand Up @@ -5658,7 +5658,7 @@ input[type="button"].btn-block {
color: rgba(0, 0, 0, 0.9); }

.navbar-light .navbar-nav .nav-link {
color: rgba(0, 0, 0, 0.5); }
color: rgba(0, 0, 0, 0.6); }
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link:focus {
color: rgba(0, 0, 0, 0.9); }
.navbar-light .navbar-nav .nav-link.disabled {
Expand All @@ -5671,14 +5671,14 @@ input[type="button"].btn-block {
color: rgba(0, 0, 0, 0.9); }

.navbar-light .navbar-toggler {
color: rgba(0, 0, 0, 0.5);
color: rgba(0, 0, 0, 0.6);
border-color: rgba(0, 0, 0, 0.1); }

.navbar-light .navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.6%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

.navbar-light .navbar-text {
color: rgba(0, 0, 0, 0.5); }
color: rgba(0, 0, 0, 0.6); }
.navbar-light .navbar-text a {
color: rgba(0, 0, 0, 0.9); }
.navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus {
Expand Down

0 comments on commit 338fd44

Please sign in to comment.