Add styles for h3, nicer uls and code in articles
This commit is contained in:
parent
7e53bf1d19
commit
2017e49592
3 changed files with 38 additions and 1 deletions
|
|
@ -12,7 +12,7 @@
|
|||
{% block sidebar %}
|
||||
<div class="sticky">
|
||||
<h2>Content</h2>
|
||||
{{ content | toc | safe }}
|
||||
{{ content | toc(tags=['h2']) | safe }}
|
||||
<a href="{{ "/" | url }}">Go Back Home</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -187,6 +187,13 @@ article {
|
|||
padding: 24px 0
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 14px;
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
padding: 12px 0;
|
||||
}
|
||||
|
||||
ul, ol {
|
||||
padding: 0 0 0 32px;
|
||||
margin: 0 0 28px;
|
||||
|
|
@ -196,6 +203,17 @@ article {
|
|||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
|
||||
li:before {
|
||||
content: '·';
|
||||
position: absolute;
|
||||
padding-right: .6em;
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
}
|
||||
|
||||
.footnote-ref a {
|
||||
border-bottom: 0
|
||||
}
|
||||
|
|
@ -298,6 +316,24 @@ footer {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
pre {
|
||||
padding: 12px;
|
||||
margin: 12px 0 32px;
|
||||
background: $reduced-1;
|
||||
}
|
||||
|
||||
li > code,
|
||||
p > code {
|
||||
background: $reduced-1;
|
||||
padding: .3em;
|
||||
border-bottom: 2px $reduced-1;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue