]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/header/header.component.scss
add theming via css custom properties
[github/Chocobozzz/PeerTube.git] / client / src / app / header / header.component.scss
index 5f64ede981afd88c8657a99eadd719755b137445..bd03c338ac51247b35c00a0c00e196f59b28083a 100644 (file)
@@ -1,17 +1,25 @@
+@import '_variables';
+@import '_mixins';
+
 #search-video {
   @include peertube-input-text($search-input-width);
+  padding-left: 10px;
   margin-right: 15px;
-  padding-right: 25px; // For the search icon
+  padding-right: 40px; // For the search icon
 
   &::placeholder {
-    color: #000;
+    color: var(--inputPlaceholderColor);
+  }
+
+  &:focus::placeholder {
+    opacity: 0 !important;
   }
 
   @media screen and (max-width: 800px) {
     width: calc(100% - 150px);
   }
 
-  @media screen and (max-width: 400px) {
+  @media screen and (max-width: 600px) {
     width: calc(100% - 70px);
   }
 }
@@ -20,7 +28,8 @@
   @include icon(25px);
   height: 21px;
 
-  background-image: url('../../assets/images/header/search.svg');
+  background-color: var(--mainForegroundColor);
+  mask: url('../../assets/images/header/search.svg') no-repeat 50% 50%;
 
   // yolo
   position: absolute;
 
   margin-right: 25px;
 
+  @media screen and (max-width: 800px) {
+    margin-right: 0;
+  }
+
   .icon.icon-upload {
     @include icon(22px);
 
@@ -43,7 +56,7 @@
     margin-right: 6px;
   }
 
-  @media screen and (max-width: 400px) {
+  @media screen and (max-width: 600px) {
     margin-right: 10px;
     padding: 0 10px;