X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Finclude%2F_variables.scss;h=ef22fafe03c73c2c7fa6b1b4e439cda45532ba09;hb=6f03f944c34f78b38a68128413b55186e0676949;hp=d2a5d2bd9fb8f07b6d3fb6da81d5c9ab049c95eb;hpb=dc48fdbe68e9dd3a3a6028181e61d8595d98e654;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index d2a5d2bd9..ef22fafe0 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss @@ -1,4 +1,6 @@ -@import '_bootstrap-variables'; +@use 'sass:math'; +@use 'sass:color'; +@use '~bootstrap/scss/functions' as *; $small-view: 800px; $mobile-view: 500px; @@ -13,14 +15,15 @@ $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-very-light: #fff5eb; -$secondary-color: hsl(187, 77%, 34%); +$main-hover-color: lighten($main-color, 5%); +$main-background-hover-color: #e9ecef; $support-button: inherit; $support-button-heart: #e83e8c; @@ -53,14 +56,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 +85,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,10 +94,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: #000; $focus-box-shadow-form: 0 0 0 .2rem; +$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, @@ -102,16 +111,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), @@ -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, + header : 17500, + modal : 19000, + hotkeys : 19000, + notification : 20000 ); @function z($label) {