Test a color for the support button
authorChocobozzz <me@florianbigard.com>
Tue, 3 Dec 2019 19:10:27 +0000 (20:10 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 3 Dec 2019 19:10:27 +0000 (20:10 +0100)
client/src/app/videos/+video-watch/video-watch.component.scss
client/src/sass/application.scss
client/src/sass/include/_variables.scss

index 2e7131067f0076fd795ed9ba3ee7967a0b8c9879..80d01b7ce36ecd22512d85ff18300fc2c6eec8bf 100644 (file)
@@ -255,6 +255,19 @@ $player-factor: 1.7; // 16/9
               }
             }
 
+            &.action-button-support {
+              color: var(--supportButtonColor);
+              background-color: var(--supportButtonBackgroundColor);
+
+              &:hover {
+                opacity: 0.9;
+              }
+
+              my-global-icon {
+                @include apply-svg-color(var(--supportButtonColor));
+              }
+            }
+
             &.action-button-save {
               my-global-icon {
                 top: 0 !important;
index 5386e3bb30f369a7603e42ffbcee98b01276309b..e10663c43d5029de88da29c660305ae203b4ff44 100644 (file)
@@ -26,12 +26,17 @@ body {
   --mainHoverColor: #{$orange-hover-color};
   --mainBackgroundColor: #{$bg-color};
   --mainForegroundColor: #{$fg-color};
+
   --menuBackgroundColor: #{$menu-background};
   --menuForegroundColor: #{$menu-color};
   --submenuColor: #{$sub-menu-color};
+
   --inputColor: #{$input-background-color};
   --inputPlaceholderColor: #{$input-placeholder-color};
 
+  --supportButtonBackgroundColor: #{$support-button};
+  --supportButtonColor: #{$white};
+
   font-family: $main-fonts;
   font-weight: $font-regular;
   color: var(--mainForegroundColor);
index f629dc23efc345276128d7f6ab7534e44dda2cbf..0cec9c412c226b99bbbcc1f69961d3493217ab9c 100644 (file)
@@ -14,6 +14,8 @@ $grey-foreground-hover-color: #303030;
 $orange-color: #F1680D;
 $orange-hover-color: #F97D46;
 
+$support-button: #38981a;
+
 $bg-color: #fff;
 $fg-color: #000;
 
@@ -68,11 +70,17 @@ $variables: (
   --mainHoverColor: var(--mainHoverColor),
   --mainBackgroundColor: var(--mainBackgroundColor),
   --mainForegroundColor: var(--mainForegroundColor),
+
   --menuBackgroundColor: var(--menuBackgroundColor),
   --menuForegroundColor: var(--menuForegroundColor),
   --submenuColor: var(--submenuColor),
+
   --inputColor: var(--inputColor),
   --inputPlaceholderColor: var(--inputPlaceholderColor),
+
+  --supportButtonColor: var(--supportButtonColor),
+  --supportButtonBackgroundColor: var(--supportButtonBackgroundColor),
+
   --embedForegroundColor: var(--embedForegroundColor),
   --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor)
 );