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};
31 --mainHoverColor: #{$main-hover-color};
32 --mainBackgroundColor: #{$bg-color};
33 --mainForegroundColor: #{$fg-color};
34 --secondaryColor: #{$secondary-color};
36 --greyForegroundColor: #{$grey-foreground-color};
37 --greyBackgroundColor: #{$grey-background-color};
39 --menuBackgroundColor: #{$menu-background};
40 --menuForegroundColor: #{$menu-color};
42 --submenuBackgroundColor: #{$sub-menu-background-color};
43 --channelBackgroundColor: #{$channel-background-color};
45 --inputForegroundColor: #{$input-foreground-color};
46 --inputBackgroundColor: #{$input-background-color};
47 --inputPlaceholderColor: #{$input-placeholder-color};
49 --textareaForegroundColor: #{$textarea-foreground-color};
50 --textareaBackgroundColor: #{$textarea-background-color};
51 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
53 --actionButtonColor: #{$grey-foreground-color};
54 --supportButtonBackgroundColor: #{transparent};
55 --supportButtonColor: #{pvar(--actionButtonColor)};
56 --supportButtonHeartColor: #{$support-button-heart};
58 --activatedActionButtonColor: #{$activated-action-button-color};
60 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
61 --videosHorizontalMarginContent: 6vw;
62 --mainColWidth: calc(100vw - #{$menu-width});
64 font-family: $main-fonts;
65 font-weight: $font-regular;
66 color: pvar(--mainForegroundColor);
67 background-color: pvar(--mainBackgroundColor);
69 // On desktop browsers, make sure vertical scroll bar is always visible
70 // Allow to disable the scrollbar instead of hide it when the content fit the body
71 // And not move the content and header horizontally sticked to right when the content is updating
74 // Fix "reboot" style that set text-align: left
79 color: pvar(--mainBackgroundColor);
80 background-color: pvar(--mainHoverColor);
84 #incompatible-browser {
92 font-weight: $font-semibold;
96 /* Force blank on readonly inputs */
97 background-color: pvar(--inputBackgroundColor) !important;
103 color: pvar(--inputForegroundColor);
107 @include disable-outline;
113 font-weight: $font-bold;
118 background-color: pvar(--greyBackgroundColor);
119 color: pvar(--greyForegroundColor);
124 display: inline-block;
125 vertical-align: middle;
139 my-input-toggle-hidden ::ng-deep input {
140 border-color: $red !important;
154 margin: 0 !important;
158 @include margin-left($menu-width);
160 width: calc(100% - #{$menu-width});
164 margin: 0 pvar(--horizontalMarginContent);
169 background-color: pvar(--submenuBackgroundColor);
173 padding: 0 pvar(--horizontalMarginContent);
174 height: $sub-menu-height;
175 margin-bottom: $sub-menu-margin-bottom;
180 z-index: #{z('sub-menu') - 1};
181 max-width: pvar(--mainColWidth);
185 // Use an appropriate offset top when sub-menu fixed
186 .margin-content.offset-content {
187 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
190 // Override some properties if the main content is expanded (no menu on the left)
192 --horizontalMarginContent: #{$expanded-horizontal-margins};
193 --mainColWidth: 100vw;
195 @include margin-left(0);
199 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
200 // Lock and hide body scrollbars
203 // Lock and hide sub-menu scrollbars
204 .sub-menu { /* stylelint-disable-line */
211 @include disable-default-a-behaviour;
212 @include margin-right(55px);
215 color: pvar(--mainForegroundColor);
217 display: inline-block;
218 font-weight: $font-semibold;
219 border-bottom: 2px solid transparent;
221 &.title-page-single {
227 border-bottom-color: pvar(--mainColor);
230 &.title-page-single {
237 color: pvar(--mainForegroundColor);
244 &.title-page-single {
246 outline: 0 hidden !important;
249 @media screen and (max-width: $mobile-view) {
250 @include margin-left(15px);
255 .title-page-settings {
266 // In tables, don't have a hover different background
269 .action-button-delete {
275 background-color: $grey-background-color !important;
285 flex-direction: column;
287 justify-content: center;
289 font-weight: $font-semibold;
293 @include dropdown-with-icon-item;
301 /* offsetTop for scrollToAnchor */
305 top: #{-($header-height + 20px)};
308 .offset-content { // if sub-menu fixed
310 top: #{-($header-height + $sub-menu-height + 20px)};
314 .form-group-description {
322 z-index: z(header) + 1 !important;
325 @media screen and (max-width: #{breakpoint(xxl)}) {
327 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
328 --videosHorizontalMarginContent: 30px;
331 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
336 @media screen and (max-width: #{breakpoint(lg)}) {
338 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
341 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
344 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
356 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
362 @media screen and (max-width: $small-view) {
365 --horizontalMarginContent: 15px;
367 @include margin-left(0);
372 margin-bottom: $sub-menu-margin-bottom-small-view;
376 // Use an appropriate offset top when sub-menu fixed
377 .margin-content.offset-content {
378 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
382 flex-direction: column;
385 my-markdown-textarea {
387 max-width: 100% !important;
392 input[type=password],
395 .peertube-select-container {
399 .caption input[type=text] {
400 width: unset !important;