summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-11-03 22:30:22 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-11-17 21:21:51 +0100
commit9d0c584ffbd251b12e387f31d19d2c2201fbe46f (patch)
treed9308effd92cace91a63f84dd119c9f6281609a7
parentcdff8a8483ec50ac4277079ed31b9b653b1d96de (diff)
downloadquatuorbellefeuille.com-9d0c584ffbd251b12e387f31d19d2c2201fbe46f.tar.xz
Crack open vertical alignment of flex items… again
"align-" ⇒ "along the cross-axis" can get rid of that superstitious "margin: auto" now. - add quatuor name - allow nav items to wrap - make background color less garish
-rw-r--r--artistes.css2
-rw-r--r--artistes.html9
-rw-r--r--commun.css12
3 files changed, 17 insertions, 6 deletions
diff --git a/artistes.css b/artistes.css
index 782ff99..043c0cb 100644
--- a/artistes.css
+++ b/artistes.css
@@ -17,7 +17,7 @@ body {
#photos {
width: 30%;
flex-shrink: 0;
- background: #fd4;
+ background: #eee;
}
#bio {
diff --git a/artistes.html b/artistes.html
index 91ae52a..ec1db8b 100644
--- a/artistes.html
+++ b/artistes.html
@@ -4,8 +4,13 @@
</head>
<body>
<header>
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Golden_Sun_icon.png"
- alt="logo">
+
+ <div class="brand">
+ <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Golden_Sun_icon.png"
+ alt="logo">
+ <h1 class="qname">Quatuor Camelot</h1>
+ </div>
+
<nav>
<ol>
<li>accueil</li>
diff --git a/commun.css b/commun.css
index ac84289..6f83f21 100644
--- a/commun.css
+++ b/commun.css
@@ -1,11 +1,16 @@
header {
display: flex;
- width: 100%;
+ align-items: center;
}
-header img {
+header .brand {
+ display: flex;
+ align-items: center;
+ max-width: 40%;
+}
+
+.brand img {
height: 3em;
- margin: auto;
}
nav {
@@ -14,6 +19,7 @@ nav {
nav ol {
display: flex;
+ flex-wrap: wrap;
padding-left: 0;
text-align: center;
list-style-type: none;