Update website design and content

- Changed the main background color
- Added a quote background color
- Changed the color of the citation in bold
- Added a background image to the body that repeats
- Increased the maximum width of the body
- Made layout adjustments for mobile phones
- Added padding to blockquotes and made visual enhancement with quotes
- Adjusted the footer style
- Fixed an issue with the weight attribute of the feed icon img, it should be height
- Added a content div to wrap main body content
- Appended a version parameter to the css file in html to force browser cache refresh
- Updated menu and category descriptions in the website configuration file
- Updated styling of blockquote element and added open-end quotes
- Added new image file white-waves.webp and integrated it to the background design
- Tweaked the main body's max-width and font-size for better accessibility and readability on mobile devices
- Optimized placements for blockquote contents
- Adjusted fontSize of blockquote's open-quote and close-quote
- Updated categories description in pelicanconf.py file
- Removed unnecessary padding-right from 'time' style
This commit is contained in:
Alexis Métaireau 2023-10-12 15:25:12 +02:00
parent 145fc73707
commit cbe32a1694
4 changed files with 51 additions and 17 deletions

View file

@ -11,15 +11,16 @@
@import url("pygment.css"); @import url("pygment.css");
:root { :root {
--main-bg-color: #f5f2e9; --main-bg-color: #ffffff;
--border-color: #ACACAC; --border-color: #ACACAC;
--code-bg-color: #e5e5e2; --code-bg-color: #e5e5e2;
--quote-bg-color: #f6f6f6;
--link-color: #BB7DD4; --link-color: #BB7DD4;
--text-color: #2d2d2d; --text-color: #2d2d2d;
--menu-color: #7971D0; --menu-color: #7971D0;
--link-color-menu: #36194D; --link-color-menu: #36194D;
--headers-color: #000; --headers-color: #000;
--citation-bold-color: #bb7dd49a; --citation-bold-color: #f5ff889a;
--highlight: #8f9fa926; --highlight: #8f9fa926;
--highlight-hover: #84a59d; --highlight-hover: #84a59d;
--gray: #ACACAC; --gray: #ACACAC;
@ -39,15 +40,27 @@ body {
background: var(--main-bg-color); background: var(--main-bg-color);
color: var(--text-color); color: var(--text-color);
font-family: "Bricolage Grotesque",Arial,sans-serif; font-family: "Bricolage Grotesque",Arial,sans-serif;
background-image: url(/theme/white-waves.webp);
background-repeat: repeat;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
padding: 16px; padding: 16px;
max-width: 35em; max-width: 45em;
font-size: 20px; font-size: 20px;
} }
@media only screen and (max-width: 768px) {
/* For mobile phones: */
body {
padding: 5px;
max-width: 100%;
font-size: 20px;
}
}
.section { .section {
margin-top: 40px; margin-top: 40px;
} }
@ -87,7 +100,6 @@ time {
font-weight: bold; font-weight: bold;
border-bottom: 1px solid; border-bottom: 1px solid;
padding-bottom: 10px; padding-bottom: 10px;
padding-right: 5em;
} }
img { img {
@ -122,8 +134,12 @@ img {
blockquote { blockquote {
position: relative; position: relative;
margin: 1.5em 2ch 1.5em 2ch; margin: 1em 2ch 1em 2ch;
padding: 0; background-color: var(--quote-bg-color);
padding-left: 1em;
padding-right: 1em;
padding-top: 0.1em;
padding-bottom: 0.1em;
} }
blockquote strong { blockquote strong {
@ -132,19 +148,30 @@ blockquote strong {
} }
blockquote::before { blockquote::before, blockquote::after {
font-size: 2em;
position: absolute; position: absolute;
top: 0;
left: -2ch;
bottom: 0;
width: 1ch;
overflow: hidden; overflow: hidden;
white-space: pre; white-space: pre;
line-height: 30px; line-height: 30px;
content: ">\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a>\a";
cursor: default; cursor: default;
} }
blockquote::before {
top: 0;
left: -1ch;
bottom: 0;
width: 1ch;
content: "«";
}
blockquote::after {
bottom: 0;
right: -1.2ch;
width: 1ch;
content: "»";
}
p { p {
line-height: 30px; line-height: 30px;
@ -315,7 +342,6 @@ footer {
color: var(--headers-color); color: var(--headers-color);
font-size: 13px; font-size: 13px;
letter-spacing:4px; letter-spacing:4px;
margin-left: 20px;
} }
footer li { footer li {
@ -415,7 +441,7 @@ a[data-size='5'] {
} }
#feed img { #feed img {
weight: 25px; height: 25px;
width: 25px; width: 25px;
} }
@ -426,6 +452,13 @@ a[data-size='5'] {
max-height: 192px; max-height: 192px;
} }
dd { dd {
padding-bottom: 1em; padding-bottom: 1em;
} }
#content {
background-color: var(--main-bg-color);
padding: 0.5em 1em;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -5,7 +5,7 @@
<title>{% block title %}{{ SITENAME }}{%endblock%}</title> <title>{% block title %}{{ SITENAME }}{%endblock%}</title>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}" type="text/css" /> <link rel="stylesheet" href="{{ SITEURL }}/theme/css/{{ CSS_FILE }}?v2" type="text/css" />
<link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate" <link href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}" type="application/atom+xml" rel="alternate"
title="{{ SITENAME }} ATOM Feed" /> title="{{ SITENAME }} ATOM Feed" />
{% if FEED_RSS %} {% if FEED_RSS %}
@ -15,6 +15,7 @@
</head> </head>
<body> <body>
<div id="content">
<section id="links"> <section id="links">
<ul> <ul>
{% for (title, url, selected) in MENU %} {% for (title, url, selected) in MENU %}
@ -36,7 +37,7 @@
<footer> <footer>
<a id="feed" href="/feeds/all.atom.xml"><img src="/theme/rss.svg" /></a> <a id="feed" href="/feeds/all.atom.xml"><img src="/theme/rss.svg" /></a>
</footer> </footer>
</div>
</body> </body>
</html> </html>

View file

@ -50,7 +50,7 @@ CATEGORIES_DESCRIPTION = {
), ),
"journal": ( "journal": (
"Journal", "Journal",
"Quelques pensées partagées, bien souvent sur le monde du travail ou de la technologie.", "Quelques réfléxions, bien souvent autour du monde du travail ou de la technologie.",
), ),
"notes": ( "notes": (
"Carnet de notes", "Carnet de notes",