]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Don't use opional @extends
authorChocobozzz <me@florianbigard.com>
Thu, 24 Nov 2022 08:51:58 +0000 (09:51 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 24 Nov 2022 08:52:33 +0000 (09:52 +0100)
Not robust at all

client/src/sass/class-helpers.scss
client/src/sass/include/_fonts.scss
client/src/sass/include/_icons.scss
client/src/sass/primeng-custom.scss

index 72381d1a8952a759c9a9c5f17e73bffa5ca7f69c..bc965331a4819eec19a69f8c9089b0bae26879c9 100644 (file)
@@ -2,6 +2,7 @@
 @use '_mixins' as *;
 @use '_badges' as *;
 @use '_icons' as *;
+@use '_fonts' as *;
 
 .link-orange {
   color: pvar(--mainForegroundColor);
@@ -62,7 +63,7 @@
 // ---------------------------------------------------------------------------
 
 .muted {
-  color: pvar(--greyForegroundColor) !important;
+  @include muted;
 }
 
 // ---------------------------------------------------------------------------
 }
 
 .form-group-description {
-  @extend .muted !optional;
+  @include muted;
 
   font-size: 14px;
   margin-top: 10px;
@@ -219,27 +220,19 @@ label + .form-group-description {
 // ---------------------------------------------------------------------------
 
 .chevron-down {
-  @include chevron-down(0.55rem, 0.15rem);
-
-  margin: 0 8px;
+  @include chevron-down-default;
 }
 
 .chevron-up {
-  @include chevron-up(0.55rem, 0.15rem);
-
-  margin: 0 8px;
+  @include chevron-up-default;
 }
 
 .chevron-right {
-  @include chevron-right(0.55rem, 0.15rem);
-
-  margin: 0 8px;
+  @include chevron-right-default;
 }
 
 .chevron-left {
-  @include chevron-left(0.55rem, 0.15rem);
-
-  margin: 0 8px;
+  @include chevron-left-default;
 }
 
 // ---------------------------------------------------------------------------
index 514261d01394c81686f1f13a1fa7973bc5bbffa5..e5a40af345af0e659cc61d34ec08eda78d4ec36b 100644 (file)
@@ -15,3 +15,7 @@
   font-display: swap;
   src: url('../fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2') format('woff2');
 }
+
+@mixin muted {
+  color: pvar(--greyForegroundColor) !important;
+}
index 5d8a312db7a57fee286aab5104df8cafbf26f9db..08a0c02e39d0244f8cf8f669f9a70d1495ce64a0 100644 (file)
   transform: rotate(45deg);
 }
 
+@mixin chevron-right-default {
+  @include chevron-right(0.55rem, 0.15rem);
+
+  margin: 0 8px;
+}
+
 @mixin chevron-down ($size, $border-width) {
   @include chevron($size, $border-width);
 
   transform: rotate(135deg);
 }
 
+@mixin chevron-down-default {
+  @include chevron-down(0.55rem, 0.15rem);
+
+  margin: 0 8px;
+}
+
 @mixin chevron-up ($size, $border-width) {
   @include chevron($size, $border-width);
 
   transform: rotate(-45deg);
 }
 
+@mixin chevron-up-default {
+  @include chevron-up(0.55rem, 0.15rem);
+
+  margin: 0 8px;
+}
+
 @mixin chevron-left ($size, $border-width) {
   @include chevron($size, $border-width);
 
   transform: rotate(-135deg);
 }
 
+@mixin chevron-left-default {
+  @include chevron-left(0.55rem, 0.15rem);
+
+  margin: 0 8px;
+}
+
 // ---------------------------------------------------------------------------
 
 @mixin arrow-up ($size) {
index a82cdbbb9f0f1e374ef6101c45e23ea5da101d65..fb1d3f7bdb23cf37da56b6dcaddef9cc8f5c425e 100644 (file)
@@ -667,7 +667,7 @@ p-table {
           @include margin-right(10px);
 
           .p-paginator-icon {
-            @extend .chevron-left !optional;
+            @include chevron-left-default;
           }
         }
 
@@ -675,7 +675,7 @@ p-table {
           @include margin-left(10px);
 
           .p-paginator-icon {
-            @extend .chevron-right !optional;
+            @include chevron-right-default;
           }
         }
 
@@ -769,7 +769,7 @@ p-calendar .p-datepicker {
     }
 
     .p-datepicker-next {
-      @extend .chevron-right !optional;
+      @include chevron-right-default;
 
       color: #000 !important;
       text-align: end;
@@ -780,7 +780,7 @@ p-calendar .p-datepicker {
     }
 
     .p-datepicker-prev {
-      @extend .chevron-left !optional;
+      @include chevron-left-default;
 
       color: #000 !important;
       text-align: start;
@@ -794,13 +794,13 @@ p-calendar .p-datepicker {
   .p-timepicker {
 
     .pi.pi-chevron-up {
-      @extend .chevron-up !optional;
+      @include chevron-up-default;
 
       color: #000 !important;
     }
 
     .pi.pi-chevron-down {
-      @extend .chevron-down !optional;
+      @include chevron-down-default;
 
       color: #000 !important;
     }