Skip to content

Commit fca7aad

Browse files
cleanup style and display of section toc
1 parent 812b319 commit fca7aad

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed

src/context/faq-index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ <h3><a href="#">For Licensees</a></h3>
261261
</aside>
262262

263263
<h2>About Creative Commons</h2>
264-
<details>
264+
<details open>
265265
<summary>Table of Contents</summary>
266266
<ul>
267267
<li>

src/css/style.css

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,47 @@
462462
font-size: 1.4em;
463463
}
464464

465+
.faq-index details {
466+
margin-bottom: 2em;
467+
468+
border: 2px solid var(--vocabulary-neutral-color-lighter-gray);
469+
border-radius: 5px;
470+
}
471+
472+
.faq-index details:open summary {
473+
margin-bottom: 1em;
474+
}
475+
476+
.faq-index summary {
477+
padding: .2em .5em;
478+
479+
background: var(--vocabulary-neutral-color-lighter-gray);
480+
481+
font-size: 1.2em;
482+
}
483+
484+
.faq-index summary:hover {
485+
cursor: pointer;
486+
}
487+
488+
.faq-index summary::marker {
489+
font-size: .8em;
490+
}
491+
492+
493+
.faq-index details ul {
494+
margin-left: 2em;
495+
}
496+
497+
.faq-index details ul li {
498+
line-height: 1.8;
499+
}
500+
501+
.faq-index main p {
502+
margin-top: 0;
503+
}
504+
505+
465506

466507

467508
@media (min-width: 1500px) {

0 commit comments

Comments
 (0)