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};
46 --inputBorderColor: #{$input-border-color};
48 --textareaForegroundColor: #{$textarea-foreground-color};
49 --textareaBackgroundColor: #{$textarea-background-color};
50 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
52 --actionButtonColor: #{$grey-foreground-color};
54 --supportButtonBackgroundColor: #{transparent};
55 --supportButtonColor: #{pvar(--actionButtonColor)};
56 --supportButtonHeartColor: #{$support-button-heart};
58 --activatedActionButtonColor: #{$activated-action-button-color};
60 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
61 --videosHorizontalMarginContent: 6vw;
62 --mainColWidth: calc(100vw - #{$menu-width});
64 font-family: $main-fonts;
65 font-weight: $font-regular;
66 color: pvar(--mainForegroundColor);
67 background-color: pvar(--mainBackgroundColor);
69 // On desktop browsers, make sure vertical scroll bar is always visible
70 // Allow to disable the scrollbar instead of hide it when the content fit the body
71 // And not move the content and header horizontally sticked to right when the content is updating
74 // Fix "reboot" style that set text-align: left
79 color: pvar(--mainBackgroundColor);
80 background-color: pvar(--mainHoverColor);
84 #incompatible-browser {
92 text-decoration: none;
96 font-weight: $font-semibold;
100 /* Force blank on readonly inputs */
101 background-color: pvar(--inputBackgroundColor) !important;
107 color: pvar(--inputForegroundColor);
111 @include disable-outline;
117 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] {
206 display: inline-block;
207 color: pvar(--inputPlaceholderColor);
212 @media screen and (max-width: #{breakpoint(xxl)}) {
214 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
215 --videosHorizontalMarginContent: 30px;
218 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
223 @media screen and (max-width: #{breakpoint(lg)}) {
225 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
228 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
231 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
243 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
249 @media screen and (max-width: $small-view) {
252 --horizontalMarginContent: 15px;
254 @include margin-left(0);
259 margin-bottom: $sub-menu-margin-bottom-small-view;
263 // Use an appropriate offset top when sub-menu fixed
264 .margin-content.offset-content {
265 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
268 my-markdown-textarea {
270 max-width: 100% !important;
275 input[type=password],
278 .peertube-select-container {
282 .caption input[type=text] {
283 width: unset !important;