2021-05-27 15:45:36 +00:00
|
|
|
@use 'sass:math';
|
2020-02-04 15:44:53 +00:00
|
|
|
|
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
|
|
|
|
2019-01-16 15:05:40 +00:00
|
|
|
$grey-background-color: #E5E5E5;
|
|
|
|
$grey-background-hover-color: #EFEFEF;
|
|
|
|
$grey-foreground-color: #585858;
|
|
|
|
$grey-foreground-hover-color: #303030;
|
2020-04-02 09:39:14 +00:00
|
|
|
$grey-button-outline-color: scale-color($grey-foreground-color, $alpha: -95%);
|
2019-01-16 15:05:40 +00:00
|
|
|
|
2020-03-11 12:50:53 +00:00
|
|
|
$main-color: hsl(24, 90%, 50%);
|
|
|
|
$main-color-lighter: lighten($main-color, 10%);
|
2020-04-02 09:39:14 +00:00
|
|
|
$main-color-lightest: lighten($main-color, 40%);
|
2021-03-25 12:42:55 +00:00
|
|
|
$main-hover-color: lighten($main-color, 5%);
|
|
|
|
|
2021-02-03 10:44:43 +00:00
|
|
|
$secondary-color: hsl(187, 77%, 34%);
|
2020-01-21 08:35:23 +00:00
|
|
|
|
2019-12-24 13:04:37 +00:00
|
|
|
$support-button: inherit;
|
|
|
|
$support-button-heart: #e83e8c;
|
2019-12-03 19:10:27 +00:00
|
|
|
|
2018-09-02 21:36:22 +00:00
|
|
|
$bg-color: #fff;
|
|
|
|
$fg-color: #000;
|
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;
|
2021-04-01 09:10:27 +00:00
|
|
|
$not-expanded-horizontal-margins: 30px;
|
2017-12-01 16:38:26 +00:00
|
|
|
|
2017-12-01 08:20:19 +00:00
|
|
|
$button-height: 30px;
|
|
|
|
|
|
|
|
$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;
|
|
|
|
|
2018-09-03 23:28:04 +00:00
|
|
|
$menu-background: #000;
|
2017-12-01 12:08:46 +00:00
|
|
|
$menu-color: #fff;
|
2018-06-28 11:59:48 +00:00
|
|
|
$menu-bottom-color: #C6C6C6;
|
2017-12-01 12:08:46 +00:00
|
|
|
$menu-width: 240px;
|
2018-09-06 11:47:20 +00:00
|
|
|
$menu-lateral-padding: 26px;
|
2017-12-01 12:08:46 +00:00
|
|
|
|
2021-03-31 07:07:25 +00:00
|
|
|
$sub-menu-background-color: #F7F7F7;
|
2020-07-23 13:09:15 +00:00
|
|
|
$sub-menu-height: 81px;
|
2018-09-03 23:28:04 +00:00
|
|
|
|
2021-03-25 12:42:55 +00:00
|
|
|
$channel-background-color: #f6ede8;
|
2021-04-07 15:01:29 +00:00
|
|
|
|
2021-05-27 16:25:00 +00:00
|
|
|
// FIXME: cannot use math.div here because of compilation error
|
|
|
|
$banner-inverted-ratio: 0.1666666666;
|
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
|
|
|
|
2020-06-12 07:51:13 +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;
|
|
|
|
|
2021-04-01 09:10:27 +00:00
|
|
|
$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;
|
2018-09-03 23:28:04 +00:00
|
|
|
|
2020-05-20 09:39:31 +00:00
|
|
|
$input-foreground-color: $fg-color;
|
2018-09-05 13:59:43 +00:00
|
|
|
$input-background-color: $bg-color;
|
2018-09-03 23:28:04 +00:00
|
|
|
$input-placeholder-color: #898989;
|
|
|
|
|
2020-05-20 09:39:31 +00:00
|
|
|
$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;
|
2020-04-28 12:53:43 +00:00
|
|
|
|
2019-03-14 13:05:36 +00:00
|
|
|
$sub-menu-margin-bottom: 30px;
|
2020-04-27 12:57:50 +00:00
|
|
|
$sub-menu-margin-bottom-small-view: 10px;
|
2019-03-14 13:05:36 +00:00
|
|
|
|
2021-04-28 14:41:07 +00:00
|
|
|
$activated-action-button-color: #000;
|
2019-12-24 13:04:37 +00:00
|
|
|
|
2020-04-03 10:30:52 +00:00
|
|
|
$focus-box-shadow-form: 0 0 0 .2rem;
|
|
|
|
|
2021-06-29 15:15:05 +00:00
|
|
|
$video-watch-player-factor: math.div(16, 9);
|
|
|
|
$video-watch-info-margin-left: 44px;
|
|
|
|
|
2018-09-03 23:28:04 +00:00
|
|
|
/*** map theme ***/
|
|
|
|
|
|
|
|
// pass variables into a sass map,
|
|
|
|
// to be warned of non-existing variables
|
|
|
|
$variables: (
|
|
|
|
--mainColor: var(--mainColor),
|
2020-02-28 12:52:21 +00:00
|
|
|
--mainColorLighter: var(--mainColorLighter),
|
2020-04-02 09:39:14 +00:00
|
|
|
--mainColorLightest: var(--mainColorLightest),
|
2020-11-12 14:28:54 +00:00
|
|
|
|
2018-09-03 23:28:04 +00:00
|
|
|
--mainHoverColor: var(--mainHoverColor),
|
2020-11-12 14:28:54 +00:00
|
|
|
|
2018-09-03 23:28:04 +00:00
|
|
|
--mainBackgroundColor: var(--mainBackgroundColor),
|
|
|
|
--mainForegroundColor: var(--mainForegroundColor),
|
2020-11-12 14:28:54 +00:00
|
|
|
|
2020-01-21 08:35:23 +00:00
|
|
|
--secondaryColor: var(--secondaryColor),
|
2019-12-03 19:10:27 +00:00
|
|
|
|
2020-05-22 09:21:55 +00:00
|
|
|
--greyForegroundColor: var(--greyForegroundColor),
|
2020-07-24 15:21:25 +00:00
|
|
|
--greyBackgroundColor: var(--greyBackgroundColor),
|
2020-05-22 09:21:55 +00:00
|
|
|
|
2018-09-11 20:55:41 +00:00
|
|
|
--menuBackgroundColor: var(--menuBackgroundColor),
|
|
|
|
--menuForegroundColor: var(--menuForegroundColor),
|
2021-03-25 12:42:55 +00:00
|
|
|
|
2021-03-31 07:07:25 +00:00
|
|
|
--submenuBackgroundColor: var(--submenuBackgroundColor),
|
2021-03-25 12:42:55 +00:00
|
|
|
--channelBackgroundColor: var(--channelBackgroundColor),
|
2019-12-03 19:10:27 +00:00
|
|
|
|
2020-05-20 09:39:31 +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),
|
2019-12-03 19:10:27 +00:00
|
|
|
|
2020-05-20 09:39:31 +00:00
|
|
|
--textareaForegroundColor: var(--textareaForegroundColor),
|
2020-04-28 12:53:43 +00:00
|
|
|
--textareaBackgroundColor: var(--textareaBackgroundColor),
|
2020-05-20 11:52:12 +00:00
|
|
|
--markdownTextareaBackgroundColor: var(--markdownTextareaBackgroundColor),
|
2020-04-28 12:53:43 +00:00
|
|
|
|
2019-12-24 13:04:37 +00:00
|
|
|
--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),
|
2019-12-24 13:04:37 +00:00
|
|
|
--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),
|
2021-04-01 09:10:27 +00:00
|
|
|
--videosHorizontalMarginContent: var(--videosHorizontalMarginContent),
|
2021-03-31 09:21:10 +00:00
|
|
|
--mainColWidth: var(--mainColWidth)
|
2018-09-03 23:28:04 +00:00
|
|
|
);
|
|
|
|
|
2021-03-31 09:21:10 +00:00
|
|
|
// SASS type check our CSS variables
|
2020-06-09 07:33:28 +00:00
|
|
|
@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
|
|
|
}
|
2018-09-03 23:28:04 +00:00
|
|
|
}
|
2020-02-13 14:09:31 +00:00
|
|
|
|
|
|
|
/*** z-index groups ***/
|
|
|
|
|
|
|
|
$zindex: (
|
2020-08-19 09:35:01 +00:00
|
|
|
miniature : 10,
|
|
|
|
privacymsg : 20,
|
|
|
|
sub-menu : 12500,
|
|
|
|
menu : 12600,
|
|
|
|
search-typeahead: 12650,
|
|
|
|
popover : 13000,
|
|
|
|
tooltip : 14000,
|
|
|
|
loadbar : 15000,
|
|
|
|
modal : 16000,
|
2020-11-20 13:19:23 +00:00
|
|
|
dropdown : 17000,
|
2020-08-19 09:35:01 +00:00
|
|
|
help-popover : 17000,
|
2021-07-21 11:02:25 +00:00
|
|
|
header : 17500,
|
2020-08-19 09:35:01 +00:00
|
|
|
notification : 18000,
|
|
|
|
hotkeys : 19000
|
2020-02-13 14:09:31 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
@function z($label) {
|
|
|
|
@return map-get($zindex, $label);
|
|
|
|
}
|