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-toggle-hidden ::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 /* offsetTop for scrollToAnchor */
315 top: #{-($header-height + 20px)};
318 .offset-content { // if sub-menu fixed
320 top: #{-($header-height + $sub-menu-height + 20px)};
324 .form-group-description {
325 @extend .muted !optional;
333 border: 1px solid #eee;
334 border-radius: .25rem;
341 color: #6c757d !important;
344 &:not(.callout-light) {
345 border-left-width: .25rem;
349 border-color: pvar(--mainColorLightest);
350 border-left-color: pvar(--mainColor);
354 @media screen and (max-width: #{breakpoint(xxl)}) {
356 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
357 --videosHorizontalMarginContent: 30px;
360 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
365 @media screen and (max-width: #{breakpoint(lg)}) {
367 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
370 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
373 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
385 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
391 @media screen and (max-width: $small-view) {
394 --horizontalMarginContent: 15px;
396 @include margin-left(0);
401 margin-bottom: $sub-menu-margin-bottom-small-view;
405 // Use an appropriate offset top when sub-menu fixed
406 .margin-content.offset-content {
407 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
411 flex-direction: column;
414 my-markdown-textarea {
416 max-width: 100% !important;
421 input[type=password],
424 .peertube-select-container {
428 .caption input[type=text] {
429 width: unset !important;