1
0
Fork 0
peertube/client/src/sass/include/_variables.scss

187 lines
5.0 KiB
SCSS
Raw Normal View History

2021-05-27 15:45:36 +00:00
@use 'sass:math';
2022-06-14 11:54:54 +00:00
@use 'sass:color';
2018-09-05 09:20:44 +00:00
$small-view: 800px;
$mobile-view: 500px;
2018-02-22 17:32:31 +00:00
$main-fonts: 'Source Sans Pro', sans-serif;
2017-12-01 08:20:19 +00:00
$font-regular: 400;
$font-semibold: 600;
$font-bold: 700;
2021-01-05 12:48:56 +00:00
$line-height-normal: 1.2;
2017-12-01 08:20:19 +00:00
$grey-background-color: #E5E5E5;
$grey-background-hover-color: #EFEFEF;
$grey-foreground-color: #585858;
$grey-foreground-hover-color: #303030;
2022-06-14 11:54:54 +00:00
$grey-button-outline-color: color.scale($grey-foreground-color, $alpha: -95%);
2020-03-11 12:50:53 +00:00
$main-color: hsl(24, 90%, 50%);
2023-05-25 12:27:35 +00:00
$main-color-lighter: color.adjust($main-color, $lightness: 10%);
$main-color-lightest: color.adjust($main-color, $lightness: 40%);
2022-06-14 11:54:54 +00:00
$main-color-very-light: #fff5eb;
2022-03-15 13:12:37 +00:00
2023-05-25 12:27:35 +00:00
$main-hover-color: color.adjust($main-color, $lightness: 5%);
2022-03-15 13:12:37 +00:00
$main-background-hover-color: #e9ecef;
2021-03-25 12:42:55 +00:00
$support-button: inherit;
$support-button-heart: #e83e8c;
2019-12-03 19:10:27 +00:00
$bg-color: #fff;
2022-06-15 11:42:01 +00:00
$fg-color: #212529;
2018-08-28 15:39:29 +00:00
$red: #FF0000;
$green: #39CC0B;
2017-04-21 09:06:33 +00:00
2018-08-21 14:18:59 +00:00
$grey-actor-name: #777272;
2017-12-01 16:38:26 +00:00
$expanded-horizontal-margins: 150px;
$not-expanded-horizontal-margins: 30px;
2017-12-01 16:38:26 +00:00
2022-06-15 12:59:25 +00:00
$button-font-size: 15px;
2017-12-01 08:20:19 +00:00
$header-height: 50px;
2017-04-21 09:06:33 +00:00
$header-border-color: #e9eff6;
2017-12-01 12:08:46 +00:00
$search-input-width: 375px;
$menu-background: #000;
2017-12-01 12:08:46 +00:00
$menu-color: #fff;
$menu-width: 240px;
2018-09-06 11:47:20 +00:00
$menu-lateral-padding: 26px;
2017-12-01 12:08:46 +00:00
$sub-menu-background-color: #F7F7F7;
$sub-menu-height: 81px;
2021-03-25 12:42:55 +00:00
$channel-background-color: #f6ede8;
2021-04-07 15:01:29 +00:00
2021-10-22 14:18:00 +00:00
$banner-inverted-ratio: math.div(1, 6);
2021-04-07 15:01:29 +00:00
2021-03-26 14:53:18 +00:00
$max-channels-width: 1200px;
2021-03-25 12:42:55 +00:00
2017-04-23 20:13:58 +00:00
$footer-height: 30px;
$footer-margin: 30px;
2021-04-28 14:41:07 +00:00
$separator-border-color: rgba(0, 0, 0, 0.1);
2019-03-07 16:06:00 +00:00
$video-miniature-margin-bottom: 15px;
2021-04-01 14:54:20 +00:00
$video-miniature-row-name-font-size: 1.3em;
$video-miniature-row-mobile-name-font-size: 14px;
$video-miniature-row-info-font-size: 14px;
$video-miniature-row-mobile-info-font-size: 12px;
$video-thumbnail-height: 153px;
$video-thumbnail-width: 280px;
$video-thumbnail-medium-height: 114px;
$video-thumbnail-medium-width: 201px;
$video-thumbnail-small-height: 71px;
$video-thumbnail-small-width: 125px;
2018-06-11 14:49:56 +00:00
2018-09-05 14:10:03 +00:00
$theater-bottom-space: 115px;
$input-foreground-color: $fg-color;
2018-09-05 13:59:43 +00:00
$input-background-color: $bg-color;
$input-placeholder-color: #898989;
$input-border-color: #C6C6C6;
$textarea-foreground-color: $fg-color;
2020-05-20 11:52:12 +00:00
$textarea-background-color: $bg-color;
$markdown-textarea-background-color: $grey-background-hover-color;
2019-03-14 13:05:36 +00:00
$sub-menu-margin-bottom: 30px;
$sub-menu-margin-bottom-small-view: 10px;
2019-03-14 13:05:36 +00:00
2022-06-15 11:42:01 +00:00
$activated-action-button-color: #212529;
$focus-box-shadow-form: 0 0 0 .2rem;
2022-06-15 12:59:25 +00:00
$form-input-font-size: 15px;
$video-watch-player-factor: math.div(16, 9);
$video-watch-info-margin-left: 44px;
2021-10-20 09:35:09 +00:00
$primeng-breakpoint: 960px;
/*** 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),
2022-06-14 11:54:54 +00:00
--mainColorVeryLight: var(--mainColorVeryLight),
--mainHoverColor: var(--mainHoverColor),
2022-03-15 13:12:37 +00:00
--mainBackgroundHoverColor: var(--mainBackgroundHoverColor),
--mainBackgroundColor: var(--mainBackgroundColor),
--mainForegroundColor: var(--mainForegroundColor),
2020-05-22 09:21:55 +00:00
--greyForegroundColor: var(--greyForegroundColor),
2020-07-24 15:21:25 +00:00
--greyBackgroundColor: var(--greyBackgroundColor),
2022-03-15 13:12:37 +00:00
--greySecondaryBackgroundColor: var(--greySecondaryBackgroundColor),
2020-05-22 09:21:55 +00:00
--menuBackgroundColor: var(--menuBackgroundColor),
--menuForegroundColor: var(--menuForegroundColor),
2021-03-25 12:42:55 +00:00
--submenuBackgroundColor: var(--submenuBackgroundColor),
2021-03-25 12:42:55 +00:00
--channelBackgroundColor: var(--channelBackgroundColor),
2019-12-03 19:10:27 +00:00
--inputForegroundColor: var(--inputForegroundColor),
2020-01-29 15:00:28 +00:00
--inputBackgroundColor: var(--inputBackgroundColor),
2019-06-11 13:59:10 +00:00
--inputPlaceholderColor: var(--inputPlaceholderColor),
2022-06-28 09:29:54 +00:00
--inputBorderColor: var(--inputBorderColor),
2019-12-03 19:10:27 +00:00
--textareaForegroundColor: var(--textareaForegroundColor),
--textareaBackgroundColor: var(--textareaBackgroundColor),
2020-05-20 11:52:12 +00:00
--markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor),
--actionButtonColor: var(--actionButtonColor),
2020-05-22 09:15:31 +00:00
--activatedActionButtonColor: var(--activatedActionButtonColor),
2019-12-03 19:10:27 +00:00
--supportButtonColor: var(--supportButtonColor),
--supportButtonBackgroundColor: var(--supportButtonBackgroundColor),
--supportButtonHeartColor: var(--supportButtonHeartColor),
2019-12-03 19:10:27 +00:00
2019-06-11 13:59:10 +00:00
--embedForegroundColor: var(--embedForegroundColor),
2021-03-31 09:21:10 +00:00
--embedBigPlayBackgroundColor: var(--embedBigPlayBackgroundColor),
--horizontalMarginContent: var(--horizontalMarginContent),
--videosHorizontalMarginContent: var(--videosHorizontalMarginContent),
2021-03-31 09:21:10 +00:00
--mainColWidth: var(--mainColWidth)
);
2021-03-31 09:21:10 +00:00
// SASS type check our CSS variables
@function pvar($variable) {
2021-03-31 09:21:10 +00:00
@if map-has-key($variables, $variable) {
@return map-get($variables, $variable);
} @else {
2021-04-28 14:41:07 +00:00
@error 'ERROR: Variable #{$variable} does not exist';
2021-03-31 09:21:10 +00:00
}
}
2020-02-13 14:09:31 +00:00
/*** z-index groups ***/
$zindex: (
2020-08-19 09:35:01 +00:00
miniature : 10,
sub-menu : 12500,
overlay : 12550,
2020-08-19 09:35:01 +00:00
menu : 12600,
search-typeahead: 12650,
popover : 13000,
tooltip : 14000,
loadbar : 15000,
privacymsg : 17500,
2022-07-18 13:01:47 +00:00
root-header : 17500,
2022-06-20 09:39:54 +00:00
help-popover : 17600,
dropdown : 17600,
modal : 19000,
2022-06-10 14:01:35 +00:00
hotkeys : 19000,
notification : 20000
2020-02-13 14:09:31 +00:00
);
@function z($label) {
@return map-get($zindex, $label);
}