]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/header/header.component.scss
Fix search after first type on input
[github/Chocobozzz/PeerTube.git] / client / src / app / header / header.component.scss
index 7ba8ef26cf174f2574c124c22d4f072ad7bc401f..91b39077367ba2b638ea0c2de687a21a824afdff 100644 (file)
@@ -1,39 +1,28 @@
-#search-video {
-  @include peertube-input-text($search-input-width);
-  margin-right: 15px;
-  padding-right: 25px; // For the search icon
-
-  &::placeholder {
-    color: #000;
-  }
-}
+@import '_variables';
+@import '_mixins';
 
-.icon.icon-search {
-  display: inline-block;
-  background: url('../../../assets/images/header/search.svg') no-repeat;
-  background-size: contain;
-  width: 25px;
-  height: 21px;
-  vertical-align: middle;
-  cursor: pointer;
-  // yolo
-  position: absolute;
-  margin-left: -50px;
-  margin-top: 5px;
+my-search-typeahead {
+  margin-right: 15px;
 }
 
 .upload-button {
   @include peertube-button-link;
+  @include orange-button;
+  @include button-with-icon(22px, 3px, -1px);
 
+  color: var(--mainBackgroundColor) !important;
   margin-right: 25px;
 
-  .icon.icon-upload {
-    display: inline-block;
-    background: url('../../../assets/images/header/upload.svg') no-repeat;
-    background-size: contain;
-    width: 22px;
-    height: 24px;
-    vertical-align: middle;
-    margin-right: 6px;
+  @media screen and (max-width: 600px) {
+    margin-right: 10px;
+    padding: 0 10px;
+
+    .icon.icon-upload {
+      margin-right: 0;
+    }
+
+    .upload-button-label {
+      display: none;
+    }
   }
 }