Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions doc/sphinxdoc/_templates/sphinxdoc_mtg/static/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -333,3 +333,102 @@ section h3:hover .headerlink,
.highlight .il {
color: #40a070;
} /* Literal.Number.Integer.Long */

/* Collapsible sections styling (W3Schools-like) */
/* Target all details elements generated by sphinx_toolbox.collapse */
details[class^="summary-"] {
margin-bottom: 10px;
}

details[class^="summary-"] > summary {
background-color: #087e8b;
color: white;
cursor: pointer;
padding: 12px 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
font-weight: 500;
border-radius: 4px;
transition: background-color 0.3s ease;
list-style: none;
display: block;
}

details[class^="summary-"] > summary::-webkit-details-marker {
display: none;
}

details[class^="summary-"] > summary::before {
content: '\002B'; /* + sign */
color: white;
font-weight: bold;
float: right;
margin-left: 10px;
}

details[class^="summary-"][open] > summary::before {
content: '\2212'; /* - sign */
}

details[class^="summary-"] > summary:hover {
background-color: #055861;
}

details[class^="summary-"][open] > summary {
background-color: #055861;
border-radius: 4px 4px 0 0;
}

/* Content area - use details itself as the box container */
details[class^="summary-"][open] {
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 15px;
}

details[class^="summary-"][open] > summary {
border-radius: 4px 4px 0 0;
margin: -1px -1px 0 -1px;
width: calc(100% + 2px);
}

details[class^="summary-"][open] > *:not(summary) {
padding: 5px 15px;
margin: 0;
}

details[class^="summary-"][open] > *:not(summary):last-child {
padding-bottom: 15px;
}

/* Hide the empty line-block spacer and reduce top spacing */
details[class^="summary-"][open] > .line-block:first-of-type {
display: none;
}

details[class^="summary-"][open] > *:not(summary):not(.line-block):first-of-type,
details[class^="summary-"][open] > .line-block + * {
padding-top: 10px;
}

/* Model items - gray style for individual models */
details[class^="summary-"]:not(.summary-reference-bibtex) > summary {
background-color: #f1f1f1;
color: #333;
}

details[class^="summary-"]:not(.summary-reference-bibtex) > summary:hover {
background-color: #e0e0e0;
}

details[class^="summary-"]:not(.summary-reference-bibtex)[open] > summary {
background-color: #e0e0e0;
}

details[class^="summary-"]:not(.summary-reference-bibtex) > summary::before {
color: #333;
}
Loading
Loading