signal-desktop/stylesheets/components/CallLinkEditModal.scss

168 lines
3.1 KiB
SCSS
Raw Normal View History

2024-06-10 15:23:43 +00:00
// Copyright 2024 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
2024-06-25 18:56:28 +00:00
// Overriding default style
.module-Modal__body.CallLinkEditModal__body {
padding-inline: 12px 3px;
scrollbar-gutter: stable;
}
2024-06-10 15:23:43 +00:00
.CallLinkEditModal__SrOnly {
@include sr-only;
}
.CallLinkEditModal__Header {
display: flex;
gap: 16px;
align-items: center;
margin-bottom: 26px;
}
.CallLinkEditModal__Header__Details {
2024-06-25 18:56:28 +00:00
flex: 1;
2024-06-10 15:23:43 +00:00
display: flex;
flex-direction: column;
2024-06-25 18:56:28 +00:00
gap: 0;
2024-06-10 15:23:43 +00:00
min-width: 0; // fix overflow issue
}
2024-06-25 18:56:28 +00:00
.CallLinkEditModal__Header__Title {
@include font-body-1-bold;
2024-06-10 15:23:43 +00:00
}
2024-06-25 18:56:28 +00:00
.CallLinkEditModal__Header__CallLinkButton {
2024-06-10 15:23:43 +00:00
@include button-reset;
2024-06-25 18:56:28 +00:00
@include font-subtitle;
2024-06-10 15:23:43 +00:00
@include light-theme {
2024-06-25 18:56:28 +00:00
color: $color-gray-60;
2024-06-10 15:23:43 +00:00
}
@include dark-theme {
2024-06-25 18:56:28 +00:00
color: $color-gray-25;
2024-06-10 15:23:43 +00:00
}
}
2024-06-25 18:56:28 +00:00
.CallLinkEditModal__Header__CallLinkButton__Text {
overflow: hidden;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
}
.CallLinkEditModal__Header__Actions {
display: flex;
gap: 14px;
align-items: center;
}
2024-06-10 15:23:43 +00:00
.CallLinkEditModal__JoinButton {
@include font-body-1-bold;
}
2024-06-25 18:56:28 +00:00
.CallLinkEditModal__Row {
2024-06-10 15:23:43 +00:00
display: flex;
2024-06-25 18:56:28 +00:00
padding: 12px;
2024-06-10 15:23:43 +00:00
align-items: center;
2024-06-25 18:56:28 +00:00
gap: 16px;
2024-06-10 15:23:43 +00:00
}
2024-06-25 18:56:28 +00:00
.CallLinkEditModal__RowButton {
@include button-reset;
width: 100%;
padding-block: 1px;
.CallLinkEditModal__Row {
border-radius: 8px;
}
&:hover,
&:focus {
.CallLinkEditModal__Row {
@include light-theme {
background: $color-gray-02;
}
@include dark-theme {
background: $color-gray-75;
}
}
}
2024-06-10 15:23:43 +00:00
}
2024-06-25 18:56:28 +00:00
.CallLinkEditModal__Row--Button {
2024-06-10 15:23:43 +00:00
@include font-body-2;
display: flex;
gap: 8px;
align-items: center;
width: 100%;
@include light-theme {
color: $color-black;
}
@include dark-theme {
color: $color-gray-15;
}
}
2024-06-25 18:56:28 +00:00
.CallLinkEditModal__RowLabel {
@include font-body-1;
flex: 1;
}
.CallLinkEditModal__RowIcon {
2024-06-10 15:23:43 +00:00
display: flex;
align-items: center;
justify-content: center;
2024-06-25 18:56:28 +00:00
width: 20px;
height: 20px;
2024-06-10 15:23:43 +00:00
&::after {
content: '';
display: block;
width: 20px;
height: 20px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
}
2024-06-25 18:56:28 +00:00
@mixin CallLinkEditModal__RowIcon($iconPath) {
2024-06-10 15:23:43 +00:00
&::after {
@include light-theme {
2024-06-25 18:56:28 +00:00
@include color-svg($iconPath, $color-gray-75);
2024-06-10 15:23:43 +00:00
}
@include dark-theme {
2024-06-25 18:56:28 +00:00
@include color-svg($iconPath, $color-gray-15);
2024-06-10 15:23:43 +00:00
}
}
}
2024-06-25 18:56:28 +00:00
.CallLinkEditModal__RowIcon--Edit {
@include CallLinkEditModal__RowIcon('../images/icons/v3/edit/edit.svg');
}
.CallLinkEditModal__RowIcon--Approve {
@include CallLinkEditModal__RowIcon(
'../images/icons/v3/person/person-check-compact.svg'
);
}
.CallLinkEditModal__RowIcon--Copy {
@include CallLinkEditModal__RowIcon('../images/icons/v3/copy/copy.svg');
}
.CallLinkEditModal__RowIcon--Share {
@include CallLinkEditModal__RowIcon('../images/icons/v3/forward/forward.svg');
}
.CallLinkEditModal__Hr {
border: none;
height: 1px;
background: $color-black-alpha-12;
}
// Overriding default style
.CallLinkEditModal__RowSelect.module-select select {
min-width: 0;
2024-06-10 15:23:43 +00:00
}