Repository navigation
Expand file tree
/
Copy pathextra.css
More file actions
203 lines (170 loc) · 4.3 KB
/
Copy pathextra.css
File metadata and controls
203 lines (170 loc) · 4.3 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
/* Duckling Documentation Custom Styles */
/* Color scheme overrides */
:root {
--md-primary-fg-color: #14b8a6;
--md-primary-fg-color--light: #2dd4bf;
--md-primary-fg-color--dark: #0d9488;
--md-accent-fg-color: #06b6d4;
}
[data-md-color-scheme="slate"] {
--md-default-bg-color: #1a1a2e;
/* Stronger body / secondary text contrast on dark background (WCAG) */
--md-default-fg-color--light: rgba(255, 255, 255, 0.86);
}
/* Content links: not identifiable by color alone */
.md-typeset a {
text-decoration: underline;
text-underline-offset: 0.15em;
text-decoration-thickness: 1px;
font-weight: 500;
}
.md-typeset a:hover,
.md-typeset a:focus-visible {
text-decoration-thickness: 2px;
}
/* Sidebar: supplement color change with underline on interaction */
.md-nav__link:focus-visible {
outline: 2px solid var(--md-accent-fg-color);
outline-offset: 2px;
}
.md-nav__link--active {
text-decoration: underline;
text-decoration-thickness: 2px;
text-underline-offset: 0.12em;
}
/* Scrollable code / wide tables: keyboard focus for scroll (skip admonitions) */
.md-typeset div.highlight {
overflow-x: auto;
}
.md-typeset div.highlight:focus {
outline: 2px solid var(--md-accent-fg-color);
outline-offset: 2px;
}
/* Card grid styling */
.grid.cards > ul {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
gap: 1rem;
padding: 0;
}
.grid.cards > ul > li {
list-style: none;
border: 1px solid var(--md-default-fg-color--lightest);
border-radius: 0.5rem;
padding: 1rem;
transition: all 0.2s ease;
}
.grid.cards > ul > li:hover {
border-color: var(--md-accent-fg-color);
transform: translateY(-2px);
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* Clickable card links - whole tile is interactive */
.grid.cards .card-link {
display: block;
text-decoration: underline;
text-decoration-color: var(--md-primary-fg-color);
text-underline-offset: 0.18em;
color: inherit;
cursor: pointer;
}
.grid.cards .card-link:hover {
color: inherit;
text-decoration-thickness: 2px;
}
/* Code block styling */
.highlight pre {
border-radius: 0.5rem;
}
/* Table styling */
.md-typeset table:not([class]) {
border-radius: 0.5rem;
overflow: hidden;
}
.md-typeset table:not([class]) th {
background-color: var(--md-primary-fg-color);
color: white;
}
/* Admonition styling */
.md-typeset .admonition {
border-radius: 0.5rem;
}
/* Navigation improvements */
.md-nav__link {
transition: color 0.2s ease;
}
.md-nav__link:hover {
color: var(--md-accent-fg-color);
}
/* Search improvements */
.md-search__input {
border-radius: 0.5rem;
}
/* Footer styling */
.md-footer {
background-color: var(--md-default-bg-color);
}
/* Mermaid diagram styling */
.mermaid {
background: transparent !important;
}
/* Icon sizing in cards */
.grid.cards .lg {
font-size: 2rem;
}
.grid.cards .middle {
vertical-align: middle;
}
/* Language selector flag styling */
.md-header__select {
font-size: 0.9rem;
}
.md-header__select option {
font-size: 0.9rem;
}
/* Ensure flags display properly in language selector */
.md-header__select,
.md-header__option {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* Language selector button styling */
.md-header__button.md-header__button--lang {
font-size: 0.9rem;
}
/* Language selector flag display */
.md-header__lang-flag,
.md-header__lang-flag-display {
font-size: 1.5rem !important;
line-height: 1 !important;
display: inline-block !important;
vertical-align: middle !important;
width: 1.5rem !important;
height: 1.5rem !important;
text-align: center !important;
}
/* Hide default icon when flag is shown */
.md-header__button--lang .md-icon,
.md-header__button--lang svg,
.md-header__button--lang [data-md-icon] {
display: none !important;
visibility: hidden !important;
opacity: 0 !important;
}
/* Ensure flag is visible in button */
.md-header__button--lang .md-header__lang-flag {
display: inline-block !important;
visibility: visible !important;
opacity: 1 !important;
}
/* Style the language selector to show flag prominently */
.md-header__select-wrapper {
display: flex;
align-items: center;
gap: 0.5rem;
}
/* Responsive adjustments */
@media screen and (max-width: 76.1875em) {
.grid.cards > ul {
grid-template-columns: 1fr;
}
}