Give light mode effects on hover/active/focus as well

This commit is contained in:
Henrik Giesel 2021-04-14 20:06:35 +02:00
parent 8760bd9ac6
commit dd530dcdc8
5 changed files with 24 additions and 10 deletions

View File

@ -22,6 +22,8 @@
</script>
<style lang="scss">
@use "ts/sass/button_mixins" as button;
button {
padding: 0;
background: content-box linear-gradient(217deg, rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0) 70.71%),
@ -36,8 +38,13 @@
overflow: hidden;
}
.btn-light {
@include button.light-hover-active;
}
input {
display: inline-block;
cursor: pointer;
opacity: 0;
}
</style>

View File

@ -21,6 +21,8 @@
display: flex;
justify-content: space-between;
color: black;
&.nightMode {
color: white;
@ -33,10 +35,6 @@
}
}
&:hover, &:focus {
color: white;
}
&:focus {
box-shadow: none;
}

View File

@ -42,6 +42,10 @@
width: auto;
height: var(--toolbar-size);
}
.btn-light {
@include button.light-hover-active;
}
</style>
<button

View File

@ -35,8 +35,15 @@
</script>
<style lang="scss">
@use "ts/sass/button_mixins" as button;
button {
padding: 0;
}
.btn-light {
@include button.light-hover-active;
}
span {

View File

@ -1,8 +1,6 @@
@mixin disabled {
&[disabled] {
opacity: 0.4;
cursor: not-allowed;
@content;
@mixin light-hover-active {
&:hover, &:focus, &:active, &.active {
background-color: #e3e3e8;
border-color: #e3e3e8;
}
}