fluxer/fluxer_app/src/components/channel/ChannelStickersArea.module.css
2026-01-01 21:05:54 +00:00

113 lines
2.3 KiB
CSS

/*
* Copyright (C) 2026 Fluxer Contributors
*
* This file is part of Fluxer.
*
* Fluxer is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Fluxer is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
*/
.container {
border-color: var(--background-header-secondary);
background-color: var(--background-secondary-lighter);
padding: 0.5rem 1rem;
}
.withAttachments {
border-top-width: 1px;
border-top-style: solid;
}
.standalone {
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
border-width: 1px;
border-style: solid;
}
.content {
display: flex;
align-items: center;
gap: 0.5rem;
}
.stickerPreview {
position: relative;
display: flex;
height: 4rem;
width: 4rem;
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
background-color: var(--background-tertiary);
}
.stickerImage {
height: 100%;
width: 100%;
border-radius: var(--radius-sm);
object-fit: contain;
padding: 0.25rem;
}
.gifBadge {
position: absolute;
top: 0.25rem;
left: 0.25rem;
border-radius: var(--radius-sm);
background-color: rgba(0, 0, 0, 0.6);
padding: 0.125rem 0.25rem;
font-weight: 600;
font-size: 10px;
color: white;
line-height: 1;
}
.stickerInfo {
flex: 1;
}
.stickerName {
font-weight: 500;
font-size: 0.875rem;
color: var(--text-primary);
}
.stickerDescription {
color: var(--text-primary-muted);
font-size: 0.75rem;
}
.removeButton {
display: flex;
height: 2rem;
width: 2rem;
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
color: var(--text-primary-muted);
transition:
color 0.15s,
background-color 0.15s;
cursor: pointer;
}
.removeButton:hover {
background-color: var(--background-modifier-hover);
color: var(--text-primary);
}
.icon {
height: 1.25rem;
width: 1.25rem;
}