Skip to content

Commit 0060988

Browse files
committed
css tweaks
1 parent 3914853 commit 0060988

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

djangocms_rest/static/djangocms_rest/highlight.css

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
:root .rest-placeholder {
2+
--string-color: #BA2121;
3+
--key-color: #008000;
4+
--value-color: #0000FF;
5+
}
6+
17
:root[data-theme="dark"] .rest-placeholder {
28
--string-color: #FF6347; /* Tomato */
39
--key-color: #32CD32; /* Lime Green */
@@ -12,15 +18,9 @@
1218
}
1319
}
1420

15-
.rest-placeholder {
16-
17-
--string-color: #BA2121;
18-
--key-color: #008000;
19-
--value-color: #0000FF;
20-
2121

22+
.rest-placeholder {
2223
display: block;
23-
background-color: var(--dca-white, #fff);
2424
color: var(--dca-gray-darkest, #333);
2525
margin-bottom: 1em;
2626
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
@@ -29,15 +29,15 @@
2929
.str {
3030
color: var(--string-color, red);
3131
}
32-
.ellipsis {
32+
.ellipsis:not(:active) {
3333
display: inline-block; /* or block, depending on your needs */
3434
text-overflow: ellipsis;
3535
max-width: 60ch;
3636
overflow: hidden;
3737
white-space: nowrap;
3838
vertical-align: bottom; /* optional, for better alignment */
3939
}
40-
.ellipsis-toggle {
40+
.ellipsis {
4141
cursor: pointer;
4242
}
4343
.key, .children {
@@ -59,5 +59,7 @@
5959
.rest-placeholder {
6060
summary {
6161
margin-inline-start: -1.2em;
62+
width: fit-content;
63+
cursor: pointer;
6264
}
6365
}

0 commit comments

Comments
 (0)