1 $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
3 @import '_bootstrap-variables';
9 @import '~video.js/dist/video-js.css';
11 $assets-path: '../../assets/';
12 @import './player/index';
14 @import './bootstrap';
15 @import './primeng-custom';
16 @import './ng-select.scss';
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 --submenuColor: #{$sub-menu-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 --expanded-horizontal-margin-content: #{$expanded-horizontal-margins};
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
72 color: pvar(--mainBackgroundColor);
73 background-color: pvar(--mainHoverColor);
77 #incompatible-browser {
85 font-weight: $font-semibold;
89 /* Force blank on readonly inputs */
90 background-color: pvar(--inputBackgroundColor) !important;
95 color: pvar(--inputForegroundColor);
100 @include disable-outline;
104 font-weight: $font-bold;
109 background-color: pvar(--greyBackgroundColor);
110 color: pvar(--greyForegroundColor);
115 display: inline-block;
116 vertical-align: middle;
126 my-input-toggle-hidden ::ng-deep input {
127 border-color: $red !important;
142 margin: 0 !important;
146 margin-left: $menu-width;
147 width: calc(100% - #{$menu-width});
151 margin-left: $not-expanded-horizontal-margins;
152 margin-right: $not-expanded-horizontal-margins;
157 background-color: pvar(--submenuColor);
161 padding-left: $not-expanded-horizontal-margins;
162 padding-right: $not-expanded-horizontal-margins;
163 height: $sub-menu-height;
164 margin-bottom: $sub-menu-margin-bottom;
168 z-index: #{z('sub-menu') - 1};
172 // Use an appropriate offset top when sub-menu fixed
173 .margin-content.offset-content {
174 padding-top: $sub-menu-height + $sub-menu-margin-bottom;
177 // Override some properties if the main content is expanded (no menu on the left)
183 margin-left: var(--expanded-horizontal-margin-content);
184 margin-right: var(--expanded-horizontal-margin-content);
188 padding-left: var(--expanded-horizontal-margin-content);
189 padding-right: var(--expanded-horizontal-margin-content);
193 &.lock-scroll .main-row > router-outlet + * {
194 // Lock and hide body scrollbars
197 // Lock and hide sub-menu scrollbars
206 color: pvar(--mainForegroundColor);
208 display: inline-block;
210 font-weight: $font-semibold;
211 @include disable-default-a-behaviour;
213 border-bottom: 2px solid transparent;
215 &.title-page-single {
221 border-bottom-color: pvar(--mainColor);
224 &.title-page-single {
228 &:hover, &:active, &:focus {
229 color: pvar(--mainForegroundColor);
232 &.active, &:hover, &:active, &:focus, &.title-page-single {
234 outline: 0px hidden !important;
237 @media screen and (max-width: $mobile-view) {
243 .title-page-settings {
258 @include disable-default-a-behaviour;
261 color: pvar(--mainForegroundColor);
263 border-radius: 0.25rem;
264 font-weight: $font-semibold;
268 background-color: pvar(--submenuColor);
271 &.active, &:hover, &:active, &:focus {
282 // In tables, don't have a hover different background
284 .action-button-edit, .action-button-delete {
285 &:hover, &:active, &:focus, &[disabled], &.disabled {
286 background-color: $grey-background-color !important;
296 flex-direction: column;
298 justify-content: center;
300 font-weight: $font-semibold;
304 @include dropdown-with-icon-item;
312 /* offsetTop for scrollToAnchor */
316 top: #{-($header-height + 20px)};
319 .offset-content { // if sub-menu fixed
321 top: #{-($header-height + $sub-menu-height + 20px)};
325 .form-group-description {
333 z-index: z(header) + 1 !important;
336 @media screen and (max-width: #{breakpoint(xxl)}) {
340 --expanded-horizontal-margin-content: #{$expanded-horizontal-margins/2};
346 @media screen and (max-width: #{breakpoint(lg)}) {
347 /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */
351 --expanded-horizontal-margin-content: #{$expanded-horizontal-margins/3};
366 @media screen and (min-width: $mobile-view) and (max-width: $small-view) {
372 @media screen and (max-width: $small-view) {
378 --expanded-horizontal-margin-content: 15px;
385 margin-bottom: $sub-menu-margin-bottom-small-view;
389 // Use an appropriate offset top when sub-menu fixed
390 .margin-content.offset-content {
391 padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view;
395 @include admin-sub-header-responsive(15px*2);
398 my-markdown-textarea {
400 max-width: 100% !important;
405 input[type=password],
408 .peertube-select-container {
412 .caption input[type=text] {
413 width: unset !important;
420 // overflow-databale responsive rules
421 @media screen and (min-width: #{breakpoint(lg)}) {
424 @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/2, $mobile-paginator: false);
428 @include overflow-datatable(breakpoint(lg), $not-expanded-horizontal-margins + $menu-width/2, $mobile-paginator: false);
433 @media screen and (max-width: #{breakpoint(lg)}) {
436 @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3);
440 @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3 + $menu-width/2);
445 @media screen and (max-width: $small-view) {
449 @include overflow-datatable(breakpoint(lg), 15px);
454 @media screen and (min-width: $small-view) and (max-width: #{$small-view + $menu-width}) {
458 @include admin-sub-header-responsive($expanded-horizontal-margins/3 + $menu-width/2);
463 width: calc(100vw - #{$menu-width});
472 @include peertube-button;
475 .peertube-button-link {
476 @include peertube-button-link;
480 @include orange-button;
483 .orange-button-inverted {
484 @include orange-button-inverted;