Move buttons/input stuff into related file

And adjust design for v3 style
This commit is contained in:
Jean-Baptiste Bellet
2023-09-12 15:01:49 +02:00
parent 371e064f82
commit beba709827
4 changed files with 27 additions and 15 deletions

View File

@@ -76,3 +76,18 @@ button:not(.plain):not(.trix-button),
}
}
}
input.red,
a.button.red,
button.red {
background-color: $color-warning;
margin-right: 5px;
color: #ffffff;
}
a.button.red {
&:not(:hover) {
color: #fff;
background-color: $color-warning;
}
}

View File

@@ -38,21 +38,6 @@ div.error:not(.flash) {
margin-bottom: 0;
}
input.red,
a.button.red,
button.red {
background-color: $color-warning;
margin-right: 5px;
color: #ffffff;
}
a.button.red {
&:not(:hover) {
color: #fff;
background-color: $color-warning;
}
}
input.orange {
background-color: #ff9848;
margin-right: 5px;

View File

@@ -89,6 +89,16 @@ button:not(.plain):not(.trix-button),
height: $btn-relaxed-height;
}
&.red {
background-color: $color-btn-red-bg;
border-color: $color-btn-red-bg;
&:hover {
background-color: $color-btn-red-hover-bg;
border-color: $color-btn-red-hover-bg;
}
}
.badge {
position: absolute;
top: 0;

View File

@@ -45,6 +45,8 @@ $color-btn-hover-bg: $orient !default;
$color-btn-hover-text: $white !default;
$color-btn-hover-border: $dark-blue !default;
$color-btn-disabled-bg: $light-grey !default;
$color-btn-red-bg: $red !default;
$color-btn-red-hover-bg: $roof-terracotta !default;
// Actions colors
$color-action-edit-bg: very-light($color-success, 5 ) !default;