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 font-weight: $font-semibold;
104 /* Force blank on readonly inputs */
105 background-color: pvar(--inputBackgroundColor) !important;
111 color: pvar(--inputForegroundColor);
115 @include disable-outline;
121 font-weight: $font-bold;
126 background-color: pvar(--greyBackgroundColor);
127 color: pvar(--greyForegroundColor);
132 display: inline-block;
133 vertical-align: middle;
147 my-input-toggle-hidden ::ng-deep input {
148 border-color: $red !important;
162 margin: 0 !important;
166 @include margin-left($menu-width);
168 width: calc(100% - #{$menu-width});
172 margin: 0 pvar(--horizontalMarginContent);
177 background-color: pvar(--submenuBackgroundColor);
181 padding: 0 pvar(--horizontalMarginContent);
182 height: $sub-menu-height;
183 margin-bottom: $sub-menu-margin-bottom;
188 z-index: #{z('sub-menu') - 1};
189 max-width: pvar(--mainColWidth);
193 // Use an appropriate offset top when sub-menu fixed
194 .margin-content.offset-content {
195 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
198 // Override some properties if the main content is expanded (no menu on the left)
200 --horizontalMarginContent: #{$expanded-horizontal-margins};
201 --mainColWidth: 100vw;
203 @include margin-left(0);
207 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
208 // Lock and hide body scrollbars
211 // Lock and hide sub-menu scrollbars
212 .sub-menu { /* stylelint-disable-line */
219 @include disable-default-a-behaviour;
220 @include margin-right(55px);
223 color: pvar(--mainForegroundColor);
225 display: inline-block;
226 font-weight: $font-semibold;
227 border-bottom: 2px solid transparent;
229 &.title-page-single {
235 border-bottom-color: pvar(--mainColor);
238 &.title-page-single {
245 color: pvar(--mainForegroundColor);
252 &.title-page-single {
254 outline: 0 hidden !important;
257 @media screen and (max-width: $mobile-view) {
258 @include margin-left(15px);
263 .title-page-settings {
274 // In tables, don't have a hover different background
277 .action-button-delete {
283 background-color: $grey-background-color !important;
293 flex-direction: column;
295 justify-content: center;
297 font-weight: $font-semibold;
301 @include dropdown-with-icon-item;
309 /* offsetTop for scrollToAnchor */
313 top: #{-($header-height + 20px)};
316 .offset-content { // if sub-menu fixed
318 top: #{-($header-height + $sub-menu-height + 20px)};
322 .form-group-description {
323 @extend .muted !optional;
329 @media screen and (max-width: #{breakpoint(xxl)}) {
331 --horizontalMarginContent: #{math.div($not-expanded-horizontal-margins, 2)};
332 --videosHorizontalMarginContent: 30px;
335 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 2)};
340 @media screen and (max-width: #{breakpoint(lg)}) {
342 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
345 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
348 --horizontalMarginContent: #{math.div($expanded-horizontal-margins, 3)};
360 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
366 @media screen and (max-width: $small-view) {
369 --horizontalMarginContent: 15px;
371 @include margin-left(0);
376 margin-bottom: $sub-menu-margin-bottom-small-view;
380 // Use an appropriate offset top when sub-menu fixed
381 .margin-content.offset-content {
382 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
386 flex-direction: column;
389 my-markdown-textarea {
391 max-width: 100% !important;
396 input[type=password],
399 .peertube-select-container {
403 .caption input[type=text] {
404 width: unset !important;