Skip to content

Commit

Permalink
Update Chosen to 2.1.0, file renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
robincornett committed Jul 29, 2020
1 parent a12211d commit 3ec954d
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 98 deletions.
138 changes: 46 additions & 92 deletions assets/css/chosen.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
Chosen, a Select Box Enhancer for jQuery and Prototype
Version 2.0.0
Version 2.1.0
Full source at https://github.com/jjj/chosen
Copyright (c) 2011-2020 JJJ
MIT License, https://github.com/jjj/chosen/blob/master/LICENSE.md
Expand All @@ -12,7 +12,7 @@ This file is generated by `grunt build`, do not edit it by hand.
position: relative;
display: inline-block;
vertical-align: middle;
font-size: 13px;
font-size: 14px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
Expand All @@ -33,8 +33,6 @@ This file is generated by `grunt build`, do not edit it by hand.
border-top: 0;
border-radius: 0 0 4px 4px;
background: #fff;
-webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
clip: rect(0, 0, 0, 0);
-webkit-clip-path: inset(100% 100%);
clip-path: inset(100% 100%);
Expand Down Expand Up @@ -83,18 +81,23 @@ This file is generated by `grunt build`, do not edit it by hand.
}

.chosen-container .search-choice-close {
position: absolute;
right: 3px;
top: 0;
bottom: 0;
margin: auto;
border: none;
cursor: pointer;
background: none;
display: block;
width: 12px;
height: 12px;
background: url("chosen-sprite.png") -42px 1px no-repeat;
font-size: 1px;
width: 15px;
height: 15px;
background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56"><path fill="#888" d="M 27.9999 51.9063 C 41.0546 51.9063 51.9063 41.0781 51.9063 28 C 51.9063 14.9453 41.0312 4.0937 27.9765 4.0937 C 14.8983 4.0937 4.0937 14.9453 4.0937 28 C 4.0937 41.0781 14.9218 51.9063 27.9999 51.9063 Z M 19.5858 38.4063 C 18.4843 38.4063 17.5936 37.5156 17.5936 36.4141 C 17.5936 35.8750 17.8280 35.4063 18.2030 35.0547 L 25.1874 28.0234 L 18.2030 20.9922 C 17.8280 20.6641 17.5936 20.1719 17.5936 19.6328 C 17.5936 18.5547 18.4843 17.6875 19.5858 17.6875 C 20.1249 17.6875 20.5936 17.8984 20.9452 18.2734 L 27.9765 25.2812 L 35.0546 18.25 C 35.4530 17.8281 35.8749 17.6406 36.3905 17.6406 C 37.4921 17.6406 38.3827 18.5312 38.3827 19.6094 C 38.3827 20.1484 38.1952 20.5937 37.7968 20.9688 L 30.7655 28.0234 L 37.7733 35.0078 C 38.1249 35.3828 38.3593 35.8516 38.3593 36.4141 C 38.3593 37.5156 37.4687 38.4063 36.3671 38.4063 C 35.8046 38.4063 35.3358 38.1719 34.9843 37.8203 L 27.9765 30.7890 L 20.9921 37.8203 C 20.6405 38.1953 20.1249 38.4063 19.5858 38.4063 Z"/></svg>') no-repeat right 0 top 50%;
background-size: 15px 15px;
}

.chosen-container .search-choice-close:hover, .chosen-container .search-choice-close:focus {
background-position: -42px -10px;
.chosen-container .search-choice-close:hover, .chosen-container .search-choice-close:active {
background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56"><path fill="#555" d="M 27.9999 51.9063 C 41.0546 51.9063 51.9063 41.0781 51.9063 28 C 51.9063 14.9453 41.0312 4.0937 27.9765 4.0937 C 14.8983 4.0937 4.0937 14.9453 4.0937 28 C 4.0937 41.0781 14.9218 51.9063 27.9999 51.9063 Z M 19.5858 38.4063 C 18.4843 38.4063 17.5936 37.5156 17.5936 36.4141 C 17.5936 35.8750 17.8280 35.4063 18.2030 35.0547 L 25.1874 28.0234 L 18.2030 20.9922 C 17.8280 20.6641 17.5936 20.1719 17.5936 19.6328 C 17.5936 18.5547 18.4843 17.6875 19.5858 17.6875 C 20.1249 17.6875 20.5936 17.8984 20.9452 18.2734 L 27.9765 25.2812 L 35.0546 18.25 C 35.4530 17.8281 35.8749 17.6406 36.3905 17.6406 C 37.4921 17.6406 38.3827 18.5312 38.3827 19.6094 C 38.3827 20.1484 38.1952 20.5937 37.7968 20.9688 L 30.7655 28.0234 L 37.7733 35.0078 C 38.1249 35.3828 38.3593 35.8516 38.3593 36.4141 C 38.3593 37.5156 37.4687 38.4063 36.3671 38.4063 C 35.8046 38.4063 35.3358 38.1719 34.9843 37.8203 L 27.9765 30.7890 L 20.9921 37.8203 C 20.6405 38.1953 20.1249 38.4063 19.5858 38.4063 Z"/></svg>') no-repeat right 0 top 50%;
background-size: 15px 15px;
}

/* @end */
Expand All @@ -103,8 +106,7 @@ This file is generated by `grunt build`, do not edit it by hand.
position: relative;
display: block;
overflow: hidden;
padding: 2px 0 0 8px;
height: 28px;
padding: 2.5px 0 2.5px 7px;
border: 1px solid #aaa;
border-radius: 4px;
background-color: #fff;
Expand All @@ -129,12 +131,10 @@ This file is generated by `grunt build`, do not edit it by hand.
}

.chosen-container-single .chosen-single-with-deselect span {
margin-right: 38px;
margin-right: 42px;
}

.chosen-container-single .chosen-single .search-choice-close {
position: absolute;
top: 7px;
right: 26px;
}

Expand All @@ -151,7 +151,8 @@ This file is generated by `grunt build`, do not edit it by hand.
display: block;
width: 100%;
height: 100%;
background: url("chosen-sprite.png") no-repeat 0 0;
background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56"><path fill="#555" d="M 28 7.2578 C 27.4844 7.2578 26.9688 7.4687 26.4063 7.9375 L 10.6094 20.7578 C 10.2110 21.1094 9.9766 21.6016 9.9766 22.3047 C 9.9766 23.5234 10.8906 24.4375 12.1328 24.4375 C 12.6250 24.4375 13.1406 24.2500 13.6797 23.8281 L 28 12.1562 L 42.3203 23.8281 C 42.8594 24.2500 43.3750 24.4375 43.8906 24.4375 C 45.1094 24.4375 46.0234 23.5234 46.0234 22.3047 C 46.0234 21.6016 45.7890 21.1094 45.3906 20.7578 L 29.5937 7.9140 C 29.0312 7.4687 28.5390 7.2578 28 7.2578 Z M 28 48.7422 C 28.5390 48.7422 29.0312 48.5312 29.5937 48.0859 L 45.3906 35.2422 C 45.7890 34.8906 46.0234 34.3984 46.0234 33.6953 C 46.0234 32.4765 45.1094 31.5391 43.8906 31.5391 C 43.3750 31.5391 42.8594 31.7500 42.3203 32.1718 L 28 43.8437 L 13.6797 32.1718 C 13.1406 31.7500 12.6250 31.5391 12.1328 31.5391 C 10.8906 31.5391 9.9766 32.4765 9.9766 33.6953 C 9.9766 34.3984 10.2110 34.8906 10.6094 35.2422 L 26.4063 48.0625 C 26.9688 48.5312 27.4844 48.7422 28 48.7422 Z"/></svg>') no-repeat right 5px top 52%;
background-size: 15px 15px;
}

.chosen-container-single .chosen-search {
Expand All @@ -163,13 +164,14 @@ This file is generated by `grunt build`, do not edit it by hand.
}

.chosen-container-single .chosen-search input[type="text"] {
margin: 1px 0;
padding: 4px 20px 4px 5px;
margin: 0;
padding: 5px 20px 5px 5px;
width: 100%;
height: auto;
outline: none;
border: 1px solid #aaa;
background: url("chosen-sprite.png") no-repeat 100% -20px;
border: 1px solid #ccc;
background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56"><path fill="#555" d="M 23.9570 41.7695 C 27.8476 41.7695 31.4804 40.5039 34.4336 38.3945 L 45.5429 49.5039 C 46.0585 50.0195 46.7382 50.2774 47.4414 50.2774 C 48.9648 50.2774 50.0664 49.1055 50.0664 47.6055 C 50.0664 46.9023 49.8322 46.2461 49.3162 45.7305 L 38.2773 34.6679 C 40.5976 31.6211 41.9804 27.8476 41.9804 23.7461 C 41.9804 13.8320 33.8710 5.7226 23.9570 5.7226 C 14.0195 5.7226 5.9336 13.8320 5.9336 23.7461 C 5.9336 33.6601 14.0195 41.7695 23.9570 41.7695 Z M 23.9570 37.8789 C 16.1992 37.8789 9.8242 31.4805 9.8242 23.7461 C 9.8242 16.0117 16.1992 9.6133 23.9570 9.6133 C 31.6914 9.6133 38.0898 16.0117 38.0898 23.7461 C 38.0898 31.4805 31.6914 37.8789 23.9570 37.8789 Z"/></svg>') no-repeat right 5px top 50%;
background-size: 15px 15px;
font-size: 1em;
font-family: sans-serif;
line-height: normal;
Expand Down Expand Up @@ -283,12 +285,11 @@ This file is generated by `grunt build`, do not edit it by hand.
}

.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
margin: 1px 0 0 3px;
padding: 0;
height: 25px;
margin: 0 3px;
padding: 6.5px 0;
outline: none;
border: none !important;
background: transparent !important;
border: none;
background: transparent;
-webkit-box-shadow: none;
box-shadow: none;
font-size: 100%;
Expand All @@ -301,14 +302,11 @@ This file is generated by `grunt build`, do not edit it by hand.
.chosen-container-multi .chosen-choices li.search-choice {
position: relative;
margin: 3px 5px 3px 0;
padding: 3px 20px 3px 5px;
padding: 4px 20px 4px 5px;
border: 1px solid #aaa;
max-width: 100%;
border-radius: 3px;
max-width: 100%;
background-color: #eeeeee;
background-size: 100% 19px;
background-repeat: repeat-x;
background-clip: padding-box;
color: #333;
line-height: 12px;
cursor: default;
Expand All @@ -319,12 +317,6 @@ This file is generated by `grunt build`, do not edit it by hand.
word-wrap: break-word;
}

.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
position: absolute;
top: 4px;
right: 3px;
}

.chosen-container-multi .chosen-choices li.search-choice-disabled {
padding-right: 5px;
border: 1px solid #ccc;
Expand All @@ -336,10 +328,6 @@ This file is generated by `grunt build`, do not edit it by hand.
background: #d4d4d4;
}

.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
background-position: -42px -10px;
}

.chosen-container-multi .chosen-drop .result-selected {
display: list-item;
color: #ccc;
Expand All @@ -357,7 +345,7 @@ This file is generated by `grunt build`, do not edit it by hand.
/* @end */
/* @group Active */
.chosen-container-active .chosen-single {
border: 1px solid #5897fb;
outline: blue;
}

.chosen-container-active.chosen-with-drop .chosen-single,
Expand All @@ -367,13 +355,9 @@ This file is generated by `grunt build`, do not edit it by hand.
border-bottom-left-radius: 0;
}

.chosen-container-active.chosen-with-drop .chosen-single div {
border-left: none;
background: transparent;
}

.chosen-container-active.chosen-with-drop .chosen-single div b {
background-position: -18px 3px;
background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56"><path fill="#555" d="M 28 7.2578 C 27.4844 7.2578 26.9688 7.4687 26.4063 7.9375 L 10.6094 20.7578 C 10.2110 21.1094 9.9766 21.6016 9.9766 22.3047 C 9.9766 23.5234 10.8906 24.4375 12.1328 24.4375 C 12.6250 24.4375 13.1406 24.2500 13.6797 23.8281 L 28 12.1562 L 42.3203 23.8281 C 42.8594 24.2500 43.3750 24.4375 43.8906 24.4375 C 45.1094 24.4375 46.0234 23.5234 46.0234 22.3047 C 46.0234 21.6016 45.7890 21.1094 45.3906 20.7578 L 29.5937 7.9140 C 29.0312 7.4687 28.5390 7.2578 28 7.2578 Z M 28 48.7422 C 28.5390 48.7422 29.0312 48.5312 29.5937 48.0859 L 45.3906 35.2422 C 45.7890 34.8906 46.0234 34.3984 46.0234 33.6953 C 46.0234 32.4765 45.1094 31.5391 43.8906 31.5391 C 43.3750 31.5391 42.8594 31.7500 42.3203 32.1718 L 28 43.8437 L 13.6797 32.1718 C 13.1406 31.7500 12.6250 31.5391 12.1328 31.5391 C 10.8906 31.5391 9.9766 32.4765 9.9766 33.6953 C 9.9766 34.3984 10.2110 34.8906 10.6094 35.2422 L 26.4063 48.0625 C 26.9688 48.5312 27.4844 48.7422 28 48.7422 Z"/></svg>') no-repeat right 5px top 52%;
background-size: 15px 15px;
}

.chosen-container-active.chosen-with-drop.chosen-dropup .chosen-single,
Expand All @@ -388,7 +372,7 @@ This file is generated by `grunt build`, do not edit it by hand.
/* @end */
/* @group Disabled Support */
.chosen-disabled {
opacity: 0.5 !important;
opacity: 0.5;
cursor: default;
}

Expand All @@ -400,21 +384,14 @@ This file is generated by `grunt build`, do not edit it by hand.
cursor: default;
}

.chosen-disabled .search-choice-close:hover, .chosen-disabled .search-choice-close:focus {
outline: none;
background-position: -42px 1px;
cursor: default;
}

/* @end */
/* @group Right to Left */
.chosen-rtl {
text-align: right;
}

.chosen-rtl .chosen-single {
overflow: visible;
padding: 2px 8px 0 0;
padding: 2px 7px 2px 0;
}

.chosen-rtl .chosen-single span {
Expand All @@ -424,12 +401,12 @@ This file is generated by `grunt build`, do not edit it by hand.
}

.chosen-rtl .chosen-single-with-deselect span {
margin-left: 38px;
margin-left: 42px;
}

.chosen-rtl .chosen-single div {
right: auto;
left: 3px;
left: 0;
}

.chosen-rtl .chosen-single .search-choice-close {
Expand All @@ -446,13 +423,13 @@ This file is generated by `grunt build`, do not edit it by hand.
}

.chosen-rtl .chosen-choices li.search-choice {
margin: 3px 5px 3px 0;
padding: 3px 5px 3px 19px;
margin: 3px 0 3px 5px;
padding: 3px 5px 3px 20px;
}

.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
right: auto;
left: 4px;
left: 3px;
}

.chosen-rtl.chosen-container-single .chosen-results {
Expand All @@ -465,44 +442,21 @@ This file is generated by `grunt build`, do not edit it by hand.
padding-left: 0;
}

.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
border-right: none;
}

.chosen-rtl .chosen-search input[type="text"] {
padding: 4px 5px 4px 20px;
background: url("chosen-sprite.png") no-repeat -30px -20px;
padding: 5px 5px 5px 20px;
background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56"><path fill="#555" d="M 23.9570 41.7695 C 27.8476 41.7695 31.4804 40.5039 34.4336 38.3945 L 45.5429 49.5039 C 46.0585 50.0195 46.7382 50.2774 47.4414 50.2774 C 48.9648 50.2774 50.0664 49.1055 50.0664 47.6055 C 50.0664 46.9023 49.8322 46.2461 49.3162 45.7305 L 38.2773 34.6679 C 40.5976 31.6211 41.9804 27.8476 41.9804 23.7461 C 41.9804 13.8320 33.8710 5.7226 23.9570 5.7226 C 14.0195 5.7226 5.9336 13.8320 5.9336 23.7461 C 5.9336 33.6601 14.0195 41.7695 23.9570 41.7695 Z M 23.9570 37.8789 C 16.1992 37.8789 9.8242 31.4805 9.8242 23.7461 C 9.8242 16.0117 16.1992 9.6133 23.9570 9.6133 C 31.6914 9.6133 38.0898 16.0117 38.0898 23.7461 C 38.0898 31.4805 31.6914 37.8789 23.9570 37.8789 Z"/></svg>') no-repeat left 5px top 55%;
background-size: 15px 15px;
direction: rtl;
}

.chosen-rtl.chosen-container-single .chosen-single div b {
background-position: 6px 3px;
background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56"><path fill="#555" d="M 28 7.2578 C 27.4844 7.2578 26.9688 7.4687 26.4063 7.9375 L 10.6094 20.7578 C 10.2110 21.1094 9.9766 21.6016 9.9766 22.3047 C 9.9766 23.5234 10.8906 24.4375 12.1328 24.4375 C 12.6250 24.4375 13.1406 24.2500 13.6797 23.8281 L 28 12.1562 L 42.3203 23.8281 C 42.8594 24.2500 43.3750 24.4375 43.8906 24.4375 C 45.1094 24.4375 46.0234 23.5234 46.0234 22.3047 C 46.0234 21.6016 45.7890 21.1094 45.3906 20.7578 L 29.5937 7.9140 C 29.0312 7.4687 28.5390 7.2578 28 7.2578 Z M 28 48.7422 C 28.5390 48.7422 29.0312 48.5312 29.5937 48.0859 L 45.3906 35.2422 C 45.7890 34.8906 46.0234 34.3984 46.0234 33.6953 C 46.0234 32.4765 45.1094 31.5391 43.8906 31.5391 C 43.3750 31.5391 42.8594 31.7500 42.3203 32.1718 L 28 43.8437 L 13.6797 32.1718 C 13.1406 31.7500 12.6250 31.5391 12.1328 31.5391 C 10.8906 31.5391 9.9766 32.4765 9.9766 33.6953 C 9.9766 34.3984 10.2110 34.8906 10.6094 35.2422 L 26.4063 48.0625 C 26.9688 48.5312 27.4844 48.7422 28 48.7422 Z"/></svg>') no-repeat left 5px top 52%;
background-size: 15px 15px;
}

.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
background-position: -12px 3px;
}

/* @end */
/* @group Retina compatibility */
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (min-resolution: 144dpi), only screen and (min-resolution: 1.5dppx) {
.chosen-rtl .chosen-search input[type="text"],
.chosen-container-single .chosen-single div b,
.chosen-container-single .chosen-search input[type="text"],
.chosen-container .search-choice-close,
.chosen-container .chosen-results-scroll-down span,
.chosen-container .chosen-results-scroll-up span {
background-image: url("[email protected]") !important;
background-size: 52px 37px !important;
background-repeat: no-repeat !important;
}
.chosen-rtl .chosen-search input[type="text"],
.chosen-container-single .chosen-search input[type="text"] {
background-color: #fff;
}
.chosen-container-single .chosen-single div b {
background-position: 0 3px;
}
background: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56"><path fill="#555" d="M 28 7.2578 C 27.4844 7.2578 26.9688 7.4687 26.4063 7.9375 L 10.6094 20.7578 C 10.2110 21.1094 9.9766 21.6016 9.9766 22.3047 C 9.9766 23.5234 10.8906 24.4375 12.1328 24.4375 C 12.6250 24.4375 13.1406 24.2500 13.6797 23.8281 L 28 12.1562 L 42.3203 23.8281 C 42.8594 24.2500 43.3750 24.4375 43.8906 24.4375 C 45.1094 24.4375 46.0234 23.5234 46.0234 22.3047 C 46.0234 21.6016 45.7890 21.1094 45.3906 20.7578 L 29.5937 7.9140 C 29.0312 7.4687 28.5390 7.2578 28 7.2578 Z M 28 48.7422 C 28.5390 48.7422 29.0312 48.5312 29.5937 48.0859 L 45.3906 35.2422 C 45.7890 34.8906 46.0234 34.3984 46.0234 33.6953 C 46.0234 32.4765 45.1094 31.5391 43.8906 31.5391 C 43.3750 31.5391 42.8594 31.7500 42.3203 32.1718 L 28 43.8437 L 13.6797 32.1718 C 13.1406 31.7500 12.6250 31.5391 12.1328 31.5391 C 10.8906 31.5391 9.9766 32.4765 9.9766 33.6953 C 9.9766 34.3984 10.2110 34.8906 10.6094 35.2422 L 26.4063 48.0625 C 26.9688 48.5312 27.4844 48.7422 28 48.7422 Z"/></svg>') no-repeat left 5px top 52%;
background-size: 15px 15px;
}

/* @end */
Loading

0 comments on commit 3ec954d

Please sign in to comment.