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;
137 my-input-toggle-hidden ::ng-deep input {
138 border-color: $red !important;
152 margin: 0 !important;
156 @include margin-left($menu-width);
158 width: calc(100% - #{$menu-width});
162 margin: 0 pvar(--horizontalMarginContent);
167 background-color: pvar(--submenuBackgroundColor);
171 padding: 0 pvar(--horizontalMarginContent);
172 height: $sub-menu-height;
173 margin-bottom: $sub-menu-margin-bottom;
178 z-index: #{z('sub-menu') - 1};
179 max-width: pvar(--mainColWidth);
183 // Use an appropriate offset top when sub-menu fixed
184 .margin-content.offset-content {
185 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
188 // Override some properties if the main content is expanded (no menu on the left)
190 --horizontalMarginContent: #{$expanded-horizontal-margins};
191 --mainColWidth: 100vw;
193 @include margin-left(0);
197 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
198 // Lock and hide body scrollbars
201 // Lock and hide sub-menu scrollbars
202 .sub-menu { /* stylelint-disable-line */
209 @include disable-default-a-behaviour;
210 @include margin-right(55px);
213 color: pvar(--mainForegroundColor);
215 display: inline-block;
216 font-weight: $font-semibold;
217 border-bottom: 2px solid transparent;
219 &.title-page-single {
225 border-bottom-color: pvar(--mainColor);
228 &.title-page-single {
235 color: pvar(--mainForegroundColor);
242 &.title-page-single {
244 outline: 0 hidden !important;
247 @media screen and (max-width: $mobile-view) {
248 @include margin-left(15px);
253 .title-page-settings {
268 @include disable-default-a-behaviour;
271 color: pvar(--mainForegroundColor);
273 border-radius: 0.25rem;
274 font-weight: $font-semibold;
278 background-color: pvar(--submenuBackgroundColor);
295 // In tables, don't have a hover different background
298 .action-button-delete {
304 background-color: $grey-background-color !important;
314 flex-direction: column;
316 justify-content: center;
318 font-weight: $font-semibold;
322 @include dropdown-with-icon-item;
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 {
351 z-index: z(header) + 1 !important;
354 @media screen and (max-width: #{breakpoint(xxl)}) {
356 --horizontalMarginContent: #{$not-expanded-horizontal-margins / 2};
357 --videosHorizontalMarginContent: 30px;
360 --horizontalMarginContent: #{$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 overriden from 500px to 800px by changes below to $small-view */
373 --horizontalMarginContent: #{$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 @include margin-right(0 !important);
429 @include margin-left(5px);
434 my-markdown-textarea {
436 max-width: 100% !important;
441 input[type=password],
444 .peertube-select-container {
448 .caption input[type=text] {
449 width: unset !important;