1 $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
5 @use '_variables' as *;
12 @use './custom-markup';
16 // Needs an import because we extends glyphicon icons in primeng
17 @import './bootstrap';
18 @import './primeng-custom';
23 display: none !important;
28 // now beware sass requires interpolation
29 // for css custom properties #{$var}
30 --mainColor: #{$main-color};
31 --mainColorLighter: #{$main-color-lighter};
32 --mainColorLightest: #{$main-color-lightest};
34 --mainHoverColor: #{$main-hover-color};
35 --mainBackgroundHoverColor: #{$main-background-hover-color};
37 --mainBackgroundColor: #{$bg-color};
38 --mainForegroundColor: #{$fg-color};
40 --greyForegroundColor: #{$grey-foreground-color};
41 --greyBackgroundColor: #{$grey-background-color};
42 --greySecondaryBackgroundColor: #{$grey-background-hover-color};
44 --menuBackgroundColor: #{$menu-background};
45 --menuForegroundColor: #{$menu-color};
47 --submenuBackgroundColor: #{$sub-menu-background-color};
48 --channelBackgroundColor: #{$channel-background-color};
50 --inputForegroundColor: #{$input-foreground-color};
51 --inputBackgroundColor: #{$input-background-color};
52 --inputPlaceholderColor: #{$input-placeholder-color};
54 --textareaForegroundColor: #{$textarea-foreground-color};
55 --textareaBackgroundColor: #{$textarea-background-color};
56 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
58 --actionButtonColor: #{$grey-foreground-color};
60 --supportButtonBackgroundColor: #{transparent};
61 --supportButtonColor: #{pvar(--actionButtonColor)};
62 --supportButtonHeartColor: #{$support-button-heart};
64 --activatedActionButtonColor: #{$activated-action-button-color};
66 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
67 --videosHorizontalMarginContent: 6vw;
68 --mainColWidth: calc(100vw - #{$menu-width});
70 font-family: $main-fonts;
71 font-weight: $font-regular;
72 color: pvar(--mainForegroundColor);
73 background-color: pvar(--mainBackgroundColor);
75 // On desktop browsers, make sure vertical scroll bar is always visible
76 // Allow to disable the scrollbar instead of hide it when the content fit the body
77 // And not move the content and header horizontally sticked to right when the content is updating
80 // Fix "reboot" style that set text-align: left
85 color: pvar(--mainBackgroundColor);
86 background-color: pvar(--mainHoverColor);
90 #incompatible-browser {
98 text-decoration: none;
102 font-weight: $font-semibold;
106 /* Force blank on readonly inputs */
107 background-color: pvar(--inputBackgroundColor) !important;
113 color: pvar(--inputForegroundColor);
117 @include disable-outline;
123 font-weight: $font-bold;
125 margin-bottom: 0.5rem;
129 background-color: pvar(--greyBackgroundColor);
130 color: pvar(--greyForegroundColor);
135 display: inline-block;
136 vertical-align: middle;
154 my-input-text ::ng-deep input {
155 border-color: $red !important;
165 @include margin-left($menu-width);
167 width: calc(100% - #{$menu-width});
171 margin: 0 pvar(--horizontalMarginContent);
176 background-color: pvar(--submenuBackgroundColor);
180 padding: 0 pvar(--horizontalMarginContent);
181 height: $sub-menu-height;
182 margin-bottom: $sub-menu-margin-bottom;
187 z-index: #{z('sub-menu') - 1};
188 max-width: pvar(--mainColWidth);
192 // Use an appropriate offset top when sub-menu fixed
193 .margin-content.offset-content {
194 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
197 // Override some properties if the main content is expanded (no menu on the left)
199 --horizontalMarginContent: #{$expanded-horizontal-margins};
200 --mainColWidth: 100vw;
202 @include margin-left(0);
206 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
207 // Lock and hide body scrollbars
210 // Lock and hide sub-menu scrollbars
211 .sub-menu { /* stylelint-disable-line */
218 @include disable-default-a-behaviour;
219 @include margin-right(55px);
222 color: pvar(--mainForegroundColor);
224 display: inline-block;
225 font-weight: $font-semibold;
226 border-bottom: 2px solid transparent;
228 &.title-page-single {
234 border-bottom-color: pvar(--mainColor);
237 &.title-page-single {
244 color: pvar(--mainForegroundColor);
251 &.title-page-single {
253 outline: 0 hidden !important;
256 @media screen and (max-width: $mobile-view) {
257 @include margin-left(15px);
262 .title-page-settings {
273 // In tables, don't have a hover different background
283 background-color: pvar(--greyBackgroundColor) !important;
295 flex-direction: column;
297 justify-content: center;
299 font-weight: $font-semibold;
303 @include dropdown-with-icon-item;
311 my-global-icon[iconName=external-link] {
314 vertical-align: text-bottom;
315 color: pvar(--inputPlaceholderColor);
319 @include chevron-down(0.55rem, 0.20em);
325 @include chevron-up(0.55rem, 0.20em);
330 /* offsetTop for scrollToAnchor */
334 top: #{-($header-height + 20px)};
337 .offset-content { // if sub-menu fixed
339 top: #{-($header-height + $sub-menu-height + 20px)};
343 .form-group-description {
344 @extend .muted !optional;
352 border: 1px solid #eee;
353 border-radius: .25rem;
360 color: #6c757d !important;
363 &:not(.callout-light) {
364 border-left-width: .25rem;
368 border-color: pvar(--mainColorLightest);
369 border-left-color: pvar(--mainColor);
373 @media screen and (max-width: #{breakpoint(xxl)}) {
375 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
376 --videosHorizontalMarginContent: 30px;
379 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
384 @media screen and (max-width: #{breakpoint(lg)}) {
386 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
389 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
392 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
404 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
410 @media screen and (max-width: $small-view) {
413 --horizontalMarginContent: 15px;
415 @include margin-left(0);
420 margin-bottom: $sub-menu-margin-bottom-small-view;
424 // Use an appropriate offset top when sub-menu fixed
425 .margin-content.offset-content {
426 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
430 flex-direction: column;
433 my-markdown-textarea {
435 max-width: 100% !important;
440 input[type=password],
443 .peertube-select-container {
447 .caption input[type=text] {
448 width: unset !important;