2323 width : 100% ;
2424 border-radius : 8px ;
2525 box-shadow : $bs-card ;
26- background-color : #FFF ;
26+ @include lightDark ( background-color , #FFF , #333 )
2727}
2828
2929.page-edit-toolbar {
3434 align-items : center ;
3535}
3636
37- .page-editor-wysiwyg .page-edit-toolbar ,
38- .page-editor-wysiwyg .page-editor-page-area {
39- max-width : 1140px ;
37+ @include larger-than ($xxl ) {
38+ .page-editor-wysiwyg .page-edit-toolbar ,
39+ .page-editor-wysiwyg .page-editor-page-area {
40+ max-width : 1140px ;
41+ }
42+
43+ .page-editor-wysiwyg .floating-toolbox {
44+ position : absolute ;
45+ }
4046}
4147
42- .page-editor-markdown .floating-toolbox {
43- position : relative ;
48+ @include smaller-than ($m ) {
49+ .page-edit-toolbar {
50+ display : flex ;
51+ flex-direction : row ;
52+ justify-content : space-between ;
53+ }
4454}
4555
4656.title-input.page-title {
@@ -88,8 +98,7 @@ body.tox-fullscreen, body.markdown-fullscreen {
8898 overflow-x : scroll ;
8999 overflow-y : visible ;
90100 }
91- .page-edit-toolbar .grid.third {
92- display : block ;
101+ .page-edit-toolbar {
93102 white-space : nowrap ;
94103 > div {
95104 display : inline-block ;
@@ -101,10 +110,10 @@ body.tox-fullscreen, body.markdown-fullscreen {
101110 position : fixed ;
102111 z-index : 30 ;
103112 border-radius : 50% ;
104- width : 56 px ;
105- height : 56 px ;
106- font-size : 24 px ;
107- right : $-m ;
113+ width : 52 px ;
114+ height : 52 px ;
115+ font-size : 26 px ;
116+ right : $-xs ;
108117 bottom : $-s ;
109118 box-shadow : $bs-hover ;
110119 background-color : currentColor ;
@@ -202,7 +211,7 @@ body.tox-fullscreen, body.markdown-fullscreen {
202211 }
203212}
204213
205- // Attribute form
214+ // Page editor sidebar toolbox
206215.floating-toolbox {
207216 @include lightDark (background-color , #FFF , #222 );
208217 overflow : hidden ;
@@ -214,7 +223,7 @@ body.tox-fullscreen, body.markdown-fullscreen {
214223 box-shadow : $bs-card ;
215224 margin-bottom : auto ;
216225 margin-left : $-l ;
217- position : absolute ;
226+ position : relative ;
218227 & .open {
219228 position : relative ;
220229 right : 0 ;
@@ -242,6 +251,7 @@ body.tox-fullscreen, body.markdown-fullscreen {
242251 }
243252 .tabs {
244253 border-right : 1px solid #DDD ;
254+ @include lightDark (border-right-color , #DDD , #000 );
245255 width : 40px ;
246256 flex : 0 1 auto ;
247257 margin-right : -1px ;
@@ -300,6 +310,33 @@ body.tox-fullscreen, body.markdown-fullscreen {
300310 }
301311}
302312
313+ @include smaller-than ($xxl ) {
314+ .floating-toolbox {
315+ margin-left : $-s ;
316+ }
317+ }
318+
319+ @include smaller-than ($s ) {
320+ .page-editor-page-area-wrap {
321+ margin : 4px !important ;
322+ }
323+ .floating-toolbox {
324+ margin-left : 4px ;
325+ }
326+ .floating-toolbox .tabs {
327+ width : 32px ;
328+ }
329+ .floating-toolbox .tabs-inner > button {
330+ font-size : 12px ;
331+ }
332+ .page-edit-toolbar {
333+ padding-block : 0 !important ;
334+ }
335+ .page-editor.toolbox-open .page-editor-page-area {
336+ display : none ;
337+ }
338+ }
339+
303340.toolbox-tab-content {
304341 display : none ;
305342 overflow-y : auto ;
0 commit comments