0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-14 13:52:54 +01:00
discourse-custom-wizard/assets/stylesheets/wizard/wizard_autocomplete.scss
2020-04-03 19:49:36 +11:00

177 Zeilen
Kein EOL
2,7 KiB
SCSS

@import "wizard_variables";
div.ac-wrap {
overflow: visible;
max-height: 150px;
min-height: 34px;
background-color: white;
border: 1px solid #e9e9e9;
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: 11px;
line-height: 10px;
padding: 1.5px 1.5px 1.5px 2.5px;
border-radius: 12px;
width: 10px;
display: inline-block;
border: 1px solid #e9e9e9;
&:hover {
background-color: #f2ab9a;
border: 1px solid #ec8972;
text-decoration: none;
color: #e45735;
}
}
}
img.avatar {
border-radius: 50%;
vertical-align: middle;
}
.autocomplete {
z-index: 999999;
position: absolute;
width: 240px;
background-color: white;
border: 1px solid #e9e9e9;
ul {
list-style: none;
padding: 0;
margin: 0;
li {
.d-users {
color: #333;
padding: 0 2px;
}
border-bottom: 1px solid #e9e9e9;
a {
padding: 5px;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-size: 14px;
text-decoration: none;
img {
margin-right: 5px;
}
span.username {
color: #000;
vertical-align: middle;
}
span.name {
font-size: 11px;
vertical-align: middle;
}
&.selected {
background-color: #d1f0ff;
}
&:hover {
background-color: #ffffa6;
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 {
color: #919191;
margin: 5px 0;
padding: 0 5px;
font-size: 80%;
line-height: 1.4em;
a {
text-decoration: underline;
}
}
}
}
.ac-form-result {
cursor: pointer;
background-color: $secondary;
display: flex;
&:hover, &.selected {
background-color: $tertiary;
color: white;
label {
color: white;
}
}
label {
flex: 1 1 auto;
margin-bottom: 0;
cursor: pointer;
}
i {
margin-right: 5px;
}
}