-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom_css.css
More file actions
231 lines (193 loc) · 4.44 KB
/
Copy pathcustom_css.css
File metadata and controls
231 lines (193 loc) · 4.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
/* Custom CSS for manim-astro documentation
* Author: Anna Rosen (alrosen@sdsu.edu)
* Optimized for astronomical content with dark theme support
*/
/* Dark theme optimizations for astronomical content */
:root {
--manim-blue: #4A90E2;
--manim-red: #E74C3C;
--manim-green: #27AE60;
--manim-yellow: #F39C12;
--manim-purple: #8E44AD;
--astro-dark: #0D1117;
--astro-gray: #7F8C8D;
}
/* Code blocks with astronomical syntax highlighting */
.highlight pre {
background-color: var(--astro-dark) !important;
border: 1px solid var(--astro-gray);
border-radius: 5px;
padding: 1em;
}
/* MyST admonitions for astronomical content */
.admonition.tip {
border-left-color: var(--manim-green);
}
.admonition.note {
border-left-color: var(--manim-blue);
}
.admonition.warning {
border-left-color: var(--manim-yellow);
}
.admonition.important {
border-left-color: var(--manim-red);
}
/* Jupyter notebook cells */
div.cell {
border-radius: 5px;
margin-bottom: 1em;
}
div.cell_input {
background-color: #1a1a2e;
border-left: 3px solid var(--manim-blue);
}
div.cell_output {
background-color: #0f0f1e;
border-left: 3px solid var(--manim-green);
}
/* Mathematical equations with astronomical symbols */
.math {
font-size: 1.1em;
}
/* Solar units and astronomical symbols */
.math .msun::before { content: "M☉"; }
.math .rsun::before { content: "R☉"; }
.math .lsun::before { content: "L☉"; }
.math .mearth::before { content: "M⊕"; }
.math .rearth::before { content: "R⊕"; }
/* Filter system tables */
table.filter-system {
width: 100%;
border-collapse: collapse;
}
table.filter-system th {
background-color: var(--manim-blue);
color: white;
padding: 0.5em;
}
table.filter-system td {
padding: 0.5em;
border: 1px solid var(--astro-gray);
}
table.filter-system tr:nth-child(even) {
background-color: rgba(255, 255, 255, 0.05);
}
/* Interactive elements for Jupyter widgets */
.widget-label {
font-weight: bold;
color: var(--manim-blue);
}
.widget-slider {
margin: 1em 0;
}
/* Gallery cards for examples */
.gallery-card {
border: 1px solid var(--astro-gray);
border-radius: 8px;
padding: 1em;
margin: 1em 0;
transition: transform 0.2s;
}
.gallery-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
/* API documentation styling */
.class {
border-left: 3px solid var(--manim-purple);
padding-left: 1em;
margin: 1em 0;
}
.function {
border-left: 3px solid var(--manim-green);
padding-left: 1em;
margin: 1em 0;
}
.property {
border-left: 3px solid var(--manim-blue);
padding-left: 1em;
margin: 1em 0;
}
/* Navigation improvements */
.toc-tree {
background-color: rgba(13, 17, 23, 0.5);
border-radius: 5px;
padding: 1em;
}
.toc-tree a {
color: var(--manim-blue);
text-decoration: none;
}
.toc-tree a:hover {
color: var(--manim-yellow);
text-decoration: underline;
}
/* Search results highlighting */
.highlighted {
background-color: var(--manim-yellow);
color: black;
padding: 0 0.2em;
border-radius: 3px;
}
/* Copy button for code blocks */
.copybtn {
position: absolute;
top: 0.5em;
right: 0.5em;
opacity: 0.3;
transition: opacity 0.2s;
}
.copybtn:hover {
opacity: 1;
background-color: var(--manim-green);
}
/* Responsive design for mobile */
@media (max-width: 768px) {
.cell {
font-size: 0.9em;
}
table.filter-system {
font-size: 0.8em;
}
.gallery-card {
margin: 0.5em 0;
}
}
/* Print styles */
@media print {
.admonition {
border: 1px solid black;
page-break-inside: avoid;
}
.cell_output {
page-break-inside: avoid;
}
.copybtn {
display: none;
}
}
/* Animations for interactive elements */
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
.interactive-star {
animation: pulse 2s infinite;
}
/* Custom styling for HR diagrams and astronomical plots */
.hr-diagram {
background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
border-radius: 8px;
padding: 1em;
margin: 1em 0;
}
/* Footer acknowledgment */
.footer-acknowledgment {
font-size: 0.9em;
color: var(--astro-gray);
text-align: center;
margin-top: 2em;
padding-top: 1em;
border-top: 1px solid var(--astro-gray);
}