Skip to content

Commit

Permalink
Merge branch 'MDL-58889-master' of https://github.com/xow/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
David Monllao committed Aug 8, 2017
2 parents 286a38e + 2fd7cdb commit e8e53ef
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
22 changes: 21 additions & 1 deletion theme/boost/scss/moodle/core.scss
@@ -1,5 +1,10 @@
/* core.less */ /* core.less */


// When we upgrade boostrap to v4 release, we will need to change this to be used by the text-white class.
// Because a primary colour that is both AA accessible on grey (footer) and white is not possible, we always
// want white default colour.
$bg-inverse-link-color: #fff !default;

#region-main > .card { #region-main > .card {
overflow-x: auto; overflow-x: auto;
overflow-y: visible; overflow-y: visible;
Expand Down Expand Up @@ -2096,9 +2101,24 @@ ul {
} }
} }


$footer-link-color: $brand-primary !default; // Footer link colour was added to allow the colour of footer links to be changed,
// but really in bootstrap we want the colour of links on .bg-inverse to be changed
// rather than being specific to the footer. This is kept for backwards compatibility.
$footer-link-color: $bg-inverse-link-color !default;
#page-footer a { #page-footer a {
color: $footer-link-color; color: $footer-link-color;
text-decoration: underline;
.icon {
color: $footer-link-color;
}
}

.bg-inverse a {
color: $bg-inverse-link-color;
text-decoration: underline;
.icon {
color: $bg-inverse-link-color;
}
} }


.sitelink { .sitelink {
Expand Down
4 changes: 2 additions & 2 deletions theme/boost/scss/preset/default.scss
Expand Up @@ -12,7 +12,7 @@ $gray-light: #818a91 !default;
$gray-lighter: #eceeef !default; $gray-lighter: #eceeef !default;
$gray-lightest: #f7f7f9 !default; $gray-lightest: #f7f7f9 !default;


$brand-primary: #00acdf !default; $brand-primary: #1177d1 !default;
$brand-success: #77b300 !default; $brand-success: #77b300 !default;
$brand-warning: #ff8800 !default; $brand-warning: #ff8800 !default;
$brand-danger: #ff4136 !default; $brand-danger: #ff4136 !default;
Expand All @@ -27,7 +27,7 @@ $border-width: 1px !default;


// Body // Body
$body-bg: #f4f4f4 !default; $body-bg: #f4f4f4 !default;
$body-color: #3a3a3a !default; $body-color: #262626 !default;


// Typography // Typography
$font-family-sans-serif: "Open Sans", "Helvetica Neue", Arial, sans-serif !default; $font-family-sans-serif: "Open Sans", "Helvetica Neue", Arial, sans-serif !default;
Expand Down
7 changes: 7 additions & 0 deletions theme/boost/upgrade.txt
@@ -0,0 +1,7 @@
This file describes API changes in /theme/boost
information provided here is intended especially for theme designers.

=== 3.4 ===
* For improved accessibility, the footer links for boost have been changed to use $bg-inverse-link-color (defaults to white) and
now have an underline text-decoration. To override the link colour simply set $bg-inverse-link-color in your preset file or
theme scss.

0 comments on commit e8e53ef

Please sign in to comment.