]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/sass/include/_variables.scss
Fix toast close icon
[github/Chocobozzz/PeerTube.git] / client / src / sass / include / _variables.scss
index 3780b750120150ac463948a9c4e058cfb2f584c5..91229cee071c6d7dc462248289f3b133c2481ea8 100644 (file)
@@ -1,3 +1,5 @@
+@import '_bootstrap-variables';
+
 $small-view: 800px;
 $mobile-view: 500px;
 
@@ -12,8 +14,14 @@ $grey-foreground-color: #585858;
 $grey-foreground-hover-color: #303030;
 
 $orange-color: #F1680D;
+$orange-color-lighter: rgb(233, 159, 110);
 $orange-hover-color: #F97D46;
 
+$cyan-color: hsl(187, 77%, 34%);
+
+$support-button: inherit;
+$support-button-heart: #e83e8c;
+
 $bg-color: #fff;
 $fg-color: #000;
 
@@ -44,32 +52,73 @@ $footer-margin: 30px;
 
 $footer-border-color: $header-border-color;
 
-$video-thumbnail-height: 110px;
-$video-thumbnail-width: 200px;
+$separator-border-color: rgba(0, 0, 0, 0.10);
+
+$video-miniature-width: 238px;
+$video-miniature-margin-bottom: 30px;
+$video-thumbnail-height: 122px;
+$video-thumbnail-width: 223px;
+$video-thumbnail-ratio: $video-thumbnail-width / $video-thumbnail-height;
 
 $theater-bottom-space: 115px;
 
 $input-background-color: $bg-color;
 $input-placeholder-color: #898989;
 
+$sub-menu-margin-bottom: 30px;
+
+$activated-action-button-color: black;
+
 /*** map theme ***/
 
 // pass variables into a sass map,
 // to be warned of non-existing variables
 $variables: (
   --mainColor: var(--mainColor),
+  --mainColorLighter: var(--mainColorLighter),
   --mainHoverColor: var(--mainHoverColor),
   --mainBackgroundColor: var(--mainBackgroundColor),
   --mainForegroundColor: var(--mainForegroundColor),
+  --secondaryColor: var(--secondaryColor),
+
   --menuBackgroundColor: var(--menuBackgroundColor),
   --menuForegroundColor: var(--menuForegroundColor),
   --submenuColor: var(--submenuColor),
-  --inputColor: var(--inputColor),
-  --inputPlaceholderColor: var(--inputPlaceholderColor)
-);
 
-/*** theme helper ***/
+  --inputBackgroundColor: var(--inputBackgroundColor),
+  --inputPlaceholderColor: var(--inputPlaceholderColor),
+
+  --actionButtonColor: var(--actionButtonColor),
+  --supportButtonColor: var(--supportButtonColor),
+  --supportButtonBackgroundColor: var(--supportButtonBackgroundColor),
+  --supportButtonHeartColor: var(--supportButtonHeartColor),
+
+  --embedForegroundColor: var(--embedForegroundColor),
+  --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor)
+);
 
 @function var($variable) {
   @return map-get($variables, $variable);
 }
+
+/*** z-index groups ***/
+
+$zindex: (
+  miniature    :    10,
+  privacymsg   :    20,
+  typeahead    :    30,
+  header       :  1000,
+  menu         : 11000,
+  dropdown     : 12000,
+  popover      : 13000,
+  tooltip      : 14000,
+  loadbar      : 15000,
+  modal        : 16000,
+  help-popover : 17000,
+  notification : 18000,
+  hotkeys      : 19000
+);
+
+@function z($label) {
+  @return map-get($zindex, $label);
+}