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 232 233 234 235 236 237 238
|
/* Advanced Alchemy Custom Theme Configuration
* Uses Shibuya theme's CSS variables for proper color integration
* Shibuya provides --accent-1 through --accent-12 based on accent_color in conf.py
* Current accent_color: amber (configured in docs/conf.py)
*/
:root {
/* Typography scaling for responsive brand text */
--brand-font-size-xl: 6rem;
--brand-font-size-lg: 5rem;
--brand-font-size-md: 4rem;
--brand-font-size-sm: 2.5rem;
--brand-font-size-xs: 1.8rem;
--brand-font-size-xxs: 1.6rem;
--brand-letter-spacing-xl: 0.25em;
--brand-letter-spacing-lg: 0.2em;
--brand-letter-spacing-md: 0.1em;
--brand-letter-spacing-sm: 0.05em;
--brand-letter-spacing-xs: 0.03em;
}
/* Light mode: Use Shibuya's accent color variables
* --accent-9 is the primary accent color
* --accent-10 is slightly darker
* --accent-11 is for high-contrast text
* --accent-a1 through --accent-a12 are transparent variants
*/
html.light {
--brand-text-glow: 0 0 10px var(--accent-a3),
0 0 20px var(--accent-a2), 0 0 30px var(--accent-a1);
}
/* Dark mode: Use Shibuya's accent color variables for dark theme */
html.dark {
--brand-text-glow: 0 0 10px var(--accent-a6),
0 0 20px var(--accent-a5), 0 0 30px var(--accent-a4);
}
.title-with-logo {
display: flex;
align-items: center;
justify-content: center;
margin: 5rem auto 4rem;
width: 100%;
padding: 0 2rem;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
html[class] .title-with-logo .brand-text {
font-family: var(--sy-f-text);
font-weight: 300;
font-size: var(--brand-font-size-lg);
letter-spacing: var(--brand-letter-spacing-xl);
text-transform: uppercase;
text-align: center;
line-height: 1.4;
max-width: 100%;
word-break: break-word;
word-wrap: break-word;
overflow-wrap: break-word;
hyphens: auto;
-webkit-hyphens: auto;
-ms-hyphens: auto;
transition: color 0.3s ease, text-shadow 0.3s ease;
}
html.light .title-with-logo .brand-text {
color: var(--sy-c-heading);
text-shadow: var(--brand-text-glow);
}
html.dark .title-with-logo .brand-text {
color: var(--sy-c-text);
text-shadow: var(--brand-text-glow);
}
/* Button container wrapping */
.buttons.wrap {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.buttons.wrap .btn-no-wrap {
flex: 0 0 auto;
}
/* Large screens */
@media (min-width: 1200px) {
html[class] .title-with-logo .brand-text {
font-size: var(--brand-font-size-xl);
}
}
/* Medium-small screens */
@media (max-width: 991px) {
html[class] .title-with-logo .brand-text {
font-size: var(--brand-font-size-md);
letter-spacing: var(--brand-letter-spacing-lg);
}
}
/* Small screens */
@media (max-width: 767px) {
html[class] .title-with-logo .brand-text {
font-size: var(--brand-font-size-sm);
letter-spacing: var(--brand-letter-spacing-md);
}
html[class] .title-with-logo {
margin: 2rem auto 1.5rem;
}
}
/* Extra small screens */
@media (max-width: 480px) {
html[class] .title-with-logo .brand-text {
font-size: var(--brand-font-size-xs);
letter-spacing: var(--brand-letter-spacing-sm);
line-height: 1.2;
}
html[class] .title-with-logo {
margin: 1.5rem auto 1rem;
padding: 0 1rem;
}
}
/* Smallest screens */
@media (max-width: 360px) {
html[class] .title-with-logo .brand-text {
font-size: var(--brand-font-size-xxs);
letter-spacing: var(--brand-letter-spacing-xs);
}
}
/* Badge container styling - clean layout without box */
#badges {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 3em;
}
#badges img {
margin-top: 0;
margin-bottom: 0;
}
/* =====================================================
* Brand-Aligned UI Element Enhancements
* Uses Shibuya's accent colors for consistency
* ===================================================== */
/* Inline code styling - uses accent colors */
html.light code.literal {
background-color: var(--accent-a2);
border: 1px solid var(--accent-a4);
color: var(--accent-11);
padding: 0.1em 0.4em;
border-radius: 0.3em;
font-size: 90%;
}
html.dark code.literal {
background-color: var(--accent-a3);
border: 1px solid var(--accent-a5);
color: var(--accent-11);
padding: 0.1em 0.4em;
border-radius: 0.3em;
font-size: 90%;
}
/* Navigation links - accent color on hover */
html.light .toctree-wrapper a:hover,
html.light .doc-toc a:hover {
color: var(--accent-10);
}
html.dark .toctree-wrapper a:hover,
html.dark .doc-toc a:hover {
color: var(--accent-11);
}
/* Blockquote styling - accent-colored left border */
html.light blockquote {
border-left: 4px solid var(--accent-9);
background-color: var(--accent-a2);
padding: 1em 1em 1em 1.5em;
margin: 1em 0;
}
html.dark blockquote {
border-left: 4px solid var(--accent-10);
background-color: var(--accent-a3);
padding: 1em 1em 1em 1.5em;
margin: 1em 0;
}
/* Table header styling - accent colors */
html.light table thead th {
background-color: var(--accent-a2);
border-bottom: 2px solid var(--accent-9);
}
html.dark table thead th {
background-color: var(--accent-a3);
border-bottom: 2px solid var(--accent-10);
}
/* Admonition enhancements - accent-aligned colors */
html.light .admonition.note {
border-left-color: var(--sy-c-heading);
}
html.light .admonition.tip {
border-left-color: var(--accent-9);
}
html.dark .admonition.note {
border-left-color: var(--accent-9);
}
html.dark .admonition.tip {
border-left-color: var(--accent-10);
}
/* Ensure smooth transitions for theme switching */
code.literal,
.toctree-wrapper a,
.doc-toc a,
blockquote,
table thead th,
.admonition {
transition: all 0.3s ease;
}
|