Skip to content

Commit 310631e

Browse files
committed
docs: fix teal color bleed by resetting color at container level
Made-with: Cursor
1 parent fd3250e commit 310631e

File tree

1 file changed

+11
-22
lines changed

1 file changed

+11
-22
lines changed

docs/_layouts/default.html

Lines changed: 11 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,15 @@
111111
.btn-hero-primary:hover { background: #2ea043; }
112112

113113
/* ── Content overrides ── */
114+
/* Set base text color at the container level to defeat Cayman's teal cascade */
115+
.main-content,
116+
.main-content * {
117+
color: #24292f;
118+
}
114119
.main-content {
115120
max-width: 920px;
116121
}
117-
/* Fix Cayman's teal color bleed on all heading levels */
118-
.main-content h1,
119-
.main-content h2,
120-
.main-content h3,
121-
.main-content h4,
122-
.main-content h5,
123-
.main-content h6 {
124-
color: #24292f !important;
125-
}
122+
/* Headings */
126123
.main-content h2 {
127124
border-bottom: 1px solid #d0d7de;
128125
padding-bottom: 0.4rem;
@@ -131,23 +128,16 @@
131128
.main-content h3 {
132129
margin-top: 1.5rem;
133130
}
134-
/* Fix teal text from Cayman link color cascade */
135-
.main-content p,
136-
.main-content li,
137-
.main-content dt,
138-
.main-content dd,
139-
.main-content td,
140-
.main-content th {
141-
color: #24292f !important;
142-
}
131+
/* Blockquote */
143132
.main-content blockquote {
144133
border-left: 4px solid #d0d7de;
145134
padding: 0.6rem 1rem;
146135
background: #f6f8fa;
147136
border-radius: 0 4px 4px 0;
148137
margin: 1rem 0;
149138
}
150-
.main-content blockquote p { margin: 0; color: #57606a !important; }
139+
.main-content blockquote p { margin: 0; color: #57606a; }
140+
/* Links — restore blue on top of the * reset */
151141
.main-content a { color: #0969da !important; }
152142
.main-content a:hover { text-decoration: underline; }
153143
/* Inline code */
@@ -157,21 +147,20 @@
157147
border-radius: 4px;
158148
padding: 1px 5px;
159149
font-size: 0.88em;
160-
color: #24292f !important;
161150
}
162-
/* Block code — distinct from page bg */
151+
/* Block code — distinct background from page */
163152
.main-content pre {
164153
background: #f0f2f5;
165154
border: 1px solid #d0d7de;
166155
border-radius: 6px;
167156
padding: 1rem 1.2rem;
157+
overflow-x: auto;
168158
}
169159
.main-content pre code {
170160
background: none;
171161
border: none;
172162
padding: 0;
173163
font-size: 0.85em;
174-
color: #24292f !important;
175164
}
176165
/* Tables */
177166
.main-content table {

0 commit comments

Comments
 (0)