@import '_mixins';
+@import '_variables';
+@import '_bootstrap-variables';
+@import '~bootstrap/scss/mixins/_breakpoints';
+
+#search-video {
+ @include peertube-input-text($search-input-width);
+ padding-left: 10px;
+ padding-right: 40px; // For the search icon
+ font-size: 14px;
+
+ &::placeholder {
+ color: var(--inputPlaceholderColor);
+ }
+}
+
+.icon.icon-search {
+ @include icon(25px);
+ height: 21px;
+
+ background-color: var(--mainForegroundColor);
+ mask: url('../../assets/images/header/search.svg') no-repeat 50% 50%;
+
+ // yolo
+ position: absolute;
+ margin-left: -35px;
+ margin-top: 5px;
+}
.jump-to-suggestions {
top: 100%;
}
#typeahead-container {
- ::ng-deep input {
+ input {
border: 1px solid var(--mainBackgroundColor) !important;
box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px;
flex-grow: 1;
transition: box-shadow .3s ease, width .2s ease;
}
- ::ng-deep span {
+ @media screen and (min-width: $mobile-view) {
+ margin-left: 10px;
+ }
+
+ @media screen and (max-width: $small-view) {
+ flex: 1;
+
+ input {
+ width: unset;
+ }
+ }
+
+ span {
right: 10px;
}
&:focus,
::ng-deep &:focus-within {
& > div:last-child {
- display: initial !important;
+ @media screen and (min-width: $mobile-view) {
+ display: initial !important;
+ }
#typeahead-help,
#typeahead-instructions,
border-end-start-radius: 0;
border-end-end-radius: 0;
- @media screen and (min-width: 900px) {
+ @include media-breakpoint-up(lg) {
width: 500px;
}
}