X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fsass%2Finclude%2F_variables.scss;h=43a0057748d958320c64f9f5063542d0f9ce10cb;hb=ffc424259ebe5d670136d6c6183f3d65632655a5;hp=d2a5d2bd9fb8f07b6d3fb6da81d5c9ab049c95eb;hpb=02dd4f3c65536699cec47c7d4054889fd81b5cd4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index d2a5d2bd9..43a005774 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss @@ -1,4 +1,5 @@ -@import '_bootstrap-variables'; +@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,14 +54,14 @@ $sub-menu-height: 81px; $channel-background-color: #f6ede8; -$banner-inverted-ratio: 1/6; +$banner-inverted-ratio: math.div(1, 6); $max-channels-width: 1200px; $footer-height: 30px; $footer-margin: 30px; -$separator-border-color: rgba(0, 0, 0, 0.10); +$separator-border-color: rgba(0, 0, 0, 0.1); $video-miniature-margin-bottom: 15px; @@ -82,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; @@ -90,9 +92,15 @@ $markdown-textarea-background-color: $grey-background-hover-color; $sub-menu-margin-bottom: 30px; $sub-menu-margin-bottom-small-view: 10px; -$activated-action-button-color: black; +$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 ***/ @@ -102,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), @@ -122,6 +131,7 @@ $variables: ( --inputForegroundColor: var(--inputForegroundColor), --inputBackgroundColor: var(--inputBackgroundColor), --inputPlaceholderColor: var(--inputPlaceholderColor), + --inputBorderColor: var(--inputBorderColor), --textareaForegroundColor: var(--textareaForegroundColor), --textareaBackgroundColor: var(--textareaBackgroundColor), @@ -147,7 +157,7 @@ $variables: ( @if map-has-key($variables, $variable) { @return map-get($variables, $variable); } @else { - @error "ERROR: Variable #{$variable} does not exist"; + @error 'ERROR: Variable #{$variable} does not exist'; } } @@ -155,19 +165,20 @@ $variables: ( $zindex: ( miniature : 10, - privacymsg : 20, sub-menu : 12500, + overlay : 12550, menu : 12600, search-typeahead: 12650, - header : 12700, popover : 13000, tooltip : 14000, loadbar : 15000, - modal : 16000, - dropdown : 17000, - help-popover : 17000, - notification : 18000, - hotkeys : 19000 + privacymsg : 17500, + root-header : 17500, + help-popover : 17600, + dropdown : 17600, + modal : 19000, + hotkeys : 19000, + notification : 20000 ); @function z($label) {