@@ -67,6 +67,30 @@ html::-webkit-scrollbar-button:vertical:single-button:increment:disabled {
6767 outline : none;
6868}
6969
70+ html .ww-all-selected : not (.ww-empty ) {
71+ & body {
72+ border : 1px solid var (--sl-color-primary-400 );
73+
74+ & ::after {
75+ content : "" ;
76+ display : block;
77+ position : absolute;
78+ top : 0 ;
79+ left : 0 ;
80+ width : 100% ;
81+ height : 100% ;
82+ background : var (--sl-color-primary-400 );
83+ opacity : 10% ;
84+ pointer-events : none;
85+ }
86+ }
87+
88+ & ::selection {
89+ background : transparent !important ;
90+ caret-color : transparent !important ;
91+ }
92+ }
93+
7094a : not ([href ]) {
7195 text-decoration : underline;
7296 color : # 0000ee ;
@@ -83,6 +107,12 @@ body {
83107 caret-color : currentColor;
84108}
85109
110+ @media screen and (min-width : 1130px ) and (max-width : 1360px ) {
111+ body {
112+ margin-left : 0 ;
113+ }
114+ }
115+
86116figure : hover {
87117 position : relative;
88118}
@@ -275,7 +305,7 @@ html:is(.ww-key-ctrl, .ww-key-meta) body * {
275305 .ww-cutting ,
276306 .ww-deleting ,
277307 html : is (.ww-key-ctrl , .ww-key-meta ) body *
278- )::before {
308+ ): not ( html ) : not ( tr ): :before {
279309 content : "" ;
280310 position : absolute;
281311 right : -20px ;
@@ -440,27 +470,69 @@ body > .ww-widget::after {
440470 transition : background-color 0.1s ease;
441471}
442472
443- body > p : first-child {
444- margin-top : 0 ;
473+ body > . ProseMirror-gapcursor : first-child {
474+ margin-bottom : 0 ;
445475}
446476
447- table .ProseMirror-gapcursor {
448- border : 2px dashed var (--sl-color-primary-600 );
449- display : table-cell;
450- min-width : 1em ;
451- padding : 3px 5px ;
452- vertical-align : top;
453- box-sizing : border-box;
454- position : relative;
455- height : 100% ;
477+ table , tbody , tr {
478+ overflow : visible !important ;
456479}
457480
458- table .ProseMirror-gapcursor ::after {
459- border-top : none;
460- border-left : 1px solid black;
461- width : 2px ;
462- height : 1em ;
463- position : static;
481+ table tr {
482+ overflow : visible;
483+ }
484+
485+ @keyframes blink {
486+ 50% {
487+ opacity : 0.0 ;
488+ }
489+ }
490+ table : is (thead , tbody , tfoot ) > tr : has (+ .ProseMirror-gapcursor ) {
491+ anchor-name : --table-row ;
492+ }
493+
494+ table : is (thead , tbody , tfoot ) > .ProseMirror-gapcursor {
495+ display : inline;
496+ position : absolute;
497+ top : anchor (--table-row top);
498+ right : anchor (--table-row right);
499+ height : -1px ;
500+ position-anchor : --table-row ;
501+
502+ & ::after {
503+ display : block;
504+ content : "" ;
505+ height : calc (1lh + 6px );
506+ width : 2px ;
507+ background : currentColor;
508+ z-index : 10 ;
509+ animation : blink 1s step-end 0s infinite;
510+ clip-path : unset;
511+ margin-left : 2px ;
512+ margin-top : 2px ;
513+ }
514+ }
515+
516+ .ProseMirror-gapcursor + tr td {
517+ border-top : none !important ;
518+ }
519+
520+ table .selectedCell {
521+ background : var (--sl-color-primary-200 ) !important ;
522+ }
523+
524+ tr {
525+ container-type : inline-size;
526+ container-name : table-row;
527+ }
528+
529+ td : is (: empty , : has (.ProseMirror-trailingBreak )) {
530+ height : 1lh ;
531+ aspect-ratio : 1 ;
532+ }
533+
534+ thead , tbody , tfoot {
535+ border-left : none !important ;
464536}
465537
466538.ProseMirror ::selection : not (.ProseMirror-selectednode ) {
@@ -469,6 +541,16 @@ table .ProseMirror-gapcursor::after {
469541 z-index : 2147483647 ;
470542}
471543
544+ html .ww-cutting ::selection {
545+ background-color : var (--sl-color-warning-300 );
546+ }
547+
548+
549+ html .ww-deleting ::selection {
550+ background-color : var (--sl-color-danger-300 );
551+ }
552+
553+
472554abbr {
473555 text-decoration : underline 1px dotted currentColor;
474556}
@@ -707,7 +789,7 @@ body:has(.ww-fullscreen) > :not(.ww-fullscreen) {
707789 display : none !important ;
708790}
709791
710- @media only screen and (min-width : 1300 px ) {
792+ @media only screen and (min-width : 1130 px ) {
711793 .ww-widget ::part (options ) {
712794 position : fixed;
713795 width : var (--ww-toolbox-action-width );
@@ -750,4 +832,4 @@ body:has(.ww-fullscreen) > :not(.ww-fullscreen) {
750832 .ProseMirror [data-empty ]::before {
751833 display : none;
752834 }
753- }
835+ }
0 commit comments