]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/include/_variables.scss
Fix scss lint
[github/Chocobozzz/PeerTube.git] / client / src / sass / include / _variables.scss
index e0a4c7d3fa1bbe6149cfe4feb1f3ad0651a34cd3..43a0057748d958320c64f9f5063542d0f9ce10cb 100644 (file)
@@ -1,4 +1,5 @@
 @use 'sass:math';
+@use 'sass:color';
 
 $small-view: 800px;
 $mobile-view: 500px;
@@ -13,20 +14,21 @@ $grey-background-color: #E5E5E5;
 $grey-background-hover-color: #EFEFEF;
 $grey-foreground-color: #585858;
 $grey-foreground-hover-color: #303030;
-$grey-button-outline-color: scale-color($grey-foreground-color, $alpha: -95%);
+$grey-button-outline-color: color.scale($grey-foreground-color, $alpha: -95%);
 
 $main-color: hsl(24, 90%, 50%);
-$main-color-lighter: lighten($main-color, 10%);
-$main-color-lightest: lighten($main-color, 40%);
-$main-hover-color: lighten($main-color, 5%);
+$main-color-lighter: color.adjust($main-color, $lightness: 10%);
+$main-color-lightest: color.adjust($main-color, $lightness: 40%);
+$main-color-very-light: #fff5eb;
 
-$secondary-color: hsl(187, 77%, 34%);
+$main-hover-color: color.adjust($main-color, $lightness: 5%);
+$main-background-hover-color: #e9ecef;
 
 $support-button: inherit;
 $support-button-heart: #e83e8c;
 
 $bg-color: #fff;
-$fg-color: #000;
+$fg-color: #212529;
 
 $red: #FF0000;
 $green: #39CC0B;
@@ -36,7 +38,7 @@ $grey-actor-name: #777272;
 $expanded-horizontal-margins: 150px;
 $not-expanded-horizontal-margins: 30px;
 
-$button-height: 30px;
+$button-font-size: 15px;
 
 $header-height: 50px;
 $header-border-color: #e9eff6;
@@ -44,7 +46,6 @@ $search-input-width: 375px;
 
 $menu-background: #000;
 $menu-color: #fff;
-$menu-bottom-color: #C6C6C6;
 $menu-width: 240px;
 $menu-lateral-padding: 26px;
 
@@ -53,8 +54,7 @@ $sub-menu-height: 81px;
 
 $channel-background-color: #f6ede8;
 
-// FIXME: cannot use math.div here because of compilation error
-$banner-inverted-ratio: 0.1666666666;
+$banner-inverted-ratio: math.div(1, 6);
 
 $max-channels-width: 1200px;
 
@@ -83,6 +83,7 @@ $theater-bottom-space: 115px;
 $input-foreground-color: $fg-color;
 $input-background-color: $bg-color;
 $input-placeholder-color: #898989;
+$input-border-color: #C6C6C6;
 
 $textarea-foreground-color: $fg-color;
 $textarea-background-color: $bg-color;
@@ -91,13 +92,16 @@ $markdown-textarea-background-color: $grey-background-hover-color;
 $sub-menu-margin-bottom: 30px;
 $sub-menu-margin-bottom-small-view: 10px;
 
-$activated-action-button-color: #000;
+$activated-action-button-color: #212529;
 
 $focus-box-shadow-form: 0 0 0 .2rem;
+$form-input-font-size: 15px;
 
 $video-watch-player-factor: math.div(16, 9);
 $video-watch-info-margin-left: 44px;
 
+$primeng-breakpoint: 960px;
+
 /*** map theme ***/
 
 // pass variables into a sass map,
@@ -106,16 +110,17 @@ $variables: (
   --mainColor: var(--mainColor),
   --mainColorLighter: var(--mainColorLighter),
   --mainColorLightest: var(--mainColorLightest),
+  --mainColorVeryLight: var(--mainColorVeryLight),
 
   --mainHoverColor: var(--mainHoverColor),
+  --mainBackgroundHoverColor: var(--mainBackgroundHoverColor),
 
   --mainBackgroundColor: var(--mainBackgroundColor),
   --mainForegroundColor: var(--mainForegroundColor),
 
-  --secondaryColor: var(--secondaryColor),
-
   --greyForegroundColor: var(--greyForegroundColor),
   --greyBackgroundColor: var(--greyBackgroundColor),
+  --greySecondaryBackgroundColor: var(--greySecondaryBackgroundColor),
 
   --menuBackgroundColor: var(--menuBackgroundColor),
   --menuForegroundColor: var(--menuForegroundColor),
@@ -126,6 +131,7 @@ $variables: (
   --inputForegroundColor: var(--inputForegroundColor),
   --inputBackgroundColor: var(--inputBackgroundColor),
   --inputPlaceholderColor: var(--inputPlaceholderColor),
+  --inputBorderColor: var(--inputBorderColor),
 
   --textareaForegroundColor: var(--textareaForegroundColor),
   --textareaBackgroundColor: var(--textareaBackgroundColor),
@@ -166,13 +172,13 @@ $zindex: (
   popover         : 13000,
   tooltip         : 14000,
   loadbar         : 15000,
-  modal           : 16000,
-  dropdown        : 17000,
-  help-popover    : 17000,
   privacymsg      : 17500,
-  header          : 17500,
-  notification    : 18000,
-  hotkeys         : 19000
+  root-header     : 17500,
+  help-popover    : 17600,
+  dropdown        : 17600,
+  modal           : 19000,
+  hotkeys         : 19000,
+  notification    : 20000
 );
 
 @function z($label) {