3 @use '_variables' as *;
9 @use './custom-markup';
13 @use './primeng-custom';
17 @use './class-helpers/index.scss';
21 // now beware sass requires interpolation
22 // for css custom properties #{$var}
23 --mainColor: #{$main-color};
24 --mainColorLighter: #{$main-color-lighter};
25 --mainColorLightest: #{$main-color-lightest};
26 --mainColorVeryLight: #{$main-color-very-light};
28 --mainHoverColor: #{$main-hover-color};
29 --mainBackgroundHoverColor: #{$main-background-hover-color};
31 --mainBackgroundColor: #{$bg-color};
32 --mainForegroundColor: #{$fg-color};
34 --greyForegroundColor: #{$grey-foreground-color};
35 --greyBackgroundColor: #{$grey-background-color};
36 --greySecondaryBackgroundColor: #{$grey-background-hover-color};
38 --menuBackgroundColor: #{$menu-background};
39 --menuForegroundColor: #{$menu-color};
41 --submenuBackgroundColor: #{$sub-menu-background-color};
42 --channelBackgroundColor: #{$channel-background-color};
44 --inputForegroundColor: #{$input-foreground-color};
45 --inputBackgroundColor: #{$input-background-color};
46 --inputPlaceholderColor: #{$input-placeholder-color};
47 --inputBorderColor: #{$input-border-color};
49 --textareaForegroundColor: #{$textarea-foreground-color};
50 --textareaBackgroundColor: #{$textarea-background-color};
51 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
53 --actionButtonColor: #{$grey-foreground-color};
55 --supportButtonBackgroundColor: #{transparent};
56 --supportButtonColor: #{pvar(--actionButtonColor)};
57 --supportButtonHeartColor: #{$support-button-heart};
59 --activatedActionButtonColor: #{$activated-action-button-color};
61 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
62 --videosHorizontalMarginContent: 6vw;
63 --mainColWidth: calc(100vw - #{$menu-width});
65 font-family: $main-fonts;
66 font-weight: $font-regular;
67 color: pvar(--mainForegroundColor);
68 background-color: pvar(--mainBackgroundColor);
70 // On desktop browsers, make sure vertical scroll bar is always visible
71 // Allow to disable the scrollbar instead of hide it when the content fit the body
72 // And not move the content and header horizontally sticked to right when the content is updating
75 // Fix "reboot" style that set text-align: left
80 color: pvar(--mainBackgroundColor);
81 background-color: pvar(--mainHoverColor);
85 #incompatible-browser {
93 text-decoration: none;
97 font-weight: $font-semibold;
101 /* Force blank on readonly inputs */
102 background-color: pvar(--inputBackgroundColor) !important;
108 color: pvar(--inputForegroundColor);
112 @include disable-outline;
115 color: pvar(--mainForegroundColor);
119 font-weight: $font-bold;
120 margin-bottom: 0.5rem;
124 background-color: pvar(--greyBackgroundColor);
125 color: pvar(--greyForegroundColor);
130 display: inline-block;
131 vertical-align: middle;
135 @include margin-left($menu-width);
137 width: calc(100% - #{$menu-width});
141 margin: 0 pvar(--horizontalMarginContent);
146 background-color: pvar(--submenuBackgroundColor);
150 padding: 0 pvar(--horizontalMarginContent);
151 height: $sub-menu-height;
152 margin-bottom: $sub-menu-margin-bottom;
157 z-index: #{z('sub-menu') - 1};
158 max-width: pvar(--mainColWidth);
162 // Use an appropriate offset top when sub-menu fixed
163 .margin-content.offset-content {
164 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
167 // Override some properties if the main content is expanded (no menu on the left)
169 --horizontalMarginContent: #{$expanded-horizontal-margins};
170 --mainColWidth: 100vw;
172 @include margin-left(0);
176 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
177 // Lock and hide body scrollbars
180 // Lock and hide sub-menu scrollbars
181 .sub-menu { /* stylelint-disable-line */
187 // In tables, don't have a hover different background
197 background-color: pvar(--greyBackgroundColor) !important;
204 my-global-icon[iconName=external-link] {
208 display: inline-block;
209 color: pvar(--inputPlaceholderColor);
214 @media screen and (max-width: #{breakpoint(xxl)}) {
216 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
217 --videosHorizontalMarginContent: 30px;
220 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
225 @media screen and (max-width: #{breakpoint(lg)}) {
227 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
230 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
233 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
245 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
251 @media screen and (max-width: $small-view) {
254 --horizontalMarginContent: 15px;
256 @include margin-left(0);
261 margin-bottom: $sub-menu-margin-bottom-small-view;
265 // Use an appropriate offset top when sub-menu fixed
266 .margin-content.offset-content {
267 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
270 my-markdown-textarea {
272 max-width: 100% !important;
277 input[type=password],
280 .peertube-select-container {
284 .caption input[type=text] {
285 width: unset !important;