88 flex : 1 ;
99 flex-direction : column ;
1010 z-index : 10 ;
11+ overflow : hidden ;
12+ border-radius : 0 0 8px 8px ;
1113 }
1214
1315 .mce-tinymce {
1921 }
2022}
2123
24+ .page-editor-page-area {
25+ width : 100% ;
26+ border-radius : 8px ;
27+ box-shadow : $bs-card ;
28+ @include lightDark (background-color , #FFF , #333 )
29+ }
30+
31+ .page-edit-toolbar {
32+ width : 100% ;
33+ margin : 0 auto ;
34+ display : grid ;
35+ grid-template-columns : minmax (max-content , 2fr ) 1.5fr minmax (max-content , 2fr );
36+ align-items : center ;
37+ }
38+
39+ @include larger-than ($xxl ) {
40+ .page-editor-wysiwyg .page-edit-toolbar ,
41+ .page-editor-wysiwyg .page-editor-page-area {
42+ max-width : 1140px ;
43+ }
44+
45+ .page-editor-wysiwyg .floating-toolbox {
46+ position : absolute ;
47+ }
48+ }
49+
50+ @include smaller-than ($m ) {
51+ .page-edit-toolbar {
52+ display : flex ;
53+ flex-direction : row ;
54+ justify-content : space-between ;
55+ }
56+ }
57+
58+ .title-input.page-title {
59+ font-size : 0.8em ;
60+ .input {
61+ border : 0 ;
62+ margin-bottom : -1px ;
63+ }
64+ input [type = " text" ] {
65+ max-width : 840px ;
66+ margin : 0 auto ;
67+ border : none ;
68+ height : auto ;
69+ display : block ;
70+ width : 100% ;
71+ font-size : 20px ;
72+ border-radius : 8px ;
73+ }
74+ input [type = " text" ]:focus {
75+ position : relative ;
76+ outline-offset : -1px ;
77+ outline : 1px dashed var (--color-primary );
78+ box-shadow : $bs-card ;
79+ z-index : 50 ;
80+ }
81+ }
82+
83+ .page-editor-markdown .title-input.page-title input [type = " text" ] {
84+ max-width : 100% ;
85+ }
86+
2287body .tox-fullscreen .page-editor .edit-area ,
2388body .markdown-fullscreen .page-editor .edit-area {
2489 z-index : 12 ;
@@ -35,8 +100,7 @@ body.tox-fullscreen, body.markdown-fullscreen {
35100 overflow-x : scroll ;
36101 overflow-y : visible ;
37102 }
38- .page-edit-toolbar .grid.third {
39- display : block ;
103+ .page-edit-toolbar {
40104 white-space : nowrap ;
41105 > div {
42106 display : inline-block ;
@@ -48,10 +112,10 @@ body.tox-fullscreen, body.markdown-fullscreen {
48112 position : fixed ;
49113 z-index : 30 ;
50114 border-radius : 50% ;
51- width : 56 px ;
52- height : 56 px ;
53- font-size : 24 px ;
54- right : $-m ;
115+ width : 52 px ;
116+ height : 52 px ;
117+ font-size : 26 px ;
118+ right : $-xs ;
55119 bottom : $-s ;
56120 box-shadow : $bs-hover ;
57121 background-color : currentColor ;
@@ -149,22 +213,27 @@ body.tox-fullscreen, body.markdown-fullscreen {
149213 }
150214}
151215
152- // Attribute form
216+ // Page editor sidebar toolbox
153217.floating-toolbox {
154- border : 1px solid #DDD ;
155- @include lightDark (background-color , #fff , #222 );
156- @include lightDark (border-color , #DDD , #000 );
157- right : $-xl * 2 ;
158- width : 48px ;
218+ @include lightDark (background-color , #FFF , #222 );
159219 overflow : hidden ;
160220 align-items : stretch ;
161221 flex-direction : row ;
162222 display : flex ;
163- transition : width ease-in-out 180ms ;
164- margin-top : -1px ;
165- min-height : 0 ;
223+ max-height : 100% ;
224+ border-radius : 8px ;
225+ box-shadow : $bs-card ;
226+ margin-bottom : auto ;
227+ margin-left : $-l ;
228+ position : relative ;
166229 & .open {
167- width : 480px ;
230+ position : relative ;
231+ right : 0 ;
232+ max-width : 480px ;
233+ margin-bottom : 0 ;
234+ }
235+ & :not (.open ) .toolbox-tab-content {
236+ display : none !important ;
168237 }
169238 .toolbox-toggle svg {
170239 transition : transform ease-in-out 180ms ;
@@ -173,7 +242,7 @@ body.tox-fullscreen, body.markdown-fullscreen {
173242 transition : background-color ease-in-out 180ms ;
174243 }
175244 & .open .toolbox-toggle {
176- background-color : rgba (255 , 0 , 0 , 0.29 );
245+ background-color : rgba (255 , 0 , 0 , 0.20 );
177246 }
178247 & .open .toolbox-toggle svg {
179248 transform : rotate (180deg );
@@ -183,28 +252,34 @@ body.tox-fullscreen, body.markdown-fullscreen {
183252 position : relative ;
184253 }
185254 .tabs {
186- display : block ;
187- border-inline-end : 1px solid #DDD ;
188- @include lightDark (border-color , #ddd , #000 );
189- width : 48px ;
255+ border-right : 1px solid #DDD ;
256+ @include lightDark (border-right-color , #DDD , #000 );
257+ width : 40px ;
190258 flex : 0 1 auto ;
259+ margin-right : -1px ;
260+ }
261+ .tabs-inner {
262+ @include lightDark (background-color , #FFFFFF , #222 );
191263 }
192264 .tabs svg {
193265 padding : 0 ;
194266 margin : 0 ;
195267 }
196- .tabs > button {
197- @include lightDark (color , rgba (0 , 0 , 0 , 0.5 ), rgba (255 , 255 , 255 , 0.5 ));
268+ .tabs-inner > button {
269+ @include lightDark (color , rgba (0 , 0 , 0 , 0.7 ), rgba (255 , 255 , 255 , 0.5 ));
198270 display : block ;
199271 cursor : pointer ;
200- padding : $-s $-m ;
201- font-size : 16 px ;
272+ padding : 10 px $-xs ;
273+ font-size : 18 px ;
202274 line-height : 1.6 ;
203- border-bottom : 1px solid rgba (255 , 255 , 255 , 0.3 );
204275 }
205- & .open .tabs > button .active {
206- @include lightDark (color , #444 , #EEE );
207- background-color : rgba (0 , 0 , 0 , 0.1 );
276+ .tabs-inner > button :hover , & .open .tabs-inner > button .active {
277+ background-color : var (--color-primary-light );
278+ color : var (--color-primary );
279+ }
280+ & .open .tabs-inner > button .active {
281+ border-inline-end : 1px solid var (--color-primary );
282+ margin-inline-end : -1px ;
208283 }
209284 h4 {
210285 font-size : 24px ;
@@ -237,6 +312,33 @@ body.tox-fullscreen, body.markdown-fullscreen {
237312 }
238313}
239314
315+ @include smaller-than ($xxl ) {
316+ .floating-toolbox {
317+ margin-left : $-s ;
318+ }
319+ }
320+
321+ @include smaller-than ($s ) {
322+ .page-editor-page-area-wrap {
323+ margin : 4px !important ;
324+ }
325+ .floating-toolbox {
326+ margin-left : 4px ;
327+ }
328+ .floating-toolbox .tabs {
329+ width : 32px ;
330+ }
331+ .floating-toolbox .tabs-inner > button {
332+ font-size : 12px ;
333+ }
334+ .page-edit-toolbar {
335+ padding-block : 0 !important ;
336+ }
337+ .page-editor.toolbox-open .page-editor-page-area {
338+ display : none ;
339+ }
340+ }
341+
240342.toolbox-tab-content {
241343 display : none ;
242344 overflow-y : auto ;
0 commit comments