Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b332f6b

Browse files
committed
Use floats for image background opacity
It seems percentages for opacity are still newish, and they seem to confuse something which is clamping them to the 0 - 1 range (which makes sense for floats, not percentages). Anyway, for now we can get what we want here by using float values. Fixes element-hq/element-web#17036
1 parent d9dac7b commit b332f6b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

res/themes/dark/css/_dark.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $dialog-close-fg-color: #9fa9ba;
8585

8686
$dialog-background-bg-color: $header-panel-bg-color;
8787
$lightbox-background-bg-color: #000;
88-
$lightbox-background-bg-opacity: 85%;
88+
$lightbox-background-bg-opacity: 0.85;
8989

9090
$settings-grey-fg-color: #a2a2a2;
9191
$settings-profile-placeholder-bg-color: #21262c;

res/themes/legacy-dark/css/_legacy-dark.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ $dialog-close-fg-color: #9fa9ba;
8383

8484
$dialog-background-bg-color: $header-panel-bg-color;
8585
$lightbox-background-bg-color: #000;
86-
$lightbox-background-bg-opacity: 85%;
86+
$lightbox-background-bg-opacity: 0.85;
8787

8888
$settings-grey-fg-color: #a2a2a2;
8989
$settings-profile-placeholder-bg-color: #e7e7e7;

res/themes/legacy-light/css/_legacy-light.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ $dialog-close-fg-color: #c1c1c1;
127127

128128
$dialog-background-bg-color: #e9e9e9;
129129
$lightbox-background-bg-color: #000;
130-
$lightbox-background-bg-opacity: 95%;
130+
$lightbox-background-bg-opacity: 0.95;
131131

132132
$imagebody-giflabel: rgba(0, 0, 0, 0.7);
133133
$imagebody-giflabel-border: rgba(0, 0, 0, 0.2);

res/themes/light/css/_light.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ $dialog-close-fg-color: #c1c1c1;
118118

119119
$dialog-background-bg-color: #e9e9e9;
120120
$lightbox-background-bg-color: #000;
121-
$lightbox-background-bg-opacity: 95%;
121+
$lightbox-background-bg-opacity: 0.95;
122122

123123
$imagebody-giflabel: rgba(0, 0, 0, 0.7);
124124
$imagebody-giflabel-border: rgba(0, 0, 0, 0.2);

0 commit comments

Comments
 (0)