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

134 lines
2.5 KiB
SCSS
Raw Normal View History

2020-07-09 20:18:56 +02:00
$nag-z-index: 997;
$nag-helpful-z-index: 998;
$nag-error-z-index: 999;
2019-12-06 22:12:48 +01:00
.nag {
z-index: $nag-z-index;
2019-12-06 22:12:48 +01:00
position: fixed;
2020-02-26 19:39:03 +01:00
left: 0;
2019-12-06 22:12:48 +01:00
bottom: 0;
width: 100%;
2020-06-01 19:03:19 +02:00
padding: var(--spacing-s);
2019-12-06 22:12:48 +01:00
background-color: var(--color-nag);
color: var(--color-white);
font-weight: var(--font-weight-bold);
text-align: center;
2020-02-21 22:05:20 +01:00
.button--link {
font-weight: var(--font-weight-bold);
color: var(--color-white);
text-decoration: underline;
}
2020-03-26 16:18:05 +01:00
@media (max-width: $breakpoint-small) {
text-align: left;
}
2019-12-06 22:12:48 +01:00
}
.nag--inline {
position: absolute;
top: 0;
bottom: auto;
z-index: 1 !important; /* booooooo */
border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.nag--relative {
position: relative;
}
2020-02-26 19:39:03 +01:00
.nag--helpful {
2021-04-26 21:19:17 +02:00
background-color: var(--color-primary);
2020-02-26 19:39:03 +01:00
color: var(--color-white);
z-index: $nag-helpful-z-index;
2022-04-22 13:16:27 +02:00
// border-radius: var(--border-radius);
margin-top: var(--spacing-s);
}
.nag--error {
2022-06-21 08:34:27 +02:00
background-color: rgba(0, 0, 0, 0.9);
color: var(--color-text-error);
z-index: $nag-error-z-index;
border-radius: var(--border-radius);
2022-06-21 08:34:27 +02:00
left: var(--spacing-s);
right: var(--spacing-s);
bottom: var(--spacing-s);
width: unset;
// margin-right:100px;
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
box-sizing: border-box;
2020-02-26 19:39:03 +01:00
}
2020-03-26 16:18:05 +01:00
.nag__message {
display: inline;
@media (max-width: $breakpoint-small) {
&::after {
content: '';
display: block;
}
}
}
2019-12-06 22:12:48 +01:00
.nag__button {
line-height: 1;
2020-06-01 19:03:19 +02:00
margin-left: var(--spacing-s);
margin-right: var(--spacing-s);
2019-12-06 22:12:48 +01:00
border-radius: var(--border-radius);
border: 1px solid var(--color-white);
2020-06-01 19:03:19 +02:00
padding: var(--spacing-xxs);
2019-12-06 22:12:48 +01:00
color: var(--color-white);
font-weight: var(--font-weight-bold);
&:hover {
background-color: var(--color-white);
2020-02-27 19:28:44 +01:00
color: var(--color-nag);
2020-02-26 19:39:03 +01:00
}
2020-03-26 16:18:05 +01:00
@media (max-width: $breakpoint-small) {
margin-left: 0;
2020-06-01 19:03:19 +02:00
margin-top: var(--spacing-s);
2020-03-26 16:18:05 +01:00
}
2020-02-26 19:39:03 +01:00
}
.nag__button--helpful {
&:hover {
2022-04-22 13:16:27 +02:00
color: var(--color-primary);
2019-12-06 22:12:48 +01:00
}
}
.nag__button--error {
color: var(--color-text-error);
border-color: var(--color-text-error);
&:hover {
background-color: var(--color-text-error);
color: var(--color-white);
}
}
2019-12-06 22:12:48 +01:00
.nag__close {
margin-left: auto;
2020-06-01 19:03:19 +02:00
right: var(--spacing-m);
2019-12-06 22:12:48 +01:00
position: absolute;
border: none;
svg {
stroke-width: 4px;
}
}
.nag__select {
display: inline;
color: var(--color-text);
select {
width: unset;
min-width: 10rem;
padding-right: unset;
margin: 0px var(--spacing-s);
height: var(--height-button-mobile);
}
}