2021-08-06 16:41:08 +02:00
|
|
|
@use 'sass:math';
|
2023-05-25 14:27:35 +02:00
|
|
|
@use 'sass:color';
|
2021-08-06 16:41:08 +02:00
|
|
|
|
2021-05-27 18:25:00 +02:00
|
|
|
@use '_variables' as *;
|
2023-05-26 11:02:06 +02:00
|
|
|
@use '_bootstrap-variables' as *;
|
2021-05-27 18:25:00 +02:00
|
|
|
@use '_mixins' as *;
|
2022-06-13 10:14:03 +02:00
|
|
|
@use '_icons' as *;
|
2018-09-05 15:32:15 +02:00
|
|
|
|
2021-05-27 17:45:36 +02:00
|
|
|
@use '_fonts';
|
2017-12-11 17:36:46 +01:00
|
|
|
|
2021-06-29 15:17:01 +02:00
|
|
|
@use './custom-markup';
|
2021-07-12 14:22:37 +02:00
|
|
|
@use './ng-select';
|
|
|
|
|
2022-10-10 16:28:01 +02:00
|
|
|
@use './bootstrap';
|
|
|
|
@use './primeng-custom';
|
2021-07-12 14:22:37 +02:00
|
|
|
|
2022-10-10 16:28:01 +02:00
|
|
|
@use './z-index';
|
2022-05-04 09:02:50 +02:00
|
|
|
|
2023-02-21 08:50:09 +01:00
|
|
|
@use './class-helpers/index.scss';
|
|
|
|
|
2017-12-01 09:20:19 +01:00
|
|
|
body {
|
2018-09-05 15:32:15 +02:00
|
|
|
/*** theme ***/
|
2020-11-19 11:12:01 +01:00
|
|
|
// now beware sass requires interpolation
|
2018-09-05 15:32:15 +02:00
|
|
|
// for css custom properties #{$var}
|
2020-03-11 13:50:53 +01:00
|
|
|
--mainColor: #{$main-color};
|
|
|
|
--mainColorLighter: #{$main-color-lighter};
|
2020-04-02 11:39:14 +02:00
|
|
|
--mainColorLightest: #{$main-color-lightest};
|
2022-06-14 13:54:54 +02:00
|
|
|
--mainColorVeryLight: #{$main-color-very-light};
|
2022-03-15 14:12:37 +01:00
|
|
|
|
2020-03-11 13:50:53 +01:00
|
|
|
--mainHoverColor: #{$main-hover-color};
|
2022-03-15 14:12:37 +01:00
|
|
|
--mainBackgroundHoverColor: #{$main-background-hover-color};
|
|
|
|
|
2018-09-05 15:32:15 +02:00
|
|
|
--mainBackgroundColor: #{$bg-color};
|
|
|
|
--mainForegroundColor: #{$fg-color};
|
2022-03-15 14:12:37 +01:00
|
|
|
|
2020-05-22 11:21:55 +02:00
|
|
|
--greyForegroundColor: #{$grey-foreground-color};
|
2020-07-24 17:21:25 +02:00
|
|
|
--greyBackgroundColor: #{$grey-background-color};
|
2022-03-15 14:12:37 +01:00
|
|
|
--greySecondaryBackgroundColor: #{$grey-background-hover-color};
|
2020-05-22 11:21:55 +02:00
|
|
|
|
2018-09-11 22:55:41 +02:00
|
|
|
--menuBackgroundColor: #{$menu-background};
|
|
|
|
--menuForegroundColor: #{$menu-color};
|
2021-03-25 13:42:55 +01:00
|
|
|
|
2021-03-31 09:07:25 +02:00
|
|
|
--submenuBackgroundColor: #{$sub-menu-background-color};
|
2021-03-25 13:42:55 +01:00
|
|
|
--channelBackgroundColor: #{$channel-background-color};
|
2019-12-03 20:10:27 +01:00
|
|
|
|
2020-05-20 11:39:31 +02:00
|
|
|
--inputForegroundColor: #{$input-foreground-color};
|
2020-01-29 16:00:28 +01:00
|
|
|
--inputBackgroundColor: #{$input-background-color};
|
2018-09-05 15:32:15 +02:00
|
|
|
--inputPlaceholderColor: #{$input-placeholder-color};
|
2022-06-28 11:29:54 +02:00
|
|
|
--inputBorderColor: #{$input-border-color};
|
2018-09-05 15:32:15 +02:00
|
|
|
|
2020-05-20 11:39:31 +02:00
|
|
|
--textareaForegroundColor: #{$textarea-foreground-color};
|
2020-04-28 14:53:43 +02:00
|
|
|
--textareaBackgroundColor: #{$textarea-background-color};
|
2020-05-20 13:52:12 +02:00
|
|
|
--markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
|
2020-04-28 14:53:43 +02:00
|
|
|
|
2019-12-24 14:04:37 +01:00
|
|
|
--actionButtonColor: #{$grey-foreground-color};
|
2022-03-15 14:12:37 +01:00
|
|
|
|
2019-12-24 14:04:37 +01:00
|
|
|
--supportButtonBackgroundColor: #{transparent};
|
2020-06-09 09:33:28 +02:00
|
|
|
--supportButtonColor: #{pvar(--actionButtonColor)};
|
2019-12-24 14:04:37 +01:00
|
|
|
--supportButtonHeartColor: #{$support-button-heart};
|
2019-12-03 20:10:27 +01:00
|
|
|
|
2020-05-22 11:15:31 +02:00
|
|
|
--activatedActionButtonColor: #{$activated-action-button-color};
|
|
|
|
|
2021-03-31 11:21:10 +02:00
|
|
|
--horizontalMarginContent: #{$not-expanded-horizontal-margins};
|
2021-04-01 11:10:27 +02:00
|
|
|
--videosHorizontalMarginContent: 6vw;
|
2021-03-31 11:21:10 +02:00
|
|
|
--mainColWidth: calc(100vw - #{$menu-width});
|
2020-08-07 15:39:25 +02:00
|
|
|
|
2018-02-22 18:32:31 +01:00
|
|
|
font-family: $main-fonts;
|
2017-12-01 09:20:19 +01:00
|
|
|
font-weight: $font-regular;
|
2020-06-09 09:33:28 +02:00
|
|
|
color: pvar(--mainForegroundColor);
|
|
|
|
background-color: pvar(--mainBackgroundColor);
|
2022-06-15 14:59:25 +02:00
|
|
|
font-size: 1rem;
|
2020-07-13 23:51:46 +02:00
|
|
|
// On desktop browsers, make sure vertical scroll bar is always visible
|
|
|
|
// Allow to disable the scrollbar instead of hide it when the content fit the body
|
|
|
|
// And not move the content and header horizontally sticked to right when the content is updating
|
|
|
|
overflow-y: scroll;
|
2021-06-07 17:38:31 +02:00
|
|
|
|
|
|
|
// Fix "reboot" style that set text-align: left
|
|
|
|
text-align: start;
|
2017-12-01 09:20:19 +01:00
|
|
|
}
|
|
|
|
|
2020-02-03 14:04:42 +01:00
|
|
|
::selection {
|
2020-06-09 09:33:28 +02:00
|
|
|
color: pvar(--mainBackgroundColor);
|
|
|
|
background-color: pvar(--mainHoverColor);
|
2020-02-03 14:04:42 +01:00
|
|
|
}
|
|
|
|
|
2021-02-03 12:51:55 +01:00
|
|
|
noscript,
|
2018-03-08 12:01:55 +01:00
|
|
|
#incompatible-browser {
|
2021-02-03 12:51:55 +01:00
|
|
|
display: block;
|
|
|
|
font-size: 1.2rem;
|
|
|
|
max-width: 600px;
|
|
|
|
margin: 1rem auto;
|
2018-03-08 12:01:55 +01:00
|
|
|
}
|
|
|
|
|
2022-06-08 16:14:24 +02:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2018-02-20 16:13:05 +01:00
|
|
|
strong {
|
|
|
|
font-weight: $font-semibold;
|
|
|
|
}
|
|
|
|
|
2021-11-02 10:01:28 +01:00
|
|
|
input[readonly] {
|
2017-04-21 11:06:33 +02:00
|
|
|
/* Force blank on readonly inputs */
|
2020-06-09 09:33:28 +02:00
|
|
|
background-color: pvar(--inputBackgroundColor) !important;
|
2015-12-05 12:14:55 +01:00
|
|
|
}
|
|
|
|
|
2021-04-28 16:41:07 +02:00
|
|
|
input,
|
|
|
|
textarea {
|
2018-08-09 14:55:06 +02:00
|
|
|
outline: none;
|
2021-01-20 10:59:47 +01:00
|
|
|
color: pvar(--inputForegroundColor);
|
2018-08-09 14:55:06 +02:00
|
|
|
}
|
|
|
|
|
2020-06-11 19:19:23 +02:00
|
|
|
button {
|
|
|
|
@include disable-outline;
|
2021-04-28 16:41:07 +02:00
|
|
|
|
|
|
|
background: unset;
|
2023-04-14 09:46:45 +02:00
|
|
|
color: pvar(--mainForegroundColor);
|
2020-06-11 19:19:23 +02:00
|
|
|
}
|
|
|
|
|
2017-12-05 16:48:26 +01:00
|
|
|
label {
|
|
|
|
font-weight: $font-bold;
|
2022-06-08 16:14:24 +02:00
|
|
|
margin-bottom: 0.5rem;
|
2017-04-21 16:40:45 +02:00
|
|
|
}
|
|
|
|
|
2020-08-09 14:20:56 +02:00
|
|
|
code {
|
|
|
|
background-color: pvar(--greyBackgroundColor);
|
2020-11-30 16:45:22 +01:00
|
|
|
color: pvar(--greyForegroundColor);
|
2020-08-09 14:20:56 +02:00
|
|
|
border-radius: 3px;
|
|
|
|
padding: .2em .4em;
|
|
|
|
margin: auto .4em;
|
|
|
|
font-size: 75%;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
}
|
|
|
|
|
2017-04-21 11:06:33 +02:00
|
|
|
.main-col {
|
2021-06-07 17:38:31 +02:00
|
|
|
@include margin-left($menu-width);
|
|
|
|
|
2020-03-13 15:30:23 +01:00
|
|
|
width: calc(100% - #{$menu-width});
|
2020-04-02 11:39:14 +02:00
|
|
|
outline: none;
|
2017-12-01 14:46:22 +01:00
|
|
|
|
2017-12-01 17:38:26 +01:00
|
|
|
.margin-content {
|
2021-06-07 17:38:31 +02:00
|
|
|
margin: 0 pvar(--horizontalMarginContent);
|
2018-08-09 09:22:10 +02:00
|
|
|
flex-grow: 1;
|
2017-12-01 17:38:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.sub-menu {
|
2021-03-31 09:07:25 +02:00
|
|
|
background-color: pvar(--submenuBackgroundColor);
|
2017-12-01 17:38:26 +01:00
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-06-07 17:38:31 +02:00
|
|
|
padding: 0 pvar(--horizontalMarginContent);
|
2020-08-10 23:28:31 +02:00
|
|
|
height: $sub-menu-height;
|
|
|
|
margin-bottom: $sub-menu-margin-bottom;
|
2021-03-31 11:21:10 +02:00
|
|
|
overflow-x: auto;
|
2020-08-10 09:42:50 +02:00
|
|
|
|
|
|
|
&.sub-menu-fixed {
|
|
|
|
position: fixed;
|
2020-08-19 11:35:01 +02:00
|
|
|
z-index: #{z('sub-menu') - 1};
|
2021-03-31 11:21:10 +02:00
|
|
|
max-width: pvar(--mainColWidth);
|
2020-07-24 23:29:39 +02:00
|
|
|
}
|
2017-12-01 17:38:26 +01:00
|
|
|
}
|
|
|
|
|
2020-08-10 23:28:31 +02:00
|
|
|
// Use an appropriate offset top when sub-menu fixed
|
|
|
|
.margin-content.offset-content {
|
|
|
|
padding-top: $sub-menu-height + $sub-menu-margin-bottom;
|
|
|
|
}
|
|
|
|
|
2017-12-01 17:38:26 +01:00
|
|
|
// Override some properties if the main content is expanded (no menu on the left)
|
|
|
|
&.expanded {
|
2021-03-31 11:21:10 +02:00
|
|
|
--horizontalMarginContent: #{$expanded-horizontal-margins};
|
|
|
|
--mainColWidth: 100vw;
|
|
|
|
|
2021-06-07 17:38:31 +02:00
|
|
|
@include margin-left(0);
|
2020-03-13 15:30:23 +01:00
|
|
|
width: 100%;
|
2016-08-12 16:52:10 +02:00
|
|
|
}
|
2020-04-28 14:53:43 +02:00
|
|
|
|
2021-04-28 16:41:07 +02:00
|
|
|
&.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
|
2020-04-28 14:53:43 +02:00
|
|
|
// Lock and hide body scrollbars
|
|
|
|
position: fixed;
|
|
|
|
|
|
|
|
// Lock and hide sub-menu scrollbars
|
2021-04-28 16:41:07 +02:00
|
|
|
.sub-menu { /* stylelint-disable-line */
|
2020-04-28 14:53:43 +02:00
|
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
}
|
2017-04-21 11:06:33 +02:00
|
|
|
}
|
2016-08-12 16:52:10 +02:00
|
|
|
|
2017-12-21 15:24:49 +01:00
|
|
|
// In tables, don't have a hover different background
|
|
|
|
table {
|
2022-06-10 14:13:57 +02:00
|
|
|
my-edit-button,
|
|
|
|
my-delete-button {
|
|
|
|
.action-button {
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus,
|
|
|
|
&[disabled],
|
|
|
|
&.disabled {
|
|
|
|
background-color: pvar(--greyBackgroundColor) !important;
|
|
|
|
opacity: 0.8;
|
|
|
|
}
|
2017-12-21 15:24:49 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-10 17:05:55 +02:00
|
|
|
my-global-icon[iconName=external-link] {
|
2022-06-15 14:59:25 +02:00
|
|
|
margin: 0 0.3em;
|
|
|
|
width: 0.9em;
|
|
|
|
height: 0.9em;
|
|
|
|
display: inline-block;
|
2022-06-10 17:05:55 +02:00
|
|
|
color: pvar(--inputPlaceholderColor);
|
2022-06-15 14:59:25 +02:00
|
|
|
position: relative;
|
|
|
|
top: -0.1em;
|
2022-06-10 17:05:55 +02:00
|
|
|
}
|
|
|
|
|
2020-05-01 10:45:07 +02:00
|
|
|
@media screen and (max-width: #{breakpoint(xxl)}) {
|
2021-04-01 11:10:27 +02:00
|
|
|
.main-col {
|
2021-08-06 16:41:08 +02:00
|
|
|
--horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
|
2021-04-28 16:41:07 +02:00
|
|
|
--videosHorizontalMarginContent: 30px;
|
2021-04-01 11:10:27 +02:00
|
|
|
|
|
|
|
&.expanded {
|
2021-08-06 16:41:08 +02:00
|
|
|
--horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
|
2021-04-01 11:10:27 +02:00
|
|
|
}
|
2018-09-03 15:01:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-26 11:02:06 +02:00
|
|
|
@media screen and (max-width: #{breakpoint(xl)}) {
|
2021-04-01 17:17:41 +02:00
|
|
|
.main-col {
|
|
|
|
--videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
|
|
|
|
}
|
|
|
|
|
Fix various typos
Found via `codespell -q 3 -S ./CREDITS.md,./CHANGELOG.md,./client/src/locale,./yarn.lock,./client/yarn.lock -L doubleclick,followings,nd,ot,ro,serie,splitted,tread,truthy`
2022-06-07 15:45:06 +02:00
|
|
|
/* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
|
2021-03-31 11:21:10 +02:00
|
|
|
.main-col,
|
|
|
|
.main-col.expanded {
|
2021-08-06 16:41:08 +02:00
|
|
|
--horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
|
2018-01-31 11:58:11 +01:00
|
|
|
|
2021-03-31 11:21:10 +02:00
|
|
|
.sub-menu {
|
2021-06-07 17:38:31 +02:00
|
|
|
padding: 0 50px;
|
2018-08-21 16:18:59 +02:00
|
|
|
|
2021-03-31 11:21:10 +02:00
|
|
|
.title-page {
|
|
|
|
font-size: 17px;
|
2018-01-31 11:58:11 +01:00
|
|
|
}
|
2018-01-31 11:38:05 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-29 00:32:46 +02:00
|
|
|
@media screen and (min-width: $mobile-view) and (max-width: $small-view) {
|
2020-04-28 23:41:05 +02:00
|
|
|
.main-col {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-05 11:20:44 +02:00
|
|
|
@media screen and (max-width: $small-view) {
|
2021-03-31 11:21:10 +02:00
|
|
|
.main-col,
|
|
|
|
.main-col.expanded {
|
|
|
|
--horizontalMarginContent: 15px;
|
2020-04-28 14:53:43 +02:00
|
|
|
|
2021-06-07 17:38:31 +02:00
|
|
|
@include margin-left(0);
|
2020-05-01 00:51:09 +02:00
|
|
|
|
2021-03-31 11:21:10 +02:00
|
|
|
.sub-menu {
|
|
|
|
width: 100vw;
|
2021-06-07 17:38:31 +02:00
|
|
|
padding: 0 15px;
|
2021-03-31 11:21:10 +02:00
|
|
|
margin-bottom: $sub-menu-margin-bottom-small-view;
|
|
|
|
overflow-x: auto;
|
2020-05-01 10:45:07 +02:00
|
|
|
}
|
|
|
|
|
2021-03-31 11:21:10 +02:00
|
|
|
// Use an appropriate offset top when sub-menu fixed
|
|
|
|
.margin-content.offset-content {
|
|
|
|
padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
|
2020-05-01 10:45:07 +02:00
|
|
|
}
|
|
|
|
|
2021-03-31 11:21:10 +02:00
|
|
|
my-markdown-textarea {
|
|
|
|
.root {
|
|
|
|
max-width: 100% !important;
|
|
|
|
}
|
2020-05-01 10:45:07 +02:00
|
|
|
}
|
|
|
|
|
2021-03-31 11:21:10 +02:00
|
|
|
input[type=text],
|
|
|
|
input[type=password],
|
|
|
|
input[type=email],
|
|
|
|
textarea,
|
|
|
|
.peertube-select-container {
|
|
|
|
flex-grow: 1;
|
2020-05-01 10:45:07 +02:00
|
|
|
}
|
2020-05-11 11:12:58 +02:00
|
|
|
|
2021-03-31 11:21:10 +02:00
|
|
|
.caption input[type=text] {
|
|
|
|
width: unset !important;
|
|
|
|
flex-grow: 1;
|
2020-05-01 00:51:09 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|