Add proper scope to files external CSS

* for select2
This commit is contained in:
Morris Jobke 2016-07-25 17:08:33 +02:00
parent 4c45d0fcd3
commit d5e783d2bd
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
2 changed files with 6 additions and 5 deletions

View File

@ -68,23 +68,23 @@ td.mountPoint, td.backend { width:160px; }
padding-left: 25px;
}
#body-settings .select2-results .select2-result-label {
.files-external-select2 .select2-results .select2-result-label {
height: 32px;
padding: 3px;
}
.select2-results .select2-result-label > span {
.files-external-select2 .select2-results .select2-result-label > span {
display: block;
position: relative;
}
.select2-results .select2-result-label .avatardiv {
.files-external-select2 .select2-results .select2-result-label .avatardiv {
display:inline-block;
}
.select2-results .select2-result-label .avatardiv + span {
.files-external-select2 .select2-results .select2-result-label .avatardiv + span {
position: absolute;
top: 5px;
margin-left: 10px;
}
.select2-results .select2-result-label .avatardiv[data-type="group"] + span {
.files-external-select2 .select2-results .select2-result-label .avatardiv[data-type="group"] + span {
vertical-align: top;
top: 6px;
position: absolute;

View File

@ -93,6 +93,7 @@ function addSelect2 ($elements, userListLimit) {
placeholder: t('files_external', 'All users. Type to select user or group.'),
allowClear: true,
multiple: true,
dropdownCssClass: 'files-external-select2',
//minimumInputLength: 1,
ajax: {
url: OC.generateUrl('apps/files_external/applicable'),