2016-04-07 20:44:16 +02:00
|
|
|
$global-guttering: 2.4rem;
|
|
|
|
|
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
|
|
|
|
|
|
|
.choices {
|
2016-04-07 20:44:16 +02:00
|
|
|
margin-bottom: $global-guttering;
|
2016-03-18 00:10:16 +01:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.choices__inner {
|
2016-04-07 20:44:16 +02:00
|
|
|
background-color: mix(#000000, #FFFFFF, 2.5%);
|
2016-03-18 00:10:16 +01:00
|
|
|
padding: .75rem .75rem .375rem;
|
|
|
|
border: 1px solid #DDDDDD;
|
|
|
|
border-radius: .25rem;
|
|
|
|
font-size: 1.4rem;
|
2016-04-16 18:06:27 +02:00
|
|
|
cursor: text;
|
2016-04-22 20:45:50 +02:00
|
|
|
.is-active & { border-color: darken(#DDDDDD, 15%); }
|
2016-03-18 00:10:16 +01:00
|
|
|
&:focus {
|
|
|
|
outline: 1px solid #00BCD4;
|
|
|
|
outline-offset: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.choices__list {
|
|
|
|
margin: 0;
|
|
|
|
padding-left: 0;
|
|
|
|
list-style-type: none;
|
2016-03-21 20:27:52 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.choices__list--options {}
|
|
|
|
|
|
|
|
.choices__list--items {
|
2016-03-18 00:10:16 +01:00
|
|
|
display: inline;
|
2016-03-21 20:27:52 +01:00
|
|
|
.choices__item {
|
|
|
|
display: inline-block;
|
2016-04-08 23:33:13 +02:00
|
|
|
border-radius: 2rem;
|
|
|
|
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;
|
|
|
|
background-color: #00BCD4;
|
2016-04-08 23:33:13 +02:00
|
|
|
border: 1px solid darken(#00BCD4, 2.5%);
|
2016-03-21 20:27:52 +01:00
|
|
|
color: #FFFFFF;
|
2016-04-16 18:06:27 +02:00
|
|
|
word-break: break-all;
|
2016-03-21 20:27:52 +01:00
|
|
|
&.is-selected { background-color: darken(#00BCD4, 5%); }
|
|
|
|
}
|
2016-03-18 00:10:16 +01:00
|
|
|
}
|
|
|
|
|
2016-04-08 23:33:13 +02:00
|
|
|
.choices__list--dropdown {
|
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;
|
|
|
|
display: none;
|
|
|
|
border-bottom-left-radius: .25rem;
|
|
|
|
border-bottom-right-radius: .25rem;
|
2016-04-21 15:42:57 +02:00
|
|
|
max-height: 300px;
|
|
|
|
overflow: auto;
|
2016-04-22 20:45:50 +02:00
|
|
|
.is-active & { border-color: darken(#DDDDDD, 15%); }
|
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;
|
|
|
|
&:hover { background-color: #FFFFFF; }
|
2016-04-08 23:33:13 +02:00
|
|
|
}
|
|
|
|
}
|
2016-04-16 18:06:27 +02:00
|
|
|
.choices__item--selectable {
|
2016-05-02 14:22:53 +02:00
|
|
|
&.is-highlighted { background-color: mix(#000000, #FFFFFF, 2.5%); }
|
2016-04-16 18:06:27 +02:00
|
|
|
}
|
|
|
|
|
2016-04-09 12:29:56 +02:00
|
|
|
&.is-active { display: block; }
|
2016-04-12 23:42:56 +02:00
|
|
|
&.is-flipped {
|
|
|
|
top: auto;
|
|
|
|
bottom: 100%;
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: -1px;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-top-left-radius: .25rem;
|
|
|
|
border-top-right-radius: .25rem;
|
|
|
|
}
|
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 {
|
|
|
|
font-size: 1.2rem;
|
|
|
|
padding: 1rem;
|
|
|
|
border-bottom: 1px solid #EAEAEA;
|
|
|
|
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; }
|
|
|
|
}
|