356 lines
8.4 KiB
CSS
356 lines
8.4 KiB
CSS
@charset "UTF-8";
|
||
@keyframes pulsingAnim {
|
||
0% {
|
||
opacity: 0.6;
|
||
}
|
||
50% {
|
||
opacity: 1;
|
||
}
|
||
100% {
|
||
opacity: 0.6;
|
||
}
|
||
}
|
||
@keyframes scrollingBg {
|
||
0% {
|
||
background-position: 0 0;
|
||
}
|
||
100% {
|
||
background-position: -100% 0;
|
||
}
|
||
}
|
||
@keyframes highlightAnim {
|
||
0% {
|
||
background: #FFFFFF;
|
||
}
|
||
15% {
|
||
background: #FF64B1;
|
||
}
|
||
30% {
|
||
background: #FFFFFF;
|
||
}
|
||
50% {
|
||
background: #FF64B1;
|
||
}
|
||
100% {
|
||
background: inherit;
|
||
}
|
||
}
|
||
.simplecomplete {
|
||
position: relative;
|
||
border: solid 0.125em rgba(0, 0, 0, 0.3);
|
||
border-radius: 0.5em;
|
||
background: linear-gradient(90deg, #FFFFFF 0, #FFFFFF 100%);
|
||
box-sizing: border-box;
|
||
transition: background 3s;
|
||
}
|
||
.simplecomplete * {
|
||
box-sizing: border-box;
|
||
}
|
||
.simplecomplete__input {
|
||
display: flex;
|
||
flex-flow: row nowrap;
|
||
}
|
||
.simplecomplete__input-field {
|
||
flex: 1;
|
||
background: white;
|
||
padding: 0.5em 0.75em;
|
||
white-space: nowrap;
|
||
border: solid 0.0625em transparent;
|
||
border-radius: 0.4em;
|
||
outline: none;
|
||
margin: 0.125em;
|
||
}
|
||
@media screen and (max-width: 992px) {
|
||
.simplecomplete__input-field {
|
||
border-radius: 0;
|
||
}
|
||
}
|
||
.simplecomplete__input-cancel {
|
||
position: absolute;
|
||
top: 50%;
|
||
right: 0;
|
||
width: 2em;
|
||
transform: translateY(-50%);
|
||
text-align: center;
|
||
font-size: 2em;
|
||
cursor: pointer;
|
||
}
|
||
.simplecomplete__input-cancel:after {
|
||
display: inline-block;
|
||
content: "×";
|
||
color: #aaaaaa;
|
||
}
|
||
@media screen and (max-width: 992px) {
|
||
.simplecomplete__input-cancel {
|
||
position: relative;
|
||
display: flex;
|
||
flex-flow: column;
|
||
justify-content: center;
|
||
align-items: center;
|
||
transform: none;
|
||
top: auto;
|
||
right: auto;
|
||
background: #FFFFFF;
|
||
}
|
||
.simplecomplete__input-cancel:after {
|
||
display: block;
|
||
padding: 0 1em;
|
||
color: #DDDDDD;
|
||
}
|
||
}
|
||
.simplecomplete__value {
|
||
border: solid 0.0625em transparent;
|
||
border-radius: 0.4em;
|
||
background: white;
|
||
flex: 1;
|
||
flex-flow: row wrap;
|
||
white-space: normal;
|
||
margin: 0.125em;
|
||
padding: 0;
|
||
padding-bottom: 0.25em;
|
||
outline: none;
|
||
}
|
||
.simplecomplete__value:not(.hide) ~ .simplecomplete__input {
|
||
display: none;
|
||
}
|
||
.simplecomplete__value > .selected-option, .simplecomplete__value > .empty-item {
|
||
display: inline-block;
|
||
cursor: pointer;
|
||
padding: 0.5em 0.75em;
|
||
margin: 0 0.125em;
|
||
background: #EFEFEF;
|
||
color: #BBBBBB;
|
||
font-weight: 500;
|
||
border-radius: 0.5em;
|
||
border: solid 0.0625em transparent;
|
||
background: #DDDDDD;
|
||
color: #111111;
|
||
margin: 0.25em 0.25em 0;
|
||
}
|
||
.simplecomplete__value > .empty-item {
|
||
background: #FFFFFF;
|
||
color: #BBBBBB;
|
||
font-weight: 400;
|
||
}
|
||
.simplecomplete__value.is-empty {
|
||
color: #BBBBBB;
|
||
}
|
||
@media screen and (max-width: 992px) {
|
||
.simplecomplete__value {
|
||
border-radius: 0;
|
||
}
|
||
}
|
||
.simplecomplete:not(.is-select) .simplecomplete__value.is-empty {
|
||
padding: 0.75em 0.5em;
|
||
}
|
||
.simplecomplete.is-multiple .simplecomplete__value, .simplecomplete.is-blankable .simplecomplete__value {
|
||
position: relative;
|
||
}
|
||
.simplecomplete.is-multiple .simplecomplete__value > .selected-option:after, .simplecomplete.is-blankable .simplecomplete__value > .selected-option:after {
|
||
content: "×";
|
||
display: inline;
|
||
margin-left: 0.25em;
|
||
color: #888888;
|
||
}
|
||
.simplecomplete.is-multiple .simplecomplete__input-cancel, .simplecomplete.is-blankable .simplecomplete__input-cancel {
|
||
display: block;
|
||
}
|
||
.simplecomplete__results {
|
||
display: none;
|
||
position: absolute;
|
||
top: 100%;
|
||
left: 0;
|
||
min-width: 20%;
|
||
max-width: 100%;
|
||
background: #FFFFFF;
|
||
box-shadow: 0 0.125em 0.25em 0 #aaaaaa;
|
||
z-index: 255;
|
||
margin-top: 0.5em;
|
||
border-radius: 0.5em;
|
||
}
|
||
@media screen and (max-width: 992px) {
|
||
.simplecomplete__results {
|
||
position: relative;
|
||
top: 0;
|
||
flex: 1;
|
||
overflow-y: auto;
|
||
background: #FFFFFF;
|
||
box-shadow: none;
|
||
border-radius: 0;
|
||
margin-top: 0;
|
||
}
|
||
}
|
||
@media screen and (min-width: 993px) {
|
||
.simplecomplete__results:before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 50%;
|
||
bottom: 100%;
|
||
z-index: -10;
|
||
border: solid 0.5em #FFFFFF;
|
||
border-bottom-color: transparent;
|
||
border-left-color: transparent;
|
||
transform: translate(-50%, 50%) rotate(-45deg);
|
||
box-shadow: 0 0 0.25em rgba(0, 0, 0, 0.3);
|
||
}
|
||
.simplecomplete__results:after {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
left: 50%;
|
||
width: 4em;
|
||
height: 2em;
|
||
z-index: -1;
|
||
background: #FFFFFF;
|
||
transform: translateX(-50%);
|
||
}
|
||
}
|
||
.simplecomplete__results-list {
|
||
border-radius: 0.5em;
|
||
overflow: hidden;
|
||
overflow-y: auto;
|
||
max-height: 30vh;
|
||
padding: 0.5em;
|
||
}
|
||
.simplecomplete__results-list-item, .simplecomplete__results-list-empty {
|
||
cursor: pointer;
|
||
display: block;
|
||
padding: 1em;
|
||
color: #BBBBBB;
|
||
font-weight: 500;
|
||
}
|
||
.simplecomplete__results-list-item:not(:last-child), .simplecomplete__results-list-empty:not(:last-child) {
|
||
border-bottom: solid 1px #f7f7f7;
|
||
}
|
||
.simplecomplete__results-list-item:hover, .simplecomplete__results-list-empty:hover {
|
||
color: #111111;
|
||
}
|
||
.simplecomplete__results-list-item > .highlight, .simplecomplete__results-list-empty > .highlight {
|
||
display: inline;
|
||
color: #FF64B1;
|
||
border-radius: 0.5em;
|
||
}
|
||
.simplecomplete__results-list-item.selected, .simplecomplete__results-list-empty.selected {
|
||
font-weight: 500;
|
||
background: #FF64B1;
|
||
color: #FFFFFF;
|
||
border-radius: 0.5em;
|
||
}
|
||
.simplecomplete__results-list-item.selected:hover, .simplecomplete__results-list-empty.selected:hover {
|
||
background: #ff3197;
|
||
color: #FFFFFF;
|
||
}
|
||
.simplecomplete__results-list-item.selected > .highlight, .simplecomplete__results-list-empty.selected > .highlight {
|
||
color: #111111;
|
||
background: #FFFE47;
|
||
padding: 0.125em 0.25em;
|
||
margin: -0.125em 0;
|
||
}
|
||
.simplecomplete__results-list-item.disabled, .simplecomplete__results-list-empty.disabled {
|
||
border-radius: 0.5em;
|
||
background: #EFEFEF;
|
||
font-style: italic;
|
||
}
|
||
@media screen and (max-width: 992px) {
|
||
.simplecomplete__results-list {
|
||
max-height: none;
|
||
}
|
||
}
|
||
.simplecomplete .hide {
|
||
display: none;
|
||
}
|
||
.simplecomplete.is-select:not(.active) {
|
||
display: flex;
|
||
flex-flow: row nowrap;
|
||
align-items: center;
|
||
}
|
||
.simplecomplete.is-select:not(.active):after {
|
||
content: "";
|
||
display: inline-block;
|
||
border: solid 0.25em #111111;
|
||
border-top-color: transparent;
|
||
border-right-color: transparent;
|
||
transform: translateY(-40%) rotate(-45deg);
|
||
width: 0;
|
||
height: 0;
|
||
margin: 0 1em;
|
||
}
|
||
.simplecomplete.is-blankable:not(.active) .simplecomplete__value > .selected-option:after {
|
||
display: none;
|
||
}
|
||
.simplecomplete.active:not(.is-select) .simplecomplete__results {
|
||
display: block;
|
||
}
|
||
.simplecomplete.active.is-select .simplecomplete__input-field, .simplecomplete:not(.is-select) .simplecomplete__input-field {
|
||
padding: 0.85em;
|
||
}
|
||
.simplecomplete.inline {
|
||
display: inline-block;
|
||
}
|
||
.simplecomplete.active {
|
||
border-color: #FF64B1;
|
||
}
|
||
@media screen and (max-width: 992px) {
|
||
.simplecomplete.active {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100vw;
|
||
height: 100vh;
|
||
border-color: transparent;
|
||
display: flex;
|
||
flex-flow: column nowrap;
|
||
background: #DDDDDD;
|
||
z-index: 255;
|
||
border-radius: 0;
|
||
border: none;
|
||
}
|
||
}
|
||
@media screen and (max-width: 992px) {
|
||
.simplecomplete.active .simplecomplete__input {
|
||
animation-name: highlightAnim;
|
||
animation-duration: 1.3s;
|
||
animation-timing-function: ease-in-out;
|
||
animation-iteration-count: 1;
|
||
}
|
||
}
|
||
.simplecomplete.is-busy {
|
||
border-color: rgba(255, 255, 255, 0.6);
|
||
background: #FF64B1;
|
||
background: linear-gradient(90deg, #ff9999 0%, #ffff99 25%, #1aff1a 50%, #9999ff 75%, #ff9999 100%);
|
||
background-size: 10vw 10vw;
|
||
animation-name: scrollingBg;
|
||
animation-iteration-count: infinite;
|
||
animation-duration: 3s;
|
||
animation-timing-function: linear;
|
||
}
|
||
.simplecomplete.is-busy .simplecomplete__input-field {
|
||
border-color: #FF64B1;
|
||
}
|
||
.simplecomplete.is-busy .simplecomplete__results-list {
|
||
padding-top: 1em;
|
||
}
|
||
.simplecomplete.is-busy .simplecomplete__results-list-empty, .simplecomplete.is-busy .simplecomplete__results-list-item {
|
||
display: none;
|
||
}
|
||
.simplecomplete.is-busy .simplecomplete__results-list:before, .simplecomplete.is-busy .simplecomplete__results-list:after {
|
||
display: block;
|
||
content: "";
|
||
border-radius: 0.5em;
|
||
height: 1.2em;
|
||
background: #EFEFEF;
|
||
width: 90%;
|
||
margin: 0 0.5em;
|
||
animation-name: pulsingAnim;
|
||
animation-iteration-count: infinite;
|
||
animation-duration: 0.8s;
|
||
animation-timing-function: linear;
|
||
}
|
||
.simplecomplete.is-busy .simplecomplete__results-list:after {
|
||
width: 60%;
|
||
margin-top: 0.6em;
|
||
margin-bottom: 0.4em;
|
||
}
|
||
.simplecomplete.active .simplecomplete__results {
|
||
display: block;
|
||
} |