4 @use '_variables' as *;
5 @use '_bootstrap-variables' as *;
11 @use './custom-markup';
15 @use './primeng-custom';
19 @use './class-helpers/index.scss';
23 // now beware sass requires interpolation
24 // for css custom properties #{$var}
25 --mainColor: #{$main-color};
26 --mainColorLighter: #{$main-color-lighter};
27 --mainColorLightest: #{$main-color-lightest};
28 --mainColorVeryLight: #{$main-color-very-light};
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};
49 --inputBorderColor: #{$input-border-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;
117 color: pvar(--mainForegroundColor);
121 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] {
210 display: inline-block;
211 color: pvar(--inputPlaceholderColor);
216 @media screen and (max-width: #{breakpoint(xxl)}) {
218 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
219 --videosHorizontalMarginContent: 30px;
222 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
227 @media screen and (max-width: #{breakpoint(xl)}) {
229 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
232 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
235 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
247 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
253 @media screen and (max-width: $small-view) {
256 --horizontalMarginContent: 15px;
258 @include margin-left(0);
263 margin-bottom: $sub-menu-margin-bottom-small-view;
267 // Use an appropriate offset top when sub-menu fixed
268 .margin-content.offset-content {
269 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
272 my-markdown-textarea {
274 max-width: 100% !important;
279 input[type=password],
282 .peertube-select-container {
286 .caption input[type=text] {
287 width: unset !important;