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};
29 --mainColorVeryLight: #{$main-color-very-light};
31 --mainHoverColor: #{$main-hover-color};
32 --mainBackgroundHoverColor: #{$main-background-hover-color};
34 --mainBackgroundColor: #{$bg-color};
35 --mainForegroundColor: #{$fg-color};
37 --greyForegroundColor: #{$grey-foreground-color};
38 --greyBackgroundColor: #{$grey-background-color};
39 --greySecondaryBackgroundColor: #{$grey-background-hover-color};
41 --menuBackgroundColor: #{$menu-background};
42 --menuForegroundColor: #{$menu-color};
44 --submenuBackgroundColor: #{$sub-menu-background-color};
45 --channelBackgroundColor: #{$channel-background-color};
47 --inputForegroundColor: #{$input-foreground-color};
48 --inputBackgroundColor: #{$input-background-color};
49 --inputPlaceholderColor: #{$input-placeholder-color};
51 --textareaForegroundColor: #{$textarea-foreground-color};
52 --textareaBackgroundColor: #{$textarea-background-color};
53 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
55 --actionButtonColor: #{$grey-foreground-color};
57 --supportButtonBackgroundColor: #{transparent};
58 --supportButtonColor: #{pvar(--actionButtonColor)};
59 --supportButtonHeartColor: #{$support-button-heart};
61 --activatedActionButtonColor: #{$activated-action-button-color};
63 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
64 --videosHorizontalMarginContent: 6vw;
65 --mainColWidth: calc(100vw - #{$menu-width});
67 font-family: $main-fonts;
68 font-weight: $font-regular;
69 color: pvar(--mainForegroundColor);
70 background-color: pvar(--mainBackgroundColor);
72 // On desktop browsers, make sure vertical scroll bar is always visible
73 // Allow to disable the scrollbar instead of hide it when the content fit the body
74 // And not move the content and header horizontally sticked to right when the content is updating
77 // Fix "reboot" style that set text-align: left
82 color: pvar(--mainBackgroundColor);
83 background-color: pvar(--mainHoverColor);
87 #incompatible-browser {
95 text-decoration: none;
99 font-weight: $font-semibold;
103 /* Force blank on readonly inputs */
104 background-color: pvar(--inputBackgroundColor) !important;
110 color: pvar(--inputForegroundColor);
114 @include disable-outline;
120 font-weight: $font-bold;
122 margin-bottom: 0.5rem;
126 background-color: pvar(--greyBackgroundColor);
127 color: pvar(--greyForegroundColor);
132 display: inline-block;
133 vertical-align: middle;
137 @include margin-left($menu-width);
139 width: calc(100% - #{$menu-width});
143 margin: 0 pvar(--horizontalMarginContent);
148 background-color: pvar(--submenuBackgroundColor);
152 padding: 0 pvar(--horizontalMarginContent);
153 height: $sub-menu-height;
154 margin-bottom: $sub-menu-margin-bottom;
159 z-index: #{z('sub-menu') - 1};
160 max-width: pvar(--mainColWidth);
164 // Use an appropriate offset top when sub-menu fixed
165 .margin-content.offset-content {
166 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
169 // Override some properties if the main content is expanded (no menu on the left)
171 --horizontalMarginContent: #{$expanded-horizontal-margins};
172 --mainColWidth: 100vw;
174 @include margin-left(0);
178 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
179 // Lock and hide body scrollbars
182 // Lock and hide sub-menu scrollbars
183 .sub-menu { /* stylelint-disable-line */
189 // In tables, don't have a hover different background
199 background-color: pvar(--greyBackgroundColor) !important;
206 my-global-icon[iconName=external-link] {
209 vertical-align: text-bottom;
210 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;