1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-31 13:44:28 +03:00

Replace Sass variables with custom properties - mx_Indicator (#10808)

This commit is contained in:
Suguru Hirahara
2023-05-16 10:12:45 +00:00
committed by GitHub
parent 9bab356e20
commit ae692f712a
3 changed files with 16 additions and 14 deletions

View File

@ -82,10 +82,6 @@ limitations under the License.
mask-position: center;
}
$dot-size: 8px;
$dot-offset: -3px;
$pulse-color: $alert;
.mx_RightPanel_pinnedMessagesButton {
&::before {
mask-image: url("$(res)/img/element-icons/room/pin.svg");
@ -95,11 +91,11 @@ $pulse-color: $alert;
.mx_RightPanel_headerButton_unreadIndicator_bg {
position: absolute;
right: $dot-offset;
top: $dot-offset;
right: var(--RoomHeader-indicator-dot-offset);
top: var(--RoomHeader-indicator-dot-offset);
margin: 4px;
width: $dot-size;
height: $dot-size;
width: var(--RoomHeader-indicator-dot-size);
height: var(--RoomHeader-indicator-dot-size);
border-radius: 50%;
transform: scale(1.6);
transform-origin: center center;
@ -108,8 +104,8 @@ $pulse-color: $alert;
.mx_RightPanel_headerButton_unreadIndicator {
position: absolute;
right: $dot-offset;
top: $dot-offset;
right: var(--RoomHeader-indicator-dot-offset);
top: var(--RoomHeader-indicator-dot-offset);
margin: 4px;
&.mx_Indicator_red {

View File

@ -262,12 +262,12 @@ limitations under the License.
position: absolute;
right: -3px;
top: -3px;
width: $dot-size;
height: $dot-size;
width: var(--RoomHeader-indicator-dot-size);
height: var(--RoomHeader-indicator-dot-size);
border-radius: 50%;
transform: scale(1);
background: rgba($pulse-color, 1);
box-shadow: 0 0 0 0 rgba($pulse-color, 1);
background: rgba(var(--RoomHeader-indicator-pulseColor), 1);
box-shadow: 0 0 0 0 rgba(var(--RoomHeader-indicator-pulseColor), 1);
animation: mx_Indicator_pulse 2s infinite;
animation-iteration-count: 1;