]>
Commit | Line | Data |
---|---|---|
8cbc40b2 C |
1 | @use 'sass:math'; |
2 | @use '_variables' as *; | |
3 | @use '_mixins' as *; | |
66b16caf | 4 | |
b15fe00f K |
5 | $nav-preview-tab-height: 30px; |
6 | $base-padding: 15px; | |
b15fe00f K |
7 | $input-border-radius: 3px; |
8 | ||
3031971e C |
9 | .root { |
10 | display: flex; | |
11 | flex-direction: column; | |
b15fe00f | 12 | |
3031971e C |
13 | textarea { |
14 | @include peertube-textarea(100%, 150px); | |
b15fe00f | 15 | |
3031971e | 16 | background-color: pvar(--markdownTextareaBackgroundColor); |
f33dc6ab | 17 | |
3031971e C |
18 | font-family: monospace; |
19 | font-size: 13px; | |
20 | border-bottom: 0; | |
21 | border-bottom-left-radius: 0; | |
22 | border-bottom-right-radius: 0; | |
23 | } | |
a077482f | 24 | |
3031971e | 25 | .nav-preview { |
dc9c9500 | 26 | padding: 10px 0; |
27bc9586 | 27 | |
a3345972 C |
28 | border: 1px solid pvar(--inputBorderColor); |
29 | border-top: 1px dashed pvar(--inputBorderColor); | |
b15fe00f | 30 | |
3031971e C |
31 | border-bottom-right-radius: $input-border-radius; |
32 | border-bottom-left-radius: $input-border-radius; | |
b15fe00f | 33 | |
3031971e C |
34 | display: flex; |
35 | flex-grow: 1; | |
36 | border-bottom-left-radius: unset; | |
37 | border-bottom-right-radius: unset; | |
38 | border-bottom: 2px solid pvar(--mainColor); | |
b15fe00f | 39 | |
3031971e | 40 | .maximize-button { |
3031971e | 41 | opacity: 0.6; |
66b16caf | 42 | |
dc9c9500 | 43 | &:not([disabled]) { |
3031971e C |
44 | &:hover, |
45 | &:active { | |
46 | opacity: 1; | |
47 | } | |
48 | } | |
b15fe00f K |
49 | } |
50 | } | |
b15fe00f | 51 | |
3031971e C |
52 | .nav-pills { |
53 | display: flex; | |
54 | align-items: center; | |
55 | justify-content: flex-end; | |
b15fe00f | 56 | |
3031971e C |
57 | > * { |
58 | font-size: 0.9em !important; | |
59 | } | |
60 | } | |
931d3430 | 61 | |
3031971e C |
62 | .tab-content { |
63 | min-height: 75px; | |
64 | max-height: 210px; | |
65 | padding: $base-padding; | |
b15fe00f | 66 | |
3031971e C |
67 | overflow-y: auto; |
68 | word-wrap: break-word; | |
27bc9586 | 69 | |
a3345972 | 70 | border: 1px solid pvar(--inputBorderColor); |
931d3430 | 71 | border-top: 0; |
b15fe00f | 72 | |
3031971e C |
73 | border-bottom-left-radius: $input-border-radius; |
74 | border-bottom-right-radius: $input-border-radius; | |
b15fe00f K |
75 | } |
76 | ||
3031971e | 77 | &.maximized { |
ace01da3 | 78 | z-index: #{z(root-header) - 1}; |
3031971e C |
79 | position: fixed; |
80 | top: $header-height; | |
81 | left: $menu-width; | |
b15fe00f | 82 | |
b15fe00f K |
83 | max-height: none !important; |
84 | max-width: none !important; | |
3031971e C |
85 | width: calc(100% - #{$menu-width}); |
86 | height: calc(100vh - #{$header-height}); | |
b15fe00f | 87 | |
3031971e C |
88 | display: grid; |
89 | grid-template-rows: auto 1fr; | |
90 | grid-template-columns: 1fr 1fr; | |
b15fe00f | 91 | |
3031971e | 92 | background-color: pvar(--mainBackgroundColor); |
b15fe00f | 93 | |
b15fe00f | 94 | .nav-preview { |
3031971e C |
95 | grid-row: 1; |
96 | grid-column: 1 / 3; | |
b15fe00f | 97 | |
3031971e C |
98 | border: 0; |
99 | border-bottom: 2px solid pvar(--mainColor); | |
b15fe00f | 100 | |
3031971e C |
101 | padding: 20px 0; |
102 | width: 100% !important; | |
b15fe00f | 103 | } |
b15fe00f | 104 | |
3031971e C |
105 | textarea { |
106 | grid-column: 1; | |
107 | ||
108 | border: 0; | |
a3345972 | 109 | border-right: 1px dashed pvar(--inputBorderColor); |
3031971e C |
110 | |
111 | resize: none; | |
b15fe00f K |
112 | } |
113 | ||
114 | ::ng-deep .tab-content { | |
3031971e | 115 | grid-column: 2; |
b15fe00f | 116 | |
3031971e | 117 | border: 0; |
b15fe00f | 118 | |
b15fe00f | 119 | display: block; |
3031971e C |
120 | overflow-y: auto; |
121 | word-wrap: break-word; | |
b15fe00f | 122 | |
3031971e | 123 | scrollbar-color: pvar(--actionButtonColor) pvar(--mainBackgroundColor); |
b15fe00f | 124 | } |
b15fe00f | 125 | |
3031971e C |
126 | textarea, |
127 | ::ng-deep .tab-content { | |
128 | grid-row: 2; | |
b15fe00f | 129 | |
3031971e C |
130 | height: 100% !important; |
131 | max-height: none !important; | |
132 | border-radius: 0; | |
b15fe00f | 133 | |
3031971e C |
134 | padding: 15px; |
135 | } | |
136 | ||
137 | @media screen and (max-width: $mobile-view) { | |
138 | grid-template-rows: auto 45% 1fr; | |
139 | grid-template-columns: 1fr; | |
140 | ||
141 | .nav-preview { | |
142 | grid-column: 1; | |
143 | } | |
b15fe00f | 144 | |
3031971e C |
145 | textarea { |
146 | grid-row: 2; | |
147 | grid-column: 1; | |
148 | border: 0; | |
a3345972 | 149 | border-bottom: 1px dashed pvar(--inputBorderColor);; |
3031971e | 150 | } |
931d3430 | 151 | |
3031971e C |
152 | ::ng-deep .tab-content { |
153 | grid-column: 1; | |
154 | grid-row: 3; | |
155 | } | |
156 | } | |
b15fe00f | 157 | } |
b15fe00f K |
158 | } |
159 | ||
3031971e C |
160 | :host-context(.main-col.expanded) { |
161 | .root.maximized { | |
162 | left: 0; | |
163 | width: 100%; | |
66b16caf C |
164 | } |
165 | } |