signal-desktop/stylesheets/components/ScrollDownButton.scss

84 lines
1.7 KiB
SCSS
Raw Normal View History

2023-01-03 19:55:46 +00:00
// Copyright 2018 Signal Messenger, LLC
2022-06-13 23:37:29 +00:00
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
2022-06-13 23:37:29 +00:00
.ScrollDownButton {
position: relative;
2022-06-13 23:37:29 +00:00
height: 36px;
width: 36px;
2022-06-13 23:37:29 +00:00
display: flex;
border-radius: 18px;
border: none;
outline: none;
align-items: center;
justify-content: center;
2022-06-13 23:37:29 +00:00
2024-07-24 00:31:40 +00:00
box-shadow:
2024-11-15 23:09:31 +00:00
0px 0px 2px variables.$color-black-alpha-20,
0px 2px 6px variables.$color-black-alpha-12;
2022-06-13 23:37:29 +00:00
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
background-color: variables.$color-white;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background-color: variables.$color-gray-75;
}
2022-06-13 23:37:29 +00:00
&__icon--unread-mentions {
height: 17px;
width: 17px;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
@include mixins.color-svg(
'../images/icons/v3/at/at.svg',
variables.$color-gray-75
);
2022-06-13 23:37:29 +00:00
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
@include mixins.color-svg(
'../images/icons/v3/at/at.svg',
variables.$color-gray-15
);
2022-06-13 23:37:29 +00:00
}
}
2022-06-13 23:37:29 +00:00
&__icon--unread-messages {
height: 20px;
width: 20px;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
@include mixins.color-svg(
'../images/icons/v3/chevron/chevron-down.svg',
2024-11-15 23:09:31 +00:00
variables.$color-gray-75
);
}
2022-06-13 23:37:29 +00:00
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
@include mixins.color-svg(
'../images/icons/v3/chevron/chevron-down.svg',
2024-11-15 23:09:31 +00:00
variables.$color-gray-15
);
2022-06-13 23:37:29 +00:00
}
}
2022-06-13 23:37:29 +00:00
&__badge {
position: absolute;
top: -8px;
height: 16px;
min-width: 16px;
border-radius: 8px;
padding-block: 1px;
padding-inline: 4px;
2024-11-15 23:09:31 +00:00
background-color: variables.$color-ultramarine;
color: variables.$color-white;
2022-06-13 23:37:29 +00:00
font-size: 10px;
line-height: 14px;
2022-06-13 23:37:29 +00:00
2024-11-15 23:09:31 +00:00
box-shadow: 0px 1px 4px variables.$color-black-alpha-24;
2022-06-13 23:37:29 +00:00
}
}