8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 12:53:11 +00:00

Add django-autocomplete-light dependency

This commit is contained in:
Jean-Romain Garnier 2020-12-28 22:24:35 +01:00 committed by chirac
parent 0b9e49c253
commit d1e22bbbd1
2 changed files with 51 additions and 0 deletions

View file

@ -1,2 +1,4 @@
django-bootstrap3==11.1.0 django-bootstrap3==11.1.0
django-macaddress==1.6.0 django-macaddress==1.6.0
#django-autocomplete-light==3.2.10 # Until Django 2.0+
django-autocomplete-light

View file

@ -0,0 +1,49 @@
/*
Don't blame me for all the '!important's
See github.com/yourlabs/django-autocomplete-light/issues/1149
*/
/* dal bootstrap css fix */
.select2-container {
width: 100% !important;
min-width: 10em !important;
}
/* django-addanother bootstrap css fix */
.related-widget-wrapper{
padding-right: 16px;
position: relative;
}
.related-widget-wrapper-link{
position: absolute;
top: 3px;
right: 0px;
}
.select2-container .select2-selection--single {
height: 34px !important;
padding-right: 20px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
line-height: 100% !important;
display: inline !important;
overflow-x: hidden !important;
overflow-y: auto !important;
}
.select2-container .select2-selection--multiple {
min-height: 45px !important;
padding-right: 20px;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
height: 100% !important;
display: inline !imoortant;
overflow-x: hidden !important;
overflow-y: auto !important;
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
overflow: auto !important;
}