More cleanup

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2024-04-29 18:29:02 +02:00
parent b338662227
commit 665895f8fe
11 changed files with 98 additions and 215 deletions

View File

@ -1,159 +1,11 @@
// Language codes that uses CJK fonts
/* stylelint-disable-next-line value-keyword-case -- locale filenames */
$cjk-langs: ja, ko, zh-CN, zh-HK, zh-TW;
.compose-form {
&__warning {
@apply text-xs mb-2.5 px-2.5 py-2 shadow-md rounded bg-accent-300 text-white;
strong {
@apply font-medium;
@each $lang in $cjk-langs {
&:lang(#{$lang}) {
@apply font-bold;
}
}
}
a {
font-weight: 500;
text-decoration: underline;
&:hover,
&:active,
&:focus {
text-decoration: none;
}
}
.compose-form__upload-thumbnail {
&.video {
@apply bg-cover;
background-image: url('../assets/images/video-placeholder.png');
}
&__modifiers {
@apply text-gray-900 text-sm;
font-family: inherit;
}
&__upload {
flex: 1 1 0;
min-width: 40%;
margin: 5px;
position: relative;
border-radius: 4px;
overflow: hidden;
&-description {
@apply bg-gradient-to-b from-transparent via-gray-900/50 to-gray-900/80 absolute z-[2px] bottom-0 left-0 right-0 p-2.5 opacity-0 transition-opacity duration-100 ease-linear;
&.active {
@apply opacity-100;
}
textarea {
@apply bg-transparent text-white border-solid border border-white/25 p-2.5 rounded-md text-sm w-full m-0;
&::placeholder {
@apply text-white/60;
}
}
}
&-preview {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
video {
width: 100%;
height: 100%;
object-fit: cover;
}
}
&-thumbnail {
background-position: center;
background-size: contain;
background-repeat: no-repeat;
height: 160px;
width: 100%;
overflow: hidden;
position: relative;
&.video {
background-image: url('../assets/images/video-placeholder.png');
background-size: cover;
}
&.audio {
background-image: url('../assets/images/audio-placeholder.png');
background-size: cover;
}
}
}
}
.privacy-dropdown {
&.active {
&.top .privacy-dropdown__value {
@apply rounded-t-md;
}
.privacy-dropdown__dropdown {
@apply block shadow-md;
}
}
&__dropdown {
@apply absolute bg-white dark:bg-gray-900 z-[1000] rounded-md shadow-lg ml-10 text-sm overflow-hidden black:bg-black black:border black:border-gray-800;
&.top {
transform-origin: 50% 100%;
}
&.bottom {
transform-origin: 50% 0;
}
}
&__option {
@apply flex p-2.5 text-sm text-gray-700 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 cursor-pointer black:hover:bg-gray-900;
&.active {
@apply bg-gray-100 dark:bg-gray-800 black:bg-gray-900;
}
&:hover,
&.active {
.privacy-dropdown__option__content,
.privacy-dropdown__option__content strong {
@apply text-black dark:text-white;
}
}
&.active {
@apply hover:bg-gray-200 dark:hover:bg-gray-700;
}
&__icon {
@apply flex items-center justify-center mr-2.5 rtl:mr-0 rtl:ml-2.5;
}
&__content {
@apply flex-auto text-primary-600 dark:text-primary-400;
strong {
@apply block font-medium text-black dark:text-white;
@each $lang in $cjk-langs {
&:lang(#{$lang}) {
@apply font-bold;
}
}
}
}
&.audio {
@apply bg-cover;
background-image: url('../assets/images/audio-placeholder.png');
}
}

View File

@ -60,8 +60,6 @@
}
&--compact {
@apply bg-transparent h-12;
.media-gallery__item {
@apply h-12 w-12 inset-auto float-left mr-[5px] #{!important};

View File

@ -13,34 +13,23 @@
@apply bg-transparent dark:bg-transparent rounded-none shadow-none;
}
.status-check-box {
@apply flex items-center justify-between;
.status-check-box__status {
@apply py-2;
.media-gallery {
@apply max-w-[250px];
}
.status__content {
@apply p-0 text-gray-700 dark:text-gray-500 text-sm whitespace-normal;
}
.video-player,
.audio-player {
@apply mt-2 max-w-[250px];
}
.media-gallery__item-thumbnail {
@apply cursor-default;
}
.status-check-box__status {
.media-gallery {
@apply max-w-[250px];
}
}
.status-check-box-toggle {
@apply items-center flex justify-center p-2.5;
flex: 0 0 auto;
.status__content {
@apply p-0 text-gray-700 dark:text-gray-500 text-sm whitespace-normal;
}
.video-player,
.audio-player {
@apply mt-2 max-w-[250px];
}
.media-gallery__item-thumbnail {
@apply cursor-default;
}
}
.focusable:focus,