lbry-desktop/ui/scss/component/_modal.scss
saltrafael 712e02db16
Use locale/get response to suggest homepage and language switch (#839)
* Use locale/get response to suggest homepage and language switch

* Fix language modal condition

* Fixes from review

* Fixes from review

* Fix gdpr

* string

* Fix multiple options behavior

* Fix gdpr and use only one fetch

* Only show if no languages set or loaded

* pt-br

* Fix ad

* Fix homepage select

* Fix zh langs
2022-03-02 09:44:01 -05:00

202 lines
4 KiB
SCSS

.ReactModal__Body--open {
#app {
@media (max-width: $breakpoint-small) {
height: 100vh;
overflow-y: hidden;
}
}
[data-reach-menu] {
z-index: 10000;
}
}
.modal-overlay {
top: 0;
left: 0;
bottom: 0;
right: 0;
align-items: center;
background-color: var(--color-background-overlay);
display: flex;
justify-content: center;
position: fixed;
z-index: 9999;
z-index: 9999;
@media (max-width: $breakpoint-small) {
background-color: rgba(var(--color-header-background-base), 0.95);
}
}
.modal {
@extend .card;
background-color: var(--color-modal-background);
line-height: 1.55;
min-width: 500px;
max-width: var(--modal-width);
overflow: auto;
padding: var(--spacing-l);
word-break: break-word;
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;
}
input {
background: var(--color-header-button) !important;
&: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;
}
}
@media (max-width: $breakpoint-small) {
width: 100%;
height: 100%;
max-width: 100%;
min-width: auto;
margin-bottom: 0;
border-radius: 0;
.card {
box-shadow: none;
border: none;
}
.card__main-actions {
.section__actions {
.button {
margin-right: var(--spacing-m);
.button__content {
.button__label {
font-size: var(--font-small);
}
}
}
}
.help {
font-size: var(--font-small);
}
.checkbox {
label {
font-size: var(--font-xsmall) !important;
}
}
}
}
.button--close {
z-index: 10000;
margin-top: var(--spacing-s);
}
.radio,
.radio + h1 {
margin-top: var(--spacing-s);
}
}
.modal--card-internal {
padding: 0;
border: none;
.card {
margin: 0;
border: none;
padding: var(--spacing-l);
border: 2px solid black;
border-radius: var(--border-radius);
.form-field--copyable {
background: rgba(var(--color-primary-dynamic), 0.1);
border-top: 1px solid var(--color-border);
border-bottom: 1px solid var(--color-border);
border-left: 1px solid var(--color-border);
}
.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 {
background-color: rgba(var(--color-header-button-base), 0.9) !important;
}
.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;
}
}
}
}
.error-modal__content {
display: flex;
padding: 0 var(--spacing-m) var(--spacing-m) var(--spacing-m);
}
.error-modal {
max-width: none;
width: var(--modal-width);
white-space: pre-wrap;
}
.error-modal__error-list {
max-width: var(--modal-width);
max-height: 400px;
margin-top: var(--spacing-s);
padding: var(--spacing-s);
background-color: var(--color-error);
border-left: 2px solid var(--color-text-error);
color: var(--color-text-error);
list-style: none;
overflow-y: scroll;
white-space: pre-wrap;
}