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';
21 display: none !important;
26 // now beware sass requires interpolation
27 // for css custom properties #{$var}
28 --mainColor: #{$main-color};
29 --mainColorLighter: #{$main-color-lighter};
30 --mainColorLightest: #{$main-color-lightest};
32 --mainHoverColor: #{$main-hover-color};
33 --mainBackgroundHoverColor: #{$main-background-hover-color};
35 --mainBackgroundColor: #{$bg-color};
36 --mainForegroundColor: #{$fg-color};
38 --secondaryColor: #{$secondary-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 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;
124 background-color: pvar(--greyBackgroundColor);
125 color: pvar(--greyForegroundColor);
130 display: inline-block;
131 vertical-align: middle;
145 my-input-toggle-hidden ::ng-deep input {
146 border-color: $red !important;
160 margin: 0 !important;
164 @include margin-left($menu-width);
166 width: calc(100% - #{$menu-width});
170 margin: 0 pvar(--horizontalMarginContent);
175 background-color: pvar(--submenuBackgroundColor);
179 padding: 0 pvar(--horizontalMarginContent);
180 height: $sub-menu-height;
181 margin-bottom: $sub-menu-margin-bottom;
186 z-index: #{z('sub-menu') - 1};
187 max-width: pvar(--mainColWidth);
191 // Use an appropriate offset top when sub-menu fixed
192 .margin-content.offset-content {
193 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
196 // Override some properties if the main content is expanded (no menu on the left)
198 --horizontalMarginContent: #{$expanded-horizontal-margins};
199 --mainColWidth: 100vw;
201 @include margin-left(0);
205 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
206 // Lock and hide body scrollbars
209 // Lock and hide sub-menu scrollbars
210 .sub-menu { /* stylelint-disable-line */
217 @include disable-default-a-behaviour;
218 @include margin-right(55px);
221 color: pvar(--mainForegroundColor);
223 display: inline-block;
224 font-weight: $font-semibold;
225 border-bottom: 2px solid transparent;
227 &.title-page-single {
233 border-bottom-color: pvar(--mainColor);
236 &.title-page-single {
243 color: pvar(--mainForegroundColor);
250 &.title-page-single {
252 outline: 0 hidden !important;
255 @media screen and (max-width: $mobile-view) {
256 @include margin-left(15px);
261 .title-page-settings {
272 // In tables, don't have a hover different background
275 .action-button-delete {
281 background-color: $grey-background-color !important;
291 flex-direction: column;
293 justify-content: center;
295 font-weight: $font-semibold;
299 @include dropdown-with-icon-item;
307 /* offsetTop for scrollToAnchor */
311 top: #{-($header-height + 20px)};
314 .offset-content { // if sub-menu fixed
316 top: #{-($header-height + $sub-menu-height + 20px)};
320 .form-group-description {
321 @extend .muted !optional;
328 z-index: z(header) + 1 !important;
331 @media screen and (max-width: #{breakpoint(xxl)}) {
333 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
334 --videosHorizontalMarginContent: 30px;
337 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
342 @media screen and (max-width: #{breakpoint(lg)}) {
344 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
347 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
350 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
362 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
368 @media screen and (max-width: $small-view) {
371 --horizontalMarginContent: 15px;
373 @include margin-left(0);
378 margin-bottom: $sub-menu-margin-bottom-small-view;
382 // Use an appropriate offset top when sub-menu fixed
383 .margin-content.offset-content {
384 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
388 flex-direction: column;
391 my-markdown-textarea {
393 max-width: 100% !important;
398 input[type=password],
401 .peertube-select-container {
405 .caption input[type=text] {
406 width: unset !important;