diff --git a/htdocs/themes/math4-green/_theme-colors.scss b/htdocs/themes/math4-green/_theme-colors.scss index 4a0d5d4e6e..1211cef9be 100644 --- a/htdocs/themes/math4-green/_theme-colors.scss +++ b/htdocs/themes/math4-green/_theme-colors.scss @@ -3,13 +3,14 @@ // Theme colors $primary: #324f36; -$info: #618265; +$ww-info: #618265; +$ww-info-text: black; // Link colors $link-color: #283f2b; // Webwork logo background color in the banner -$ww-logo-background-color: darken($info, 8%); +$ww-logo-background-color: darken($ww-info, 8%); // Achievment level bar $ww-achievement-level-color: #708e74; diff --git a/htdocs/themes/math4-red/_theme-colors.scss b/htdocs/themes/math4-red/_theme-colors.scss index 26de64dda7..549236d467 100644 --- a/htdocs/themes/math4-red/_theme-colors.scss +++ b/htdocs/themes/math4-red/_theme-colors.scss @@ -3,7 +3,8 @@ // Theme colors $primary: #800; -$info: #c30; +$ww-info: #c30; +$ww-info-text: white; // Link colors $link-color: $primary; @@ -11,7 +12,7 @@ $link-hover-color: #c00; $link-color-dark: tint-color($primary, 50%); // Webwork logo background color in the banner -$ww-logo-background-color: darken($info, 8%); +$ww-logo-background-color: darken($ww-info, 8%); // Achievment level bar $ww-achievement-level-color: #08c; diff --git a/htdocs/themes/math4-yellow/_theme-colors.scss b/htdocs/themes/math4-yellow/_theme-colors.scss index 527681abff..ca814baa84 100644 --- a/htdocs/themes/math4-yellow/_theme-colors.scss +++ b/htdocs/themes/math4-yellow/_theme-colors.scss @@ -3,10 +3,10 @@ // Theme colors $primary: #ffc700; -$info: black; +$ww-info: black; +$ww-info-text: $primary; $primary-bg-subtle-dark: shade-color($primary, 90%); -$info-text-emphasis-dark: tint-color($info, 50%); // Override the default white for the foreground color of active components. // White has poor color contrast with the yellow primary color. @@ -16,7 +16,7 @@ $component-active-color: black; $link-color: shade-color($primary, 60%); // Webwork logo background color in the banner -$ww-logo-background-color: $info; +$ww-logo-background-color: $ww-info; // Achievment level bar $ww-achievement-level-color: darken($primary, 15%); diff --git a/htdocs/themes/math4-yellow/_theme-overrides.scss b/htdocs/themes/math4-yellow/_theme-overrides.scss index 1046436e60..487f3697b1 100644 --- a/htdocs/themes/math4-yellow/_theme-overrides.scss +++ b/htdocs/themes/math4-yellow/_theme-overrides.scss @@ -1,34 +1,3 @@ -// Redo the btn-info to get a nice yellow on black coloring instead of white on black. -// Only the foreground colors are changed. -.btn-info { - @include button-variant( - // background color - $info, - // border color - $info, - // foreground color - $primary, - // hover background color - tint-color($info, $btn-hover-bg-tint-amount), - // hover border color - tint-color($info, $btn-hover-border-tint-amount), - // hover foreground color - $primary, - // active background color - tint-color($info, $btn-active-bg-tint-amount), - // active border color - tint-color($info, $btn-active-border-tint-amount), - // active foreground color - $primary, - // disabled background color - $info, - // disabled border color - $info, - // disabled foreground color - color-contrast($info) - ); -} - .btn-outline-primary { --#{$prefix}btn-color: #{shade_color($primary, 60%)}; --#{$prefix}btn-border-color: #{shade_color($primary, 20%)}; diff --git a/htdocs/themes/math4/_theme-colors.scss b/htdocs/themes/math4/_theme-colors.scss index b40d760909..041cbf372c 100644 --- a/htdocs/themes/math4/_theme-colors.scss +++ b/htdocs/themes/math4/_theme-colors.scss @@ -3,14 +3,15 @@ // Theme colors $primary: #038; -$info: #1a67ea; +$ww-info: #1a67ea; +$ww-info-text: white; // Link colors $link-color: $primary; $link-color-dark: tint-color($primary, 50%); // Webwork logo background color in the banner -$ww-logo-background-color: darken($info, 14%); +$ww-logo-background-color: darken($ww-info, 14%); // Achievment level bar $ww-achievement-level-color: #88d; diff --git a/htdocs/themes/math4/bootstrap.scss b/htdocs/themes/math4/bootstrap.scss index 3114fe8445..dd65a125b0 100644 --- a/htdocs/themes/math4/bootstrap.scss +++ b/htdocs/themes/math4/bootstrap.scss @@ -77,6 +77,36 @@ $link-hover-decoration: underline; --ww-course-config-tab-link-focus-outline-color: #{rgba($primary, $focus-ring-opacity)}; } +// Custom WeBWorK btn-info +.btn-ww-info { + @include button-variant( + // background color + $ww-info, + // border color + $ww-info, + // foreground color + $ww-info-text, + // hover background color + tint-color($ww-info, $btn-hover-bg-tint-amount), + // hover border color + tint-color($ww-info, $btn-hover-border-tint-amount), + // hover foreground color + $ww-info-text, + // active background color + tint-color($ww-info, $btn-active-bg-tint-amount), + // active border color + tint-color($ww-info, $btn-active-border-tint-amount), + // active foreground color + $ww-info-text, + // disabled background color + $ww-info, + // disabled border color + $ww-info, + // disabled foreground color + color-contrast($ww-info) + ); +} + // Overrides a:not(.btn):focus { diff --git a/templates/ContentGenerator/GatewayQuiz.html.ep b/templates/ContentGenerator/GatewayQuiz.html.ep index 78c9becc2b..e8623ff4cf 100644 --- a/templates/ContentGenerator/GatewayQuiz.html.ep +++ b/templates/ContentGenerator/GatewayQuiz.html.ep @@ -356,7 +356,7 @@