-@import '_mixins';
+@use '_mixins' as *;
+@use '_variables' as *;
+
+#search-video {
+ @include peertube-input-text($search-input-width);
+
+ @include padding-left(10px);
+ @include padding-right(40px); // For the search icon
+
+ font-size: 14px;
+
+ &::placeholder {
+ color: pvar(--inputPlaceholderColor);
+ }
+}
+
+.icon-search {
+ @include icon(25px);
+ @include margin-left(-35px);
+
+ height: 18px;
+
+ // yolo
+ position: absolute;
+ margin-top: 3.5px;
+ right: 10px;
+}
.jump-to-suggestions {
top: 100%;
left: 0;
- z-index: 35;
+ z-index: z('search-typeahead');
width: 100%;
}
+#typeahead-help,
#typeahead-instructions,
-#jump-to-results {
- border: 1px solid var(--mainBackgroundColor);
- border-bottom-right-radius: 3px;
- border-bottom-left-radius: 3px;
- background: var(--mainBackgroundColor);
+li.suggestion {
+ border: 1px solid pvar(--mainBackgroundColor);
+ background: pvar(--mainBackgroundColor);
transition: .3s ease;
transition-property: box-shadow;
+ cursor: pointer;
+
+ // soft border-radius for the last suggestion and the link inside
+ &:last-of-type {
+ &,
+ ::ng-deep a {
+ border-bottom-right-radius: 3px;
+ border-bottom-left-radius: 3px;
+ }
+ }
}
+#typeahead-help,
#typeahead-instructions {
margin-top: 10px;
width: 100%;
padding: .5rem 1rem;
+ white-space: normal;
ul {
list-style: none;
margin-bottom: .5rem;
em {
+ @include margin-right(0.2rem);
+
font-weight: 600;
- margin-right: 0.2rem;
font-style: normal;
}
}
}
#typeahead-container {
- ::ng-deep input {
- border: 1px solid var(--mainBackgroundColor) !important;
- box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px;
+ input {
+ border: 1px solid pvar(--mainBackgroundColor) !important;
+ box-shadow: rgba(0, 0, 0, 0.1) 0 1px 20px 0;
flex-grow: 1;
transition: box-shadow .3s ease, width .2s ease;
}
- ::ng-deep span {
+ @media screen and (min-width: $mobile-view) {
+ @include margin-left(10px);
+ }
+
+ @media screen and (max-width: $small-view) {
+ flex: 1;
+
+ input {
+ width: 70px;
+ }
+ }
+
+ span {
right: 10px;
}
- & > div:last-child {
- // we have to switch the display and not the opacity,
+ > div:last-child {
+ // we have to switch the display and not the opacity,
// to avoid clashing with the rest of the interface.
display: none;
}
&:focus,
::ng-deep &:focus-within {
- & > div:last-child {
- display: initial !important;
-
+ > div:last-child {
+ @media screen and (min-width: $mobile-view) {
+ display: initial !important;
+ }
+
+ #typeahead-help,
#typeahead-instructions,
- #jump-to-results {
- box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px -5px;
+ li.suggestion {
+ box-shadow: rgba(0, 0, 0, 0.2) 0 10px 20px -5px;
}
}
::ng-deep input {
- box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px 0px;
+ box-shadow: rgba(0, 0, 0, 0.2) 0 1px 20px 0;
border-end-start-radius: 0;
border-end-end-radius: 0;
- @media screen and (min-width: 900px) {
+ @media screen and (min-width: 1000px) {
width: 500px;
}
}
}
}
-a.focus-visible {
- background-color: var(--mainHoverColor);
-}
-
-a {
- @include disable-default-a-behaviour;
- width: 100%;
-
- &, &:hover {
- color: var(--mainForegroundColor);
- }
-}
-
-.bg-gray {
- background-color: var(--mainBackgroundColor);
-}
-
-.text-gray-light {
- color: var(--mainForegroundColor);
-}
-
.glyphicon {
top: 3px;
}
.advanced-search-status {
- cursor: help;
+ height: max-content;
+ cursor: default;
+
+ &.c-help {
+ cursor: help;
+ }
}
.small-title {
margin-bottom: .5rem;
}
-my-global-icon {
- width: 17px;
- position: relative;
- top: -2px;
- margin: 5px;
-
- @include apply-svg-color(var(--mainForegroundColor))
+::ng-deep my-suggestion {
+ width: 100%;
}