1 $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
3 @use '_variables' as *;
9 @use './primeng-custom';
14 @use './custom-markup';
17 display: none !important;
22 // now beware sass requires interpolation
23 // for css custom properties #{$var}
24 --mainColor: #{$main-color};
25 --mainColorLighter: #{$main-color-lighter};
26 --mainColorLightest: #{$main-color-lightest};
27 --mainHoverColor: #{$main-hover-color};
28 --mainBackgroundColor: #{$bg-color};
29 --mainForegroundColor: #{$fg-color};
30 --secondaryColor: #{$secondary-color};
32 --greyForegroundColor: #{$grey-foreground-color};
33 --greyBackgroundColor: #{$grey-background-color};
35 --menuBackgroundColor: #{$menu-background};
36 --menuForegroundColor: #{$menu-color};
38 --submenuBackgroundColor: #{$sub-menu-background-color};
39 --channelBackgroundColor: #{$channel-background-color};
41 --inputForegroundColor: #{$input-foreground-color};
42 --inputBackgroundColor: #{$input-background-color};
43 --inputPlaceholderColor: #{$input-placeholder-color};
45 --textareaForegroundColor: #{$textarea-foreground-color};
46 --textareaBackgroundColor: #{$textarea-background-color};
47 --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color};
49 --actionButtonColor: #{$grey-foreground-color};
50 --supportButtonBackgroundColor: #{transparent};
51 --supportButtonColor: #{pvar(--actionButtonColor)};
52 --supportButtonHeartColor: #{$support-button-heart};
54 --activatedActionButtonColor: #{$activated-action-button-color};
56 --horizontalMarginContent: #{$not-expanded-horizontal-margins};
57 --videosHorizontalMarginContent: 6vw;
58 --mainColWidth: calc(100vw - #{$menu-width});
60 font-family: $main-fonts;
61 font-weight: $font-regular;
62 color: pvar(--mainForegroundColor);
63 background-color: pvar(--mainBackgroundColor);
65 // On desktop browsers, make sure vertical scroll bar is always visible
66 // Allow to disable the scrollbar instead of hide it when the content fit the body
67 // And not move the content and header horizontally sticked to right when the content is updating
70 // Fix "reboot" style that set text-align: left
75 color: pvar(--mainBackgroundColor);
76 background-color: pvar(--mainHoverColor);
80 #incompatible-browser {
88 font-weight: $font-semibold;
92 /* Force blank on readonly inputs */
93 background-color: pvar(--inputBackgroundColor) !important;
99 color: pvar(--inputForegroundColor);
103 @include disable-outline;
109 font-weight: $font-bold;
114 background-color: pvar(--greyBackgroundColor);
115 color: pvar(--greyForegroundColor);
120 display: inline-block;
121 vertical-align: middle;
131 my-input-toggle-hidden ::ng-deep input {
132 border-color: $red !important;
146 margin: 0 !important;
150 @include margin-left($menu-width);
152 width: calc(100% - #{$menu-width});
156 margin: 0 pvar(--horizontalMarginContent);
161 background-color: pvar(--submenuBackgroundColor);
165 padding: 0 pvar(--horizontalMarginContent);
166 height: $sub-menu-height;
167 margin-bottom: $sub-menu-margin-bottom;
172 z-index: #{z('sub-menu') - 1};
173 max-width: pvar(--mainColWidth);
177 // Use an appropriate offset top when sub-menu fixed
178 .margin-content.offset-content {
179 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
182 // Override some properties if the main content is expanded (no menu on the left)
184 --horizontalMarginContent: #{$expanded-horizontal-margins};
185 --mainColWidth: 100vw;
187 @include margin-left(0);
191 &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */
192 // Lock and hide body scrollbars
195 // Lock and hide sub-menu scrollbars
196 .sub-menu { /* stylelint-disable-line */
203 @include disable-default-a-behaviour;
204 @include margin-right(55px);
207 color: pvar(--mainForegroundColor);
209 display: inline-block;
210 font-weight: $font-semibold;
211 border-bottom: 2px solid transparent;
213 &.title-page-single {
219 border-bottom-color: pvar(--mainColor);
222 &.title-page-single {
229 color: pvar(--mainForegroundColor);
236 &.title-page-single {
238 outline: 0 hidden !important;
241 @media screen and (max-width: $mobile-view) {
242 @include margin-left(15px);
247 .title-page-settings {
262 @include disable-default-a-behaviour;
265 color: pvar(--mainForegroundColor);
267 border-radius: 0.25rem;
268 font-weight: $font-semibold;
272 background-color: pvar(--submenuBackgroundColor);
289 // In tables, don't have a hover different background
292 .action-button-delete {
298 background-color: $grey-background-color !important;
308 flex-direction: column;
310 justify-content: center;
312 font-weight: $font-semibold;
316 @include dropdown-with-icon-item;
324 /* offsetTop for scrollToAnchor */
328 top: #{-($header-height + 20px)};
331 .offset-content { // if sub-menu fixed
333 top: #{-($header-height + $sub-menu-height + 20px)};
337 .form-group-description {
345 z-index: z(header) + 1 !important;
348 @media screen and (max-width: #{breakpoint(xxl)}) {
350 --horizontalMarginContent: #{$not-expanded-horizontal-margins / 2};
351 --videosHorizontalMarginContent: 30px;
354 --horizontalMarginContent: #{$expanded-horizontal-margins / 2};
359 @media screen and (max-width: #{breakpoint(lg)}) {
361 --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)};
364 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
367 --horizontalMarginContent: #{$expanded-horizontal-margins / 3};
379 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
385 @media screen and (max-width: $small-view) {
388 --horizontalMarginContent: 15px;
390 @include margin-left(0);
395 margin-bottom: $sub-menu-margin-bottom-small-view;
399 // Use an appropriate offset top when sub-menu fixed
400 .margin-content.offset-content {
401 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
405 flex-direction: column;
408 @include margin-right(0 !important);
423 @include margin-left(5px);
428 my-markdown-textarea {
430 max-width: 100% !important;
435 input[type=password],
438 .peertube-select-container {
442 .caption input[type=text] {
443 width: unset !important;