Allow different hover button colors per tenant

This commit is contained in:
Javi Martín
2022-10-29 01:02:51 +02:00
parent d0d8f9cc1e
commit ccbdfb8e78
3 changed files with 9 additions and 8 deletions

View File

@@ -5,14 +5,16 @@
// `.tenant-public` selector.
//
// You can use CSS variables to customize the colors. Here's an example
// changing the brand, links and main layout colors for just the main
// tenant.
// changing the brand, buttons, links and main layout colors for just
// the main tenant.
//
// .tenant-public {
// --anchor-color: #372;
// --anchor-color-hover: #137;
// --brand: #153;
// --brand-secondary: #134a00;
// --button-background-hover: #fa0;
// --button-background-hover-contrast: #{$black};
// --footer: #e6e6e6;
// --main-header: #351;
// --top-links: var(--main-header);

View File

@@ -122,7 +122,6 @@ button,
.button {
@extend %button;
@include brand-background;
&.medium {
font-size: $small-font-size;

View File

@@ -14,10 +14,6 @@
}
}
%button {
@include base-button;
}
@mixin regular-button($color: $brand) {
@include base-button;
@@ -29,10 +25,14 @@
&:hover,
&:focus {
@include background-with-text-contrast($button-background-hover);
@include background-with-text-contrast($button-background-hover, button-background-hover);
}
}
%button {
@include regular-button;
}
@mixin hollow-button($color: $anchor-color) {
@include normal-selection;
@include base-button;