Repository navigation
Expand file tree
/
Copy pathcustom.css
More file actions
144 lines (122 loc) · 3.44 KB
/
Copy pathcustom.css
File metadata and controls
144 lines (122 loc) · 3.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/* Custom styles for the PyGAD documentation (Furo theme). */
/* Center figures and keep diagrams from stretching too wide. */
figure {
text-align: center;
margin: 1.5rem auto;
}
figure img {
max-width: 100%;
height: auto;
}
/* The diagrams have a light card background baked in, so give them a soft
border and rounded corners that look right in both light and dark mode. */
img.pygad-diagram {
border: 1px solid rgba(128, 128, 128, 0.25);
border-radius: 8px;
background: #ffffff;
}
/* Figure captions: a touch smaller and muted. */
figure figcaption {
font-size: 0.9rem;
color: var(--color-foreground-secondary);
margin-top: 0.5rem;
}
/* Make tables a little easier to scan. */
table.docutils td,
table.docutils th {
padding: 0.4rem 0.7rem;
}
/* Collapsible parameter list (pygad.GA constructor). Make the parameter name
in each dropdown title stand out, and tidy the spacing between items. */
details.sd-dropdown {
margin-bottom: 0.4rem;
}
details.sd-dropdown > summary.sd-summary-title code,
details.sd-dropdown > .sd-summary-title code {
font-weight: 600;
}
/* Shared cards connecting documentation topics to complete Python examples. */
.python-example {
border-left: 3px solid var(--color-brand-primary);
}
.python-example .sd-card-header {
background: var(--color-background-secondary);
font-weight: 600;
}
.python-example code {
overflow-wrap: anywhere;
white-space: normal;
}
.python-example pre code {
white-space: pre;
overflow-wrap: normal;
}
.python-example .sd-card-footer {
background: var(--color-background-primary);
}
/* Keep the release-page header compact so the newest notes are in view. */
#release-history > p > img[alt="PYGAD-LOGO"] {
max-width: 12rem;
height: auto;
}
/* Release-history controls follow the theme in light and dark mode. */
.release-history-navigation {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.75rem;
margin: 1.5rem 0;
}
.release-history-navigation select {
max-width: 100%;
padding: 0.5rem;
border: 1px solid var(--color-brand-primary);
border-radius: 0.35rem;
background: var(--color-background-primary);
color: var(--color-foreground-primary);
font: inherit;
}
.release-history-controls {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin: 2rem 0;
}
.release-history-controls p {
flex-basis: 100%;
margin: 0;
color: var(--color-foreground-secondary);
}
.release-history-controls button {
padding: 0.65rem 1rem;
border: 1px solid var(--color-brand-primary);
border-radius: 0.35rem;
background: var(--color-background-primary);
color: var(--color-brand-content);
font: inherit;
cursor: pointer;
}
.release-history-controls button:hover {
background: var(--color-background-secondary);
}
.release-history-controls button:focus-visible,
.release-history-navigation select:focus-visible {
outline: 2px solid var(--color-brand-primary);
outline-offset: 3px;
}
/* Some theme display rules otherwise override the native hidden attribute. */
#release-history > section[hidden],
.toc-tree li[hidden],
.release-history-controls button[hidden] {
display: none;
}
/* Printed and exported notes always include the complete release history. */
@media print {
#release-history > section[hidden] {
display: block;
}
.release-history-controls,
.release-history-navigation {
display: none;
}
}