Hover opacity now properly applies to bar buttons and custom modules respect opacity setting. (#300)
This commit is contained in:
@@ -42,7 +42,7 @@ $transparency-value-hover: 1 - $bar-button-background-hover-opacity-ratio;
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 0.5;
|
opacity: $bar-buttons-background_hover_opacity * 0.01;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.battery {
|
&.battery {
|
||||||
|
|||||||
@@ -47,9 +47,14 @@
|
|||||||
$borderColor,
|
$borderColor,
|
||||||
$fontSize: 1em
|
$fontSize: 1em
|
||||||
) {
|
) {
|
||||||
|
$bar-button-background-opacity-ratio: $bar-buttons-background_opacity * 0.01;
|
||||||
|
$transparency-value: 1 - $bar-button-background-opacity-ratio;
|
||||||
|
|
||||||
|
$bar-button-background-hover-opacity-ratio: $bar-buttons-background_hover_opacity * 0.01;
|
||||||
|
$transparency-value-hover: 1 - $bar-button-background-hover-opacity-ratio;
|
||||||
.bar_item_box_visible {
|
.bar_item_box_visible {
|
||||||
&.#{$class} {
|
&.#{$class} {
|
||||||
background: $labelBackground;
|
background: transparentize($labelBackground, $transparency-value);
|
||||||
border: if(
|
border: if(
|
||||||
$borderEnabled or $bar-buttons-enableBorders,
|
$borderEnabled or $bar-buttons-enableBorders,
|
||||||
$bar-buttons-borderSize solid if($bar-buttons-monochrome, $bar-buttons-icon, $borderColor),
|
$bar-buttons-borderSize solid if($bar-buttons-monochrome, $bar-buttons-icon, $borderColor),
|
||||||
@@ -61,7 +66,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
opacity: 0.5;
|
opacity: $bar-buttons-background_hover_opacity * 0.01;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,7 +100,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.module-label.#{$class} {
|
.module-label.#{$class} {
|
||||||
background: $labelBackground;
|
background: transparentize($labelBackground, $transparency-value);
|
||||||
padding-left: $spacing * 1.5;
|
padding-left: $spacing * 1.5;
|
||||||
margin-left: 0em;
|
margin-left: 0em;
|
||||||
border-top-left-radius: 0em;
|
border-top-left-radius: 0em;
|
||||||
|
|||||||
Reference in New Issue
Block a user