Commit eba1c94d authored by Jérôme Chauveau's avatar Jérôme Chauveau
Browse files

set article max-with

parent a1e0a782
Loading
Loading
Loading
Loading
+2
Changes for certic.xsl: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -90,11 +90,13 @@
    <xsl:template match="article">
        <div class="article-and-metas">
            <div class="left-contents">
                <div class="article-wrap">
                    <h1>
                        <xsl:value-of select="./front/article-meta//article-title"/>
                    </h1>
                    <xsl:apply-templates select="./body"/>
                </div>
            </div>
            <div class="right-contents">
                <xsl:apply-templates select="./front"/>
            </div>
+44 −11
Changes for resources/styles/article.css: 44 added lines, 11 removed lines.
Original line number Diff line number Diff line
:root {
    --dark-theme-bg: #22272e;
    --dark-theme-txt: #adbac7;
    --nav-height: 4em;
}


header,section.authors, section.abstract, h1.page_title, h2.subtitle, .pkp_structure_footer_wrapper {
header,section.authors, section.abstract, h1.page_title, h2.subtitle, .pkp_structure_footer_wrapper, .entry_details {
    display:none;
}

@@ -25,6 +26,25 @@ header,section.authors, section.abstract, h1.page_title, h2.subtitle, .pkp_struc
}

/*********/
nav {
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    border-bottom : 1px solid black;
    background-color: white;
}

body.dark nav{
    border-color : var(--dark-theme-txt);
    background-color: var(--dark-theme-bg);
}


nav li {
    display: inline-block;
    padding:5px;
}

#mode-color-btns{
    position: fixed;
    top:15px;
@@ -45,16 +65,13 @@ body.dark{
}

.wrap {
    padding: 100px 20px 20px 100px ;
    padding: calc(var(--nav-height)) 20px 0px 20px;
    font-family: "Noto Sans",-apple-system,BlinkMacSystemFont,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif;
}

/*.wrap > h1 {*/
    /*font-size: 4rem;*/
    /*margin-bottom: 50px ;*/
    /*padding-left:50px ;*/
    /*line-height: normal;*/
/*}*/
section.back{
    display: none;
}

.article-and-metas{
    display: flex;
@@ -63,18 +80,34 @@ body.dark{

.left-contents {
    width: 60%;

    overflow-y: auto;
    max-height: calc(100vh - var(--nav-height));
    scrollbar-color: #87ceeb #87ceeb;
}
.article-wrap{
    max-width: 820px;
    margin-left: auto;
}

.right-contents {
    width: 40%;
    width: 35%;
    position: fixed;
    right:0px;
    top: calc(var(--nav-height) + 1px);
    overflow-y: auto;
    scrollbar-width: thin;
    height: calc(100vh - var(--nav-height));
}

.left-contents h1{
    font-size: 3.2rem;
    margin-bottom: 50px ;
    line-height: normal;
    padding-top:5px;
}

/*.left-contents section.body, .left-contents h1{*/
    /*width: 65%;*/
/*}*/
section.body, section.front {
    padding-right: 15px ;
}