TelegramPWA/src/components/right/StickerSearch.scss

94 lines
1.6 KiB
SCSS

.StickerSearch {
container: stickers / inline-size;
height: 100%;
padding: 0 0.5rem;
overflow-y: auto;
overflow-x: hidden;
@supports (overflow-y: overlay) {
overflow-y: overlay;
}
.helper-text {
padding: 1rem;
margin-bottom: 0.125rem;
font-weight: 500;
color: var(--color-text-secondary);
}
.sticker-set {
margin-bottom: 1rem;
&-header {
display: flex;
justify-content: space-between;
padding: 0.5rem;
.title-wrapper {
overflow: hidden;
}
.title {
font-size: 1rem;
line-height: 1.6875rem;
margin: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.count {
color: var(--color-text-secondary);
margin: 0;
}
.Button {
flex-shrink: 0;
margin-left: 1rem;
&.is-added {
background: var(--color-chat-hover);
color: var(--color-text-secondary);
&:hover,
&:active {
background: var(--color-item-active) !important;
}
}
}
}
&-main {
display: flex;
flex-wrap: nowrap;
}
&[dir="rtl"] {
.title-wrapper {
text-align: right;
}
.Button {
margin-left: 0;
margin-right: 1rem;
}
}
}
.StickerButton {
margin: 0.125rem;
@media (max-width: 380px) {
&:last-child {
display: none;
}
}
}
}
@container (max-width: 376px) {
.StickerSearch .StickerButton:last-child {
display: none;
}
}