lbry-desktop/ui/scss/component/_textarea-suggestions.scss

133 lines
2.6 KiB
SCSS
Raw Normal View History

.MuiAutocomplete-inputRoot {
@media (min-width: $breakpoint-small) {
padding: 0 !important;
font-family: inherit !important;
font-weight: inherit !important;
font-size: inherit !important;
color: var(--color-text) !important;
.MuiOutlinedInput-notchedOutline {
visibility: hidden;
}
.create__comment {
min-height: calc(var(--height-input) * 1.5) !important;
}
}
}
@media (max-width: $breakpoint-small) {
.MuiOutlinedInput-input {
padding: 0px var(--spacing-xxs);
}
.MuiOutlinedInput-root {
font-size: var(--font-xsmall) !important;
flex-wrap: nowrap !important;
color: var(--color-text) !important;
padding: 0px 9px !important;
textarea {
border: none;
margin: 9px 0px;
}
button:not(:first-of-type):not(:last-of-type) {
margin: 0px var(--spacing-xxs);
}
button + div {
margin-left: var(--spacing-xxs);
}
.button--primary {
border-radius: 100%;
height: unset;
padding: var(--spacing-xxs);
.button__content {
height: unset;
}
}
span {
color: var(--color-text) !important;
}
}
}
.MuiAutocomplete-paper {
@extend .card;
background-color: var(--color-card-background);
box-shadow: var(--card-box-shadow);
color: var(--color-text) !important;
.textarea-suggestions__group {
&:last-child hr {
display: none;
}
.textarea-suggestions__group-label {
@extend .wunderbar__label;
}
.Mui-focused {
background-color: var(--color-menu-background--active);
}
}
> .icon {
top: 0;
left: var(--spacing-m);
height: 100%;
z-index: 1;
stroke: var(--color-input-placeholder);
}
@media (min-width: $breakpoint-small) {
padding: 0;
}
}
.MuiAutocomplete-option {
display: flex;
align-items: center;
padding: 0 var(--spacing-xxs);
margin: 0 var(--spacing-xxs);
overflow: hidden;
text-overflow: ellipsis;
border-radius: var(--border-radius);
.channel-thumbnail {
@include handleChannelGif(2.1rem);
margin-right: 0;
@media (min-width: $breakpoint-small) {
@include handleChannelGif(2.1rem);
}
}
.textarea-suggestion__label {
@extend .wunderbar__suggestion-label;
margin-left: var(--spacing-m);
display: block;
position: relative;
.textarea-suggestion__title {
@extend .wunderbar__suggestion-title;
}
.textarea-suggestion__value {
@extend .wunderbar__suggestion-name;
}
}
}
.textarea-suggestions__separator {
@extend .wunderbar__top-separator;
}
2021-12-07 15:51:55 +01:00
.MuiAutocomplete-loading {
color: var(--color-text) !important;
}