Skip to content

Commit 48b7708

Browse files
authored
Contacts (#200)
1 parent c3b21c9 commit 48b7708

File tree

5 files changed

+358
-71
lines changed

5 files changed

+358
-71
lines changed

docs/css/admonitions.css

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
:root {
2+
--md-admonition-icon--heart: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="%23fff" d="M462.3 62.6c-54.5-46.4-136-38.3-186.4 13.7L256 96l-19.9-19.7C185.7 24.3 104.2 16.2 49.7 62.6c-62.8 53.5-66.1 149.8-9.9 207.4l193.5 199.8c12 12.4 31.5 12.4 43.5 0l193.5-199.8c56.2-57.6 52.9-153.9-9.9-207.4z"/></svg>');
3+
}
4+
5+
/***************************
6+
Heart Admonition Definition
7+
***************************/
8+
9+
/* Heart Admonition Container */
10+
.md-typeset .admonition.heart,
11+
.md-typeset details.heart {
12+
border-color: rgb(200, 50, 70);
13+
background-color: rgba(0, 0 ,0, 0); /* transparent */
14+
}
15+
16+
/* Title background */
17+
.md-typeset .heart > .admonition-title,
18+
.md-typeset .heart > summary {
19+
background-color: rgba(200, 50, 70, 0.08);
20+
border-top-left-radius: 0.5rem;
21+
border-top-right-radius: 0.5rem;
22+
}
23+
24+
/* Icon styling */
25+
.md-typeset .heart > .admonition-title::before,
26+
.md-typeset .heart > summary::before {
27+
background-color: rgb(200, 50, 70);
28+
-webkit-mask-image: var(--md-admonition-icon--heart);
29+
mask-image: var(--md-admonition-icon--heart);
30+
}
31+
32+
/* Optional — subtle hover effect for the title when open */
33+
.md-typeset details.heart[open] > summary:hover {
34+
background-color: rgba(200, 50, 70, 0.12);
35+
transition: background-color 0.2s ease-in-out;
36+
}
37+
38+
/* Optional — slightly rounder border and shadow for elegance */
39+
.md-typeset .admonition.heart,
40+
.md-typeset details.heart {
41+
border-radius: 0.5rem;
42+
box-shadow: 0 1px 3px rgba(200, 50, 70, 0.15);
43+
}
44+
45+
46+
/**************************************
47+
Collapsible Admonitions for Procedures
48+
**************************************/
49+
50+
.md-typeset .admonition.nodeco,
51+
.md-typeset details.nodeco {
52+
background-color: var(--md-default-bg-color);
53+
box-shadow: none;
54+
border: none;
55+
border-left: 0;
56+
font-size: medium;
57+
font-weight: lighter;
58+
margin: 0 0 0 0;
59+
}
60+
61+
.md-typeset .nodeco > .admonition-title,
62+
.md-typeset .nodeco > summary {
63+
background-color: var(--md-default-bg-color);
64+
padding: 0 0 0 0;
65+
border-left: 0;
66+
margin: 0 0 0 -0.5rem;
67+
font-weight: normal;
68+
font-size: 0.8rem;
69+
padding-left: 0.2rem !important;
70+
}
71+
72+
.md-typeset .nodeco > summary code {
73+
background-color: var(--md-code-bg-color);
74+
}
75+
76+
/* margin for the element after <summary> which is the first child */
77+
.md-typeset .nodeco > :nth-child(2) {
78+
margin: 0.3rem 1.5rem 0 0;
79+
}
80+
81+
.md-typeset .nodeco > p,
82+
.md-typeset .nodeco > ul,
83+
.md-typeset .nodeco > figure {
84+
background-color: var(--md-default-bg-color);
85+
padding: 0.2rem 0 0 0.5rem;
86+
margin: 0 1.5rem 0 0 !important;
87+
font-weight: lighter;
88+
border-left: .2rem solid var(--md-default-fg-color--lighter);
89+
}
90+
91+
.md-typeset .nodeco .leftFigure,
92+
.md-typeset .nodeco .rightFigure {
93+
width:45%;
94+
margin: 0 0 0 0;
95+
display: inline-block;
96+
}
97+
98+
.md-typeset .nodeco .rightFigure {
99+
padding: 0 0.2rem 0 0.5rem;
100+
margin: 0 1.5rem 0 0;
101+
border-left: none;
102+
}
103+
104+
.md-typeset .nodeco > .admonition-title::before,
105+
.md-typeset .nodeco > summary::before {
106+
height: 0; /* hides icon */
107+
margin: 0 0 0 0;
108+
109+
}
110+
111+
/**************************************
112+
Specific style for Warning Admonitions
113+
**************************************/
114+
.md-typeset .admonition.warning {
115+
font-size: 0.74rem !important; /* make warning text larger, default: 0.64 */
116+
}

docs/css/extra.css

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -27,75 +27,6 @@ a.cern_internal {
2727
color: lightcoral;
2828
}
2929

30-
/* Collapsible admonitions for procedures */
31-
.md-typeset .admonition.nodeco,
32-
.md-typeset details.nodeco {
33-
background-color: var(--md-default-bg-color);
34-
box-shadow: none;
35-
border: none;
36-
border-left: 0;
37-
font-size: medium;
38-
font-weight: lighter;
39-
margin: 0 0 0 0;
40-
}
41-
42-
.md-typeset .nodeco > .admonition-title,
43-
.md-typeset .nodeco > summary {
44-
background-color: var(--md-default-bg-color);
45-
padding: 0 0 0 0;
46-
border-left: 0;
47-
margin: 0 0 0 -0.5rem;
48-
font-weight: normal;
49-
font-size: 0.8rem;
50-
padding-left: 0.2rem !important;
51-
}
52-
53-
.md-typeset .nodeco > summary code {
54-
background-color: var(--md-code-bg-color);
55-
}
56-
57-
/* margin for the element after <summary> which is the first child */
58-
.md-typeset .nodeco > :nth-child(2) {
59-
margin: 0.3rem 1.5rem 0 0;
60-
}
61-
62-
.md-typeset .nodeco > p,
63-
.md-typeset .nodeco > ul,
64-
.md-typeset .nodeco > figure {
65-
background-color: var(--md-default-bg-color);
66-
padding: 0.2rem 0 0 0.5rem;
67-
margin: 0 1.5rem 0 0 !important;
68-
font-weight: lighter;
69-
border-left: .2rem solid var(--md-default-fg-color--lighter);
70-
}
71-
72-
73-
.md-typeset .nodeco .leftFigure,
74-
.md-typeset .nodeco .rightFigure {
75-
width:45%;
76-
margin: 0 0 0 0;
77-
display: inline-block;
78-
}
79-
80-
.md-typeset .nodeco .rightFigure {
81-
padding: 0 0.2rem 0 0.5rem;
82-
margin: 0 1.5rem 0 0;
83-
border-left: none;
84-
}
85-
86-
/* Specific style for warning admonitions */
87-
.md-typeset .admonition.warning {
88-
font-size: 0.74rem !important; /* make warning text larger, default: 0.64 */
89-
}
90-
91-
.md-typeset .nodeco > .admonition-title::before,
92-
.md-typeset .nodeco > summary::before {
93-
height: 0; /* hides icon */
94-
margin: 0 0 0 0;
95-
96-
}
97-
98-
9930

10031
/* Fix the Mathjax scrolling boxes issue */
10132
.md-typeset div.arithmatex {

docs/packages/development/howto_venv.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ To use the environment's Python, one can either:
109109
*[PyPi]: Default Python Package Index
110110

111111
[virtual_env_primer]: https://realpython.com/python-virtual-environments-a-primer/
112-
[acc-py]: https://wikis.cern.ch/display/ACCPY/Accelerating+Python+Home
113-
[acc_py_standalone_doc]: https://wikis.cern.ch/display/ACCPY/Acc-Py+base#Acc-Pybase-Installingthebasedistributiononanothermachine
112+
[acc-py]: https://confluence.cern.ch/pages/viewpage.action?spaceKey=ACCPY&title=Getting+started+with+Acc-Py
113+
[acc_py_standalone_doc]: https://confluence.cern.ch/display/ACCPY/Acc-Py+base+installers
114114
[venv_module]: https://docs.python.org/3/library/venv.html
115115
[pip_installs]: https://pip.pypa.io/en/stable/reference/pip_install/#examples

0 commit comments

Comments
 (0)