Skip to content

Commit 543aa1b

Browse files
committed
Merge pull request #340 from divio/bugfix/select2
fix select2 styles
2 parents 25c0f93 + 481b1b4 commit 543aa1b

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

djangocms_admin_style/sass/components/_forms.scss

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,15 +426,15 @@ form {
426426
}
427427
}
428428
.select2-choice {
429-
line-height: inherit;
430-
height: auto;
431-
padding: 10px 40px 10px 20px;
429+
line-height: 22px;
430+
height: 22px;
431+
padding: 6px 40px 6px 20px;
432432
border: 1px solid $gray-lighter;
433433
border-radius: $border-radius-base;
434434
background: none;
435435
& > .select2-chosen {
436436
font-size: $font-size-small;
437-
line-height: $font-size-small;
437+
line-height: 22px;
438438
}
439439
.select2-arrow {
440440
right: 9px;
@@ -443,10 +443,14 @@ form {
443443
border-radius: 0;
444444
background: none;
445445
b {
446-
background: url("../img/select2.png") no-repeat 0 5px;
446+
background: url("../img/select2.png") no-repeat 0 6px;
447447
background-size: 50px;
448448
}
449449
}
450+
.select2-search-choice-close {
451+
top: 10px;
452+
right: 35px;
453+
}
450454
}
451455
}
452456
.select2-dropdown-open {
@@ -497,7 +501,7 @@ form {
497501
padding: 10px 40px 10px 20px !important;
498502
border: 1px solid $gray-lighter !important;
499503
border-radius: $border-radius-base !important;
500-
background: url("../img/select2.png") no-repeat right -24px !important;
504+
background: url("../img/select2.png") no-repeat right -27px !important;
501505
background-size: 50px !important;
502506
}
503507
}

djangocms_admin_style/static/djangocms_admin_style/css/djangocms-admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)