Use "filter: brightness" instead of "::before"
This commit is contained in:
parent
d1c1e467a7
commit
156b70f9ef
|
@ -448,7 +448,8 @@
|
||||||
.badge {
|
.badge {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
padding: 0 var(--cell-padding);
|
padding: 0 var(--cell-padding);
|
||||||
position: relative;
|
background: var(--color);
|
||||||
|
border-radius: var(--cell-padding);
|
||||||
user-select: none;
|
user-select: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -456,18 +457,8 @@
|
||||||
height: 20px;
|
height: 20px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
.badge::before {
|
.values.wrap .badge:hover {
|
||||||
background: var(--color);
|
filter: brightness(1.25);
|
||||||
content: "";
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
border-radius: var(--cell-padding);
|
|
||||||
}
|
|
||||||
.values.wrap .badge:hover::before {
|
|
||||||
opacity: 0.7;
|
|
||||||
}
|
}
|
||||||
.values.wrap .badge.extra-info {
|
.values.wrap .badge.extra-info {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
Loading…
Reference in New Issue