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;
117 margin-bottom: 0.5rem;
121 background-color: pvar(--greyBackgroundColor);
122 color: pvar(--greyForegroundColor);
127 display: inline-block;
128 vertical-align: middle;
132 @include margin-left($menu-width);
134 width: calc(100% - #{$menu-width});
138 margin: 0 pvar(--horizontalMarginContent);
143 background-color: pvar(--submenuBackgroundColor);
147 padding: 0 pvar(--horizontalMarginContent);
148 height: $sub-menu-height;
149 margin-bottom: $sub-menu-margin-bottom;
154 z-index: #{z('sub-menu') - 1};
155 max-width: pvar(--mainColWidth);
159 // Use an appropriate offset top when sub-menu fixed
160 .margin-content.offset-content {
161 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
164 // Override some properties if the main content is expanded (no menu on the left)
166 --horizontalMarginContent: #{$expanded-horizontal-margins};
167 --mainColWidth: 100vw;
169 @include margin-left(0);
173 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
174 // Lock and hide body scrollbars
177 // Lock and hide sub-menu scrollbars
178 .sub-menu { /* stylelint-disable-line */
184 // In tables, don't have a hover different background
194 background-color: pvar(--greyBackgroundColor) !important;
201 my-global-icon[iconName=external-link] {
205 display: inline-block;
206 color: pvar(--inputPlaceholderColor);
211 @media screen and (max-width: #{breakpoint(xxl)}) {
213 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
214 --videosHorizontalMarginContent: 30px;
217 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
222 @media screen and (max-width: #{breakpoint(lg)}) {
224 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
227 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
230 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
242 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
248 @media screen and (max-width: $small-view) {
251 --horizontalMarginContent: 15px;
253 @include margin-left(0);
258 margin-bottom: $sub-menu-margin-bottom-small-view;
262 // Use an appropriate offset top when sub-menu fixed
263 .margin-content.offset-content {
264 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
267 my-markdown-textarea {
269 max-width: 100% !important;
274 input[type=password],
277 .peertube-select-container {
281 .caption input[type=text] {
282 width: unset !important;