]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/header/search-typeahead.component.scss
inject lang in document to match current locale
[github/Chocobozzz/PeerTube.git] / client / src / app / header / search-typeahead.component.scss
index 6d7511c70070f9847cf9bb904cbb8be9b97b5cbf..33b88825f3b72359276886a199cbc9f2946301c7 100644 (file)
@@ -3,10 +3,34 @@
 @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%;
   left: 0;
-  z-index: 35;
+  z-index: z(typeahead);
   width: 100%;
 }
 
@@ -42,7 +66,7 @@ my-suggestions ::ng-deep ul {
 }
 
 #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;
@@ -56,12 +80,12 @@ my-suggestions ::ng-deep ul {
   @media screen and (max-width: $small-view) {
     flex: 1;
 
-    ::ng-deep input {
+    input {
       width: unset;
     }
   }
 
-  ::ng-deep span {
+  span {
     right: 10px;
   }