3 @use '_variables' as *;
9 @use './class-helpers';
10 @use './custom-markup';
13 @import './bootstrap';
14 @import './primeng-custom';
19 display: none !important;
24 // now beware sass requires interpolation
25 // for css custom properties #{$var}
26 --mainColor: #{$main-color};
27 --mainColorLighter: #{$main-color-lighter};
28 --mainColorLightest: #{$main-color-lightest};
30 --mainHoverColor: #{$main-hover-color};
31 --mainBackgroundHoverColor: #{$main-background-hover-color};
33 --mainBackgroundColor: #{$bg-color};
34 --mainForegroundColor: #{$fg-color};
36 --greyForegroundColor: #{$grey-foreground-color};
37 --greyBackgroundColor: #{$grey-background-color};
38 --greySecondaryBackgroundColor: #{$grey-background-hover-color};
40 --menuBackgroundColor: #{$menu-background};
41 --menuForegroundColor: #{$menu-color};
43 --submenuBackgroundColor: #{$sub-menu-background-color};
44 --channelBackgroundColor: #{$channel-background-color};
46 --inputForegroundColor: #{$input-foreground-color};
47 --inputBackgroundColor: #{$input-background-color};
48 --inputPlaceholderColor: #{$input-placeholder-color};
50 --textareaForegroundColor: #{$textarea-foreground-color};
51 --textareaBackgroundColor: #{$textarea-background-color};
52 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
54 --actionButtonColor: #{$grey-foreground-color};
56 --supportButtonBackgroundColor: #{transparent};
57 --supportButtonColor: #{pvar(--actionButtonColor)};
58 --supportButtonHeartColor: #{$support-button-heart};
60 --activatedActionButtonColor: #{$activated-action-button-color};
62 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
63 --videosHorizontalMarginContent: 6vw;
64 --mainColWidth: calc(100vw - #{$menu-width});
66 font-family: $main-fonts;
67 font-weight: $font-regular;
68 color: pvar(--mainForegroundColor);
69 background-color: pvar(--mainBackgroundColor);
71 // On desktop browsers, make sure vertical scroll bar is always visible
72 // Allow to disable the scrollbar instead of hide it when the content fit the body
73 // And not move the content and header horizontally sticked to right when the content is updating
76 // Fix "reboot" style that set text-align: left
81 color: pvar(--mainBackgroundColor);
82 background-color: pvar(--mainHoverColor);
86 #incompatible-browser {
94 text-decoration: none;
98 font-weight: $font-semibold;
102 /* Force blank on readonly inputs */
103 background-color: pvar(--inputBackgroundColor) !important;
109 color: pvar(--inputForegroundColor);
113 @include disable-outline;
119 font-weight: $font-bold;
121 margin-bottom: 0.5rem;
125 background-color: pvar(--greyBackgroundColor);
126 color: pvar(--greyForegroundColor);
131 display: inline-block;
132 vertical-align: middle;
136 @include margin-left($menu-width);
138 width: calc(100% - #{$menu-width});
142 margin: 0 pvar(--horizontalMarginContent);
147 background-color: pvar(--submenuBackgroundColor);
151 padding: 0 pvar(--horizontalMarginContent);
152 height: $sub-menu-height;
153 margin-bottom: $sub-menu-margin-bottom;
158 z-index: #{z('sub-menu') - 1};
159 max-width: pvar(--mainColWidth);
163 // Use an appropriate offset top when sub-menu fixed
164 .margin-content.offset-content {
165 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
168 // Override some properties if the main content is expanded (no menu on the left)
170 --horizontalMarginContent: #{$expanded-horizontal-margins};
171 --mainColWidth: 100vw;
173 @include margin-left(0);
177 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
178 // Lock and hide body scrollbars
181 // Lock and hide sub-menu scrollbars
182 .sub-menu { /* stylelint-disable-line */
188 // In tables, don't have a hover different background
198 background-color: pvar(--greyBackgroundColor) !important;
205 my-global-icon[iconName=external-link] {
208 vertical-align: text-bottom;
209 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;