mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 01:05:53 -04:00
f9402f5aaa
This allows the user to jump to a specific sticker pack in the sticker picker. The list hides and shows when scrolling so no view size is lost. It also contains a quick shortcut to the sticker settings.
125 lines
2.5 KiB
SCSS
125 lines
2.5 KiB
SCSS
// component styles are encapsulated and only applied to their components
|
|
@import "../../../style/themes/themes";
|
|
|
|
@include themifyComponent() {
|
|
.control-page {
|
|
position: fixed;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: themed(stickerPickerControlBgColor);
|
|
color: themed(stickerPickerControlFgColor);
|
|
}
|
|
|
|
.loading-badge {
|
|
text-align: center;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.auth-error {
|
|
text-align: center;
|
|
position: relative;
|
|
padding: 20px;
|
|
color: themed(stickerPickerErrorColor);
|
|
}
|
|
|
|
.no-stickers {
|
|
text-align: center;
|
|
|
|
img {
|
|
width: 96px;
|
|
height: 96px;
|
|
margin-top: 40px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.message {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.sticker-picker {
|
|
margin: 15px 15px 30px;
|
|
padding-bottom: 40px;
|
|
|
|
.sticker-pack {
|
|
.header {
|
|
margin-top: 15px;
|
|
margin-left: 3px;
|
|
|
|
.title {
|
|
font-weight: 700;
|
|
color: themed(stickerPickerTitleColor);
|
|
}
|
|
|
|
.license {
|
|
font-size: 0.6em;
|
|
font-weight: 300;
|
|
color: themed(stickerPickerLicenseColor);
|
|
margin-top: 3px;
|
|
float: right;
|
|
|
|
a {
|
|
color: themed(stickerPickerLicenseColor);
|
|
}
|
|
}
|
|
|
|
.author {
|
|
font-size: 0.6em;
|
|
font-weight: 300;
|
|
color: themed(stickerPickerAuthorColor);
|
|
display: block;
|
|
|
|
a {
|
|
color: themed(stickerPickerAuthorColor);
|
|
}
|
|
}
|
|
}
|
|
|
|
.stickers {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
.sticker {
|
|
padding: 5px;
|
|
margin: 2px;
|
|
cursor: pointer;
|
|
border-radius: 3px;
|
|
background-color: themed(stickerPickerStickerBgColor);
|
|
box-shadow: 0 2px 6px themed(stickerPickerShadowColor);
|
|
}
|
|
}
|
|
}
|
|
|
|
.sticker-pack-list {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: themed(stickerPickerControlBgColor);
|
|
border-top: 1px solid themed(stickerPickerShadowColor);
|
|
overflow-x: auto;
|
|
white-space: nowrap;
|
|
padding: 1px 15px;
|
|
|
|
.sticker-pack-list-item {
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
padding: 0 3px;
|
|
}
|
|
|
|
.sticker-pack-list-config {
|
|
display: inline-block;
|
|
cursor: pointer;
|
|
height: 40px;
|
|
width: 40px;
|
|
padding: 3px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
}
|
|
}
|
|
}
|
|
} |