signal-desktop/stylesheets/components/UsernameMegaphone.scss

116 lines
2.1 KiB
SCSS
Raw Normal View History

// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-11-15 23:09:31 +00:00
@use '../mixins';
@use '../variables';
.UsernameMegaphone {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-2;
border-radius: 10px;
box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.08);
display: flex;
flex-direction: column;
user-select: none;
2024-11-15 23:09:31 +00:00
z-index: variables.$z-index-megaphone;
padding-block: 12px;
padding-inline: 8px;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
background-color: variables.$color-white;
border: 1px solid variables.$color-gray-20;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background: variables.$color-gray-75;
border: 1px solid variables.$color-gray-60;
}
&__row {
display: flex;
flex-direction: row;
margin-top: 4px;
margin-bottom: 12px;
gap: 12px;
}
&__row__icon {
flex-shrink: 0;
width: 40px;
height: 40px;
margin-bottom: 2px;
margin-inline-start: 8px;
background-size: cover;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
background-image: url(../images/usernames_40_color.svg);
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background-image: url(../images/usernames_40_color_dark.svg);
}
}
&__row__text {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-2;
2024-01-30 19:00:55 +00:00
padding-inline-end: 8px;
h2 {
2024-11-15 23:09:31 +00:00
@include mixins.font-body-2-bold;
margin: 0;
line-height: 20px;
}
p {
margin: 0;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
color: variables.$color-gray-60;
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
color: variables.$color-gray-25;
}
}
}
&__buttons {
display: flex;
flex-direction: row;
justify-content: end;
gap: 12px;
}
&__buttons__button {
margin-bottom: 0;
font-weight: 600;
padding-block: 5px;
2024-11-15 23:09:31 +00:00
@include mixins.light-theme {
background: transparent;
&:hover,
&:active {
2024-11-15 23:09:31 +00:00
@include mixins.not-disabled {
background: transparent;
}
}
}
2024-11-15 23:09:31 +00:00
@include mixins.dark-theme {
background: transparent;
&:hover,
&:active {
2024-11-15 23:09:31 +00:00
@include mixins.not-disabled {
background: transparent;
}
}
}
}
.NavSidebar--narrow & {
display: none;
}
}