lbry-desktop/src/ui/scss/component/_wunderbar.scss

124 lines
2.1 KiB
SCSS
Raw Normal View History

.wunderbar {
min-width: 175px;
height: 100%;
cursor: text;
display: flex;
2019-06-11 20:10:58 +02:00
align-items: center;
flex: 1;
position: relative;
z-index: 1;
2019-07-23 10:05:51 +02:00
margin-right: var(--spacing-main-padding);
2019-07-21 23:31:22 +02:00
font-size: var(--font-label);
2019-06-11 20:10:58 +02:00
@media (max-width: 600px) {
margin-right: 0;
}
> .icon {
top: 0;
2019-06-11 20:10:58 +02:00
left: var(--spacing-small);
height: 100%;
position: absolute;
z-index: 1;
2019-09-16 07:32:02 +02:00
stroke: $lbry-gray-5;
}
}
2019-09-16 07:32:02 +02:00
.wunderbar--channel {
@extend .wunderbar;
flex: 0;
margin-right: 0;
color: $lbry-black;
2019-09-16 07:48:44 +02:00
fieldset-section {
width: 15rem;
}
2019-09-16 07:32:02 +02:00
}
.wunderbar__active-suggestion {
2019-07-21 23:31:22 +02:00
background-color: lighten($lbry-blue-1, 15%);
color: $lbry-black;
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
background-color: $lbry-blue-4;
color: inherit;
}
}
.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;
height: var(--input-height);
border-radius: var(--input-height);
background-color: $lbry-gray-1;
border: none;
padding-right: var(--spacing-small);
2019-06-17 22:32:38 +02:00
2019-06-11 20:10:58 +02:00
padding-left: 2.5rem;
transition: all 0.2s;
&:focus {
border-radius: var(--input-border-radius);
}
&::placeholder {
color: $lbry-black;
opacity: 0.9;
}
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
2019-07-01 20:42:32 +02:00
background-color: var(--dm-color-03);
color: $lbry-white;
2019-06-11 20:10:58 +02:00
&::placeholder {
2019-07-21 23:31:22 +02:00
color: var(--dm-color-01);
}
}
}
.wunderbar__menu {
background-color: $lbry-white;
box-shadow: 0 1px 5px rgba($lbry-black, 0.15);
min-width: 100%;
overflow: hidden;
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
background-color: $lbry-gray-5;
color: $lbry-white;
}
}
.wunderbar__suggestion {
align-items: center;
cursor: pointer;
display: flex;
flex-direction: row;
justify-items: flex-start;
2019-07-21 23:31:22 +02:00
padding: var(--spacing-small) var(--spacing-small);
&:not(:first-of-type) {
border-top: 1px solid transparent;
}
.icon {
flex-shrink: 0;
}
}
.wunderbar__suggestion-label {
overflow: hidden;
2019-07-21 23:31:22 +02:00
padding-left: var(--spacing-small);
text-overflow: ellipsis;
white-space: nowrap;
}
.wunderbar__suggestion-label--action {
2019-07-21 23:31:22 +02:00
margin-left: var(--spacing-medium);
opacity: 0.6;
white-space: nowrap;
}