2017-02-14 11:19:01 +01:00
|
|
|
#conversejs {
|
|
|
|
[hidden] { display: none; }
|
|
|
|
|
|
|
|
.visually-hidden {
|
|
|
|
position: absolute;
|
|
|
|
clip: rect(0, 0, 0, 0);
|
|
|
|
}
|
|
|
|
|
2018-03-26 15:38:03 +02:00
|
|
|
.form-group {
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box,
|
2018-03-26 15:38:03 +02:00
|
|
|
.awesomplete {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box,
|
|
|
|
.awesomplete {
|
2017-02-14 11:19:01 +01:00
|
|
|
position: relative;
|
2018-03-26 15:38:03 +02:00
|
|
|
mark {
|
|
|
|
background: $lightest-red;
|
|
|
|
}
|
2017-02-14 11:19:01 +01:00
|
|
|
|
2018-03-26 15:38:03 +02:00
|
|
|
> input {
|
|
|
|
display: block;
|
|
|
|
}
|
2017-02-14 11:19:01 +01:00
|
|
|
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box__results,
|
2018-03-26 15:38:03 +02:00
|
|
|
> ul {
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: -.43em;
|
|
|
|
left: 1em;
|
|
|
|
width: 0; height: 0;
|
2018-08-10 14:09:21 +02:00
|
|
|
padding: .4em;
|
2018-03-26 15:38:03 +02:00
|
|
|
background: white;
|
|
|
|
border: inherit;
|
|
|
|
border-right: 0;
|
|
|
|
border-bottom: 0;
|
|
|
|
-webkit-transform: rotate(45deg);
|
|
|
|
transform: rotate(45deg);
|
2018-08-10 14:09:21 +02:00
|
|
|
z-index: 1;
|
2018-03-26 15:38:03 +02:00
|
|
|
}
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
2018-08-10 14:09:21 +02:00
|
|
|
z-index: 2;
|
2018-03-26 15:38:03 +02:00
|
|
|
min-width: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
list-style: none;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: .3em;
|
|
|
|
margin: .2em 0 0;
|
|
|
|
background: hsla(0,0%,100%,.9);
|
2018-08-10 14:09:21 +02:00
|
|
|
background: linear-gradient(to bottom right, white, hsla(0,0%,100%,.9));
|
2018-03-26 15:38:03 +02:00
|
|
|
border: 1px solid rgba(0,0,0,.3);
|
2018-08-10 14:09:21 +02:00
|
|
|
box-shadow: .05em .2em .6em rgba(0,0,0,.1);
|
2018-03-26 15:38:03 +02:00
|
|
|
text-shadow: none;
|
|
|
|
|
|
|
|
> li {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
overflow-x: hidden;
|
|
|
|
position: relative;
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 1em;
|
|
|
|
}
|
|
|
|
}
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box__results--above {
|
|
|
|
bottom: 4.5em;
|
|
|
|
&:before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
&:after {
|
|
|
|
z-index: 1;
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
bottom: -.43em;
|
|
|
|
left: 1em;
|
|
|
|
width: 0; height: 0;
|
|
|
|
padding: .4em;
|
|
|
|
background: white;
|
|
|
|
border: inherit;
|
|
|
|
border-left: 0;
|
|
|
|
border-top: 0;
|
|
|
|
-webkit-transform: rotate(45deg);
|
|
|
|
transform: rotate(45deg);
|
|
|
|
}
|
|
|
|
}
|
2017-02-14 11:19:01 +01:00
|
|
|
}
|
|
|
|
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box > ul[hidden],
|
|
|
|
.suggestion-box > ul:empty,
|
2017-02-14 11:19:01 +01:00
|
|
|
div.awesomplete > ul[hidden],
|
|
|
|
div.awesomplete > ul:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@supports (transform: scale(0)) {
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box > ul,
|
2017-02-14 11:19:01 +01:00
|
|
|
div.awesomplete > ul {
|
|
|
|
transition: .3s cubic-bezier(.4,.2,.5,1.4);
|
|
|
|
transform-origin: 1.43em -.43em;
|
|
|
|
}
|
|
|
|
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box > ul[hidden],
|
|
|
|
.suggestion-box > ul:empty,
|
2017-02-14 11:19:01 +01:00
|
|
|
div.awesomplete > ul[hidden],
|
|
|
|
div.awesomplete > ul:empty {
|
|
|
|
opacity: 0;
|
|
|
|
transform: scale(0);
|
|
|
|
display: block;
|
|
|
|
transition-timing-function: ease;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box > ul > li:hover,
|
2017-02-14 11:19:01 +01:00
|
|
|
div.awesomplete > ul > li:hover {
|
2018-08-10 14:09:21 +02:00
|
|
|
z-index: 2;
|
2017-06-18 00:42:54 +02:00
|
|
|
background: $red;
|
|
|
|
color: $inverse-link-color;
|
2017-02-14 11:19:01 +01:00
|
|
|
}
|
|
|
|
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box > ul > li[aria-selected="true"],
|
2017-02-14 11:19:01 +01:00
|
|
|
div.awesomplete > ul > li[aria-selected="true"] {
|
2018-08-15 10:06:57 +02:00
|
|
|
background: $darkest-red;
|
2017-02-14 11:19:01 +01:00
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box li:hover mark,
|
2017-02-14 11:19:01 +01:00
|
|
|
div.awesomplete li:hover mark {
|
2018-08-15 10:06:57 +02:00
|
|
|
background: $dark-red;
|
2017-06-18 00:42:54 +02:00
|
|
|
color: $inverse-link-color;
|
2017-02-14 11:19:01 +01:00
|
|
|
}
|
|
|
|
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box li[aria-selected="true"] mark,
|
2017-02-14 11:19:01 +01:00
|
|
|
div.awesomplete li[aria-selected="true"] mark {
|
2018-08-15 10:06:57 +02:00
|
|
|
background: $red;
|
2017-02-14 11:19:01 +01:00
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
}
|
2018-08-14 12:50:10 +02:00
|
|
|
|
|
|
|
#conversejs.converse-fullscreen {
|
|
|
|
.suggestion-box__results--above {
|
|
|
|
bottom: 4.5em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#conversejs.converse-overlayed {
|
|
|
|
.suggestion-box__results--above {
|
|
|
|
bottom: 5.5em;
|
|
|
|
}
|
|
|
|
}
|