Skip to content

Commit

Permalink
Updates to material theme styles fixes #300
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Oct 31, 2019
1 parent 9a34ab0 commit b3705e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Change Log: `yii2-widget-select2`

## Version 2.1.5

**Date:** _under development_
**Date:** 31-Oct-2019

- (enh #300): Add Material Theme.
- (enh #299): Add Czech Translations.
Expand Down
13 changes: 7 additions & 6 deletions src/assets/css/select2-material.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,22 @@
}

.select2-container--material .select2-selection--multiple .select2-selection__choice {
float: left;
position: relative;
display: inline-block;
margin-right: 2px;
padding: 3px 18px 4px 8px;
margin: 2px 2px 0 0;
padding: 1px 18px 2px 8px;
border: 0;
border-radius: 12px;
background-color: #dedede;
color: rgba(0, 0, 0, .87);
white-space: nowrap;
font-size: 0.81rem;
font-size: 0.78rem;
vertical-align: middle;
}

.select2-container--material .select2-selection--multiple .select2-selection__rendered {
margin: 0 0 -8px 0;
margin: 0;
padding: 0 6px;
}

Expand All @@ -117,7 +118,7 @@
}

.select2-container--material .select2-selection--multiple .select2-search--inline {
float: right;
display: inline-block;
}

.select2-container--material .select2-results__group {
Expand All @@ -128,7 +129,7 @@
.select2-container--material .select2-selection--multiple .select2-selection__choice__remove {
position: absolute;
right: 4px;
top: 0;
bottom: 0;
cursor: pointer;
opacity: 0.38;
float: right;
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/select2-material.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b3705e8

Please sign in to comment.