1 $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
3 @use '_variables' as *;
9 @use './primeng-custom';
15 display: none !important;
20 // now beware sass requires interpolation
21 // for css custom properties #{$var}
22 --mainColor: #{$main-color};
23 --mainColorLighter: #{$main-color-lighter};
24 --mainColorLightest: #{$main-color-lightest};
25 --mainHoverColor: #{$main-hover-color};
26 --mainBackgroundColor: #{$bg-color};
27 --mainForegroundColor: #{$fg-color};
28 --secondaryColor: #{$secondary-color};
30 --greyForegroundColor: #{$grey-foreground-color};
31 --greyBackgroundColor: #{$grey-background-color};
33 --menuBackgroundColor: #{$menu-background};
34 --menuForegroundColor: #{$menu-color};
36 --submenuBackgroundColor: #{$sub-menu-background-color};
37 --channelBackgroundColor: #{$channel-background-color};
39 --inputForegroundColor: #{$input-foreground-color};
40 --inputBackgroundColor: #{$input-background-color};
41 --inputPlaceholderColor: #{$input-placeholder-color};
43 --textareaForegroundColor: #{$textarea-foreground-color};
44 --textareaBackgroundColor: #{$textarea-background-color};
45 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
47 --actionButtonColor: #{$grey-foreground-color};
48 --supportButtonBackgroundColor: #{transparent};
49 --supportButtonColor: #{pvar(--actionButtonColor)};
50 --supportButtonHeartColor: #{$support-button-heart};
52 --activatedActionButtonColor: #{$activated-action-button-color};
54 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
55 --videosHorizontalMarginContent: 6vw;
56 --mainColWidth: calc(100vw - #{$menu-width});
58 font-family: $main-fonts;
59 font-weight: $font-regular;
60 color: pvar(--mainForegroundColor);
61 background-color: pvar(--mainBackgroundColor);
63 // On desktop browsers, make sure vertical scroll bar is always visible
64 // Allow to disable the scrollbar instead of hide it when the content fit the body
65 // And not move the content and header horizontally sticked to right when the content is updating
68 // Fix "reboot" style that set text-align: left
73 color: pvar(--mainBackgroundColor);
74 background-color: pvar(--mainHoverColor);
78 #incompatible-browser {
86 font-weight: $font-semibold;
90 /* Force blank on readonly inputs */
91 background-color: pvar(--inputBackgroundColor) !important;
97 color: pvar(--inputForegroundColor);
101 @include disable-outline;
107 font-weight: $font-bold;
112 background-color: pvar(--greyBackgroundColor);
113 color: pvar(--greyForegroundColor);
118 display: inline-block;
119 vertical-align: middle;
129 my-input-toggle-hidden ::ng-deep input {
130 border-color: $red !important;
144 margin: 0 !important;
148 @include margin-left($menu-width);
150 width: calc(100% - #{$menu-width});
154 margin: 0 pvar(--horizontalMarginContent);
159 background-color: pvar(--submenuBackgroundColor);
163 padding: 0 pvar(--horizontalMarginContent);
164 height: $sub-menu-height;
165 margin-bottom: $sub-menu-margin-bottom;
170 z-index: #{z('sub-menu') - 1};
171 max-width: pvar(--mainColWidth);
175 // Use an appropriate offset top when sub-menu fixed
176 .margin-content.offset-content {
177 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
180 // Override some properties if the main content is expanded (no menu on the left)
182 --horizontalMarginContent: #{$expanded-horizontal-margins};
183 --mainColWidth: 100vw;
185 @include margin-left(0);
189 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
190 // Lock and hide body scrollbars
193 // Lock and hide sub-menu scrollbars
194 .sub-menu { /* stylelint-disable-line */
201 @include disable-default-a-behaviour;
202 @include margin-right(55px);
205 color: pvar(--mainForegroundColor);
207 display: inline-block;
208 font-weight: $font-semibold;
209 border-bottom: 2px solid transparent;
211 &.title-page-single {
217 border-bottom-color: pvar(--mainColor);
220 &.title-page-single {
227 color: pvar(--mainForegroundColor);
234 &.title-page-single {
236 outline: 0 hidden !important;
239 @media screen and (max-width: $mobile-view) {
240 @include margin-left(15px);
245 .title-page-settings {
260 @include disable-default-a-behaviour;
263 color: pvar(--mainForegroundColor);
265 border-radius: 0.25rem;
266 font-weight: $font-semibold;
270 background-color: pvar(--submenuBackgroundColor);
287 // In tables, don't have a hover different background
290 .action-button-delete {
296 background-color: $grey-background-color !important;
306 flex-direction: column;
308 justify-content: center;
310 font-weight: $font-semibold;
314 @include dropdown-with-icon-item;
322 /* offsetTop for scrollToAnchor */
326 top: #{-($header-height + 20px)};
329 .offset-content { // if sub-menu fixed
331 top: #{-($header-height + $sub-menu-height + 20px)};
335 .form-group-description {
343 z-index: z(header) + 1 !important;
346 @media screen and (max-width: #{breakpoint(xxl)}) {
348 --horizontalMarginContent: #{$not-expanded-horizontal-margins / 2};
349 --videosHorizontalMarginContent: 30px;
352 --horizontalMarginContent: #{$expanded-horizontal-margins / 2};
357 @media screen and (max-width: #{breakpoint(lg)}) {
359 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
362 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
365 --horizontalMarginContent: #{$expanded-horizontal-margins / 3};
377 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
383 @media screen and (max-width: $small-view) {
386 --horizontalMarginContent: 15px;
388 @include margin-left(0);
393 margin-bottom: $sub-menu-margin-bottom-small-view;
397 // Use an appropriate offset top when sub-menu fixed
398 .margin-content.offset-content {
399 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
403 flex-direction: column;
406 @include margin-right(0 !important);
421 @include margin-left(5px);
426 my-markdown-textarea {
428 max-width: 100% !important;
433 input[type=password],
436 .peertube-select-container {
440 .caption input[type=text] {
441 width: unset !important;