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 {
|
2019-03-28 12:35:40 +01:00
|
|
|
.suggestion-box {
|
2018-03-26 15:38:03 +02:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-28 12:35:40 +01:00
|
|
|
.suggestion-box {
|
2017-02-14 11:19:01 +01:00
|
|
|
position: relative;
|
2018-03-26 15:38:03 +02:00
|
|
|
mark {
|
2018-10-25 20:42:56 +02:00
|
|
|
background: var(--completion-light-color);
|
2018-03-26 15:38:03 +02:00
|
|
|
}
|
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);
|
2019-03-28 12:35:40 +01: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;
|
|
|
|
}
|
|
|
|
}
|
2019-03-28 12:35:40 +01:00
|
|
|
.suggestion-box__results--below {
|
|
|
|
top: 2em;
|
|
|
|
}
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box__results--above {
|
|
|
|
bottom: 4.5em;
|
|
|
|
&:before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
&:after {
|
2019-03-28 10:47:14 +01:00
|
|
|
z-index: -1;
|
2018-08-10 14:09:21 +02:00
|
|
|
content: "";
|
|
|
|
position: absolute;
|
2019-03-28 10:47:14 +01:00
|
|
|
bottom: -0.43em;
|
2018-08-10 14:09:21 +02:00
|
|
|
left: 1em;
|
2019-03-28 10:47:14 +01:00
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
padding: 0.4em;
|
2018-08-10 14:09:21 +02:00
|
|
|
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],
|
2019-03-28 12:35:40 +01:00
|
|
|
.suggestion-box > ul:empty {
|
2017-02-14 11:19:01 +01:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@supports (transform: scale(0)) {
|
2019-03-28 12:35:40 +01:00
|
|
|
.suggestion-box > ul {
|
2017-02-14 11:19:01 +01:00
|
|
|
transition: .3s cubic-bezier(.4,.2,.5,1.4);
|
|
|
|
transform-origin: 1.43em -.43em;
|
|
|
|
}
|
2020-12-08 12:54:14 +01:00
|
|
|
|
2018-08-10 14:09:21 +02:00
|
|
|
.suggestion-box > ul[hidden],
|
2019-03-28 12:35:40 +01:00
|
|
|
.suggestion-box > ul:empty {
|
2017-02-14 11:19:01 +01:00
|
|
|
opacity: 0;
|
|
|
|
transform: scale(0);
|
|
|
|
display: block;
|
|
|
|
transition-timing-function: ease;
|
|
|
|
}
|
|
|
|
}
|
2020-12-08 12:54:14 +01:00
|
|
|
|
2019-03-28 12:35:40 +01:00
|
|
|
.suggestion-box > ul > li[aria-selected="true"] {
|
2018-10-25 20:42:56 +02:00
|
|
|
background: var(--completion-dark-color);
|
|
|
|
color: var(--inverse-link-color);
|
2017-02-14 11:19:01 +01:00
|
|
|
}
|
2020-12-08 12:54:14 +01:00
|
|
|
|
2019-03-28 12:35:40 +01:00
|
|
|
.suggestion-box li:hover mark {
|
2018-10-25 20:42:56 +02:00
|
|
|
background: var(--completion-light-color);
|
|
|
|
color: var(--inverse-link-color);
|
2017-02-14 11:19:01 +01:00
|
|
|
}
|
2020-12-08 12:54:14 +01:00
|
|
|
|
2019-03-28 12:35:40 +01:00
|
|
|
.suggestion-box li[aria-selected="true"] mark {
|
2018-10-25 20:42:56 +02:00
|
|
|
background: var(--completion-normal-color);
|
2017-02-14 11:19:01 +01:00
|
|
|
color: inherit;
|
|
|
|
}
|
2018-08-14 12:50:10 +02:00
|
|
|
|
2020-12-08 12:54:14 +01:00
|
|
|
converse-chats {
|
|
|
|
.converse-fullscreen {
|
|
|
|
.suggestion-box__results--above {
|
|
|
|
bottom: 4.5em;
|
|
|
|
}
|
|
|
|
}
|
2018-08-14 12:50:10 +02:00
|
|
|
|
2020-12-08 12:54:14 +01:00
|
|
|
.converse-overlayed {
|
|
|
|
.suggestion-box__results--above {
|
|
|
|
bottom: 3.5em;
|
|
|
|
}
|
|
|
|
}
|
2018-08-14 12:50:10 +02:00
|
|
|
}
|
|
|
|
}
|