1 $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
3 @use '_variables' as *;
10 @use './custom-markup';
14 // Needs an import because we extends glyphicon icons in primeng
15 @import './bootstrap';
16 @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};
29 --mainHoverColor: #{$main-hover-color};
30 --mainBackgroundColor: #{$bg-color};
31 --mainForegroundColor: #{$fg-color};
32 --secondaryColor: #{$secondary-color};
34 --greyForegroundColor: #{$grey-foreground-color};
35 --greyBackgroundColor: #{$grey-background-color};
37 --menuBackgroundColor: #{$menu-background};
38 --menuForegroundColor: #{$menu-color};
40 --submenuBackgroundColor: #{$sub-menu-background-color};
41 --channelBackgroundColor: #{$channel-background-color};
43 --inputForegroundColor: #{$input-foreground-color};
44 --inputBackgroundColor: #{$input-background-color};
45 --inputPlaceholderColor: #{$input-placeholder-color};
47 --textareaForegroundColor: #{$textarea-foreground-color};
48 --textareaBackgroundColor: #{$textarea-background-color};
49 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
51 --actionButtonColor: #{$grey-foreground-color};
52 --supportButtonBackgroundColor: #{transparent};
53 --supportButtonColor: #{pvar(--actionButtonColor)};
54 --supportButtonHeartColor: #{$support-button-heart};
56 --activatedActionButtonColor: #{$activated-action-button-color};
58 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
59 --videosHorizontalMarginContent: 6vw;
60 --mainColWidth: calc(100vw - #{$menu-width});
62 font-family: $main-fonts;
63 font-weight: $font-regular;
64 color: pvar(--mainForegroundColor);
65 background-color: pvar(--mainBackgroundColor);
67 // On desktop browsers, make sure vertical scroll bar is always visible
68 // Allow to disable the scrollbar instead of hide it when the content fit the body
69 // And not move the content and header horizontally sticked to right when the content is updating
72 // Fix "reboot" style that set text-align: left
77 color: pvar(--mainBackgroundColor);
78 background-color: pvar(--mainHoverColor);
82 #incompatible-browser {
90 font-weight: $font-semibold;
94 /* Force blank on readonly inputs */
95 background-color: pvar(--inputBackgroundColor) !important;
101 color: pvar(--inputForegroundColor);
105 @include disable-outline;
111 font-weight: $font-bold;
116 background-color: pvar(--greyBackgroundColor);
117 color: pvar(--greyForegroundColor);
122 display: inline-block;
123 vertical-align: middle;
133 my-input-toggle-hidden ::ng-deep input {
134 border-color: $red !important;
148 margin: 0 !important;
152 @include margin-left($menu-width);
154 width: calc(100% - #{$menu-width});
158 margin: 0 pvar(--horizontalMarginContent);
163 background-color: pvar(--submenuBackgroundColor);
167 padding: 0 pvar(--horizontalMarginContent);
168 height: $sub-menu-height;
169 margin-bottom: $sub-menu-margin-bottom;
174 z-index: #{z('sub-menu') - 1};
175 max-width: pvar(--mainColWidth);
179 // Use an appropriate offset top when sub-menu fixed
180 .margin-content.offset-content {
181 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
184 // Override some properties if the main content is expanded (no menu on the left)
186 --horizontalMarginContent: #{$expanded-horizontal-margins};
187 --mainColWidth: 100vw;
189 @include margin-left(0);
193 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
194 // Lock and hide body scrollbars
197 // Lock and hide sub-menu scrollbars
198 .sub-menu { /* stylelint-disable-line */
205 @include disable-default-a-behaviour;
206 @include margin-right(55px);
209 color: pvar(--mainForegroundColor);
211 display: inline-block;
212 font-weight: $font-semibold;
213 border-bottom: 2px solid transparent;
215 &.title-page-single {
221 border-bottom-color: pvar(--mainColor);
224 &.title-page-single {
231 color: pvar(--mainForegroundColor);
238 &.title-page-single {
240 outline: 0 hidden !important;
243 @media screen and (max-width: $mobile-view) {
244 @include margin-left(15px);
249 .title-page-settings {
264 @include disable-default-a-behaviour;
267 color: pvar(--mainForegroundColor);
269 border-radius: 0.25rem;
270 font-weight: $font-semibold;
274 background-color: pvar(--submenuBackgroundColor);
291 // In tables, don't have a hover different background
294 .action-button-delete {
300 background-color: $grey-background-color !important;
310 flex-direction: column;
312 justify-content: center;
314 font-weight: $font-semibold;
318 @include dropdown-with-icon-item;
326 /* offsetTop for scrollToAnchor */
330 top: #{-($header-height + 20px)};
333 .offset-content { // if sub-menu fixed
335 top: #{-($header-height + $sub-menu-height + 20px)};
339 .form-group-description {
347 z-index: z(header) + 1 !important;
350 @media screen and (max-width: #{breakpoint(xxl)}) {
352 --horizontalMarginContent: #{$not-expanded-horizontal-margins / 2};
353 --videosHorizontalMarginContent: 30px;
356 --horizontalMarginContent: #{$expanded-horizontal-margins / 2};
361 @media screen and (max-width: #{breakpoint(lg)}) {
363 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
366 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
369 --horizontalMarginContent: #{$expanded-horizontal-margins / 3};
381 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
387 @media screen and (max-width: $small-view) {
390 --horizontalMarginContent: 15px;
392 @include margin-left(0);
397 margin-bottom: $sub-menu-margin-bottom-small-view;
401 // Use an appropriate offset top when sub-menu fixed
402 .margin-content.offset-content {
403 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
407 flex-direction: column;
410 @include margin-right(0 !important);
425 @include margin-left(5px);
430 my-markdown-textarea {
432 max-width: 100% !important;
437 input[type=password],
440 .peertube-select-container {
444 .caption input[type=text] {
445 width: unset !important;