pleroma/app/styles/components/status.scss

147 lines
2.6 KiB
SCSS
Raw Normal View History

2020-06-02 19:11:01 -07:00
.status {
2022-03-21 11:09:01 -07:00
@apply min-h-[54px] cursor-default;
2020-06-02 19:11:01 -07:00
@supports (-ms-overflow-style: -ms-autohiding-scrollbar) {
// Add margin to avoid Edge auto-hiding scrollbar appearing over content.
// On Edge 16 this is 16px and Edge <=15 it's 12px, so aim for 16px.
padding-right: 26px; // 10px + 16px
}
@keyframes fade {
0% { opacity: 0; }
100% { opacity: 1; }
}
opacity: 1;
animation: fade 150ms linear;
}
2023-01-05 12:53:23 -08:00
[column-type='filled'] .status__wrapper,
[column-type='filled'] .status-placeholder {
2022-03-21 11:09:01 -07:00
@apply rounded-none shadow-none p-4;
}
2020-06-02 19:11:01 -07:00
.status-check-box {
@apply flex items-center justify-between;
2020-06-02 19:11:01 -07:00
.status-check-box__status {
@apply py-2;
2020-06-02 19:11:01 -07:00
.media-gallery {
max-width: 250px;
}
.status__content {
@apply p-0 text-gray-700 dark:text-gray-500 text-sm whitespace-normal;
2020-06-02 19:11:01 -07:00
}
2020-06-24 19:53:25 -07:00
.video-player,
.audio-player {
2020-06-02 19:11:01 -07:00
margin-top: 8px;
max-width: 250px;
}
.media-gallery__item-thumbnail {
cursor: default;
}
}
}
.status-check-box-toggle {
align-items: center;
display: flex;
flex: 0 0 auto;
justify-content: center;
padding: 10px;
}
.focusable:focus,
.focusable-within:focus-within {
2022-03-21 11:09:01 -07:00
outline: 0; /* Required b/c HotKeys lib sets this outline */
@apply ring-2 ring-primary-300;
2020-06-02 19:11:01 -07:00
}
.status-card {
@apply flex text-sm border border-solid border-gray-200 dark:border-gray-800 rounded-lg text-gray-800 dark:text-gray-200 no-underline overflow-hidden;
2020-06-02 19:11:01 -07:00
}
a.status-card {
@apply cursor-pointer hover:bg-gray-100 dark:hover:bg-primary-800/30 hover:no-underline;
2020-06-02 19:11:01 -07:00
}
2020-06-24 19:53:25 -07:00
.status-card-video,
.status-card-audio {
2020-06-02 19:11:01 -07:00
iframe {
2021-05-11 14:54:12 -07:00
width: 100% !important;
height: 100% !important;
2020-06-02 19:11:01 -07:00
}
}
.status-card__image {
2021-05-11 16:15:39 -07:00
flex: 0 0 40%;
2020-06-02 19:11:01 -07:00
position: relative;
2022-08-03 08:33:35 -07:00
overflow: hidden;
2020-06-02 19:11:01 -07:00
2021-11-04 12:57:52 -07:00
& > .svg-icon {
width: 40px;
height: 40px;
2020-06-02 19:11:01 -07:00
position: absolute;
transform-origin: 50% 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
2021-11-04 12:57:52 -07:00
svg {
stroke-width: 1px;
}
2020-06-02 19:11:01 -07:00
}
}
.status-card.horizontal {
display: block;
}
.status-card.compact {
@apply border-gray-200 dark:border-gray-800;
2020-06-02 19:11:01 -07:00
}
.status-card__image-image {
2022-03-21 11:09:01 -07:00
@apply block w-full h-full object-cover bg-cover bg-center;
2020-06-02 19:11:01 -07:00
}
2020-09-02 18:49:40 -07:00
.status-card--link {
@apply flex flex-col md:flex-row;
}
.material-status {
padding-bottom: 10px;
&__status {
padding: 15px 0 10px;
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
border-radius: 10px;
}
2022-03-21 11:09:01 -07:00
.status {
padding: 8px 10px;
&__content {
padding-top: 10px;
}
}
}
2021-10-09 10:33:08 -07:00
.attachment-thumbs {
position: relative;
&__clickable-region {
cursor: pointer;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
}