3 @use '_variables' as *;
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;
150 my-input-text ::ng-deep input {
151 border-color: $red !important;
161 @include margin-left($menu-width);
163 width: calc(100% - #{$menu-width});
167 margin: 0 pvar(--horizontalMarginContent);
172 background-color: pvar(--submenuBackgroundColor);
176 padding: 0 pvar(--horizontalMarginContent);
177 height: $sub-menu-height;
178 margin-bottom: $sub-menu-margin-bottom;
183 z-index: #{z('sub-menu') - 1};
184 max-width: pvar(--mainColWidth);
188 // Use an appropriate offset top when sub-menu fixed
189 .margin-content.offset-content {
190 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
193 // Override some properties if the main content is expanded (no menu on the left)
195 --horizontalMarginContent: #{$expanded-horizontal-margins};
196 --mainColWidth: 100vw;
198 @include margin-left(0);
202 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
203 // Lock and hide body scrollbars
206 // Lock and hide sub-menu scrollbars
207 .sub-menu { /* stylelint-disable-line */
214 @include disable-default-a-behaviour;
215 @include margin-right(55px);
218 color: pvar(--mainForegroundColor);
220 display: inline-block;
221 font-weight: $font-semibold;
222 border-bottom: 2px solid transparent;
224 &.title-page-single {
230 border-bottom-color: pvar(--mainColor);
233 &.title-page-single {
240 color: pvar(--mainForegroundColor);
247 &.title-page-single {
249 outline: 0 hidden !important;
252 @media screen and (max-width: $mobile-view) {
253 @include margin-left(15px);
258 .title-page-settings {
269 // In tables, don't have a hover different background
279 background-color: pvar(--greyBackgroundColor) !important;
291 flex-direction: column;
293 justify-content: center;
295 font-weight: $font-semibold;
299 @include dropdown-with-icon-item;
307 my-global-icon[iconName=external-link] {
310 vertical-align: text-bottom;
311 color: pvar(--inputPlaceholderColor);
315 @include chevron-down(0.55rem, 0.15rem);
321 @include chevron-up(0.55rem, 0.15rem);
327 @include chevron-right(0.55rem, 0.15rem);
333 @include chevron-left(0.55rem, 0.15rem);
338 /* offsetTop for scrollToAnchor */
342 top: #{-($header-height + 20px)};
345 .offset-content { // if sub-menu fixed
347 top: #{-($header-height + $sub-menu-height + 20px)};
351 .form-group-description {
352 @extend .muted !optional;
360 border: 1px solid #eee;
361 border-radius: .25rem;
368 color: #6c757d !important;
371 &:not(.callout-light) {
372 border-left-width: .25rem;
376 border-color: pvar(--mainColorLightest);
377 border-left-color: pvar(--mainColor);
381 @media screen and (max-width: #{breakpoint(xxl)}) {
383 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
384 --videosHorizontalMarginContent: 30px;
387 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
392 @media screen and (max-width: #{breakpoint(lg)}) {
394 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
397 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
400 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
412 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
418 @media screen and (max-width: $small-view) {
421 --horizontalMarginContent: 15px;
423 @include margin-left(0);
428 margin-bottom: $sub-menu-margin-bottom-small-view;
432 // Use an appropriate offset top when sub-menu fixed
433 .margin-content.offset-content {
434 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
438 flex-direction: column;
441 my-markdown-textarea {
443 max-width: 100% !important;
448 input[type=password],
451 .peertube-select-container {
455 .caption input[type=text] {
456 width: unset !important;