Skip to content

Commit

Permalink
feat: reducing bullet list indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gvwilson committed Apr 8, 2024
1 parent 01b9dc6 commit f58388d
Showing 4 changed files with 27 additions and 11 deletions.
4 changes: 3 additions & 1 deletion docs/intro/index.html
Original file line number Diff line number Diff line change
@@ -57,9 +57,11 @@ <h1>Introduction</h1>
<li>Glossary reference: <a class="gl-ref" href="../glossary/#gl:ssg" markdown="1">static site generator text</a></li>
<li>Bibliography reference <span class="bib-ref">[<a class="bib-ref" href="../bib/#Wilson2019">Wilson2019</a>]</span></li>
<li>Reference to conclusion <a href="../finale/">Chapter&nbsp;2</a></li>
<li>Reference to license <a href="../license/">Appendix&nbsp;A</a></li>
<li>Reference to license <a href="../license/">Appendix&nbsp;A</a><ul>
<li>Reference to figure in same file <a class="fig-ref" href="../intro/#intro_concept_map">Figure&nbsp;1.1</a></li>
<li>Reference to table in another file <a class="tbl-ref" href="../finale/#finale_table">Table&nbsp;2.1</a></li>
</ul>
</li>
<li>Index entry <span class="ix-entry" ix-key="index_key_1" markdown="1">first index reference</span> and <span class="ix-entry" ix-key="index_key_2" markdown="1"><a href="https://www.drawio.com/">second index reference</a></span></li>
</ul>
<h2>Python and Output</h2>
15 changes: 11 additions & 4 deletions docs/mccole.css
Original file line number Diff line number Diff line change
@@ -42,27 +42,28 @@
--spacing-small: 0.25rem;
--spacing-medium: 0.5rem;
--spacing-large: 1rem;
--spacing-large-negative: -1.1rem;

/* Image properties */
--splash-width: 80%;
}

/* Small screen: display rows with one column. */
/* Small screen: display rows with one column */
@media screen {
.row {
width: 100%
}
}

/* Wide screen: display rows as rows. */
/* Wide screen: display rows as rows */
@media screen and (min-width: 60rem) {
.row {
display: flex;
flex-flow: row wrap;
}
}

/* Always display as row. */
/* Always display as row */
.row-always {
width: 100%;
display: flex;
@@ -204,6 +205,12 @@ img.splash {
width: var(--splash-width);
}

/* Reduce list indentation */
li {
list-style-type: disc;
margin-left: var(--spacing-large-negative);
}

/* Make navigation controls larger */
nav {
font-size: var(--size-subtitle);
@@ -265,7 +272,7 @@ th, td {
border: solid var(--border-thin) var(--gray-light);
}

/* Key points listing at chapter start. */
/* Key points listing at chapter start */
ul.keypoints {
background-color: var(--gray-light);
border: var(--border-medium) var(--gray-dark) solid;
15 changes: 11 additions & 4 deletions lib/mccole/resources/mccole.css
Original file line number Diff line number Diff line change
@@ -42,27 +42,28 @@
--spacing-small: 0.25rem;
--spacing-medium: 0.5rem;
--spacing-large: 1rem;
--spacing-large-negative: -1.1rem;

/* Image properties */
--splash-width: 80%;
}

/* Small screen: display rows with one column. */
/* Small screen: display rows with one column */
@media screen {
.row {
width: 100%
}
}

/* Wide screen: display rows as rows. */
/* Wide screen: display rows as rows */
@media screen and (min-width: 60rem) {
.row {
display: flex;
flex-flow: row wrap;
}
}

/* Always display as row. */
/* Always display as row */
.row-always {
width: 100%;
display: flex;
@@ -204,6 +205,12 @@ img.splash {
width: var(--splash-width);
}

/* Reduce list indentation */
li {
list-style-type: disc;
margin-left: var(--spacing-large-negative);
}

/* Make navigation controls larger */
nav {
font-size: var(--size-subtitle);
@@ -265,7 +272,7 @@ th, td {
border: solid var(--border-thin) var(--gray-light);
}

/* Key points listing at chapter start. */
/* Key points listing at chapter start */
ul.keypoints {
background-color: var(--gray-light);
border: var(--border-medium) var(--gray-dark) solid;
4 changes: 2 additions & 2 deletions src/intro/index.md
Original file line number Diff line number Diff line change
@@ -10,8 +10,8 @@ syllabus:
- Bibliography reference [%b Wilson2019 %]
- Reference to conclusion [%x finale %]
- Reference to license [%x license %]
- Reference to figure in same file [%f intro_concept_map %]
- Reference to table in another file [%t finale_table %]
- Reference to figure in same file [%f intro_concept_map %]
- Reference to table in another file [%t finale_table %]
- Index entry [%i index_key_1 "first index reference" %] and [%i index_key_2 "second index reference" url=draw_io %]

## Python and Output

0 comments on commit f58388d

Please sign in to comment.