~acdw/old-blog-content

ff1b72cb030960b8e100fbdbdfb7a1d742a628df — Case Duckworth 1 year, 10 months ago d2e8ed0
Fix tocs when with covers
3 files changed, 19 insertions(+), 8 deletions(-)

A static/.htaccess
M static/css/style.scss
M templates/article.html
A static/.htaccess => static/.htaccess +4 -0
@@ 0,0 1,4 @@
ErrorDocument 401 /401.html
ErrorDocument 403 /403.html
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html

M static/css/style.scss => static/css/style.scss +11 -8
@@ 550,18 550,24 @@ blockquote::before { content: "\201C"; }
    content: "\2014\202F";
}

.cover {
    max-width: 40%;
    max-height: 25rem;
.content-side {
    float: right;
    max-width: 40%;
    display: flex;
    flex-flow: column nowrap;
    align-items: flex-end;
    margin-left: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: $color-bg-alt;
    position: relative;
    z-index: 100;
}

.cover {
    max-height: 25rem;
    padding: 1rem;
    background: $color-bg-alt;
}

::selection {
    background: #ff8;
}


@@ 576,10 582,7 @@ blockquote::before { content: "\201C"; }
}

#toc {
    float: right;
    position: relative;
    width: 12rem;
    max-width: 40%;
    margin-left: 1rem;
    margin-top: -1rem;
    margin-right: -1rem;

M templates/article.html => templates/article.html +4 -0
@@ 7,6 7,8 @@
        $endif$
    </header>
    <section class="acontent">
        <div class="content-side">

        $if(toc)$
        <details id="toc" open>
            <summary>Contents</summary>


@@ 25,6 27,8 @@
        $if(cover-link)$</a>$endif$
        $endif$

        </div>

        $if(series)$
        <div class="note series-note">
            <p>Part $seriesCurPos$ of the $seriesLength$-part