bigbuffet-rw/app/styles/components/modal.scss

178 lines
3.2 KiB
SCSS
Raw Normal View History

2020-03-27 13:59:38 -07:00
.modal-root__modal {
2020-05-15 20:48:08 -07:00
pointer-events: auto;
display: flex;
z-index: 9999;
max-height: 100%;
overflow-y: hidden;
2020-03-27 13:59:38 -07:00
}
.media-modal {
2020-06-24 19:53:25 -07:00
.audio-player.detailed,
2020-05-15 20:48:08 -07:00
.extended-video-player {
display: flex;
align-items: center;
justify-content: center;
2020-06-24 19:53:25 -07:00
}
.audio-player {
max-width: 800px;
max-height: 600px;
}
2020-06-24 19:53:25 -07:00
.extended-video-player {
width: 100%;
height: 100%;
2020-03-27 13:59:38 -07:00
2020-05-15 20:48:08 -07:00
video {
@apply max-w-full max-h-[80%];
2020-05-15 20:48:08 -07:00
}
}
2020-03-27 13:59:38 -07:00
}
.error-modal {
@apply text-gray-900;
2020-05-15 20:48:08 -07:00
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
&__body {
display: flex;
2020-05-15 20:48:08 -07:00
flex-direction: column;
justify-content: center;
align-items: center;
height: 80vh;
width: 80vw;
max-width: 520px;
max-height: 420px;
position: relative;
text-align: center;
& > div {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 25px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
opacity: 0;
user-select: text;
}
2020-05-15 20:48:08 -07:00
}
2020-03-27 13:59:38 -07:00
&__footer {
flex: 0 0 auto;
display: flex;
justify-content: center;
padding: 25px;
2020-05-15 20:48:08 -07:00
& > div {
min-width: 33px;
}
2020-05-15 20:48:08 -07:00
}
2020-03-27 13:59:38 -07:00
}
.actions-modal {
@apply flex-col relative text-gray-400 overflow-hidden w-full max-w-lg m-auto bg-white dark:bg-gray-900 shadow-xl rounded-2xl;
max-height: calc(100vh - 3rem);
&__item-label {
font-weight: 500;
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
.dropdown-menu__separator {
@apply block m-2 h-[1px] bg-gray-200 dark:bg-gray-600;
2020-05-15 20:48:08 -07:00
}
2020-05-28 17:58:37 -07:00
&__status {
@apply overflow-y-auto max-h-[300px];
2020-05-15 20:48:08 -07:00
}
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
ul {
2022-03-21 11:09:01 -07:00
@apply my-2 flex-shrink-0 overflow-y-auto;
2020-05-15 20:48:08 -07:00
max-height: calc(100vh - 147px);
2022-03-21 11:09:01 -07:00
&.with-status { max-height: calc(80vh - 75px); }
2020-05-28 17:58:37 -07:00
2020-05-15 20:48:08 -07:00
li:not(:empty) {
2022-03-21 11:09:01 -07:00
a,
button {
@apply flex items-center px-4 py-3 text-gray-700 dark:text-gray-500 hover:bg-gray-100 dark:hover:bg-gray-800 focus:bg-gray-100 dark:focus:bg-primary-800 no-underline text-left;
2020-05-28 17:58:37 -07:00
&.destructive {
@apply text-danger-600 dark:text-danger-400;
2020-05-15 20:48:08 -07:00
}
.svg-icon:first-child {
@apply min-w-[1.25rem] w-5 h-5;
svg {
stroke-width: 1.5;
}
}
2020-05-15 20:48:08 -07:00
}
2022-03-21 11:09:01 -07:00
2023-01-05 12:53:23 -08:00
button[type='button'] {
@apply w-full justify-center text-center;
2022-03-21 11:09:01 -07:00
}
2020-05-15 20:48:08 -07:00
}
}
2020-03-27 13:59:38 -07:00
}
.reply-mentions-modal__accounts {
display: block;
flex-direction: row;
flex: 1;
overflow-y: auto;
min-height: 300px;
2020-06-02 19:11:01 -07:00
}
2022-01-02 12:43:53 -08:00
.remote-interaction-modal {
&__content {
display: flex;
flex-direction: column;
row-gap: 10px;
}
&__fields {
display: flex;
flex-direction: column;
gap: 10px;
width: 100%;
button {
align-self: flex-end;
2022-01-02 12:43:53 -08:00
}
}
&__divider {
display: flex;
align-items: center;
gap: 10px;
margin: 0 -10px;
&::before,
&::after {
@apply border-b border-gray-300 dark:border-gray-600;
2023-01-05 12:53:23 -08:00
content: '';
2022-01-02 12:43:53 -08:00
flex: 1;
}
}
2023-09-16 05:17:00 -07:00
@media screen and (width <= 895px) {
2022-01-02 12:43:53 -08:00
margin: 0;
border-radius: 6px;
height: unset !important;
width: 440px !important;
}
2023-09-16 05:17:00 -07:00
@media screen and (width <= 480px) {
2022-01-02 12:43:53 -08:00
width: 330px !important;
}
}