3 @use '_variables' as *;
9 @use './class-helpers';
10 @use './custom-markup';
13 @import './bootstrap';
14 @import './primeng-custom';
20 // now beware sass requires interpolation
21 // for css custom properties #{$var}
22 --mainColor: #{$main-color};
23 --mainColorLighter: #{$main-color-lighter};
24 --mainColorLightest: #{$main-color-lightest};
25 --mainColorVeryLight: #{$main-color-very-light};
27 --mainHoverColor: #{$main-hover-color};
28 --mainBackgroundHoverColor: #{$main-background-hover-color};
30 --mainBackgroundColor: #{$bg-color};
31 --mainForegroundColor: #{$fg-color};
33 --greyForegroundColor: #{$grey-foreground-color};
34 --greyBackgroundColor: #{$grey-background-color};
35 --greySecondaryBackgroundColor: #{$grey-background-hover-color};
37 --menuBackgroundColor: #{$menu-background};
38 --menuForegroundColor: #{$menu-color};
40 --submenuBackgroundColor: #{$sub-menu-background-color};
41 --channelBackgroundColor: #{$channel-background-color};
43 --inputForegroundColor: #{$input-foreground-color};
44 --inputBackgroundColor: #{$input-background-color};
45 --inputPlaceholderColor: #{$input-placeholder-color};
47 --textareaForegroundColor: #{$textarea-foreground-color};
48 --textareaBackgroundColor: #{$textarea-background-color};
49 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
51 --actionButtonColor: #{$grey-foreground-color};
53 --supportButtonBackgroundColor: #{transparent};
54 --supportButtonColor: #{pvar(--actionButtonColor)};
55 --supportButtonHeartColor: #{$support-button-heart};
57 --activatedActionButtonColor: #{$activated-action-button-color};
59 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
60 --videosHorizontalMarginContent: 6vw;
61 --mainColWidth: calc(100vw - #{$menu-width});
63 font-family: $main-fonts;
64 font-weight: $font-regular;
65 color: pvar(--mainForegroundColor);
66 background-color: pvar(--mainBackgroundColor);
68 // On desktop browsers, make sure vertical scroll bar is always visible
69 // Allow to disable the scrollbar instead of hide it when the content fit the body
70 // And not move the content and header horizontally sticked to right when the content is updating
73 // Fix "reboot" style that set text-align: left
78 color: pvar(--mainBackgroundColor);
79 background-color: pvar(--mainHoverColor);
83 #incompatible-browser {
91 text-decoration: none;
95 font-weight: $font-semibold;
99 /* Force blank on readonly inputs */
100 background-color: pvar(--inputBackgroundColor) !important;
106 color: pvar(--inputForegroundColor);
110 @include disable-outline;
116 font-weight: $font-bold;
118 margin-bottom: 0.5rem;
122 background-color: pvar(--greyBackgroundColor);
123 color: pvar(--greyForegroundColor);
128 display: inline-block;
129 vertical-align: middle;
133 @include margin-left($menu-width);
135 width: calc(100% - #{$menu-width});
139 margin: 0 pvar(--horizontalMarginContent);
144 background-color: pvar(--submenuBackgroundColor);
148 padding: 0 pvar(--horizontalMarginContent);
149 height: $sub-menu-height;
150 margin-bottom: $sub-menu-margin-bottom;
155 z-index: #{z('sub-menu') - 1};
156 max-width: pvar(--mainColWidth);
160 // Use an appropriate offset top when sub-menu fixed
161 .margin-content.offset-content {
162 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
165 // Override some properties if the main content is expanded (no menu on the left)
167 --horizontalMarginContent: #{$expanded-horizontal-margins};
168 --mainColWidth: 100vw;
170 @include margin-left(0);
174 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
175 // Lock and hide body scrollbars
178 // Lock and hide sub-menu scrollbars
179 .sub-menu { /* stylelint-disable-line */
185 // In tables, don't have a hover different background
195 background-color: pvar(--greyBackgroundColor) !important;
202 my-global-icon[iconName=external-link] {
205 vertical-align: text-bottom;
206 color: pvar(--inputPlaceholderColor);
209 @media screen and (max-width: #{breakpoint(xxl)}) {
211 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
212 --videosHorizontalMarginContent: 30px;
215 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
220 @media screen and (max-width: #{breakpoint(lg)}) {
222 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
225 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
228 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
240 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
246 @media screen and (max-width: $small-view) {
249 --horizontalMarginContent: 15px;
251 @include margin-left(0);
256 margin-bottom: $sub-menu-margin-bottom-small-view;
260 // Use an appropriate offset top when sub-menu fixed
261 .margin-content.offset-content {
262 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
265 my-markdown-textarea {
267 max-width: 100% !important;
272 input[type=password],
275 .peertube-select-container {
279 .caption input[type=text] {
280 width: unset !important;