lbry-desktop/ui/scss/component/_modal.scss

167 lines
3.2 KiB
SCSS
Raw Normal View History

2020-03-30 21:43:27 +02:00
.ReactModal__Body--open {
#app {
@media (max-width: $breakpoint-small) {
height: 100vh;
overflow-y: hidden;
}
2020-03-30 21:43:27 +02:00
}
[data-reach-menu] {
z-index: 10000;
}
2020-03-30 21:43:27 +02:00
}
.modal-overlay {
top: 0;
left: 0;
bottom: 0;
2018-10-17 19:14:24 +02:00
right: 0;
align-items: center;
2019-11-22 22:13:00 +01:00
background-color: var(--color-background-overlay);
2018-10-17 19:14:24 +02:00
display: flex;
justify-content: center;
position: fixed;
2017-04-12 22:23:20 +02:00
z-index: 9999;
2022-04-14 23:27:16 +02:00
z-index: 9999;
@media (max-width: $breakpoint-small) {
background-color: rgba(var(--color-header-background-base), 0.95);
}
2017-04-12 22:23:20 +02:00
}
.modal {
2019-11-22 22:13:00 +01:00
@extend .card;
2020-01-02 17:30:27 +01:00
background-color: var(--color-modal-background);
line-height: 1.55;
2019-12-21 22:16:27 +01:00
min-width: 500px;
2018-10-17 19:14:24 +02:00
max-width: var(--modal-width);
2017-04-12 22:23:20 +02:00
overflow: auto;
2020-06-01 19:03:19 +02:00
padding: var(--spacing-l);
2017-07-29 18:59:47 +02:00
word-break: break-word;
2022-04-14 23:27:16 +02:00
background-color: var(--color-modal-background) !important;
border-radius: var(--border-radius);
border: 2px solid #000;
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
.card {
.card__main-actions {
border-top: unset;
}
2018-04-17 04:21:19 +02:00
2022-04-14 23:27:16 +02:00
input {
&:focus {
border: 1px solid var(--color-primary);
box-shadow: unset;
}
}
}
&:focus,
&:focus-visible {
box-shadow: none !important;
background-color: var(--color-modal-background) !important;
}
.claim-preview__wrapper {
&:hover {
background-color: unset;
}
2019-11-22 22:13:00 +01:00
}
2019-12-18 06:27:08 +01:00
@media (max-width: $breakpoint-small) {
width: 100%;
height: 100%;
2019-12-19 21:43:49 +01:00
max-width: 100%;
2019-12-22 23:52:21 +01:00
min-width: auto;
2019-12-18 06:27:08 +01:00
margin-bottom: 0;
border-radius: 0;
2019-12-19 21:43:49 +01:00
.card {
box-shadow: none;
2020-03-30 21:43:27 +02:00
border: none;
2019-12-19 21:43:49 +01:00
}
}
2020-12-11 19:33:27 +01:00
.button--close {
z-index: 10000;
margin-top: var(--spacing-s);
}
2017-04-12 22:23:20 +02:00
}
2019-11-22 22:13:00 +01:00
.modal--card-internal {
padding: 0;
2020-05-21 17:38:28 +02:00
border: none;
2019-11-22 22:13:00 +01:00
.card {
margin: 0;
2022-04-14 23:27:16 +02:00
padding: var(--spacing-l);
border: 2px solid black;
border-radius: var(--border-radius);
.button-toggle {
background-color: rgba(var(--color-header-button-base), 0.4) !important;
&:hover {
background-color: rgba(var(--color-header-button-base), 0.9) !important;
}
}
.button-toggle--active,
.channel__list-item,
.button--secondary,
input {
}
.channel__list-item {
&:hover {
background-color: var(--color-primary);
color: var(--color-primary-contrast);
}
}
label {
color: var(--color-text);
font-size: var(--font-medium);
}
[data-reach-menu-button] {
&:hover {
.channel__list-item--selected {
background-color: var(--color-primary) !important;
}
}
}
@media (max-width: $breakpoint-small) {
.card__main-actions {
border-top: unset !important;
}
}
2019-11-22 22:13:00 +01:00
}
}
2017-04-12 22:23:20 +02:00
.error-modal__content {
display: flex;
2020-06-01 19:03:19 +02:00
padding: 0 var(--spacing-m) var(--spacing-m) var(--spacing-m);
2017-04-12 22:23:20 +02:00
}
.error-modal {
max-width: none;
width: var(--modal-width);
white-space: pre-wrap;
2017-04-12 22:23:20 +02:00
}
2018-03-26 23:32:43 +02:00
.error-modal__error-list {
2018-10-17 19:14:24 +02:00
max-width: var(--modal-width);
max-height: 400px;
2020-06-01 19:03:19 +02:00
margin-top: var(--spacing-s);
padding: var(--spacing-s);
2018-10-17 19:14:24 +02:00
2019-12-09 18:25:13 +01:00
background-color: var(--color-error);
border-left: 2px solid var(--color-text-error);
color: var(--color-text-error);
2018-10-17 19:14:24 +02:00
list-style: none;
overflow-y: scroll;
white-space: pre-wrap;
2018-03-26 23:32:43 +02:00
}