2020-12-03 18:29:47 +01:00
|
|
|
.wunderbar__wrapper {
|
2019-08-21 22:54:44 +02:00
|
|
|
flex: 1;
|
2020-12-03 18:29:47 +01:00
|
|
|
max-width: 30rem;
|
|
|
|
margin-left: var(--spacing-s);
|
|
|
|
margin-right: var(--spacing-s);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wunderbar {
|
2018-12-19 06:44:53 +01:00
|
|
|
cursor: text;
|
|
|
|
display: flex;
|
2019-06-11 20:10:58 +02:00
|
|
|
align-items: center;
|
2018-12-19 06:44:53 +01:00
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
2019-11-22 22:13:00 +01:00
|
|
|
font-size: var(--font-small);
|
2020-01-02 17:30:27 +01:00
|
|
|
height: var(--height-input);
|
2020-07-24 22:08:31 +02:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
max-width: none;
|
2020-08-10 22:47:39 +02:00
|
|
|
margin: 0;
|
2020-07-24 22:08:31 +02:00
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
|
|
|
|
> .icon {
|
|
|
|
top: 0;
|
2020-06-01 19:03:19 +02:00
|
|
|
left: var(--spacing-s);
|
2018-12-19 06:44:53 +01:00
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
z-index: 1;
|
2020-02-04 15:52:56 +01:00
|
|
|
stroke: var(--color-input-placeholder);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-03 23:20:55 +02:00
|
|
|
.wunderbar--inline {
|
2019-09-16 07:32:02 +02:00
|
|
|
@extend .wunderbar;
|
|
|
|
flex: 0;
|
|
|
|
margin-right: 0;
|
2019-09-16 07:48:44 +02:00
|
|
|
|
|
|
|
fieldset-section {
|
|
|
|
width: 15rem;
|
|
|
|
}
|
2019-12-18 06:27:08 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
2020-07-15 21:59:21 +02:00
|
|
|
margin: var(--spacing-xxs) 0;
|
2019-12-18 06:27:08 +01:00
|
|
|
}
|
2019-09-16 07:32:02 +02:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.wunderbar__input {
|
|
|
|
width: 100%;
|
|
|
|
align-items: center;
|
2019-06-17 22:32:38 +02:00
|
|
|
min-width: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
2019-07-21 23:31:22 +02:00
|
|
|
text-overflow: ellipsis;
|
2019-11-22 22:13:00 +01:00
|
|
|
height: var(--height-input);
|
|
|
|
border-radius: var(--height-input);
|
|
|
|
background-color: var(--color-input-bg);
|
|
|
|
color: var(--color-input);
|
2019-07-21 23:31:22 +02:00
|
|
|
border: none;
|
2020-06-01 19:03:19 +02:00
|
|
|
padding-right: var(--spacing-s);
|
2019-06-11 20:10:58 +02:00
|
|
|
padding-left: 2.5rem;
|
|
|
|
transition: all 0.2s;
|
2020-05-18 08:23:55 +02:00
|
|
|
-webkit-app-region: no-drag;
|
2019-06-11 20:10:58 +02:00
|
|
|
|
|
|
|
&:focus {
|
2019-11-22 22:13:00 +01:00
|
|
|
border-radius: var(--border-radius);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-15 21:59:21 +02:00
|
|
|
.wunderbar__input--inline {
|
|
|
|
@extend .wunderbar__input;
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-12-03 18:29:47 +01:00
|
|
|
.wunderbar__results {
|
|
|
|
margin-left: var(--spacing-xs);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wunderbar__suggestions {
|
|
|
|
z-index: 3;
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: calc(var(--header-height) - (var(--height-input)) + 3px);
|
|
|
|
@extend .card;
|
|
|
|
box-shadow: var(--card-box-shadow);
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-top: none;
|
|
|
|
padding: var(--spacing-xs);
|
|
|
|
margin: 0 var(--spacing-s);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wunderbar__top-claim {
|
|
|
|
margin-bottom: var(--spacing-m);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wunderbar__label {
|
|
|
|
margin-bottom: var(--spacing-xs);
|
|
|
|
margin-left: var(--spacing-xs);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wunderbar__top-separator {
|
|
|
|
margin: var(--spacing-s) 0;
|
|
|
|
width: 120%;
|
|
|
|
transform: translateX(-10%);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.wunderbar__suggestion {
|
|
|
|
display: flex;
|
2020-12-03 18:29:47 +01:00
|
|
|
align-items: center;
|
|
|
|
height: 3rem;
|
|
|
|
|
|
|
|
.media__thumb {
|
|
|
|
flex-shrink: 0;
|
|
|
|
$width: 3rem;
|
|
|
|
@include handleClaimListGifThumbnail($width);
|
|
|
|
width: $width;
|
|
|
|
height: calc(#{$width} * (9 / 16));
|
|
|
|
margin-right: var(--spacing-s);
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2020-12-03 18:29:47 +01:00
|
|
|
@media (min-width: $breakpoint-small) {
|
|
|
|
$width: 5rem;
|
|
|
|
@include handleClaimListGifThumbnail($width);
|
|
|
|
width: $width;
|
|
|
|
height: calc(#{$width} * (9 / 16));
|
|
|
|
margin-right: var(--spacing-xs);
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2020-12-03 18:29:47 +01:00
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2020-12-03 18:29:47 +01:00
|
|
|
.wunderbar__suggestion--channel {
|
|
|
|
.channel-thumbnail {
|
|
|
|
@include handleChannelGif(calc(5rem * 9 / 16));
|
|
|
|
margin-right: var(--spacing-xs);
|
|
|
|
|
|
|
|
@media (min-width: $breakpoint-small) {
|
|
|
|
@include handleChannelGif(calc(5rem * 9 / 16));
|
|
|
|
margin-right: var(--spacing-s);
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.wunderbar__suggestion-label {
|
2020-12-03 18:29:47 +01:00
|
|
|
font-size: var(--font-small);
|
|
|
|
min-width: 0;
|
|
|
|
white-space: nowrap;
|
2018-12-19 06:44:53 +01:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2020-12-03 18:29:47 +01:00
|
|
|
.wunderbar__suggestion-name {
|
|
|
|
@extend .help;
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wunderbar__more-results {
|
|
|
|
margin-top: var(--spacing-xs);
|
|
|
|
}
|
|
|
|
|
2020-12-03 21:42:41 +01:00
|
|
|
.wunderbar__placeholder-suggestion {
|
|
|
|
padding: var(--spacing-xs);
|
|
|
|
}
|
|
|
|
|
|
|
|
.wunderbar__placeholder-label {
|
|
|
|
width: 30%;
|
|
|
|
height: 1rem;
|
|
|
|
margin-left: var(--spacing-xs);
|
|
|
|
margin-bottom: var(--spacing-m);
|
|
|
|
margin-top: var(--spacing-xs);
|
|
|
|
@include placeholder;
|
|
|
|
}
|
|
|
|
|
|
|
|
.wunderbar__placeholder-thumbnail {
|
|
|
|
width: 3rem;
|
|
|
|
height: 3rem;
|
|
|
|
|
|
|
|
@include placeholder;
|
|
|
|
}
|
|
|
|
.wunderbar__placeholder-info {
|
|
|
|
width: 50%;
|
|
|
|
height: 3rem;
|
|
|
|
margin-left: var(--spacing-s);
|
|
|
|
@include placeholder;
|
|
|
|
}
|
|
|
|
|
2020-12-03 18:29:47 +01:00
|
|
|
[data-reach-combobox-option] {
|
2020-12-03 21:42:41 +01:00
|
|
|
padding: var(--spacing-xs);
|
2020-12-03 18:29:47 +01:00
|
|
|
border-radius: var(--border-radius);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--color-menu-background--active);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-reach-combobox-option][data-highlighted] {
|
|
|
|
background-color: var(--color-menu-background--active);
|
|
|
|
}
|
|
|
|
|
|
|
|
[data-reach-combobox-option][aria-selected='true'] {
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--color-menu-background--active);
|
|
|
|
}
|
|
|
|
}
|