X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Finclude%2F_variables.scss;h=8c5e7586423334e4c4e84a5cb48fbb74f2d262bc;hb=33253c1aa6b82284ddd0a9cb516ad85e276ca3a3;hp=acdc8d05f14e5aeec7b3e7bad2995d3e4c6309cf;hpb=26171379d0196ac645923e72b12e1cf29089835b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index acdc8d05f..8c5e75864 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss @@ -16,10 +16,11 @@ $grey-foreground-hover-color: #303030; $grey-button-outline-color: scale-color($grey-foreground-color, $alpha: -95%); $main-color: hsl(24, 90%, 50%); -$main-hover-color: lighten($main-color, 5%); $main-color-lighter: lighten($main-color, 10%); $main-color-lightest: lighten($main-color, 40%); -$secondary-color: hsl(187, 77, 34); +$main-hover-color: lighten($main-color, 5%); + +$secondary-color: hsl(187, 77%, 34%); $support-button: inherit; $support-button-heart: #e83e8c; @@ -33,7 +34,7 @@ $green: #39CC0B; $grey-actor-name: #777272; $expanded-horizontal-margins: 150px; -$not-expanded-horizontal-margins: 30px; +$not-expanded-horizontal-margins: 60px; $button-height: 30px; @@ -47,9 +48,12 @@ $menu-bottom-color: #C6C6C6; $menu-width: 240px; $menu-lateral-padding: 26px; -$sub-menu-color: #F7F7F7; +$sub-menu-background-color: #F7F7F7; $sub-menu-height: 81px; +$channel-background-color: #f6ede8; +$max-channels-width: 1200px; + $footer-height: 30px; $footer-margin: 30px; @@ -98,7 +102,9 @@ $variables: ( --menuBackgroundColor: var(--menuBackgroundColor), --menuForegroundColor: var(--menuForegroundColor), - --submenuColor: var(--submenuColor), + + --submenuBackgroundColor: var(--submenuBackgroundColor), + --channelBackgroundColor: var(--channelBackgroundColor), --inputForegroundColor: var(--inputForegroundColor), --inputBackgroundColor: var(--inputBackgroundColor), @@ -116,11 +122,19 @@ $variables: ( --supportButtonHeartColor: var(--supportButtonHeartColor), --embedForegroundColor: var(--embedForegroundColor), - --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor) + --embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor), + + --horizontalMarginContent: var(--horizontalMarginContent), + --mainColWidth: var(--mainColWidth) ); +// SASS type check our CSS variables @function pvar($variable) { - @return map-get($variables, $variable); + @if map-has-key($variables, $variable) { + @return map-get($variables, $variable); + } @else { + @error "ERROR: Variable #{$variable} does not exist"; + } } /*** z-index groups ***/