From: Radek Czajka Date: Mon, 5 Feb 2024 07:33:49 +0000 (+0100) Subject: Text layout changes. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/f1cc3d495b3df83b3e745575c2ff3bdf4942b2fe?ds=inline Text layout changes. --- diff --git a/src/catalogue/templates/catalogue/book_text.html b/src/catalogue/templates/catalogue/book_text.html index 67372b3dd..a494e24b6 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -1,8 +1,11 @@ -{% extends "catalogue/viewer_base.html" %} +{% extends "base.html" %} + + {% load i18n l10n %} {% load catalogue_tags %} {% load chunks %} {% load thumbnail %} +{% load static %} {% load annoy_banners from annoy %} @@ -18,6 +21,7 @@ crossorigin=""> {% endblock %} + {% block menu %}
  • @@ -37,30 +41,6 @@
  • {% endif %} - - - - - - - - {% if extra_info.logo_mono %} {% thumbnail extra_info.logo_mono '200x200' as th %} {% trans "Numeracja" %} - {% trans "Motywy" %} - {% trans "Przypisy" %} - {% trans "Pinezki" %} + {% endblock menu %} -{% block big-pane %} + +{% block breadcrumb-right %} + +{% endblock %} + + + + +{% block main %} +
    +
    + + + +
    +
    + Szacowany czas do końca: 56 min +
    +
    + +
    + {{ book.pretty_title }} + +
    +

    {% for author in book.authors %}{{ author.name }}{% if not forloop.last %}, {% endif %}{% endfor %} +

    +

    {{ book.title }}

    + {% with translators=book.translators %} + {% if translators %} +

    + {% if translators.0 != 'tłumacz nieznany' %} + {% trans "tłum." %} + {% endif %} + {% for translator in translators %} + {{ translator }}{% if not forloop.last %}, {% endif %} + {% endfor %} +

    + {% endif %} + {% endwith %} +
    + {% content_warning book %} +
    + +
    +
    +
    {% with next=book.get_next_text prev=book.get_prev_text %} {% if next %} - {{ next.title }} → + {{ next.title }} → {% endif %} {% if prev %} - ← {{ prev.title }} + ← {{ prev.title }} {% endif %} -
    - {% content_warning book %} -
    -
    {{ book_text|safe }} {% endwith %} -
    -
    - {% trans "Zamknij" %} -
    {% trans "Proszę czekać..." %}
    - -
    -
    -
    - x -
    + + + + +
    +
    + x +
    +
    +
    - -
    + {% if book.other_versions.exists %} +
    +

    {% trans "Inne wersje utworu" %}

    + {% trans "Zamknij drugą wersję" %} + +
    + {% endif %} + +
    + {% annoy_banners 'book-text-intermission' %} + + {% for insert in inserts %} + {% include 'annoy/dynamic_insert.html' %} + {% endfor %} +
    + + -{% endblock big-pane %} -{% block footer %} {% if book.has_sync_file %}
    {% include 'catalogue/snippets/jplayer_reader.html' %} @@ -129,78 +242,6 @@ {{ book.get_sync|safe }} {% endif %} -
    - {% if book.parent %} - {% for b in book.ancestors %} - {% if forloop.counter > 1 %} -
  • - {% endif %} - {{ b.title }} -
      - {% endfor %} - {% for b in book.get_siblings %} -
    1. - {% if b == book %} - {{ b.title }} -
      - {% else %} - {{ b.title }} - {% endif %} -
    2. - {% endfor %} - - {% for b in book.ancestor.all %} -
    - {% if not forloop.counter.last %} -
  • - {% endif %} - {% endfor %} - {% else %} - {{ book.title }} -
    -
      - {% for c in book.get_children %} -
    1. {{ c.title }}
    2. - {% endfor %} -
    - {% endif %} -
    - -
    - {% book_info book %} -
    - - {% if book.other_versions.exists %} -
    -

    {% trans "Inne wersje utworu" %}

    - {% trans "Zamknij drugą wersję" %} - -
    - {% endif %} - -
    - {% include 'catalogue/book_short.html' %} -
    - -
    - {% annoy_banners 'book-text-intermission' %} - - {% for insert in inserts %} - {% include 'annoy/dynamic_insert.html' %} - {% endfor %} -
    @@ -228,4 +269,5 @@ {% endlocalize %} -{% endblock footer %} + +{% endblock main %} diff --git a/src/wolnelektury/settings/static.py b/src/wolnelektury/settings/static.py index 584d71e16..dfc84d1c5 100644 --- a/src/wolnelektury/settings/static.py +++ b/src/wolnelektury/settings/static.py @@ -29,17 +29,21 @@ PIPELINE = { '2022/styles/main.scss', '2022/more.scss', 'chunks/edit.scss', + + 'scss/text.scss', ], 'output_filename': 'css/compressed/main.css', }, 'book_text': { 'source_filenames': [ 'css/import/gelasio.css', + 'scss/book_text.scss', 'css/new.book.css', - 'annoy/banner.scss', - 'annoy/book_text.scss', - '2022/styles/reader_player.scss', + + 'annoy/banner.scss', # ? + 'annoy/book_text.scss', # ? + '2022/styles/reader_player.scss', # ? 'css/master.picture.css', ], @@ -66,6 +70,12 @@ PIPELINE = { 'js/contrib/jquery.cycle2.min.js', 'sponsors/js/sponsors.js', 'annoy/banner.js', + 'js/book_text/info.js', + 'js/book_text/menu.js', + 'js/book_text/note.js', + 'js/book_text/references.js', + 'js/book_text/settings.js', + 'js/book_text/toc.js', 'js/contrib/jquery.countdown.js', 'js/contrib/jquery.countdown-pl.js', 'js/contrib/jquery.countdown-de.js', 'js/contrib/jquery.countdown-uk.js', diff --git a/src/wolnelektury/static/2022/images/about.svg b/src/wolnelektury/static/2022/images/about.svg new file mode 100644 index 000000000..16f2e3984 --- /dev/null +++ b/src/wolnelektury/static/2022/images/about.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/wolnelektury/static/2022/images/pin.svg b/src/wolnelektury/static/2022/images/pin.svg new file mode 100644 index 000000000..664080b02 --- /dev/null +++ b/src/wolnelektury/static/2022/images/pin.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/wolnelektury/static/2022/images/settings.svg b/src/wolnelektury/static/2022/images/settings.svg new file mode 100644 index 000000000..32101cb7d --- /dev/null +++ b/src/wolnelektury/static/2022/images/settings.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/wolnelektury/static/2022/images/toc.svg b/src/wolnelektury/static/2022/images/toc.svg new file mode 100644 index 000000000..d09caa68b --- /dev/null +++ b/src/wolnelektury/static/2022/images/toc.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/wolnelektury/static/2022/more.scss b/src/wolnelektury/static/2022/more.scss index 60c7a1ee9..1e6b692c4 100644 --- a/src/wolnelektury/static/2022/more.scss +++ b/src/wolnelektury/static/2022/more.scss @@ -152,7 +152,7 @@ body.is-open { position:absolute; top: 60px; - z-index: 1; + z-index: 50; position: absolute; width: 186px; @@ -259,10 +259,10 @@ form { .funding-promo-bar { - margin: 18px auto; + margin: auto; .l-checkout__support { - margin: 0; + margin: 18px 0; a { display: flex; align-items: start; diff --git a/src/wolnelektury/static/2022/styles/base/_fonts.scss b/src/wolnelektury/static/2022/styles/base/_fonts.scss index a684ca5f1..eb30a6399 100644 --- a/src/wolnelektury/static/2022/styles/base/_fonts.scss +++ b/src/wolnelektury/static/2022/styles/base/_fonts.scss @@ -57,3 +57,12 @@ src: url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */ url('/static/fonts/source-sans-pro/source-sans-pro-v21-cyrillic_greek_greek-ext_latin_latin-ext-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } + + + +@font-face { + font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ + font-family: 'Source Serif Pro'; + font-style: normal; + src: url('/static/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2') format('woff2'); +} diff --git a/src/wolnelektury/static/2022/styles/layout/_container.scss b/src/wolnelektury/static/2022/styles/layout/_container.scss index 7de09e3b7..e52f63749 100644 --- a/src/wolnelektury/static/2022/styles/layout/_container.scss +++ b/src/wolnelektury/static/2022/styles/layout/_container.scss @@ -5,3 +5,9 @@ padding-left: 16px; padding-right: 16px; } + +.l-breadcrumb-container { + display: flex; + justify-content: space-between; + align-items: center; +} diff --git a/src/wolnelektury/static/2022/styles/layout/_module.scss b/src/wolnelektury/static/2022/styles/layout/_module.scss index 3111fd3f1..fcefb2f3e 100644 --- a/src/wolnelektury/static/2022/styles/layout/_module.scss +++ b/src/wolnelektury/static/2022/styles/layout/_module.scss @@ -29,3 +29,4 @@ @import "simple"; @import "taglist"; @import "search"; +@import "text"; diff --git a/src/wolnelektury/static/2022/styles/layout/_text.scss b/src/wolnelektury/static/2022/styles/layout/_text.scss new file mode 100644 index 000000000..3fcae7c68 --- /dev/null +++ b/src/wolnelektury/static/2022/styles/layout/_text.scss @@ -0,0 +1,555 @@ +#global-progress { + display: none; + position: sticky; + top: 0; + background: white; + z-index: 1; + border-bottom: 1px solid #F2F2F2; + + .progress-text { + line-height: 24px; + padding: 4px; + color: #083F4D; + font-size: 16px; + .progress-text-value { + font-weight: 600; + } + } + + .bar { + display: flex; + height: 18px; + gap: 4px; + padding: 4px; + + .piece { + position: relative; + background: #F2F2F2; + overflow: hidden; + border-radius: 2px; + + .filled { + position: absolute; + left: 0; + top: 0; + bottom: 0; + background: #92BD39; + } + } + } +} + +.l-text_toolbar { + display: flex; + gap: 16px; + margin-right: -7px; + position: relative; + a { + img { + display: block; + } + } + + .box { + z-index: 5; + } +} + +#main-text { + position: relative; + margin-bottom: 30px; + .text_next-book { + position: absolute; + right: 0; + top: 0; + } + .text_prev-book { + position: absolute; + left: 0; + top: 0; + } + #book-text { + padding: 5px; + @include rwd($break-wide) { + width: 717px; + padding: 0; + } + margin: 0 auto; + + color: #333333; + + font-family: "Source Serif Pro"; + font-size: 18px; + line-height: 28px; + } +} + + +#toc { + display: none; + + +} +#menu .box { + display: none; + position: absolute; + right: 0px; + top: 50px; + width: 80vw; + height: 300px; + padding: 30px; + overflow: auto; + background: #F7BA00; + box-shadow: 0px 0px 20px rgba(1, 129, 137, 0.2); + border-radius: 10px; +} +#menu #wltoc { + right: 0px; + width: 50vw; + height: 300px; +} +#menu #settings { + width: 200px; + height: 200px; +} +#themes { + display: none; +} +#other-text { + display: none; +} +#reference-box { + display: none; +} +#menu #info { + padding-top: 0; + display: none; + position: absolute; + right: 0px; + top: 50px; + width: 80vw; + height: 300px; + padding: 0px 30px 30px; + overflow: auto; + background: #F7BA00; + box-shadow: 0px 0px 20px rgba(1, 129, 137, 0.2); + border-radius: 10px; + +} +#annoy-stubs { + display: none; +} +#nota_red { + display: none; +} + + +.l-text_header { + margin-top: 50px; + display: flex; + gap: 60px; + + .l-text_header_cover { + width: 167px; + height: 236px; + + } + .l-text_header__content { + flex-grow: 1; + } + + .l-text_header_author { + margin: 0; + font-weight: 600; + font-size: 21.5px; + line-height: 1.4; + a { + color: #007880; + } + } + .l-text_header_title { + margin: 0; + font-weight: 700; + font-size: 37px; + line-height: 1.3; + a { + color: #083F4D; + } + } + +} + + +#main-text #book-text { + body { + font-size: 16px; + font-family: Gelasio, Georgia, "Times New Roman", serif; + line-height: 1.5em; + margin: 0; +} + +a { + color: blue; + text-decoration: none; +} + +img { + max-width: 37.5rem; + margin-top: 1em; + width: 100%; +} +.animacja { + margin-top: 1em; +} +.animacja img { + margin-top: 0; +} + +/* ================================== */ +/* = Header with logo and menu = */ +/* ================================== */ + + +/* =================================================== */ +/* = Common elements: headings, paragraphs and lines = */ +/* =================================================== */ +h1 { + font-size: 3em; + margin: 1.5em 0; + text-align: center; + line-height: 1.5em; + font-weight: bold; +} + +h2 { + font-size: 2em; + margin: 1.5em 0 0; + font-weight: bold; + line-height: 1.5em; +} + +h3, .subtitle2 { + font-size: 1.5em; + margin: 1.5em 0 0; + font-weight: normal; + line-height: 1.5em; +} + +h4, .subtitle3 { + font-size: 1em; + margin: 1.5em 0 0; + line-height: 1.5em; +} + +.subtitle4 { + font-weight: bold; +} + +p { + margin: 0; +} + +/* ======================== */ +/* = Footnotes and themes = */ +/* ======================== */ + +.annotation { + font-style: normal; + font-weight: normal; + font-size: .75em; + padding-left: 2px; + position: relative; + top: -4px; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; +} + +#footnotes { + margin-top: 3em; +} + +#footnotes .annotation { + display: block; + float: left; + width: 2.5em; + clear: both; + user-select: auto; + -webkit-user-select: text; + -moz-user-select: text; + -ms-user-select: text; +} + +#footnotes > div { + margin: 1.5em 0 0 0; +} + +#footnotes p, #footnotes ul, #footnotes .stanza { + margin-left: 2.5em; + font-size: 0.875em; +} + +#footnotes .permalink { + font-size: .75em; +} + +blockquote { + font-size: 0.875em; +} + +/* ============= */ +/* = Numbering = */ +/* ============= */ +.verse, .paragraph { + position:relative; +} +/*.anchor { + position: absolute; + margin: -0.25em -0.5em; + color: #777; + font-size: 12px; + text-align: center; + padding: 0.25em 0.5em; + line-height: 1.5em; +}*/ + + +/* =================== */ +/* = Custom elements = */ +/* =================== */ +span.author { + font-size: 0.5em; + display: block; + line-height: 1.5em; + margin-bottom: 0.25em; +} + +span.collection { + font-size: 0.375em; + display: block; + line-height: 1.5em; + margin-bottom: -0.25em; +} + +span.subtitle { + font-size: 0.5em; + display: block; + line-height: 1.5em; + margin-top: -0.25em; +} + +span.translator { + font-size: 0.375em; + display: block; + line-height: 1.5em; + margin-top: 0.25em; +} + +div.didaskalia { + font-style: italic; + margin: 0.5em 0 0 1.5em; +} + +div.kwestia { + margin: 0.5em 0 0; +} + +div.stanza { + margin: 1.5em 0; +} + +div.kwestia div.stanza { + margin: 0; +} + +.verse-p { + padding-left: 1em; +} +.verse-indent { + padding-left: 1em; +} +.verse-right { text-align: right; } +.verse-center { text-align: center; } + +.verse-indent.verse-indent-2 { padding-left: 2em; } +.verse-indent.verse-indent-3 { padding-left: 3em; } +.verse-indent.verse-indent-4 { padding-left: 4em; } +.verse-indent.verse-indent-5 { padding-left: 5em; } +.verse-indent.verse-indent-6 { padding-left: 6em; } +.verse-indent.verse-indent-7 { padding-left: 7em; } +.verse-indent.verse-indent-8 { padding-left: 8em; } +.verse-indent.verse-indent-9 { padding-left: 9em; } +.verse-indent.verse-indent-10 { padding-left: 10em; } +.verse-indent.verse-indent-11 { padding-left: 11em; } +.verse-indent.verse-indent-12 { padding-left: 12em; } +.verse-cont { padding-left: 12em; } + +@media screen and (max-width: 40em) { + .verse-indent { padding-left: 4%; } + .verse-indent.verse-indent-2 { padding-left: 8%; } + .verse-indent.verse-indent-3 { padding-left: 12%; } + .verse-indent.verse-indent-4 { padding-left: 16%; } + .verse-indent.verse-indent-5 { padding-left: 20%; } + .verse-indent.verse-indent-6 { padding-left: 24%; } + .verse-indent.verse-indent-7 { padding-left: 28%; } + .verse-indent.verse-indent-8 { padding-left: 32%; } + .verse-indent.verse-indent-9 { padding-left: 36%; } + .verse-indent.verse-indent-10 { padding-left: 40%; } + .verse-indent.verse-indent-11 { padding-left: 44%; } + .verse-indent.verse-indent-12 { padding-left: 48%; } + .verse-cont { padding-left: 48%; } +} + + +p.paragraph { + text-align: justify; + margin: 0; + text-indent: 1.5em; +} + +.motto { + text-align: justify; + font-style: italic; + margin: 1.5em 0 0; +} + +p.motto_podpis { + font-size: 0.875em; + text-align: right; + margin-bottom: 1.5em; +} + +div.fragment { + border-bottom: 0.1em solid #999; + padding-bottom: 1.5em; +} + +div.note p, div.dedication p, div.note p.paragraph, div.dedication p.paragraph { + text-align: right; + font-style: italic; +} + +div.frame { + border: 1px darkgray solid; + padding: 1em; + margin-top: 1em; + margin-bottom: 1em; +} + +hr.spacer { + height: 3em; + visibility: hidden; +} + +hr.spacer-line { + margin: 1.5em 0; + border: none; + border-bottom: 0.1em solid #000; +} + +p.spacer-asterisk { + padding: 0; + margin: 1.5em 0; + text-align: center; +} + +div.person-list ol { + list-style: none; + padding: 0 0 0 1.5em; +} + +p.place-and-time { + font-style: italic; +} + +em.math, em.foreign-word, em.book-title, em.didaskalia { + font-style: italic; +} + +em.author-emphasis { + letter-spacing: 0.1em; +} + +em.person { + font-style: normal; + font-variant: small-caps; +} + +em.wieksze-odstepy { + font-style: normal; + word-spacing: 1em; +} + +.verse:after { + content: "\feff"; +} + +table { + border-collapse: collapse; + width: 100%; +} + +table.border td, table.border th { + border: 1px solid black; + vertical-align: top; +} + + +.anchor { + /* Show line numbers. */ + float: left; + font-size: .8em; + margin-left: -40px; + width: 36px; + height: auto; + padding: 2px; + text-align: center; + color: #ccc; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + +} + +} + + + + +#menu { +#wltoc ol, #themes ol, #objects ol { + list-style: none; + padding: 0; + margin: 0; +} +#wltoc ol { + padding-left: 1.5em; +} + +#wltoc ol ol { + padding: 0 0 1.5em 1.5em; + margin: 0; +} + +#wltoc ol ol li { + font-weight: normal; +} + +#wltoc h2 { + display: none; +} + +#wltoc .anchor { + float: none; + margin: 0; + font-size: 16px; + position: inherit; +} + + +#info .sponsors img { + margin-bottom: 1em; +} +} diff --git a/src/wolnelektury/static/fonts/source-serif-pro/SIL Open Font License.txt b/src/wolnelektury/static/fonts/source-serif-pro/SIL Open Font License.txt new file mode 100644 index 000000000..a53e4fb85 --- /dev/null +++ b/src/wolnelektury/static/fonts/source-serif-pro/SIL Open Font License.txt @@ -0,0 +1,43 @@ +Copyright 2014 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide development of collaborative font projects, to support the font creation efforts of academic and linguistic communities, and to provide a free and open framework in which fonts may be shared and improved in partnership with others. + +The OFL allows the licensed fonts to be used, studied, modified and redistributed freely as long as they are not sold by themselves. The fonts, including any derivative works, can be bundled, embedded, redistributed and/or sold with any software provided that any reserved names are not used by derivative works. The fonts and derivatives, however, cannot be released under any other type of license. The requirement for fonts to remain under this license does not apply to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright Holder(s) under this license and clearly marked as such. This may include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the copyright statement(s). + +"Original Version" refers to the collection of Font Software components as distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, or substituting -- in part or in whole -- any of the components of the Original Version, by changing formats or by porting the Font Software to a new environment. + +"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining a copy of the Font Software, to use, study, copy, merge, embed, modify, redistribute, and sell modified and unmodified copies of the Font Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, redistributed and/or sold with any software, provided that each copy contains the above copyright notice and this license. These can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font Name(s) unless explicit written permission is granted by the corresponding Copyright Holder. This restriction only applies to the primary font name as presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font Software shall not be used to promote, endorse or advertise any Modified Version, except to acknowledge the contribution(s) of the Copyright Holder(s) and the Author(s) or with their explicit written permission. + +5) The Font Software, modified or unmodified, in part or in whole, must be distributed entirely under this license, and must not be distributed under any other license. The requirement for fonts to remain under this license does not apply to any document created using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. \ No newline at end of file diff --git a/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Italic.otf.woff2 b/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Italic.otf.woff2 new file mode 100644 index 000000000..53945e3a2 Binary files /dev/null and b/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Italic.otf.woff2 differ diff --git a/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2 b/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2 new file mode 100644 index 000000000..9fcf4743d Binary files /dev/null and b/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Italic.ttf.woff2 differ diff --git a/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Roman.otf.woff2 b/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Roman.otf.woff2 new file mode 100644 index 000000000..b5304ddc1 Binary files /dev/null and b/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Roman.otf.woff2 differ diff --git a/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2 b/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2 new file mode 100644 index 000000000..cca344bfa Binary files /dev/null and b/src/wolnelektury/static/fonts/source-serif-pro/SourceSerif4Variable-Roman.ttf.woff2 differ diff --git a/src/wolnelektury/static/js/book_text/toc.js b/src/wolnelektury/static/js/book_text/toc.js index d03bbb9bd..d50edeba8 100644 --- a/src/wolnelektury/static/js/book_text/toc.js +++ b/src/wolnelektury/static/js/book_text/toc.js @@ -5,11 +5,11 @@ } if ($('#wltoc li').length > 0) { - $('#menu-toc').show(); + $('a[href="#wltoc"]').show(); } if ($('#wltoc li a').length == 0) { - $('#menu li a[href="#wltoc"]').remove(); + $('a[href="#wltoc"]').remove(); } $("#toc").remove(); diff --git a/src/wolnelektury/templates/base.html b/src/wolnelektury/templates/base.html index fa433b425..f1a7bf685 100644 --- a/src/wolnelektury/templates/base.html +++ b/src/wolnelektury/templates/base.html @@ -39,11 +39,13 @@ {% endif %} {% block global-content %} -
    +