diff --git a/article.html b/article.html index 8a544b9..7fcdc8f 100644 --- a/article.html +++ b/article.html @@ -28,11 +28,13 @@
- - Articles -
- -
+ [(#CONFIG{html5up/sousnavmasquee}|=={on}|oui) + Articles +
+ +
][(#CONFIG{html5up/sousnavmasquee}|=={on}|non)
+ +
]
diff --git a/css/spip.css b/css/spip.css index 33fa10c..f6737d3 100644 --- a/css/spip.css +++ b/css/spip.css @@ -14,8 +14,10 @@ img { height: auto; } #intro + #header .logo { opacity:0 !important; display:none; } #intro.hidden + #header .logo { opacity:1 !important; display:block; } - -/* on veut ajaxer la liste/articles donc on prend en compte une div de + dans les styles */ +#main > .post { + padding-top:4rem; +} +/* on veut ajaxer la liste/articles donc on prend en compte une div de + dans les styles "> div " */ #main > * { padding:0; @@ -31,63 +33,63 @@ img { height: auto; } } #main > div > #pagination_articles { padding:0; border:0; } - #main > div > .posts { - display: -moz-flex; - display: -webkit-flex; - display: -ms-flex; - display: flex; - -moz-flex-wrap: wrap; - -webkit-flex-wrap: wrap; - -ms-flex-wrap: wrap; - flex-wrap: wrap; - -moz-align-items: -moz-stretch; - -webkit-align-items: -webkit-stretch; - -ms-align-items: -ms-stretch; - align-items: stretch; - text-align: center; - width: 100%; - padding: 0; - } - - #main > div > .posts > * { - -moz-flex-shrink: 1; - -webkit-flex-shrink: 1; - -ms-flex-shrink: 1; - flex-shrink: 1; - -moz-flex-grow: 0; - -webkit-flex-grow: 0; - -ms-flex-grow: 0; - flex-grow: 0; - } - - #main > div > .posts > * { - width: 50%; - } - - #main > div > .posts > * { - padding: 4rem; - width: 50%; - } - - #main > div > .posts > article { - border-color: #eeeeee; - border-left-width: 2px; - border-style: solid; - border-top-width: 2px; - text-align: center; - } - - #main > div > .posts > article > :last-child { - margin-bottom: 0; - } - - #main > div > .posts > article:nth-child(2n - 1) { - border-left-width: 0; - } - - #main > div > .posts > article:nth-child(-n + 2) { - border-top-width: 0; - } +#main > div > .posts { + display: -moz-flex; + display: -webkit-flex; + display: -ms-flex; + display: flex; + -moz-flex-wrap: wrap; + -webkit-flex-wrap: wrap; + -ms-flex-wrap: wrap; + flex-wrap: wrap; + -moz-align-items: -moz-stretch; + -webkit-align-items: -webkit-stretch; + -ms-align-items: -ms-stretch; + align-items: stretch; + text-align: center; + width: 100%; + padding: 0; +} + +#main > div > .posts > * { + -moz-flex-shrink: 1; + -webkit-flex-shrink: 1; + -ms-flex-shrink: 1; + flex-shrink: 1; + -moz-flex-grow: 0; + -webkit-flex-grow: 0; + -ms-flex-grow: 0; + flex-grow: 0; +} + +#main > div > .posts > * { + width: 50%; +} + +#main > div > .posts > * { + padding: 4rem; + width: 50%; +} + +#main > div > .posts > article { + border-color: #eeeeee; + border-left-width: 2px; + border-style: solid; + border-top-width: 2px; + text-align: center; +} + +#main > div > .posts > article > :last-child { + margin-bottom: 0; +} + +#main > div > .posts > article:nth-child(2n - 1) { + border-left-width: 0; +} + +#main > div > .posts > article:nth-child(-n + 2) { + border-top-width: 0; +} .introduction { margin: 0 0 2rem 0; } @@ -100,17 +102,23 @@ img { height: auto; } .pagination > span strong { display:inline-block; padding: 0 1.75rem; border:2px solid #eeeeee; height:3rem; color:#ddd; } -#sousnavToggle { position:absolute; top:1em; right:2em; } -#sousnavToggle:before { +#sousnavmasqueeToggle { position:absolute; top:1em; right:2em; } +#sousnavmasqueeToggle:before { content: '\f0c9'; margin-right: 0.5rem; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; font-family: FontAwesome; font-style: normal; font-weight: normal; text-transform: none !important; } -#sousnav { overflow:hidden; position:relative; } -#sousnav nav { margin-bottom:5em; margin-top:0; transition:margin 0.5s ease; } - - +#sousnavmasquee { overflow:hidden; position:relative; } +#sousnavmasquee nav { margin-bottom:5em; margin-top:0; transition:margin 0.5s ease; } +#sousnavmasquee nav ul li a { display:inline-block; padding:0.4rem; border-bottom:0; } + +#sousnav { margin-top:-3rem; margin-bottom:3rem; } +#sousnav nav ul { padding:0; margin:0; list-style:none; } +#sousnav nav ul:after { display:block; content:''; width:100%; clear:both; } +#sousnav nav ul li { float:left; padding:0; } +#sousnav nav ul li a { display:inline-block; padding:0.8rem 1.2rem; border-bottom:1px solid; } +#sousnav nav ul li a.active { } /* footer */ diff --git a/formulaires/configurer_html5up.html b/formulaires/configurer_html5up.html index b1c4fcc..f541047 100644 --- a/formulaires/configurer_html5up.html +++ b/formulaires/configurer_html5up.html @@ -57,6 +57,14 @@
+ <:html5up:menu:> +
+ [(#SAISIE{case, sousnavmasquee, + label=<:massively:sousnavmasquee:>, + explication=<:massively:sousnavmasquee_explications:>})] +
+
+
<:zcore:accueil:>
[(#SAISIE{input, titre_sommaire, diff --git a/inclure/sousnav.html b/inclure/sousnav.html index f5ab043..6e8bcbf 100644 --- a/inclure/sousnav.html +++ b/inclure/sousnav.html @@ -1,8 +1,8 @@ -