Skip to content
Snippets Groups Projects
Commit 9a31d8cf authored by Anton Sarukhanov's avatar Anton Sarukhanov
Browse files

Add header permalinks, fix h1..h6 sizes, tweak codehilite.

parent 42340516
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ SITESUBTITLE = 'Full-Stack Developer' ...@@ -9,7 +9,7 @@ SITESUBTITLE = 'Full-Stack Developer'
PLUGINS = ['advthumbnailer'] PLUGINS = ['advthumbnailer']
MD_EXTENSIONS = ['toc', 'codehilite(linenums=False)', 'extra'] MD_EXTENSIONS = ['toc(permalink=🔗)', 'codehilite(linenums=False)', 'extra']
PATH = 'content' PATH = 'content'
THEME = 'theme' THEME = 'theme'
......
.codehilite .hll { background-color: #404040 } .codehilite .hll { background-color: #404040; display: block; width: 100%; }
.codehilite { background: #202020; color: #d0d0d0 } .codehilite { background: #202020; color: #d0d0d0; border-radius: .3em }
.codehilite pre { padding: .5em; font-size: .9em; }
.codehilite .c { color: #999999; font-style: italic } /* Comment */ .codehilite .c { color: #999999; font-style: italic } /* Comment */
.codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */ .codehilite .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.codehilite .esc { color: #d0d0d0 } /* Escape */ .codehilite .esc { color: #d0d0d0 } /* Escape */
......
...@@ -67,7 +67,6 @@ time { ...@@ -67,7 +67,6 @@ time {
} }
body > .hero { body > .hero {
width: calc(100% + 2em); width: calc(100% + 2em);
background-color: #444;
margin: 1em -1em; margin: 1em -1em;
} }
main .hero { main .hero {
...@@ -94,29 +93,30 @@ img.profile { ...@@ -94,29 +93,30 @@ img.profile {
margin: 1em; margin: 1em;
width: 150px; width: 150px;
} }
/* Headings */ /* Headings */
h1 { h1 {
font-size: 1.5em; font-size: 1.5em;
font-family: 'Headland One', serif; font-family: 'Headland One', serif;
} }
h2 { h2 {
font-size: 1.17; font-size: 1.17em;
font-family: 'Headland One', serif; font-family: 'Headland One', serif;
} }
h3 { h3 {
font-size: 1; font-size: 1em;
font-family: 'Headland One', serif; font-family: 'Headland One', serif;
} }
h4 { h4 {
font-size: .83; font-size: .83em;
font-family: 'Headland One', serif; font-family: 'Headland One', serif;
} }
h5 { h5 {
font-size: .67; font-size: .67em;
font-family: 'Headland One', serif; font-family: 'Headland One', serif;
} }
h6 { h6 {
font-size: .5; font-size: .5em;
font-family: 'Headland One', serif; font-family: 'Headland One', serif;
} }
h1:first-child, h1:first-child,
...@@ -128,6 +128,15 @@ h6:first-child { ...@@ -128,6 +128,15 @@ h6:first-child {
margin-top: 0; margin-top: 0;
} }
/* Heading Permalinks */
.headerlink {
margin-left: .5em;
display: none;
}
:hover > .headerlink {
display: inline;
}
/* Forms */ /* Forms */
form { form {
display: flex; display: flex;
...@@ -187,7 +196,6 @@ ul.posts-large li:not(.has-cover) { ...@@ -187,7 +196,6 @@ ul.posts-large li:not(.has-cover) {
ul.projects img, ul.projects img,
ul.posts-large img { ul.posts-large img {
width: 100%; width: 100%;
background-color: #444;
max-height: 10em; max-height: 10em;
object-fit: cover; object-fit: cover;
} }
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<li class="{% if article.cover %}has-cover{% endif %}"> <li class="{% if article.cover %}has-cover{% endif %}">
{% if article.cover %} {% if article.cover %}
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"> <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark">
<img src="{{ SITEURL + article.cover | thumbnail("800x400") }}" /> <img src="{{ SITEURL + article.cover | thumbnail("800x_") }}" />
</a> </a>
{% endif %} {% endif %}
<a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark"> <a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment