]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-main/buttons/button.component.scss
Add ability to filter menu links
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-main / buttons / button.component.scss
index 5b27af3f4cef2b0f511627ab30463686ea2f5f48..22b24c853e2434434a0d7f688a9c77fdd564c681 100644 (file)
@@ -1,21 +1,38 @@
 @import '_variables';
 @import '_mixins';
 
+@mixin responsive-label {
+  .action-button {
+    padding: 0 13px;
+  }
+
+  .button-label {
+    display: none;
+  }
+}
+
+:host {
+  outline: none;
+}
+
 my-small-loader ::ng-deep .root {
   display: inline-block;
   margin: 0 3px 0 0;
   width: 20px;
 }
 
-.action-button {
-  @include peertube-button-link;
-  @include button-with-icon(21px, 0, -2px);
-
-  > :nth-child(2) {
+a[class$=-button],
+span[class$=-button] {
+  > span {
     margin-left: 5px;
   }
 }
 
+.action-button {
+  @include peertube-button-link;
+  @include button-with-icon(21px);
+}
+
 .orange-button {
   @include peertube-button;
   @include orange-button;
@@ -39,12 +56,12 @@ my-small-loader ::ng-deep .root {
 // In a table, try to minimize the space taken by this button
 @media screen and (max-width: 1400px) {
   :host-context(td) {
-    .action-button {
-      padding: 0 13px;
-    }
+    @include responsive-label;
+  }
+}
 
-    .button-label {
-      display: none;
-    }
+@media screen and (max-width: $small-view) {
+  .responsive-label {
+    @include responsive-label;
   }
 }