]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/header/header.component.scss
Fix loading spinner in player
[github/Chocobozzz/PeerTube.git] / client / src / app / header / header.component.scss
index e7761a9df5a1f890224d867f62a866ea0917c83b..fba70dd2f1f70be07abe5654bd2037a8cbc894e3 100644 (file)
@@ -6,16 +6,22 @@
   &::placeholder {
     color: #000;
   }
+
+  @media screen and (max-width: 600px) {
+    width: calc(100% - 150px);
+  }
+
+  @media screen and (max-width: 400px) {
+    width: calc(100% - 70px);
+  }
 }
 
 .icon.icon-search {
-  display: inline-block;
-  background: url('../../assets/images/header/search.svg') no-repeat;
-  background-size: contain;
-  width: 25px;
+  @include icon(25px);
   height: 21px;
-  vertical-align: middle;
-  cursor: pointer;
+
+  background-image: url('../../assets/images/header/search.svg');
+
   // yolo
   position: absolute;
   margin-left: -50px;
   margin-right: 25px;
 
   .icon.icon-upload {
-    display: inline-block;
-    background: url('../../assets/images/header/upload.svg') no-repeat;
-    background-size: contain;
-    width: 22px;
+    @include icon(22px);
+
+    background-image: url('../../assets/images/header/upload.svg');
     height: 24px;
     vertical-align: middle;
     margin-right: 6px;
   }
+
+  @media screen and (max-width: 400px) {
+    margin-right: 10px;
+    padding: 0 10px;
+
+    .icon.icon-upload {
+      margin-right: 0;
+    }
+
+    .upload-button-label {
+      display: none;
+    }
+  }
 }