Skip to content

Commit 045a3e6

Browse files
authored
fix: Fixed popup CSS styling (#4728)
1 parent 7d5f4b8 commit 045a3e6

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

lib/ace/autocomplete/popup.js

+29-1
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,34 @@ var AcePopup = function(parentNode) {
320320
};
321321

322322
dom.importCssString("\
323+
.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\
324+
background-color: #CAD6FA;\
325+
z-index: 1;\
326+
}\
327+
.ace_dark.ace_editor.ace_autocomplete .ace_marker-layer .ace_active-line {\
328+
background-color: #3a674e;\
329+
}\
330+
.ace_editor.ace_autocomplete .ace_line-hover {\
331+
border: 1px solid #abbffe;\
332+
margin-top: -1px;\
333+
background: rgba(233,233,253,0.4);\
334+
position: absolute;\
335+
z-index: 2;\
336+
}\
337+
.ace_dark.ace_editor.ace_autocomplete .ace_line-hover {\
338+
border: 1px solid rgba(109, 150, 13, 0.8);\
339+
background: rgba(58, 103, 78, 0.62);\
340+
}\
341+
.ace_completion-meta {\
342+
opacity: 0.5;\
343+
margin: 0.9em;\
344+
}\
345+
.ace_editor.ace_autocomplete .ace_completion-highlight{\
346+
color: #2d69c7;\
347+
}\
348+
.ace_dark.ace_editor.ace_autocomplete .ace_completion-highlight{\
349+
color: #93ca12;\
350+
}\
323351
.ace_autocomplete.ace-tm .ace_marker-layer .ace_active-line {\
324352
background-color: #CAD6FA;\
325353
z-index: 1;\
@@ -349,7 +377,7 @@ dom.importCssString("\
349377
.ace_completion-message {\
350378
color: blue;\
351379
}\
352-
.ace_autocomplete .ace_completion-highlight{\ color: #000;\
380+
.ace_autocomplete .ace_completion-highlight{\
353381
text-shadow: 0 0 0.01em;\
354382
}\
355383
.ace_autocomplete {\

0 commit comments

Comments
 (0)