Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
select2
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
select2
Merge requests
!38
Drupal 11 compatibility
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Drupal 11 compatibility
issue/select2-3454104:3454104-drupal-11-compatibility
into
2.x
Overview
0
Commits
34
Pipelines
29
Changes
29
Merged
Christian Fritsch
requested to merge
issue/select2-3454104:3454104-drupal-11-compatibility
into
2.x
1 year ago
Overview
0
Commits
34
Pipelines
29
Changes
29
Expand
Closes
#3454104
0
0
Merge request reports
Compare
2.x
version 28
d24e177d
5 months ago
version 27
60f018ad
5 months ago
version 26
6a2960cc
5 months ago
version 25
f95648aa
5 months ago
version 24
25590739
5 months ago
version 23
2a31d763
5 months ago
version 22
47cea8e4
6 months ago
version 21
2b0a64e9
6 months ago
version 20
69780fb7
6 months ago
version 19
73a78037
6 months ago
version 18
31f8123c
6 months ago
version 17
acb5845b
6 months ago
version 16
1e2e7821
6 months ago
version 15
5a5eb84e
7 months ago
version 14
9da0d446
7 months ago
version 13
eac81303
8 months ago
version 12
d159f741
8 months ago
version 11
076e2a6a
8 months ago
version 10
180eca2b
8 months ago
version 9
db8a8dbd
9 months ago
version 8
f5e02cf5
9 months ago
version 7
b7a0b553
9 months ago
version 6
a3d87997
9 months ago
version 5
bfdc6955
1 year ago
version 4
55d4bb9b
1 year ago
version 3
48b745c8
1 year ago
version 2
5393d9b2
1 year ago
version 1
9a4f4a74
1 year ago
2.x (base)
and
latest version
latest version
d24e177d
34 commits,
5 months ago
version 28
d24e177d
34 commits,
5 months ago
version 27
60f018ad
33 commits,
5 months ago
version 26
6a2960cc
32 commits,
5 months ago
version 25
f95648aa
31 commits,
5 months ago
version 24
25590739
30 commits,
5 months ago
version 23
2a31d763
29 commits,
5 months ago
version 22
47cea8e4
26 commits,
6 months ago
version 21
2b0a64e9
25 commits,
6 months ago
version 20
69780fb7
24 commits,
6 months ago
version 19
73a78037
23 commits,
6 months ago
version 18
31f8123c
22 commits,
6 months ago
version 17
acb5845b
21 commits,
6 months ago
version 16
1e2e7821
20 commits,
6 months ago
version 15
5a5eb84e
19 commits,
7 months ago
version 14
9da0d446
18 commits,
7 months ago
version 13
eac81303
17 commits,
8 months ago
version 12
d159f741
16 commits,
8 months ago
version 11
076e2a6a
15 commits,
8 months ago
version 10
180eca2b
14 commits,
8 months ago
version 9
db8a8dbd
13 commits,
9 months ago
version 8
f5e02cf5
12 commits,
9 months ago
version 7
b7a0b553
11 commits,
9 months ago
version 6
a3d87997
9 commits,
9 months ago
version 5
bfdc6955
5 commits,
1 year ago
version 4
55d4bb9b
4 commits,
1 year ago
version 3
48b745c8
3 commits,
1 year ago
version 2
5393d9b2
2 commits,
1 year ago
version 1
9a4f4a74
1 commit,
1 year ago
29 files
+
530
−
535
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
29
Search (e.g. *.vue) (Ctrl+P)
css/select2.claro.css
+
106
−
102
Options
@@ -13,6 +13,9 @@
cursor
:
pointer
;
float
:
right
;
font-weight
:
bold
;
height
:
26px
;
margin-right
:
20px
;
padding-right
:
0px
;
}
.select2-container--claro
.select2-selection--single
.select2-selection__placeholder
{
color
:
#999
;
@@ -59,54 +62,84 @@
border
:
1px
solid
#aaa
;
border-radius
:
4px
;
cursor
:
text
;
padding-bottom
:
5px
;
padding-right
:
5px
;
position
:
relative
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__rendered
{
box-sizing
:
border-box
;
list-style
:
none
;
margin
:
0
;
padding
:
0
5px
;
width
:
100%
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__rendered
li
{
list-style
:
none
;
.select2-container--claro
.select2-selection--multiple.select2-selection--clearable
{
padding-right
:
25px
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__clear
{
cursor
:
pointer
;
float
:
right
;
font-weight
:
bold
;
margin-top
:
5
px
;
height
:
20
px
;
margin-right
:
10px
;
margin-top
:
5px
;
position
:
absolute
;
right
:
0
;
padding
:
1px
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice
{
background-color
:
#e4e4e4
;
border
:
1px
solid
#aaa
;
border-radius
:
4px
;
curs
or
:
de
fault
;
float
:
left
;
margin-
righ
t
:
5px
;
box-sizing
:
b
orde
r-box
;
display
:
inline-block
;
margin-
lef
t
:
5px
;
margin-top
:
5px
;
padding
:
0
5px
;
padding
:
0
;
padding-left
:
20px
;
position
:
relative
;
max-width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
vertical-align
:
bottom
;
white-space
:
nowrap
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice__display
{
cursor
:
default
;
padding-left
:
2px
;
padding-right
:
5px
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice__remove
{
background-color
:
transparent
;
border
:
none
;
border-right
:
1px
solid
#aaa
;
border-top-left-radius
:
4px
;
border-bottom-left-radius
:
4px
;
color
:
#999
;
cursor
:
pointer
;
display
:
inline-block
;
font-size
:
1em
;
font-weight
:
bold
;
margin-right
:
2px
;
padding
:
0
4px
;
position
:
absolute
;
left
:
0
;
top
:
0
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice__remove
:hover
{
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice__remove
:hover
,
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice__remove
:focus
{
background-color
:
#f1f1f1
;
color
:
#333
;
}
.select2-container--claro
[
dir
=
rtl
]
.select2-selection--multiple
.select2-selection__choice
,
.select2-container--claro
[
dir
=
rtl
]
.select2-selection--multiple
.select2-search--inline
{
float
:
right
;
outline
:
none
;
}
.select2-container--claro
[
dir
=
rtl
]
.select2-selection--multiple
.select2-selection__choice
{
margin-left
:
5px
;
margin-right
:
auto
;
}
.select2-container--claro
[
dir
=
rtl
]
.select2-selection--multiple
.select2-selection__choice__display
{
padding-left
:
5px
;
padding-right
:
2px
;
}
.select2-container--claro
[
dir
=
rtl
]
.select2-selection--multiple
.select2-selection__choice__remove
{
margin-left
:
2px
;
border-left
:
1px
solid
#aaa
;
border-right
:
none
;
border-top-left-radius
:
0
;
border-bottom-left-radius
:
0
;
border-top-right-radius
:
4px
;
border-bottom-right-radius
:
4px
;
}
.select2-container--claro
[
dir
=
rtl
]
.select2-selection--multiple
.select2-selection__clear
{
float
:
left
;
margin-left
:
10px
;
margin-right
:
auto
;
}
.select2-container--claro.select2-container--focus
.select2-selection--multiple
{
@@ -142,15 +175,6 @@
max-height
:
200px
;
overflow-y
:
auto
;
}
.select2-container--claro
.select2-results__option
[
role
=
group
]
{
padding
:
0
;
}
.select2-container--claro
.select2-results__option
[
aria-disabled
=
true
]
{
color
:
#999
;
}
.select2-container--claro
.select2-results__option
[
aria-selected
=
true
]
{
background-color
:
#ddd
;
}
.select2-container--claro
.select2-results__option
.select2-results__option
{
padding-left
:
1em
;
}
@@ -177,7 +201,16 @@
margin-left
:
-5em
;
padding-left
:
6em
;
}
.select2-container--claro
.select2-results__option--highlighted
[
aria-selected
]
{
.select2-container--claro
.select2-results__option--group
{
padding
:
0
;
}
.select2-container--claro
.select2-results__option--disabled
{
color
:
#999
;
}
.select2-container--claro
.select2-results__option--selected
{
background-color
:
#ddd
;
}
.select2-container--claro
.select2-results__option--highlighted.select2-results__option--selectable
{
background-color
:
#5897fb
;
color
:
white
;
}
@@ -186,42 +219,37 @@
display
:
block
;
padding
:
6px
;
}
.ui-widget-overlay
+
.select2-container--claro
{
z-index
:
1260
;
}
.select2-container--claro
{
border-radius
:
0.125rem
;
}
.select2-container--claro
.select2-selection
{
border
:
1px
solid
#8e929c
;
border-radius
:
0.125rem
;
}
.select2-container--claro
.select2-selection--multiple
{
line-height
:
1.5rem
;
padding-block
:
calc
(
0.5rem
-
1px
);
padding-inline
:
0.5rem
;
min-height
:
calc
(
3rem
-
2px
);
border
:
1px
solid
#919297
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__rendered
{
display
:
block
;
padding
:
0
0.5rem
;
margin
:
0
;
}
.select2-container--claro
.select2-selection--multiple
.select2-search--inline
{
box-sizing
:
border-box
;
color
:
var
(
--colorGinText
);
min-height
:
3rem
;
padding
:
calc
(
0.75rem
-
1px
)
0
;
line-height
:
1.5rem
;
display
:
inline-block
;
padding
:
0.5rem
0
;
line-height
:
1rem
;
}
.select2-container--claro
.select2-selection--multiple
.select2-search--inline
.select2-search__field
{
margin
-top
:
0
;
margin
:
0
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice
{
background-color
:
#e9ecf1
;
border
:
1px
solid
transparent
!important
;
border-radius
:
1.5rem
;
display
:
inline-block
;
font-size
:
0.889rem
;
font-weight
:
7
00
;
font-weight
:
5
00
;
line-height
:
1rem
;
margin-top
:
0.5rem
;
margin-right
:
0.5rem
;
margin-top
:
0
;
padding
:
calc
(
0.5rem
-
1px
);
}
[
dir
=
rtl
]
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice
{
@@ -229,72 +257,48 @@
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice
.select2-selection__choice__remove
{
float
:
right
;
position
:
relative
;
border-radius
:
50%
;
color
:
#e9ecf1
;
font-size
:
0
;
margin-right
:
0
;
margin-left
:
0.35rem
;
font-weight
:
400
;
line-height
:
1rem
;
height
:
1rem
;
width
:
1rem
;
background
:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28px' height='28px' viewBox='0 0 28 28'%3E%3Cpath stroke='%23D4D4D8' stroke-width='4' d='M19,9L9,19'/%3E%3Cpath stroke='%23D4D4D8' stroke-width='4 ' d='M19,19L9,9'/%3E%3C/svg%3E%0A")
50%
50%
/
100%
100%
no-repeat
;
background-color
:
#999aa3
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice
.select2-selection__choice__remove
span
{
height
:
1rem
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice
.select2-selection__choice__remove
:before
{
background-color
:
#e9ecf1
;
content
:
""
;
left
:
0
;
-webkit-mask-image
:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18px' height='18px' viewBox='0 0 28 28'%3E%3Cpath stroke='%23000000' stroke-width='2.25' d='M19,9L9,19'/%3E%3Cpath stroke='%23000000' stroke-width='2.25' d='M19,19L9,9'/%3E%3C/svg%3E%0A")
;
mask-image
:
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18px' height='18px' viewBox='0 0 28 28'%3E%3Cpath stroke='%23000000' stroke-width='2.25' d='M19,9L9,19'/%3E%3Cpath stroke='%23000000' stroke-width='2.25' d='M19,19L9,9'/%3E%3C/svg%3E%0A")
;
-webkit-mask-repeat
:
no-repeat
;
mask-repeat
:
no-repeat
;
-webkit-mask-position
:
center
center
;
mask-position
:
center
center
;
position
:
absolute
;
height
:
100%
;
width
:
100%
;
}
.select2-container--claro
.select2-selection--multiple
.select2-selection__choice
.select2-selection__choice__remove
:hover
{
background-color
:
#222330
;
color
:
#e9ecf1
;
background-color
:
#232429
;
}
.select2-container--claro
.select2-selection--single
{
min-height
:
3rem
;
padding
:
calc
(
0.75rem
-
1px
)
calc
(
1rem
-
1px
);
}
.select2-container--claro
.select2-selection--single
.select2-selection__rendered
{
color
:
#222330
;
padding-left
:
0
;
padding-right
:
12px
;
line-height
:
1.5rem
;
padding-block
:
calc
(
0.5rem
-
1px
);
padding-inline
:
0.5rem
;
min-height
:
calc
(
3rem
-
2px
);
border
:
1px
solid
#919297
;
border-radius
:
var
(
--border-m
);
}
.select2-container--claro
.select2-selection--single
.select2-selection__arrow
{
min-height
:
3rem
;
width
:
25px
;
}
.select2-container--claro
.select2-selection--single
.select2-selection__arrow
b
{
border-color
:
#222330
transparent
transparent
transparent
;
}
.select2-container--claro.select2-container--open
.select2-selection--single
.select2-selection__arrow
b
{
border-color
:
transparent
transparent
#222330
transparent
;
}
.select2-container--claro.select2-container--focus
.select2-selection--multiple
{
border
:
1px
solid
#222330
;
}
.select2-container--claro
.select2-search__field
:focus
{
box-shadow
:
none
;
}
.select2-container--claro
.select2-search--dropdown
.select2-search__field
{
min-height
:
3rem
;
padding
:
calc
(
0.75rem
-
1px
)
calc
(
1rem
-
1px
);
border-color
:
#003cc5
;
border-radius
:
0.125rem
;
}
.select2-container--claro
.select2-search--dropdown
.select2-search__field
:hover
,
.select2-container--claro
.select2-selection
:hover
{
border-color
:
#222330
;
box-shadow
:
inset
0
0
0
1px
#222330
;
}
.select2-container--claro
.select2-search--dropdown
.select2-search__field
:focus
,
.select2-container--claro.select2-container--focus
{
box-shadow
:
0
0
0
2px
#fff
,
0
0
0
5px
#26a769
;
outline
:
0
;
}
.select2-container--claro
.select2-search--dropdown
.select2-search__field
:hover:focus
{
box-shadow
:
0
0
0
2px
#fff
,
0
0
0
5px
#26a769
,
inset
0
0
0
1px
#222330
;
}
.select2-container--claro
.select2-results__option
{
box-sizing
:
border-box
;
min-height
:
3rem
;
padding
:
calc
(
0.75rem
-
1px
)
calc
(
1rem
-
1px
);
}
.select2-container--claro
.select2-results__option
[
aria-selected
=
true
]
{
background-color
:
#e9ecf1
;
}
.select2-container--claro
.select2-results__option--highlighted
[
aria-selected
]
{
background-color
:
#003cc5
;
color
:
#fff
;
border-color
:
#232429
transparent
transparent
transparent
;
}
Loading