2016-04-07 20:44:16 +02:00
|
|
|
$global-guttering: 2.4rem;
|
|
|
|
|
2016-05-08 14:22:25 +02:00
|
|
|
/*=============================================
|
|
|
|
= Generic styling =
|
|
|
|
=============================================*/
|
|
|
|
|
2016-03-18 00:10:16 +01:00
|
|
|
*, *:before, *:after {
|
|
|
|
box-sizing: border-box
|
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
font-size: 62.5%;
|
|
|
|
}
|
|
|
|
|
|
|
|
html, body {
|
|
|
|
margin: 0;
|
|
|
|
height: 100%;
|
|
|
|
widows: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
2016-04-07 20:44:16 +02:00
|
|
|
background-color: #333333;
|
|
|
|
font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
2016-03-18 00:10:16 +01:00
|
|
|
font-size: 1.6rem;
|
2016-04-07 20:44:16 +02:00
|
|
|
color: #FFFFFF;
|
2016-03-18 00:10:16 +01:00
|
|
|
}
|
|
|
|
|
2016-03-18 12:05:50 +01:00
|
|
|
label {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: .8rem;
|
2016-04-07 20:44:16 +02:00
|
|
|
font-size: 1.4rem;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: $global-guttering/2;
|
|
|
|
font-weight: 500;
|
|
|
|
}
|
|
|
|
|
|
|
|
.container {
|
|
|
|
display: block;
|
|
|
|
margin: auto;
|
|
|
|
max-width: 35em;
|
|
|
|
padding: $global-guttering;
|
|
|
|
}
|
|
|
|
|
|
|
|
.section {
|
|
|
|
background-color: #FFFFFF;
|
|
|
|
padding: $global-guttering;
|
|
|
|
color: #333;
|
2016-03-18 12:05:50 +01:00
|
|
|
}
|
2016-03-18 00:10:16 +01:00
|
|
|
|
2016-05-08 14:22:25 +02:00
|
|
|
/*===== End of Section comment block ======*/
|
|
|
|
|
|
|
|
|
|
|
|
/*===============================
|
|
|
|
= Choices =
|
|
|
|
===============================*/
|
|
|
|
|
|
|
|
$choices-border-radius: .25rem;
|
|
|
|
$choices-border-radius-item: 2rem;
|
|
|
|
$choices-bg-color: #f9f9f9;
|
|
|
|
$choices-bg-color-dropdown: #FFFFFF;
|
|
|
|
$choices-text-color: #333333;
|
|
|
|
$choices-keyline-color: #DDDDDD;
|
|
|
|
$choices-primary-color: #00BCD4;
|
|
|
|
$choices-disabled-color: #eaeaea;
|
|
|
|
|
2016-03-18 00:10:16 +01:00
|
|
|
.choices {
|
2016-04-07 20:44:16 +02:00
|
|
|
margin-bottom: $global-guttering;
|
2016-03-18 00:10:16 +01:00
|
|
|
position: relative;
|
2016-05-08 01:02:52 +02:00
|
|
|
&.is-disabled {
|
|
|
|
.choices__inner, .choices__input {
|
|
|
|
background-color: lighten(#DDDDDD, 5%);
|
|
|
|
cursor: not-allowed;
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
.choices__item { cursor: not-allowed; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.choices[data-type*="select-one"] {
|
|
|
|
&.is-open:after {
|
2016-05-08 14:22:25 +02:00
|
|
|
border-color: transparent transparent $choices-text-color transparent;
|
2016-05-08 01:02:52 +02:00
|
|
|
margin-top: -7.5px;
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
content: "";
|
|
|
|
height: 0;
|
|
|
|
width: 0;
|
|
|
|
border-style: solid;
|
2016-05-08 14:22:25 +02:00
|
|
|
border-color: $choices-text-color transparent transparent transparent;
|
2016-05-08 01:02:52 +02:00
|
|
|
border-width: 5px;
|
|
|
|
position: absolute;
|
|
|
|
right: .75rem + .4rem;
|
|
|
|
top: 50%;
|
|
|
|
margin-top: -2.5px;
|
|
|
|
}
|
2016-03-18 00:10:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.choices__inner {
|
2016-05-08 14:22:25 +02:00
|
|
|
background-color: $choices-bg-color;
|
2016-03-18 00:10:16 +01:00
|
|
|
padding: .75rem .75rem .375rem;
|
2016-05-08 14:22:25 +02:00
|
|
|
border: 1px solid $choices-keyline-color;
|
|
|
|
border-radius: $choices-border-radius;
|
2016-03-18 00:10:16 +01:00
|
|
|
font-size: 1.4rem;
|
2016-04-16 18:06:27 +02:00
|
|
|
cursor: text;
|
2016-05-07 13:48:27 +02:00
|
|
|
overflow: hidden;
|
2016-05-08 14:22:25 +02:00
|
|
|
.is-focused & { border-color: darken($choices-keyline-color, 15%); }
|
|
|
|
.is-open & { border-radius: $choices-border-radius $choices-border-radius 0 0; }
|
|
|
|
.is-flipped.is-open & { border-radius: 0 0 $choices-border-radius $choices-border-radius; }
|
2016-03-18 00:10:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.choices__list {
|
|
|
|
margin: 0;
|
|
|
|
padding-left: 0;
|
|
|
|
list-style-type: none;
|
2016-03-21 20:27:52 +01:00
|
|
|
}
|
|
|
|
|
2016-05-07 13:36:50 +02:00
|
|
|
.choices__list--single {
|
|
|
|
display: inline-block;
|
2016-05-08 14:22:25 +02:00
|
|
|
.choices__item { padding: .4rem; }
|
2016-05-07 13:36:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.choices__list--multiple {
|
2016-03-18 00:10:16 +01:00
|
|
|
display: inline;
|
2016-03-21 20:27:52 +01:00
|
|
|
.choices__item {
|
|
|
|
display: inline-block;
|
2016-05-08 14:22:25 +02:00
|
|
|
border-radius: $choices-border-radius-item;
|
2016-04-08 23:33:13 +02:00
|
|
|
padding: .4rem 1rem;
|
2016-03-22 15:36:01 +01:00
|
|
|
font-size: 1.2rem;
|
2016-03-21 20:27:52 +01:00
|
|
|
margin-right: .375rem;
|
|
|
|
margin-bottom: .375rem;
|
2016-05-08 14:22:25 +02:00
|
|
|
background-color: $choices-primary-color;
|
|
|
|
border: 1px solid darken($choices-primary-color, 5%);
|
2016-03-21 20:27:52 +01:00
|
|
|
color: #FFFFFF;
|
2016-04-16 18:06:27 +02:00
|
|
|
word-break: break-all;
|
2016-05-08 14:22:25 +02:00
|
|
|
&.is-selected { background-color: darken($choices-primary-color, 5%); }
|
2016-05-08 01:02:52 +02:00
|
|
|
.is-disabled & {
|
2016-05-11 15:25:34 +02:00
|
|
|
background-color: darken($choices-disabled-color, 25%);
|
|
|
|
border: 1px solid darken($choices-disabled-color, 35%);
|
2016-05-08 01:02:52 +02:00
|
|
|
}
|
2016-03-21 20:27:52 +01:00
|
|
|
}
|
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%;
|
2016-05-08 14:22:25 +02:00
|
|
|
background-color: $choices-bg-color-dropdown;
|
|
|
|
border: 1px solid $choices-keyline-color;
|
2016-04-12 23:42:56 +02:00
|
|
|
top: 100%;
|
2016-04-08 23:33:13 +02:00
|
|
|
margin-top: -1px;
|
2016-05-08 14:22:25 +02:00
|
|
|
border-bottom-left-radius: $choices-border-radius;
|
|
|
|
border-bottom-right-radius: $choices-border-radius;
|
2016-04-21 15:42:57 +02:00
|
|
|
max-height: 300px;
|
|
|
|
overflow: auto;
|
2016-05-05 22:32:38 +02:00
|
|
|
will-change: scroll-position;
|
2016-05-08 01:02:52 +02:00
|
|
|
&.is-active { display: block; }
|
2016-05-08 14:22:25 +02:00
|
|
|
|
2016-04-08 23:33:13 +02:00
|
|
|
.choices__item {
|
|
|
|
padding: 1rem;
|
|
|
|
font-size: 1.4rem;
|
2016-04-12 23:42:56 +02:00
|
|
|
&.is-selected {
|
|
|
|
opacity: .5;
|
2016-05-08 14:22:25 +02:00
|
|
|
&:hover { background-color: $choices-bg-color-dropdown; }
|
2016-04-08 23:33:13 +02:00
|
|
|
}
|
|
|
|
}
|
2016-04-16 18:06:27 +02:00
|
|
|
.choices__item--selectable {
|
2016-05-03 22:31:05 +02:00
|
|
|
&:after {
|
|
|
|
content: "Press to select";
|
|
|
|
font-size: 12px;
|
|
|
|
opacity: 0;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
&.is-highlighted {
|
|
|
|
background-color: mix(#000000, #FFFFFF, 5%);
|
2016-05-04 15:31:29 +02:00
|
|
|
&:after { opacity: .5; }
|
2016-05-03 22:31:05 +02:00
|
|
|
}
|
2016-04-16 18:06:27 +02:00
|
|
|
}
|
|
|
|
|
2016-05-07 13:48:27 +02:00
|
|
|
.is-open & { border-color: darken(#DDDDDD, 15%); }
|
|
|
|
.is-flipped & {
|
2016-04-12 23:42:56 +02:00
|
|
|
top: auto;
|
|
|
|
bottom: 100%;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: -1px;
|
2016-05-07 13:48:27 +02:00
|
|
|
border-radius: .25rem .25rem 0 0;
|
2016-04-12 23:42:56 +02:00
|
|
|
}
|
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;
|
|
|
|
user-select: none;
|
2016-05-02 16:29:05 +02:00
|
|
|
opacity: .5;
|
2016-04-12 23:42:56 +02:00
|
|
|
}
|
2016-04-09 12:55:33 +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-04-16 18:06:27 +02:00
|
|
|
font-size: 1.2rem;
|
|
|
|
padding: 1rem;
|
2016-05-08 14:22:25 +02:00
|
|
|
border-bottom: 1px solid lighten($choices-keyline-color, 10%);
|
2016-04-16 18:06:27 +02:00
|
|
|
color: lighten(#333, 30%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-18 00:10:16 +01:00
|
|
|
.choices__input {
|
2016-04-07 20:44:16 +02:00
|
|
|
background-color: mix(#000000, #FFFFFF, 2.5%);
|
2016-03-18 00:10:16 +01:00
|
|
|
font-size: 1.4rem;
|
|
|
|
padding: 0;
|
|
|
|
margin-bottom: .5rem;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: baseline;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
max-width: 100%;
|
2016-03-22 15:36:01 +01:00
|
|
|
padding: .4rem 0 .4rem .2rem;
|
2016-03-18 00:10:16 +01:00
|
|
|
&:focus { outline: 0; }
|
2016-05-08 14:22:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*===== End of Choices ======*/
|