Skip to content

Commit c08ce42

Browse files
committed
[arcane:doc] Customize doxygen version of 'details' html element (used to hide UML graphs in devdoc)
1 parent 3f556f0 commit c08ce42

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

arcane/doc/theme/css/custom.css

+37-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
22
/*-----------------------------------------------------------------------------
3-
/* Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
3+
/* Copyright 2000-2025 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
44
/* See the top-level COPYRIGHT file for details.
55
/* SPDX-License-Identifier: Apache-2.0
66
/*-----------------------------------------------------------------------------
77
/*---------------------------------------------------------------------------*/
8-
/* custom.css (C) 2000-2023 */
8+
/* custom.css (C) 2000-2025 */
99
/* */
1010
/* Personnalisation des css de doxygen et du thème. */
1111
/*---------------------------------------------------------------------------*/
@@ -376,15 +376,48 @@ details[open] summary {
376376
details[open] summary::before {
377377
content: '⯆' !important;
378378
}
379+
379380
/*
380-
* Fin : Personnalisation de la partie spoiler.
381+
* Doxygen possède sa propre version de "details".
382+
* On reproduit donc le style au-dessus pour la version de Doxygen.
381383
*/
384+
div.dynheader {
385+
border: 1px solid;
386+
border-color: var(--separator-color);
387+
border-radius: 4px;
388+
margin: 0 0 10px 0;
389+
background-color: var(--side-nav-background);
390+
padding: 0.5em;
391+
transition: color .08s ease-in-out, background-color .1s ease-in-out;
392+
font-weight: bold;
393+
cursor: pointer;
394+
}
395+
396+
div.dynheader.opened {
397+
border-bottom: 2px solid;
398+
border-bottom-color: var(--primary-color);
399+
margin: 0 0 0 0;
400+
color: var(--primary-color) !important;
401+
}
382402

403+
div.dynheader:hover {
404+
color: var(--primary-color) !important;
405+
background-color: var(--odd-color);
406+
}
407+
408+
div.dyncontent {
409+
border-width: 0 1px 1px 1px;
410+
border-style: solid;
411+
margin: 0 0 10px 0 !important;
412+
border-color: var(--separator-color);
413+
}
414+
/*
415+
* Fin : Personnalisation de la partie spoiler.
416+
*/
383417

384418
/*---------------------------------------------------------------------------*/
385419
/*---------------------------------------------------------------------------*/
386420

387-
388421
/*
389422
* Début : Personnalisation de la partie axldoc.
390423
*/

0 commit comments

Comments
 (0)