-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pat select2): Upgrade to Select2
4.0.x
- Loading branch information
Showing
2 changed files
with
100 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,107 +1,5 @@ | ||
.select2-container { | ||
margin-bottom: 1em; | ||
background: #fff!important; | ||
color: #000!important; | ||
border-radius: 4px; | ||
|
||
.select2-choice { | ||
background: var(--bs-secondary-bg)!important; | ||
background-image: none!important; | ||
background-color: var(--bs-secondary-bg)!important; | ||
border-color: var(--bs-secondary)!important; | ||
color: var(--bs-dark-text)!important; | ||
box-shadow: none!important; | ||
|
||
.select2-arrow b { | ||
background-color: var(--bs-secondary-bg)!important; | ||
} | ||
} | ||
|
||
.select2-search { | ||
background-color: var(--bs-secondary-bg)!important; | ||
color: var(--bs-secondary-text)!important; | ||
} | ||
} | ||
|
||
.select2-container-multi { | ||
background: #fff!important; | ||
color: #000!important; | ||
|
||
.select2-choices { | ||
border-color: var(--bs-secondary)!important; | ||
|
||
.select2-choice-dragging { | ||
border-color: #ff0000; | ||
} | ||
.select2-search-field { | ||
input { | ||
height: inherit; | ||
padding: 2px 1px 1px 8px; | ||
} | ||
} | ||
} | ||
|
||
.select2-orderable { | ||
.select2-search-choice { | ||
&, | ||
& span { | ||
cursor: move; | ||
} | ||
} | ||
} | ||
} | ||
|
||
// Overwrite default styles for dark mode theming | ||
.select2-drop { | ||
background: var(--bs-secondary-bg)!important; | ||
color: var(--bs-secondary-text)!important; | ||
} | ||
|
||
.select2-results { | ||
max-height: 950px; | ||
background: var(--bs-secondary-bg); | ||
color: var(--bs-secondary-text); | ||
|
||
.select2-result { | ||
background-color: transparent; | ||
border-left: 0.3em solid transparent; | ||
border-right: 0.3em solid transparent; | ||
|
||
&:nth-child(odd) { | ||
background-color: var(--bs-secondary-bg-subtle)!important; | ||
} | ||
|
||
&.select2-highlighted { | ||
border-left: 0.3em solid #007bb3; | ||
border-right: 0.3em solid #007bb3; | ||
} | ||
|
||
&-label { | ||
padding: 0; | ||
color: var(--bs-link-color); | ||
} | ||
} | ||
|
||
.select2-no-results { | ||
background: transparent!important; | ||
} | ||
|
||
> * { | ||
background: transparent!important; | ||
} | ||
|
||
.select2-selected { | ||
display: list-item; | ||
} | ||
} | ||
|
||
// Overwrite default style for links for Close button, as in Related Items | ||
#content-core { | ||
.select2-search-choice-close { | ||
border-bottom: 0; | ||
} | ||
} | ||
|
||
.pat-select2 { | ||
min-width: 50%; | ||
.select2-container { | ||
display:block; | ||
width:100%; | ||
} |