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;
118 font-weight: $font-bold;
119 margin-bottom: 0.5rem;
123 background-color: pvar(--greyBackgroundColor);
124 color: pvar(--greyForegroundColor);
129 display: inline-block;
130 vertical-align: middle;
134 @include margin-left($menu-width);
136 width: calc(100% - #{$menu-width});
140 margin: 0 pvar(--horizontalMarginContent);
145 background-color: pvar(--submenuBackgroundColor);
149 padding: 0 pvar(--horizontalMarginContent);
150 height: $sub-menu-height;
151 margin-bottom: $sub-menu-margin-bottom;
156 z-index: #{z('sub-menu') - 1};
157 max-width: pvar(--mainColWidth);
161 // Use an appropriate offset top when sub-menu fixed
162 .margin-content.offset-content {
163 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
166 // Override some properties if the main content is expanded (no menu on the left)
168 --horizontalMarginContent: #{$expanded-horizontal-margins};
169 --mainColWidth: 100vw;
171 @include margin-left(0);
175 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
176 // Lock and hide body scrollbars
179 // Lock and hide sub-menu scrollbars
180 .sub-menu { /* stylelint-disable-line */
186 // In tables, don't have a hover different background
196 background-color: pvar(--greyBackgroundColor) !important;
203 my-global-icon[iconName=external-link] {
207 display: inline-block;
208 color: pvar(--inputPlaceholderColor);
213 @media screen and (max-width: #{breakpoint(xxl)}) {
215 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
216 --videosHorizontalMarginContent: 30px;
219 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
224 @media screen and (max-width: #{breakpoint(lg)}) {
226 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
229 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
232 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
244 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
250 @media screen and (max-width: $small-view) {
253 --horizontalMarginContent: 15px;
255 @include margin-left(0);
260 margin-bottom: $sub-menu-margin-bottom-small-view;
264 // Use an appropriate offset top when sub-menu fixed
265 .margin-content.offset-content {
266 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
269 my-markdown-textarea {
271 max-width: 100% !important;
276 input[type=password],
279 .peertube-select-container {
283 .caption input[type=text] {
284 width: unset !important;