4 $nav-preview-tab-height: 30px;
6 $input-border-color: #C6C6C6;
7 $input-border-radius: 3px;
12 flex-direction: column;
15 @include peertube-textarea(100%, 150px);
17 font-family: monospace;
20 border-bottom-left-radius: unset;
21 border-bottom-right-radius: unset;
31 border-top: 1px dashed $input-border-color;
32 border-left: 1px solid $input-border-color;
33 border-right: 1px solid $input-border-color;
34 border-bottom: 1px solid $input-border-color;
35 border-bottom-right-radius: $input-border-radius;
37 border-bottom-left-radius: $input-border-radius;
40 display: none !important;
44 padding: 0 12px 0 12px;
57 @mixin nav-preview-medium {
60 border-bottom-left-radius: unset;
61 border-bottom-right-radius: unset;
62 border-bottom: 2px solid var(--mainColor);
70 display: flex !important;
72 height: $nav-preview-tab-height !important;
73 padding: 0 15px !important;
74 font-size: 85% !important;
84 @mixin content-preview-base {
87 padding: $base-padding;
90 word-wrap: break-word;
93 @mixin maximized-base {
95 z-index: #{z(header) - 1};
99 max-height: none !important;
100 max-width: none !important;
101 width: calc(100% - #{$menu-width});
102 height: calc(100vh - #{$header-height}) !important;
104 $nav-preview-vertical-padding: 40px;
107 @include nav-preview-medium();
108 padding-top: #{$nav-preview-vertical-padding / 2};
109 padding-bottom: #{$nav-preview-vertical-padding / 2};
113 background-color: var(--mainBackgroundColor);
114 width: 100% !important;
120 margin-right: $not-expanded-horizontal-margins;
124 ::ng-deep .tab-content {
125 @include content-preview-base();
126 background-color: var(--mainBackgroundColor);
127 scrollbar-color: var(--actionButtonColor) var(--mainBackgroundColor);
131 ::ng-deep .tab-content {
132 max-height: none !important;
133 max-width: none !important;
134 margin-top: #{$nav-preview-tab-height + $nav-preview-vertical-padding} !important;
135 height: calc(100vh - #{$header-height + $nav-preview-tab-height + $nav-preview-vertical-padding}) !important;
136 width: 50% !important;
137 border: none !important;
138 border-radius: unset !important;
141 :host-context(.expanded) {
149 @mixin maximized-in-small-view {
151 @include maximized-base();
157 ::ng-deep .tab-content {
158 width: 100% !important;
163 @mixin maximized-tabs-in-mobile-view {
164 // Ellipsis on tabs for mobile view
167 ::ng-deep .nav-link {
170 display: block !important;
171 max-width: 45% !important;
172 padding: 5px 0 !important;
173 margin-right: 10px !important;
177 max-width: 15% !important;
181 padding: 5px 15px !important;
188 @mixin in-medium-view {
191 @include nav-preview-medium();
194 ::ng-deep .tab-content {
195 @include content-preview-base();
197 border-bottom: 1px solid $input-border-color;
198 border-left: 1px solid $input-border-color;
199 border-right: 1px solid $input-border-color;
200 border-bottom-left-radius: $input-border-radius;
201 border-bottom-right-radius: $input-border-radius;
206 @mixin maximized-in-medium-view {
208 @include maximized-base();
212 padding: $base-padding;
213 border-right: 1px dashed $input-border-color !important;
215 scrollbar-color: var(--actionButtonColor) var(--textareaBackgroundColor);
224 @include in-small-view();
225 @include maximized-in-small-view();
227 @media only screen and (max-width: $mobile-view) {
228 @include maximized-tabs-in-mobile-view();
231 @media only screen and (max-width: #{$mobile-view + $menu-width}) {
232 :host-context(.main-col:not(.expanded)) {
233 @include maximized-tabs-in-mobile-view();
237 @media only screen and (min-width: $small-view) {
238 :host-context(.expanded) {
239 @include in-medium-view();
242 @include maximized-in-medium-view();
245 @media only screen and (min-width: #{$small-view + $menu-width}) {
246 :host-context(.main-col:not(.expanded)) {
247 @include in-medium-view();