From fa1f86e85dc73adc014959a83e5ff3b8ce206cf1 Mon Sep 17 00:00:00 2001 From: PEGeoffroy Date: Mon, 16 Sep 2019 16:59:25 +0200 Subject: [PATCH] Simplify the header Delete bootstrap class for flexbox --- css/theme.css | 25 ++++++----------------- header.php | 55 ++++++++++++++------------------------------------- 2 files changed, 21 insertions(+), 59 deletions(-) diff --git a/css/theme.css b/css/theme.css index edc4f2f..1dbf004 100644 --- a/css/theme.css +++ b/css/theme.css @@ -47,6 +47,8 @@ body { padding: 1.3rem 0 1.3rem 0; height: 9rem; z-index: 2; + display: flex; + justify-content: center; } .header a { @@ -57,37 +59,20 @@ body { text-decoration: none; } -#main-header{ - display: flex; - justify-content: space-between; -} - #title{ display: flex; flex-direction: column; justify-content: center; } -/* .logo { - background: url("../img/logo-hadoly.png") top left no-repeat; - height: 10rem; - background-size: 8rem; - background-position: 2rem 0; - padding-left: 11rem; -} */ - @media (max-width: 921px) { - #subtitle { + #title h2 { display: none; } - - /* #title { - margin-top: 20px; - } */ } @media (max-width: 463px) { - #title { + #title h1 { display: none; } } @@ -97,6 +82,8 @@ body { .nav { text-align: right; padding-top: 1.7rem; + position: absolute; + right: 0; } ul.menu { diff --git a/header.php b/header.php index b00220d..fd568c6 100644 --- a/header.php +++ b/header.php @@ -20,46 +20,21 @@
- -
- -
- -
- - - -
- -
- - - -
- -
- + logo d'Hadoly + +
+

mainTitle('link'); ?>

+

subTitle(); ?>

+
\ No newline at end of file