Skip to content

Commit f37c0ae

Browse files
authored
Right-align the details marker (#582)
1 parent d857ad7 commit f37c0ae

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

css/customstyles-precice.css

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,4 +350,33 @@ div.tab-content {
350350
}
351351
div.tab-content div.tab-pane pre {
352352
margin-top: 0px;
353-
}
353+
}
354+
}
355+
356+
/* Hide default marker Chromium/WebKit */
357+
details > summary::-webkit-details-marker {
358+
display: none !important;
359+
}
360+
361+
/* Hide default marker in Firefox */
362+
details > summary {
363+
list-style: none;
364+
cursor: pointer;
365+
position: relative;
366+
padding-right: 1.2em;
367+
}
368+
369+
/* closed */
370+
details > summary::after {
371+
content: "▼";
372+
position: absolute;
373+
right: 0;
374+
top: 50%;
375+
transform: translateY(-50%);
376+
font-size: 0.9em;
377+
}
378+
379+
/* open */
380+
details[open] > summary::after {
381+
content: "▲";
382+
}

0 commit comments

Comments
 (0)