signal-desktop/stylesheets/components/ContactPill.scss

75 lines
1.4 KiB
SCSS
Raw Normal View History

2021-03-03 20:09:58 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
.module-ContactPill {
@include rounded-corners;
2021-03-03 20:09:58 +00:00
align-items: center;
display: inline-flex;
user-select: none;
overflow: hidden;
@include light-theme {
color: $color-gray-90;
background: $color-gray-05;
}
@include dark-theme {
color: $color-gray-02;
background: $color-gray-75;
}
&__contact-name {
@include font-body-2;
2023-04-20 17:03:43 +00:00
padding-block: 0;
padding-inline: 6px;
2021-03-03 20:09:58 +00:00
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
&__remove {
$icon: '../images/icons/v2/x-24.svg';
@include button-reset;
height: 100%;
display: flex;
width: 28px;
justify-content: center;
align-items: center;
2023-04-20 17:03:43 +00:00
padding-block: 0;
padding-inline: 4px 6px;
2021-03-03 20:09:58 +00:00
&::before {
content: '';
width: 12px;
height: 12px;
display: block;
@include light-theme {
@include color-svg($icon, $color-gray-60);
}
@include dark-theme {
@include color-svg($icon, $color-gray-25);
}
}
@include keyboard-mode {
&:focus {
background: $color-gray-15;
&::before {
2021-05-28 16:15:17 +00:00
@include color-svg($icon, $color-ultramarine);
2021-03-03 20:09:58 +00:00
}
}
}
@include dark-keyboard-mode {
&:focus {
background: $color-gray-65;
&::before {
2021-05-28 16:15:17 +00:00
@include color-svg($icon, $color-ultramarine-light);
2021-03-03 20:09:58 +00:00
}
}
}
}
}