hugosoucycc

[ARCHIVED] Another old source code of <hugo.soucy.cc>.
Log | Files | Refs | Submodules

commit 118cde1c7675afc434c68e7420ec140e4bd10aba
parent 73a9762d0ea84a40836ff2fe38829e173b8e329d
Author: Hugo Soucy <hugo@soucy.cc>
Date:   Mon,  3 Apr 2017 21:11:06 -0400

Indent + add a class to the svg elements

Diffstat:
Mtemplates/mustache/partials/nav.button.mustache | 24+++++++++++-------------
Mtemplates/mustache/partials/nav.close.mustache | 18+++++++++---------
2 files changed, 20 insertions(+), 22 deletions(-)

diff --git a/templates/mustache/partials/nav.button.mustache b/templates/mustache/partials/nav.button.mustache @@ -1,16 +1,14 @@ - - <div class="layout"> - <a class="nav-button" href="#menu"> - <span class="nav-button__text"> - Menu <span class="visuallyhidden">principal</span> - </span> + <a class="nav-button" href="#menu"> + <span class="nav-button__text"> + Menu <span class="visuallyhidden">principal</span> + </span> - <span class="nav-button__burger"> - <svg fill="#fff" height="50" viewBox="0 0 24 24" width="50" xmlns="http://www.w3.org/2000/svg"> - <path d="M0 0h24v24H0z" fill="none"/> - <path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/> - </svg> - </span> - </a> + <span class="nav-button__burger"> + <svg class="nav-button__burger__ico" fill="#fff" height="50" viewBox="0 0 24 24" width="50" xmlns="http://www.w3.org/2000/svg"> + <path d="M0 0h24v24H0z" fill="none"/> + <path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/> + </svg> + </span> + </a> </div> diff --git a/templates/mustache/partials/nav.close.mustache b/templates/mustache/partials/nav.close.mustache @@ -1,12 +1,12 @@ <a class="nav__close" href="#" role="button"> - <span class="nav__close__text"> - Fermer <span class="visuallyhidden">le menu</span> - </span> + <span class="nav__close__text"> + Fermer <span class="visuallyhidden">le menu</span> + </span> - <span class="nav__x"> - <svg fill="currentColor" height="50" viewBox="0 0 24 24" width="50" xmlns="http://www.w3.org/2000/svg"> - <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> - <path d="M0 0h24v24H0z" fill="none"/> - </svg> - </span> + <span class="nav__x"> + <svg class="nav__x__ico" fill="currentColor" height="50" viewBox="0 0 24 24" width="50" xmlns="http://www.w3.org/2000/svg"> + <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> + <path d="M0 0h24v24H0z" fill="none"/> + </svg> + </span> </a>