0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-27 03:20:27 +01:00
discourse-custom-wizard/assets/stylesheets/wizard/custom/autocomplete.scss

172 Zeilen
2,9 KiB
SCSS

2020-04-03 10:49:36 +02:00
div.ac-wrap {
overflow: visible;
max-height: 150px;
min-height: 34px;
background-color: var(--secondary);
border: 1px solid var(--primary-medium);
2020-04-03 10:49:36 +02:00
padding: 5px 4px 1px 4px;
div.item {
float: left;
margin-bottom: 4px;
margin-right: 10px;
span {
height: 24px;
display: inline-block;
line-height: 20px;
}
}
.ac-collapsed-button {
float: left;
border-radius: 20px;
position: relative;
top: -2px;
margin-right: 10px;
}
input[type="text"] {
border: 0;
}
.remove-link {
margin-left: 4px;
font-size: $font-down-1;
line-height: $line-height-small;
padding: 1px 3.5px;
2020-04-03 10:49:36 +02:00
border-radius: 12px;
box-sizing: border-box;
border: 1px solid var(--primary-low);
2020-04-03 10:49:36 +02:00
&:hover {
background-color: var(--danger-low);
border: 1px solid var(--danger-medium);
2020-04-03 10:49:36 +02:00
text-decoration: none;
color: var(--danger);
2020-04-03 10:49:36 +02:00
}
}
}
img.avatar {
border-radius: 50%;
vertical-align: middle;
}
.autocomplete {
z-index: 999999;
position: absolute;
width: 240px;
background-color: var(--secondary);
border: 1px solid var(--primary-low);
2020-04-03 10:49:36 +02:00
ul {
list-style: none;
padding: 0;
margin: 0;
li {
.d-users {
color: var(--primary-medium);
2020-04-03 10:49:36 +02:00
padding: 0 2px;
}
border-bottom: 1px solid var(--primary-low);
2020-04-03 10:49:36 +02:00
a {
padding: 5px;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
text-decoration: none;
img {
margin-right: 5px;
}
2020-04-03 10:49:36 +02:00
span.username {
color: var(--primary);
vertical-align: middle;
2020-04-03 10:49:36 +02:00
}
span.name {
font-size: $font-down-1;
2020-04-03 10:49:36 +02:00
vertical-align: middle;
margin-left: 5px;
color: var(--primary);
2020-04-03 10:49:36 +02:00
}
&.selected {
background-color: var(--tertiary);
2020-04-03 10:49:36 +02:00
}
&:hover {
background-color: var(--highlight-low);
2020-04-03 10:49:36 +02:00
text-decoration: none;
}
}
}
}
}
.ac-wrap {
box-sizing: border-box;
position: relative;
.ac-loading {
position: absolute;
top: 7px;
right: 5px;
}
.item {
line-height: 1.6;
}
.autocomplete {
width: inherit;
left: 0 !important;
width: 100%;
top: 30px !important;
box-sizing: border-box;
li, .no-results {
padding: 10px;
}
ul > label {
margin: 5px 0;
padding: 0 5px;
font-size: 80%;
line-height: 1.4em;
a {
text-decoration: underline;
}
}
}
}
.ac-form-result {
cursor: pointer;
background-color: var(--secondary);
2020-04-03 10:49:36 +02:00
display: flex;
&:hover, &.selected {
background-color: var(--tertiary);
2020-04-03 10:49:36 +02:00
color: white;
label {
color: white;
}
}
label {
flex: 1 1 auto;
margin-bottom: 0;
cursor: pointer;
}
i {
margin-right: 5px;
}
}