X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Finclude%2F_variables.scss;h=cf76575509e2c5de894b58810485647016c43529;hb=4682468d4d07e0864155dd2b403d93754786ea13;hp=ba7abeef1fe8c946c7562c952d290fdb19aaf132;hpb=41a676db3989fe3eca91301ac5f5aea30d98654a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss index ba7abeef1..cf7657550 100644 --- a/client/src/sass/include/_variables.scss +++ b/client/src/sass/include/_variables.scss @@ -1,15 +1,32 @@ +@import '_bootstrap-variables'; + +$small-view: 800px; +$mobile-view: 500px; + $main-fonts: 'Source Sans Pro', sans-serif; $font-regular: 400; $font-semibold: 600; $font-bold: 700; -$grey-color: #E5E5E5; -$grey-hoover-color: #EFEFEF;; -$orange-color: #F1680D; -$orange-hoover-color: #F97D46; +$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%); + +// Palette +$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); +// -$black-background: #000; -$grey-background: #f6f2f2; +$support-button: inherit; +$support-button-heart: #e83e8c; + +$bg-color: #fff; +$fg-color: #000; $red: #FF0000; $green: #39CC0B; @@ -25,17 +42,90 @@ $header-height: 50px; $header-border-color: #e9eff6; $search-input-width: 375px; +$menu-background: #000; $menu-color: #fff; $menu-bottom-color: #C6C6C6; $menu-width: 240px; -$menu-left-padding: 26px; +$menu-lateral-padding: 26px; + +$sub-menu-color: #F7F7F7; $footer-height: 30px; $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; +$sub-menu-margin-bottom-small-view: 10px; + +$activated-action-button-color: black; + +$focus-box-shadow-form: 0 0 0 .2rem; + +/*** map theme ***/ + +// pass variables into a sass map, +// to be warned of non-existing variables +$variables: ( + --mainColor: var(--mainColor), + --mainColorLighter: var(--mainColorLighter), + --mainColorLightest: var(--mainColorLightest), + --mainHoverColor: var(--mainHoverColor), + --mainBackgroundColor: var(--mainBackgroundColor), + --mainForegroundColor: var(--mainForegroundColor), + --secondaryColor: var(--secondaryColor), + + --menuBackgroundColor: var(--menuBackgroundColor), + --menuForegroundColor: var(--menuForegroundColor), + --submenuColor: var(--submenuColor), + + --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 +); -$theater-bottom-space: 85px; +@function z($label) { + @return map-get($zindex, $label); +}