0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-09-20 15:51:11 +02:00
discourse-custom-wizard/assets/stylesheets/common/wizard/autocomplete.scss

173 Zeilen
3,3 KiB
SCSS

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