2016-05-08 14:22:25 +02:00
|
|
|
/*===============================
|
|
|
|
= Choices =
|
|
|
|
===============================*/
|
2016-03-18 00:10:16 +01:00
|
|
|
.choices {
|
2016-08-03 20:36:37 +02:00
|
|
|
font-size: 16px;
|
2016-07-30 17:10:35 +02:00
|
|
|
position: relative;
|
2016-08-03 20:36:37 +02:00
|
|
|
margin-bottom: 24px; }
|
2016-07-30 17:10:35 +02:00
|
|
|
.choices:last-child {
|
|
|
|
margin-bottom: 0; }
|
2016-05-08 01:02:52 +02:00
|
|
|
.choices.is-disabled .choices__inner, .choices.is-disabled .choices__input {
|
|
|
|
background-color: #eaeaea;
|
|
|
|
cursor: not-allowed;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none; }
|
|
|
|
.choices.is-disabled .choices__item {
|
|
|
|
cursor: not-allowed; }
|
2016-08-01 15:23:34 +02:00
|
|
|
.choices:focus {
|
|
|
|
outline: none; }
|
2016-05-08 01:02:52 +02:00
|
|
|
|
2016-08-04 20:30:37 +02:00
|
|
|
.choices[data-type*="select-one"] {
|
|
|
|
cursor: pointer; }
|
|
|
|
.choices[data-type*="select-one"] .choices__inner {
|
|
|
|
padding-bottom: 7.5px; }
|
|
|
|
.choices[data-type*="select-one"] .choices__input {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
padding: 10px;
|
|
|
|
border-bottom: 1px solid #DDDDDD;
|
|
|
|
background-color: #FFFFFF;
|
|
|
|
margin: 0; }
|
2016-08-07 22:05:43 +02:00
|
|
|
.choices[data-type*="select-one"] .choices__button {
|
|
|
|
background-image: url("../../icons//cross-inverse.svg");
|
|
|
|
padding: 0;
|
|
|
|
background-size: 8px;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
right: 15px;
|
|
|
|
margin-top: -10px;
|
|
|
|
margin-right: 25px;
|
|
|
|
height: 20px;
|
|
|
|
width: 20px; }
|
2016-08-04 20:30:37 +02:00
|
|
|
.choices[data-type*="select-one"].is-open:after {
|
|
|
|
border-color: transparent transparent #333333 transparent;
|
|
|
|
margin-top: -7.5px; }
|
|
|
|
.choices[data-type*="select-one"]:after {
|
|
|
|
content: "";
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: #333333 transparent transparent transparent;
|
|
|
|
border-width: 5px;
|
|
|
|
position: absolute;
|
|
|
|
right: 11.5px;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -2.5px;
|
|
|
|
pointer-events: none; }
|
2016-03-18 00:10:16 +01:00
|
|
|
|
2016-06-01 19:45:35 +02:00
|
|
|
.choices[data-type*="select-multiple"] .choices__inner, .choices[data-type*="text"] .choices__inner {
|
|
|
|
cursor: text; }
|
|
|
|
|
2016-08-07 22:05:43 +02:00
|
|
|
.choices[data-type*="select-multiple"] .choices__button, .choices[data-type*="text"] .choices__button {
|
|
|
|
position: relative;
|
|
|
|
margin: -2px -4px -2px 4px;
|
|
|
|
padding: 4px 6px;
|
|
|
|
border-left: 1px solid #008fa1;
|
|
|
|
background-image: url("../../icons//cross.svg");
|
|
|
|
background-size: 8px;
|
|
|
|
line-height: 1; }
|
|
|
|
|
2016-03-18 00:10:16 +01:00
|
|
|
.choices__inner {
|
2016-04-07 20:44:16 +02:00
|
|
|
background-color: #f9f9f9;
|
2016-08-03 20:36:37 +02:00
|
|
|
padding: 7.5px 7.5px 3.75px;
|
2016-03-18 00:10:16 +01:00
|
|
|
border: 1px solid #DDDDDD;
|
2016-08-03 20:36:37 +02:00
|
|
|
border-radius: 2.5px;
|
|
|
|
font-size: 14px;
|
2016-05-07 13:48:27 +02:00
|
|
|
overflow: hidden; }
|
2016-06-02 15:37:06 +02:00
|
|
|
.is-focused .choices__inner, .is-open .choices__inner {
|
2016-05-07 13:48:27 +02:00
|
|
|
border-color: #b7b7b7; }
|
|
|
|
.is-open .choices__inner {
|
2016-08-03 20:36:37 +02:00
|
|
|
border-radius: 2.5px 2.5px 0 0; }
|
2016-05-07 13:48:27 +02:00
|
|
|
.is-flipped.is-open .choices__inner {
|
2016-08-03 20:36:37 +02:00
|
|
|
border-radius: 0 0 2.5px 2.5px; }
|
2016-03-18 00:10:16 +01:00
|
|
|
|
|
|
|
.choices__list {
|
|
|
|
margin: 0;
|
|
|
|
padding-left: 0;
|
2016-03-21 20:27:52 +01:00
|
|
|
list-style-type: none; }
|
|
|
|
|
2016-05-07 13:36:50 +02:00
|
|
|
.choices__list--single {
|
2016-06-02 15:37:06 +02:00
|
|
|
display: inline-block;
|
2016-08-07 22:05:43 +02:00
|
|
|
padding: 4px 16px 4px 4px;
|
|
|
|
width: 100%; }
|
|
|
|
.choices__list--single .choices__item {
|
|
|
|
width: 100%; }
|
2016-05-07 13:36:50 +02:00
|
|
|
|
|
|
|
.choices__list--multiple {
|
2016-03-18 00:10:16 +01:00
|
|
|
display: inline; }
|
2016-05-07 13:36:50 +02:00
|
|
|
.choices__list--multiple .choices__item {
|
2016-03-21 20:27:52 +01:00
|
|
|
display: inline-block;
|
2016-06-30 23:08:40 +02:00
|
|
|
vertical-align: middle;
|
2016-08-03 20:36:37 +02:00
|
|
|
border-radius: 20px;
|
|
|
|
padding: 4px 10px;
|
|
|
|
font-size: 12px;
|
2016-08-01 15:27:27 +02:00
|
|
|
font-weight: 500;
|
2016-08-03 20:36:37 +02:00
|
|
|
margin-right: 3.75px;
|
|
|
|
margin-bottom: 3.75px;
|
2016-03-21 20:27:52 +01:00
|
|
|
background-color: #00BCD4;
|
2016-06-30 23:08:40 +02:00
|
|
|
border: 1px solid #00a5bb;
|
2016-04-16 18:06:27 +02:00
|
|
|
color: #FFFFFF;
|
|
|
|
word-break: break-all; }
|
2016-05-12 00:17:22 +02:00
|
|
|
.choices__list--multiple .choices__item[data-deletable] {
|
2016-08-03 20:36:37 +02:00
|
|
|
padding-right: 5px; }
|
2016-06-30 14:57:56 +02:00
|
|
|
.choices__list--multiple .choices__item.is-highlighted {
|
2016-05-12 10:05:40 +02:00
|
|
|
background-color: #00a5bb;
|
2016-06-30 23:08:40 +02:00
|
|
|
border: 1px solid #008fa1; }
|
2016-05-08 01:02:52 +02:00
|
|
|
.is-disabled .choices__list--multiple .choices__item {
|
2016-05-11 15:25:34 +02:00
|
|
|
background-color: #aaaaaa;
|
|
|
|
border: 1px solid #919191; }
|
2016-03-18 00:10:16 +01:00
|
|
|
|
2016-04-08 23:33:13 +02:00
|
|
|
.choices__list--dropdown {
|
2016-05-05 22:32:38 +02:00
|
|
|
display: none;
|
2016-04-10 22:23:42 +02:00
|
|
|
z-index: 1;
|
2016-04-08 23:33:13 +02:00
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
|
|
|
background-color: #FFFFFF;
|
|
|
|
border: 1px solid #DDDDDD;
|
2016-04-12 23:42:56 +02:00
|
|
|
top: 100%;
|
2016-04-08 23:33:13 +02:00
|
|
|
margin-top: -1px;
|
2016-08-03 20:36:37 +02:00
|
|
|
border-bottom-left-radius: 2.5px;
|
|
|
|
border-bottom-right-radius: 2.5px;
|
2016-06-02 15:37:06 +02:00
|
|
|
overflow: hidden; }
|
2016-05-08 01:02:52 +02:00
|
|
|
.choices__list--dropdown.is-active {
|
|
|
|
display: block; }
|
2016-06-30 23:08:40 +02:00
|
|
|
.is-open .choices__list--dropdown {
|
|
|
|
border-color: #b7b7b7; }
|
|
|
|
.is-flipped .choices__list--dropdown {
|
|
|
|
top: auto;
|
|
|
|
bottom: 100%;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: -1px;
|
|
|
|
border-radius: .25rem .25rem 0 0; }
|
2016-06-02 15:37:06 +02:00
|
|
|
.choices__list--dropdown .choices__list {
|
|
|
|
position: relative;
|
|
|
|
max-height: 300px;
|
|
|
|
overflow: auto;
|
2016-07-31 19:38:00 +02:00
|
|
|
-webkit-overflow-scrolling: touch;
|
2016-06-02 15:37:06 +02:00
|
|
|
will-change: scroll-position; }
|
2016-04-08 23:33:13 +02:00
|
|
|
.choices__list--dropdown .choices__item {
|
2016-08-07 22:05:43 +02:00
|
|
|
position: relative;
|
2016-08-03 20:36:37 +02:00
|
|
|
padding: 10px;
|
|
|
|
font-size: 14px; }
|
2016-08-07 22:05:43 +02:00
|
|
|
@media (min-width: 640px) {
|
|
|
|
.choices__list--dropdown .choices__item--selectable {
|
|
|
|
padding-right: 100px; }
|
|
|
|
.choices__list--dropdown .choices__item--selectable:after {
|
|
|
|
content: "Press to select";
|
|
|
|
font-size: 12px;
|
|
|
|
opacity: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
top: 50%;
|
|
|
|
-webkit-transform: translateY(-50%);
|
|
|
|
transform: translateY(-50%); } }
|
2016-05-04 15:31:29 +02:00
|
|
|
.choices__list--dropdown .choices__item--selectable.is-highlighted {
|
|
|
|
background-color: #f2f2f2; }
|
|
|
|
.choices__list--dropdown .choices__item--selectable.is-highlighted:after {
|
|
|
|
opacity: .5; }
|
2016-04-08 23:33:13 +02:00
|
|
|
|
2016-04-09 12:55:33 +02:00
|
|
|
.choices__item {
|
|
|
|
cursor: default; }
|
|
|
|
|
|
|
|
.choices__item--selectable {
|
|
|
|
cursor: pointer; }
|
|
|
|
|
2016-04-12 23:42:56 +02:00
|
|
|
.choices__item--disabled {
|
|
|
|
cursor: not-allowed;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
2016-05-02 16:29:05 +02:00
|
|
|
user-select: none;
|
|
|
|
opacity: .5; }
|
2016-04-12 23:42:56 +02:00
|
|
|
|
2016-04-16 18:06:27 +02:00
|
|
|
.choices__group .choices__heading {
|
2016-05-03 22:31:05 +02:00
|
|
|
font-weight: 600;
|
2016-08-03 20:36:37 +02:00
|
|
|
font-size: 12px;
|
|
|
|
padding: 10px;
|
2016-05-08 14:22:25 +02:00
|
|
|
border-bottom: 1px solid #f7f7f7;
|
2016-04-16 18:06:27 +02:00
|
|
|
color: gray; }
|
|
|
|
|
2016-05-11 15:51:32 +02:00
|
|
|
.choices__button {
|
|
|
|
text-indent: -9999px;
|
|
|
|
-webkit-appearance: none;
|
|
|
|
-moz-appearance: none;
|
|
|
|
appearance: none;
|
2016-05-12 00:17:22 +02:00
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
cursor: pointer; }
|
2016-05-11 15:51:32 +02:00
|
|
|
|
2016-03-18 00:10:16 +01:00
|
|
|
.choices__input {
|
2016-04-07 20:44:16 +02:00
|
|
|
background-color: #f9f9f9;
|
2016-08-03 20:36:37 +02:00
|
|
|
font-size: 14px;
|
2016-03-18 00:10:16 +01:00
|
|
|
padding: 0;
|
2016-08-03 20:36:37 +02:00
|
|
|
margin-bottom: 5px;
|
2016-03-18 00:10:16 +01:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: baseline;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
2016-03-22 15:36:01 +01:00
|
|
|
max-width: 100%;
|
2016-08-03 20:36:37 +02:00
|
|
|
padding: 4px 0 4px 2px; }
|
2016-03-18 00:10:16 +01:00
|
|
|
.choices__input:focus {
|
|
|
|
outline: 0; }
|
2016-05-08 14:22:25 +02:00
|
|
|
|
|
|
|
/*===== End of Choices ======*/
|