4 @use '_variables' as *;
10 @use './custom-markup';
14 @use './primeng-custom';
18 @use './class-helpers/index.scss';
22 // now beware sass requires interpolation
23 // for css custom properties #{$var}
24 --mainColor: #{$main-color};
25 --mainColorLighter: #{$main-color-lighter};
26 --mainColorLightest: #{$main-color-lightest};
27 --mainColorVeryLight: #{$main-color-very-light};
29 --mainHoverColor: #{$main-hover-color};
30 --mainBackgroundHoverColor: #{$main-background-hover-color};
32 --mainBackgroundColor: #{$bg-color};
33 --mainForegroundColor: #{$fg-color};
35 --greyForegroundColor: #{$grey-foreground-color};
36 --greyBackgroundColor: #{$grey-background-color};
37 --greySecondaryBackgroundColor: #{$grey-background-hover-color};
39 --menuBackgroundColor: #{$menu-background};
40 --menuForegroundColor: #{$menu-color};
42 --submenuBackgroundColor: #{$sub-menu-background-color};
43 --channelBackgroundColor: #{$channel-background-color};
45 --inputForegroundColor: #{$input-foreground-color};
46 --inputBackgroundColor: #{$input-background-color};
47 --inputPlaceholderColor: #{$input-placeholder-color};
48 --inputBorderColor: #{$input-border-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;
116 color: pvar(--mainForegroundColor);
120 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] {
209 display: inline-block;
210 color: pvar(--inputPlaceholderColor);
215 @media screen and (max-width: #{breakpoint(xxl)}) {
217 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
218 --videosHorizontalMarginContent: 30px;
221 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
226 @media screen and (max-width: #{breakpoint(lg)}) {
228 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
231 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
234 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
246 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
252 @media screen and (max-width: $small-view) {
255 --horizontalMarginContent: 15px;
257 @include margin-left(0);
262 margin-bottom: $sub-menu-margin-bottom-small-view;
266 // Use an appropriate offset top when sub-menu fixed
267 .margin-content.offset-content {
268 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
271 my-markdown-textarea {
273 max-width: 100% !important;
278 input[type=password],
281 .peertube-select-container {
285 .caption input[type=text] {
286 width: unset !important;