summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-11-18 20:17:09 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-11-18 20:17:09 +0100
commit3b43a7375eef01df06f216dec1adf380fe9d5da7 (patch)
tree1fd9223761c1a8156c2a7da55e2719838f76156c
parentabd9e189b472d90cc592d50555ca107e83bba3a2 (diff)
downloadquatuorbellefeuille.com-3b43a7375eef01df06f216dec1adf380fe9d5da7.tar.xz
Mitigate ugly title wrapping
IIUC, CSS starts by computing block dimensions; when "Quatuor XXXX" becomes too big, it picks the max-width; *then* CSS barfs the text into the block, and finally notices that the text will wrap. Cue ugly blank space on the right. https://old.reddit.com/r/css/comments/2y1d6w/fit_block_width_to_content_when_text_wraps_due_to/
-rw-r--r--commun.css2
1 files changed, 1 insertions, 1 deletions
diff --git a/commun.css b/commun.css
index 7248bfc..f0a0f19 100644
--- a/commun.css
+++ b/commun.css
@@ -15,7 +15,6 @@ header.banner {
header.banner .brand {
display: flex;
align-items: center;
- max-width: 40%;
}
header.banner .brand img {
@@ -23,6 +22,7 @@ header.banner .brand img {
}
header.banner .brand h1 {
transition: color 1s;
+ text-align: center;
}
header.banner .brand:hover img {
filter: brightness(100%) sepia(100%);