soapbox/app/styles/autosuggest.scss

125 wiersze
2.4 KiB
SCSS
Czysty Zwykły widok Historia

.autosuggest-textarea,
.autosuggest-input,
.spoiler-input {
position: relative;
}
.autosuggest-textarea__textarea,
.autosuggest-input input,
.react-datepicker__input-container input {
2022-03-21 18:09:01 +00:00
// display: block;
// box-sizing: border-box;
// width: 100%;
// margin: 0;
// background: transparent;
// color: var(--primary-text-color);
// padding: 10px;
// font-family: inherit;
// font-size: 16px;
// resize: vertical;
// border: 0;
// outline: 0;
2022-03-21 18:09:01 +00:00
// &:focus {
// outline: 0;
// }
2022-03-21 18:09:01 +00:00
// @media screen and (max-width: 600px) {
// font-size: 16px;
// }
}
.autosuggest-textarea__textarea {
min-height: 100px;
2022-03-21 18:09:01 +00:00
// border-radius: 5px 5px 0 0;
// padding-bottom: 0;
// padding-right: 10px + 22px;
// resize: none;
// scrollbar-color: initial;
// transition: 0.2s;
2022-03-21 18:09:01 +00:00
// &::-webkit-scrollbar {
// all: unset;
// }
2022-03-21 18:09:01 +00:00
// @media screen and (max-width: 600px) {
// max-height: 100px !important; // prevent auto-resize textarea
// resize: vertical;
// }
}
.autosuggest-textarea__suggestions-wrapper {
position: relative;
height: 0;
}
.autosuggest-textarea__suggestions {
box-sizing: border-box;
display: none;
position: absolute;
top: 100%;
width: 100%;
z-index: 501; /* Above TimelineQueueHeader */
box-shadow: 4px 4px 6px rgba($base-shadow-color, 0.4);
background: var(--background-color);
border-radius: 0 0 4px 4px;
font-size: 14px;
padding: 6px;
&.autosuggest-textarea__suggestions--visible { display: block; }
}
.autosuggest-textarea__suggestions__item {
padding: 10px;
cursor: pointer;
border-radius: 4px;
&:hover,
&:focus,
&:active,
&.selected {
background: var(--brand-color--med);
}
}
.autosuggest-account,
.autosuggest-emoji {
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
line-height: 18px;
font-size: 14px;
}
.autosuggest-account-icon,
.autosuggest-emoji img {
display: block;
margin-right: 8px;
width: 16px;
height: 16px;
}
.autosuggest-account .display-name__account {
color: var(--primary-text-color--faint);
}
2021-11-01 18:45:17 +00:00
.autosuggest-input__action {
2021-11-01 18:53:30 +00:00
display: flex;
align-items: center;
2021-11-01 18:45:17 +00:00
padding: 10px;
border-radius: 4px;
font-weight: bold;
text-decoration: none;
color: var(--primary-text-color--faint);
&:hover,
&.selected {
background-color: var(--brand-color--med);
}
2021-11-01 18:53:30 +00:00
.svg-icon {
margin-right: 8px;
transform: translateY(-1px);
}
2021-11-01 18:45:17 +00:00
}