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

View file

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

View file

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

View file

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

View file

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