File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
apps/snow-leopard/components/document Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -343,6 +343,49 @@ function PureEditor({
343343 max-width: 720px;
344344 margin: 0 auto;
345345 }
346+
347+ /* --- Synonym plugin styles (hover with Shift) --- */
348+ div.ProseMirror { position: relative; }
349+
350+ .synonym-word { display: inline; }
351+ .synonym-word.synonym-loading { position: relative; display: inline-block; }
352+
353+ .synonym-overlay-menu {
354+ background: #282c34;
355+ color: #fff;
356+ border: none;
357+ padding: 4px;
358+ border-radius: 4px;
359+ box-shadow: 0 2px 8px rgba(0,0,0,0.1);
360+ display: flex;
361+ gap: 4px;
362+ z-index: 10000;
363+ }
364+
365+ .synonym-overlay-menu .synonym-option {
366+ background: none;
367+ border: none;
368+ padding: 2px 6px;
369+ cursor: pointer;
370+ font: inherit;
371+ color: inherit;
372+ border-radius: 3px;
373+ }
374+
375+ .synonym-overlay-menu .synonym-option:hover {
376+ background: rgba(255,255,255,0.1);
377+ }
378+
379+ /* Loading overlay on the word while fetching synonyms */
380+ .synonym-loading::before {
381+ content: "";
382+ position: absolute;
383+ inset: 0;
384+ background-color: rgba(100,100,100,0.2);
385+ border-radius: 2px;
386+ pointer-events: none;
387+ z-index: 1;
388+ }
346389 ` } </ style >
347390 </ >
348391 ) ;
You can’t perform that action at this time.
0 commit comments