MediaWiki:Gadget-select2.min.css

MediaWiki系统消息页面
/**
 * SPDX-License-Identifier: MIT
 * _addText: '{{Twinkle Header|select2=1}}'
 *
 * @base <https://github.com/select2/select2/>
 * @source <https://github.com/TopRealm/Twinkle>
 */
/*! Select2 4.0.12 | https://github.com/select2/select2/blob/master/LICENSE.md */
/**
 * +--------------------------------------------------------+
 * |         === WARNING: GLOBAL GADGET FILE ===            |
 * +--------------------------------------------------------+
 * |      All changes should be made in the repository,     |
 * |              otherwise they will be lost.              |
 * +--------------------------------------------------------+
 * |      Changes to this page may affect many users.       |
 * |  Please discuss changes at talk page before editing.   |
 * +--------------------------------------------------------+
 */
/* <nowiki> */
.select2-container {
	position: relative;
	display: inline-block;
	box-sizing: border-box;
	margin: 0;
	vertical-align: middle;
}

.select2-container .select2-selection--single {
	display: block;
	height: 28px;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.select2-container .select2-selection--single .select2-selection__rendered {
	display: block;
	overflow: hidden;
	padding-right: 20px;
	padding-left: 8px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.select2-container .select2-selection--single .select2-selection__clear {
	position: relative;
}

.select2-container[dir='rtl'] .select2-selection--single .select2-selection__rendered {
	padding-right: 8px;
	padding-left: 20px;
}

.select2-container .select2-selection--multiple {
	display: block;
	min-height: 32px;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
	display: inline-block;
	overflow: hidden;
	padding-left: 8px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.select2-container .select2-search--inline {
	float: left;
}

.select2-container .select2-search--inline .select2-search__field {
	box-sizing: border-box;
	padding: 0;
	border: none;
	margin-top: 5px;
	font-size: 100%;
}

.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.select2-dropdown {
	position: absolute;
	z-index: 1051;
	left: -100000px;
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #aaa;
	border-radius: 4px;
	background-color: #fff;
}

.select2-results {
	display: block;
}

.select2-results__options {
	padding: 0;
	margin: 0;
	list-style: none;
}

.select2-results__option {
	padding: 6px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.select2-results__option[aria-selected] {
	cursor: pointer;
}

.select2-container--open .select2-dropdown {
	left: 0;
}

.select2-container--open .select2-dropdown--above {
	border-bottom: none;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.select2-container--open .select2-dropdown--below {
	border-top: none;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.select2-search--dropdown {
	display: block;
	padding: 4px;
}

.select2-search--dropdown .select2-search__field {
	width: 100%;
	box-sizing: border-box;
	padding: 4px;
}

.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.select2-search--dropdown.select2-search--hide {
	display: none;
}

.select2-close-mask {
	position: fixed;
	z-index: 99;
	top: 0;
	left: 0;
	display: block;
	width: auto;
	min-width: 100%;
	height: auto;
	min-height: 100%;
	padding: 0;
	border: 0;
	margin: 0;
	background-color: #fff;
	opacity: 0;
}

.select2-hidden-accessible {
	position: absolute !important;
	overflow: hidden !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	border: 0 !important;
	clip: rect(0 0 0 0) !important;
	-webkit-clip-path: inset(50%) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.select2-container--default .select2-selection--single {
	border: 1px solid #aaa;
	border-radius: 4px;
	background-color: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	color: #444;
	line-height: 28px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
	cursor: pointer;
	float: right;
	font-weight: bold;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #999;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	position: absolute;
	top: 1px;
	right: 1px;
	width: 20px;
	height: 26px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-width: 5px 4px 0;
	border-style: solid;
	border-color: #888 transparent transparent;
	margin-top: -2px;
	margin-left: -4px;
}

.select2-container--default[dir='rtl'] .select2-selection--single .select2-selection__clear {
	float: left;
}

.select2-container--default[dir='rtl'] .select2-selection--single .select2-selection__arrow {
	right: auto;
	left: 1px;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
	background-color: #eee;
	cursor: default;
}

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
	display: none;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
	border-width: 0 4px 5px;
	border-color: transparent transparent #888;
}

.select2-container--default .select2-selection--multiple {
	border: 1px solid #aaa;
	border-radius: 4px;
	background-color: #fff;
	cursor: text;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
	width: 100%;
	box-sizing: border-box;
	padding: 0 5px;
	margin: 0;
	list-style: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
	list-style: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
	padding: 1px;
	margin-top: 5px;
	margin-right: 10px;
	cursor: pointer;
	float: right;
	font-weight: bold;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
	padding: 0 5px;
	border: 1px solid #aaa;
	border-radius: 4px;
	margin-top: 5px;
	margin-right: 5px;
	background-color: #e4e4e4;
	cursor: default;
	float: left;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
	display: inline-block;
	margin-right: 2px;
	color: #999;
	cursor: pointer;
	font-weight: bold;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
	color: #333;
}

.select2-container--default[dir='rtl'] .select2-selection--multiple .select2-selection__choice,
.select2-container--default[dir='rtl'] .select2-selection--multiple .select2-search--inline {
	float: right;
}

.select2-container--default[dir='rtl'] .select2-selection--multiple .select2-selection__choice {
	margin-right: auto;
	margin-left: 5px;
}

.select2-container--default[dir='rtl'] .select2-selection--multiple .select2-selection__choice__remove {
	margin-right: auto;
	margin-left: 2px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
	border: 1px solid #000;
	outline: 0;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple {
	background-color: #eee;
	cursor: default;
}

.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
	display: none;
}

.select2-container--default.select2-container--open.select2-container--above .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--single,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	border: 1px solid #aaa;
}

.select2-container--default .select2-search--inline .select2-search__field {
	border: none;
	-webkit-appearance: textfield;
	appearance: textfield;
	background: transparent;
	box-shadow: none;
	outline: 0;
}

.select2-container--default .select2-results > .select2-results__options {
	max-height: 200px;
	overflow-y: auto;
}

.select2-container--default .select2-results__option[role='group'] {
	padding: 0;
}

.select2-container--default .select2-results__option[aria-disabled='true'] {
	color: #999;
}

.select2-container--default .select2-results__option[aria-selected='true'] {
	background-color: #ddd;
}

.select2-container--default .select2-results__option .select2-results__option {
	padding-left: 1em;
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
	padding-left: 0;
}

.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
	padding-left: 2em;
	margin-left: -1em;
}

.select2-container--default
	.select2-results__option
	.select2-results__option
	.select2-results__option
	.select2-results__option {
	padding-left: 3em;
	margin-left: -2em;
}

.select2-container--default
	.select2-results__option
	.select2-results__option
	.select2-results__option
	.select2-results__option
	.select2-results__option {
	padding-left: 4em;
	margin-left: -3em;
}

.select2-container--default
	.select2-results__option
	.select2-results__option
	.select2-results__option
	.select2-results__option
	.select2-results__option
	.select2-results__option {
	padding-left: 5em;
	margin-left: -4em;
}

.select2-container--default
	.select2-results__option
	.select2-results__option
	.select2-results__option
	.select2-results__option
	.select2-results__option
	.select2-results__option
	.select2-results__option {
	padding-left: 6em;
	margin-left: -5em;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
	background-color: #5897fb;
	color: #fff;
}

.select2-container--default .select2-results__group {
	display: block;
	padding: 6px;
	cursor: default;
}

.select2-container--classic .select2-selection--single {
	border: 1px solid #aaa;
	border-radius: 4px;
	background-color: #f7f7f7;
	background-image: -webkit-linear-gradient(top, #fff 50%, #eee 100%);
	background-image: -o-linear-gradient(top, #fff 50%, #eee 100%);
	background-image: linear-gradient(to bottom, #fff 50%, #eee 100%);
	background-repeat: repeat-x;
	outline: 0;
}

.select2-container--classic .select2-selection--single:focus {
	border: 1px solid #5897fb;
}

.select2-container--classic .select2-selection--single .select2-selection__rendered {
	color: #444;
	line-height: 28px;
}

.select2-container--classic .select2-selection--single .select2-selection__clear {
	margin-right: 10px;
	cursor: pointer;
	float: right;
	font-weight: bold;
}

.select2-container--classic .select2-selection--single .select2-selection__placeholder {
	color: #999;
}

.select2-container--classic .select2-selection--single .select2-selection__arrow {
	position: absolute;
	top: 1px;
	right: 1px;
	width: 20px;
	height: 26px;
	border: none;
	border-left: 1px solid #aaa;
	background-color: #ddd;
	background-image: -webkit-linear-gradient(top, #eee 50%, #ccc 100%);
	background-image: -o-linear-gradient(top, #eee 50%, #ccc 100%);
	background-image: linear-gradient(to bottom, #eee 50%, #ccc 100%);
	background-repeat: repeat-x;
	border-bottom-right-radius: 4px;
	border-top-right-radius: 4px;
}

.select2-container--classic .select2-selection--single .select2-selection__arrow b {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-width: 5px 4px 0;
	border-style: solid;
	border-color: #888 transparent transparent;
	margin-top: -2px;
	margin-left: -4px;
}

.select2-container--classic[dir='rtl'] .select2-selection--single .select2-selection__clear {
	float: left;
}

.select2-container--classic[dir='rtl'] .select2-selection--single .select2-selection__arrow {
	right: auto;
	left: 1px;
	border: none;
	border-radius: 0;
	border-right: 1px solid #aaa;
	border-bottom-left-radius: 4px;
	border-top-left-radius: 4px;
}

.select2-container--classic.select2-container--open .select2-selection--single {
	border: 1px solid #5897fb;
}

.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
	border: none;
	background: transparent;
}

.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
	border-width: 0 4px 5px;
	border-color: transparent transparent #888;
}

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
	border-top: none;
	background-image: -webkit-linear-gradient(top, #fff 0%, #eee 50%);
	background-image: -o-linear-gradient(top, #fff 0%, #eee 50%);
	background-image: linear-gradient(to bottom, #fff 0%, #eee 50%);
	background-repeat: repeat-x;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
	border-bottom: none;
	background-image: -webkit-linear-gradient(top, #eee 50%, #fff 100%);
	background-image: -o-linear-gradient(top, #eee 50%, #fff 100%);
	background-image: linear-gradient(to bottom, #eee 50%, #fff 100%);
	background-repeat: repeat-x;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.select2-container--classic .select2-selection--multiple {
	border: 1px solid #aaa;
	border-radius: 4px;
	background-color: #fff;
	cursor: text;
	outline: 0;
}

.select2-container--classic .select2-selection--multiple:focus {
	border: 1px solid #5897fb;
}

.select2-container--classic .select2-selection--multiple .select2-selection__rendered {
	padding: 0 5px;
	margin: 0;
	list-style: none;
}

.select2-container--classic .select2-selection--multiple .select2-selection__clear {
	display: none;
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice {
	padding: 0 5px;
	border: 1px solid #aaa;
	border-radius: 4px;
	margin-top: 5px;
	margin-right: 5px;
	background-color: #e4e4e4;
	cursor: default;
	float: left;
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
	display: inline-block;
	margin-right: 2px;
	color: #888;
	cursor: pointer;
	font-weight: bold;
}

.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
	color: #555;
}

.select2-container--classic[dir='rtl'] .select2-selection--multiple .select2-selection__choice {
	margin-right: auto;
	margin-left: 5px;
	float: right;
}

.select2-container--classic[dir='rtl'] .select2-selection--multiple .select2-selection__choice__remove {
	margin-right: auto;
	margin-left: 2px;
}

.select2-container--classic.select2-container--open .select2-selection--multiple {
	border: 1px solid #5897fb;
}

.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
	border-top: none;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
	border-bottom: none;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.select2-container--classic .select2-search--dropdown .select2-search__field {
	border: 1px solid #aaa;
	outline: 0;
}

.select2-container--classic .select2-search--inline .select2-search__field {
	box-shadow: none;
	outline: 0;
}

.select2-container--classic .select2-dropdown {
	border: 1px solid transparent;
	background-color: #fff;
}

.select2-container--classic .select2-dropdown--above {
	border-bottom: none;
}

.select2-container--classic .select2-dropdown--below {
	border-top: none;
}

.select2-container--classic .select2-results > .select2-results__options {
	max-height: 200px;
	overflow-y: auto;
}

.select2-container--classic .select2-results__option[role='group'] {
	padding: 0;
}

.select2-container--classic .select2-results__option[aria-disabled='true'] {
	color: #808080;
}

.select2-container--classic .select2-results__option--highlighted[aria-selected] {
	background-color: #3875d7;
	color: #fff;
}

.select2-container--classic .select2-results__group {
	display: block;
	padding: 6px;
	cursor: default;
}

.select2-container--classic.select2-container--open .select2-dropdown {
	border-color: #5897fb;
}

/* </nowiki> */