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 --secondaryColor: #{$secondary-color};
42 --greyForegroundColor: #{$grey-foreground-color};
43 --greyBackgroundColor: #{$grey-background-color};
44 --greySecondaryBackgroundColor: #{$grey-background-hover-color};
46 --menuBackgroundColor: #{$menu-background};
47 --menuForegroundColor: #{$menu-color};
49 --submenuBackgroundColor: #{$sub-menu-background-color};
50 --channelBackgroundColor: #{$channel-background-color};
52 --inputForegroundColor: #{$input-foreground-color};
53 --inputBackgroundColor: #{$input-background-color};
54 --inputPlaceholderColor: #{$input-placeholder-color};
56 --textareaForegroundColor: #{$textarea-foreground-color};
57 --textareaBackgroundColor: #{$textarea-background-color};
58 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
60 --actionButtonColor: #{$grey-foreground-color};
62 --supportButtonBackgroundColor: #{transparent};
63 --supportButtonColor: #{pvar(--actionButtonColor)};
64 --supportButtonHeartColor: #{$support-button-heart};
66 --activatedActionButtonColor: #{$activated-action-button-color};
68 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
69 --videosHorizontalMarginContent: 6vw;
70 --mainColWidth: calc(100vw - #{$menu-width});
72 font-family: $main-fonts;
73 font-weight: $font-regular;
74 color: pvar(--mainForegroundColor);
75 background-color: pvar(--mainBackgroundColor);
77 // On desktop browsers, make sure vertical scroll bar is always visible
78 // Allow to disable the scrollbar instead of hide it when the content fit the body
79 // And not move the content and header horizontally sticked to right when the content is updating
82 // Fix "reboot" style that set text-align: left
87 color: pvar(--mainBackgroundColor);
88 background-color: pvar(--mainHoverColor);
92 #incompatible-browser {
100 text-decoration: none;
104 font-weight: $font-semibold;
108 /* Force blank on readonly inputs */
109 background-color: pvar(--inputBackgroundColor) !important;
115 color: pvar(--inputForegroundColor);
119 @include disable-outline;
125 font-weight: $font-bold;
127 margin-bottom: 0.5rem;
131 background-color: pvar(--greyBackgroundColor);
132 color: pvar(--greyForegroundColor);
137 display: inline-block;
138 vertical-align: middle;
156 my-input-toggle-hidden ::ng-deep input {
157 border-color: $red !important;
167 @include margin-left($menu-width);
169 width: calc(100% - #{$menu-width});
173 margin: 0 pvar(--horizontalMarginContent);
178 background-color: pvar(--submenuBackgroundColor);
182 padding: 0 pvar(--horizontalMarginContent);
183 height: $sub-menu-height;
184 margin-bottom: $sub-menu-margin-bottom;
189 z-index: #{z('sub-menu') - 1};
190 max-width: pvar(--mainColWidth);
194 // Use an appropriate offset top when sub-menu fixed
195 .margin-content.offset-content {
196 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
199 // Override some properties if the main content is expanded (no menu on the left)
201 --horizontalMarginContent: #{$expanded-horizontal-margins};
202 --mainColWidth: 100vw;
204 @include margin-left(0);
208 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
209 // Lock and hide body scrollbars
212 // Lock and hide sub-menu scrollbars
213 .sub-menu { /* stylelint-disable-line */
220 @include disable-default-a-behaviour;
221 @include margin-right(55px);
224 color: pvar(--mainForegroundColor);
226 display: inline-block;
227 font-weight: $font-semibold;
228 border-bottom: 2px solid transparent;
230 &.title-page-single {
236 border-bottom-color: pvar(--mainColor);
239 &.title-page-single {
246 color: pvar(--mainForegroundColor);
253 &.title-page-single {
255 outline: 0 hidden !important;
258 @media screen and (max-width: $mobile-view) {
259 @include margin-left(15px);
264 .title-page-settings {
275 // In tables, don't have a hover different background
278 .action-button-delete {
284 background-color: $grey-background-color !important;
294 flex-direction: column;
296 justify-content: center;
298 font-weight: $font-semibold;
302 @include dropdown-with-icon-item;
310 /* offsetTop for scrollToAnchor */
314 top: #{-($header-height + 20px)};
317 .offset-content { // if sub-menu fixed
319 top: #{-($header-height + $sub-menu-height + 20px)};
323 .form-group-description {
324 @extend .muted !optional;
332 border: 1px solid #eee;
333 border-radius: .25rem;
340 color: #6c757d !important;
343 &:not(.callout-light) {
344 border-left-width: .25rem;
348 border-color: pvar(--mainColorLightest);
349 border-left-color: pvar(--mainColor);
353 @media screen and (max-width: #{breakpoint(xxl)}) {
355 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
356 --videosHorizontalMarginContent: 30px;
359 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
364 @media screen and (max-width: #{breakpoint(lg)}) {
366 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
369 /* the following applies from 500px to 900px and is partially overridden from 500px to 800px by changes below to $small-view */
372 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
384 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
390 @media screen and (max-width: $small-view) {
393 --horizontalMarginContent: 15px;
395 @include margin-left(0);
400 margin-bottom: $sub-menu-margin-bottom-small-view;
404 // Use an appropriate offset top when sub-menu fixed
405 .margin-content.offset-content {
406 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
410 flex-direction: column;
413 my-markdown-textarea {
415 max-width: 100% !important;
420 input[type=password],
423 .peertube-select-container {
427 .caption input[type=text] {
428 width: unset !important;