Skip to content

Commit c6233a6

Browse files
committed
docs: convert definition lists to structured format and style repository
Agent-Id: agent-1627e044-f3be-486f-bc42-330333e14c9b Linked-Note-Id: 2717f4f7-8d5a-48f5-9c56-ba2bf0d4afdd
1 parent 27c550c commit c6233a6

File tree

2 files changed

+220
-83
lines changed

2 files changed

+220
-83
lines changed

docs/_static/css/custom.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,67 @@ dd {
153153
}
154154
}
155155

156+
/* Lay out converted cpt-repo definition lists like two-column rows */
157+
.rst-content h1#creating-a-repository-stratum-0 ~ dl {
158+
display: grid;
159+
grid-template-columns: minmax(18ch, 32ch) minmax(0, 1fr);
160+
column-gap: 0;
161+
row-gap: 0.5rem;
162+
}
163+
164+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dt,
165+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dd {
166+
margin: 0 !important;
167+
padding: 0.5rem 0.85rem;
168+
}
169+
170+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dt:nth-of-type(odd),
171+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dd:nth-of-type(odd) {
172+
background-color: #f5f5f5;
173+
}
174+
175+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dt:nth-of-type(even),
176+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dd:nth-of-type(even) {
177+
background-color: #fbfbfb;
178+
}
179+
180+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dt {
181+
grid-column: 1;
182+
overflow-wrap: anywhere;
183+
border-radius: 4px 0 0 4px;
184+
}
185+
186+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dd {
187+
grid-column: 2;
188+
min-width: 0;
189+
border-left: 1px solid #e9e9e9;
190+
border-radius: 0 4px 4px 0;
191+
}
192+
193+
@media screen and (max-width: 760px) {
194+
.rst-content h1#creating-a-repository-stratum-0 ~ dl {
195+
grid-template-columns: minmax(0, 1fr);
196+
row-gap: 0.25rem;
197+
}
198+
199+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dt,
200+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dd {
201+
grid-column: 1;
202+
}
203+
204+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dt {
205+
margin-top: 1em !important;
206+
border-radius: 4px 4px 0 0;
207+
}
208+
209+
.rst-content h1#creating-a-repository-stratum-0 ~ dl > dd {
210+
border-left: 0;
211+
border-top: 1px solid #e9e9e9;
212+
border-radius: 0 0 4px 4px;
213+
margin-bottom: 0.75em !important;
214+
}
215+
}
216+
156217
/* Style the reference anchors */
157218
dt a[id] {
158219
color: inherit !important;

0 commit comments

Comments
 (0)