rework blog theme

This commit is contained in:
kitoy 2025-12-22 17:51:43 +01:00
parent 9c36563ffd
commit 7d4a374d3e
6 changed files with 166 additions and 95 deletions

View File

@ -2,8 +2,10 @@
:root :root
{ {
--color-text: #010101;
--color-background: #fefefe; --color-background: #fefefe;
--color-title: #010101;
--color-text: #0f0f0f;
--color-link: #010101;
--font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; --font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
--font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif; --font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif;
} }
@ -23,7 +25,10 @@
font-weight: 400; font-weight: 400;
} }
h1, h2, h3, h4, h5{
color: var(--color-title);
}
hr { hr {
color: var(--color-text); color: var(--color-text);
} }
@ -32,7 +37,7 @@
a { a {
box-shadow: inset 0 0 0 0 var(--color-text); box-shadow: inset 0 0 0 0 var(--color-text);
color: --color-text; color: --color-link;
padding: 0 .25rem; padding: 0 .25rem;
margin: 0 -.25rem; margin: 0 -.25rem;
transition: color .3s ease-in-out, box-shadow .3s ease-in-out; transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
@ -46,7 +51,7 @@ a:hover {
} }
a { a {
color: var(--color-text); color: var(--color-link);
text-decoration: underline 2px; text-decoration: underline 2px;
font-weight: 700; font-weight: 700;
line-height: 1.5; line-height: 1.5;
@ -68,12 +73,6 @@ a {
} }
.copyleft {
display:inline-block;
transform: rotate(180deg);
padding-bottom: -15px;
}
pre { pre {
white-space: pre-wrap; /* css-3 */ white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
@ -114,17 +113,28 @@ a {
} }
.head-article {
.titre {
text-align: center; text-align: center;
} }
.text-article p {
padding-left: 2vw;
padding-right:2vw;
}
.text-article h2, h3, h4, h5 {
padding-left: 1vw;
padding-right:1vw;
}
.index { .index {
text-align: left; text-align: left;
} }
.articles img { .articles img {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -142,6 +152,7 @@ a {
} }
.pagination a { .pagination a {
border: 1px solid; border: 1px solid;
border-color: $color_title; border-color: $color_title;
@ -164,8 +175,10 @@ a {
bottom:0px; bottom:0px;
width: 100%; width: 100%;
text-align:center; text-align:center;
padding-bottom:1vw;
} }
@media only screen and (max-width: 980px) @media only screen and (max-width: 980px)
{ {

View File

@ -2,8 +2,10 @@
:root :root
{ {
--color-text: #fefefe;
--color-background: #010101; --color-background: #010101;
--color-title: #fefefe;
--color-text: #fdfdfd;
--color-link: #fefefe;
--font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; --font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
--font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif; --font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif;
} }
@ -23,7 +25,10 @@
font-weight: 400; font-weight: 400;
} }
h1, h2, h3, h4, h5{
color: var(--color-title);
}
hr { hr {
color: var(--color-text); color: var(--color-text);
} }
@ -32,7 +37,7 @@
a { a {
box-shadow: inset 0 0 0 0 var(--color-text); box-shadow: inset 0 0 0 0 var(--color-text);
color: --color-text; color: --color-link;
padding: 0 .25rem; padding: 0 .25rem;
margin: 0 -.25rem; margin: 0 -.25rem;
transition: color .3s ease-in-out, box-shadow .3s ease-in-out; transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
@ -46,12 +51,13 @@ a:hover {
} }
a { a {
color: var(--color-text); color: var(--color-link);
text-decoration: underline 2px; text-decoration: underline 2px;
font-weight: 700; font-weight: 700;
line-height: 1.5; line-height: 1.5;
} }
.date { .date {
margin-bottom: 0; margin-bottom: 0;
} }
@ -67,13 +73,6 @@ a {
} }
.copyleft {
display:inline-block;
transform: rotate(180deg);
padding-bottom: -15px;
}
pre { pre {
white-space: pre-wrap; /* css-3 */ white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
@ -113,17 +112,29 @@ a {
padding-left: 1.5vw; padding-left: 1.5vw;
} }
.titre { .head-article {
text-align: center; text-align: center;
} }
.text-article p {
padding-left: 2vw;
padding-right:2vw;
}
.text-article h2, h3, h4, h5 {
padding-left: 1vw;
padding-right:1vw;
}
.index { .index {
text-align: left; text-align: left;
} }
.articles img { .articles img {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -141,6 +152,7 @@ a {
} }
.pagination a { .pagination a {
border: 1px solid; border: 1px solid;
border-color: $color_title; border-color: $color_title;
@ -163,8 +175,10 @@ a {
bottom:0px; bottom:0px;
width: 100%; width: 100%;
text-align:center; text-align:center;
padding-bottom:1vw;
} }
@media only screen and (max-width: 980px) @media only screen and (max-width: 980px)
{ {

View File

@ -2,8 +2,10 @@
:root :root
{ {
--color-text: #ee794c;
--color-background: #010101; --color-background: #010101;
--color-title: #ee794c;
--color-text: #fdfdfd;
--color-link: #ee794c;
--font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; --font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
--font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif; --font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif;
} }
@ -19,38 +21,43 @@
body { body {
color: var(--color-text); color: var(--color-text);
background-color: var(--color-background); background-color: var(--color-background);
font-family: var(--font-basic);
font-weight: 400;
} }
h1, h2, h3, h4, h5{
color: var(--color-title);
}
hr { hr {
color: var(--color-text); color: var(--color-text);
} }
* {-moz-box-sizing: border-box; box-sizing: border-box;} * {-moz-box-sizing: border-box; box-sizing: border-box;}
a {
.articles a {
box-shadow: inset 0 0 0 0 var(--color-text); box-shadow: inset 0 0 0 0 var(--color-text);
color: --color-text; color: --color-link;
padding: 0 .25rem; padding: 0 .25rem;
margin: 0 -.25rem; margin: 0 -.25rem;
transition: color .3s ease-in-out, box-shadow .3s ease-in-out; transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
} }
.articles a:hover { a:hover {
color: var(--color-background); color: var(--color-background);
box-shadow: inset 300px 0 0 0 var(--color-text); box-shadow: inset 300px 0 0 0 var(--color-text);
text-decoration: none; text-decoration: none;
} }
.articles a { a {
color: var(--color-text); color: var(--color-link);
text-decoration: underline 2px; text-decoration: underline 2px;
font-weight: 700; font-weight: 700;
line-height: 1.5; line-height: 1.5;
} }
.date { .date {
margin-bottom: 0; margin-bottom: 0;
} }
@ -66,13 +73,6 @@
} }
.copyleft {
display:inline-block;
transform: rotate(180deg);
padding-bottom: -15px;
}
pre { pre {
white-space: pre-wrap; /* css-3 */ white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
@ -112,17 +112,29 @@
padding-left: 1.5vw; padding-left: 1.5vw;
} }
.titre { .head-article {
text-align: center; text-align: center;
} }
.text-article p {
padding-left: 2vw;
padding-right:2vw;
}
.text-article h2, h3, h4, h5 {
padding-left: 1vw;
padding-right:1vw;
}
.index { .index {
text-align: left; text-align: left;
} }
.articles img { .articles img {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -140,6 +152,7 @@
} }
.pagination a { .pagination a {
border: 1px solid; border: 1px solid;
border-color: $color_title; border-color: $color_title;
@ -162,8 +175,10 @@
bottom:0px; bottom:0px;
width: 100%; width: 100%;
text-align:center; text-align:center;
padding-bottom:1vw;
} }
@media only screen and (max-width: 980px) @media only screen and (max-width: 980px)
{ {

View File

@ -2,8 +2,10 @@
:root :root
{ {
--color-text: #e9d43a;
--color-background: #1e227b; --color-background: #1e227b;
--color-title: #e9d43a;
--color-text: #fdfdfd;
--color-link: #e9d43a;
--font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; --font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
--font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif; --font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif;
} }
@ -23,17 +25,19 @@
font-weight: 400; font-weight: 400;
} }
h1, h2, h3, h4, h5{
color: var(--color-title);
}
hr { hr {
color: var(--color-text); color: var(--color-text);
} }
* {-moz-box-sizing: border-box; box-sizing: border-box;} * {-moz-box-sizing: border-box; box-sizing: border-box;}
a { a {
box-shadow: inset 0 0 0 0 var(--color-text); box-shadow: inset 0 0 0 0 var(--color-text);
color: --color-text; color: --color-link;
padding: 0 .25rem; padding: 0 .25rem;
margin: 0 -.25rem; margin: 0 -.25rem;
transition: color .3s ease-in-out, box-shadow .3s ease-in-out; transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
@ -46,13 +50,14 @@ a:hover {
text-decoration: none; text-decoration: none;
} }
a { a {
color: var(--color-text); color: var(--color-link);
text-decoration: underline 2px; text-decoration: underline 2px;
font-weight: 700; font-weight: 700;
line-height: 1.5; line-height: 1.5;
} }
.date { .date {
margin-bottom: 0; margin-bottom: 0;
} }
@ -68,13 +73,6 @@ a:hover {
} }
.copyleft {
display:inline-block;
transform: rotate(180deg);
padding-bottom: -15px;
}
pre { pre {
white-space: pre-wrap; /* css-3 */ white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
@ -114,17 +112,29 @@ a:hover {
padding-left: 1.5vw; padding-left: 1.5vw;
} }
.titre { .head-article {
text-align: center; text-align: center;
} }
.text-article p {
padding-left: 2vw;
padding-right:2vw;
}
.text-article h2, h3, h4, h5 {
padding-left: 1vw;
padding-right:1vw;
}
.index { .index {
text-align: left; text-align: left;
} }
.articles img { .articles img {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -142,6 +152,7 @@ a:hover {
} }
.pagination a { .pagination a {
border: 1px solid; border: 1px solid;
border-color: $color_title; border-color: $color_title;
@ -164,8 +175,10 @@ a:hover {
bottom:0px; bottom:0px;
width: 100%; width: 100%;
text-align:center; text-align:center;
padding-bottom:1vw;
} }
@media only screen and (max-width: 980px) @media only screen and (max-width: 980px)
{ {

View File

@ -2,18 +2,20 @@
:root :root
{ {
--color-text: #fdfdfddd;
--color-background: #202020; --color-background: #202020;
--color-title: #fdfdfd;
--color-text: #dddddd;
--color-link: #fdfdfd;
--font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; --font-emoji : "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
--font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif; --font-basic : system-ui,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,Helvetica,Arial,"Helvetica Neue",sans-serif;
} }
html{ html{
height: 100%; height: 100%;
width: 80%; width: 80%;
margin-left: 10%; margin-left: 10%;
} }
@ -24,17 +26,19 @@
font-weight: 400; font-weight: 400;
} }
h1, h2, h3, h4, h5{
color: var(--color-title);
}
hr { hr {
color: var(--color-text); color: var(--color-text);
} }
* {-moz-box-sizing: border-box; box-sizing: border-box;} * {-moz-box-sizing: border-box; box-sizing: border-box;}
a { a {
box-shadow: inset 0 0 0 0 var(--color-text); box-shadow: inset 0 0 0 0 var(--color-text);
color: --color-text; color: --color-link;
padding: 0 .25rem; padding: 0 .25rem;
margin: 0 -.25rem; margin: 0 -.25rem;
transition: color .3s ease-in-out, box-shadow .3s ease-in-out; transition: color .3s ease-in-out, box-shadow .3s ease-in-out;
@ -48,11 +52,11 @@ a:hover {
} }
a { a {
color: var(--color-text); color: var(--color-link);
text-decoration: underline 2px; text-decoration: underline 2px;
font-weight: 700; font-weight: 700;
line-height: 1.5; line-height: 1.5;
} }
.date { .date {
@ -70,13 +74,6 @@ a {
} }
.copyleft {
display:inline-block;
transform: rotate(180deg);
padding-bottom: -15px;
}
pre { pre {
white-space: pre-wrap; /* css-3 */ white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
@ -116,17 +113,29 @@ a {
padding-left: 1.5vw; padding-left: 1.5vw;
} }
.titre { .head-article {
text-align: center; text-align: center;
} }
.text-article p {
padding-left: 2vw;
padding-right:2vw;
}
.text-article h2, h3, h4, h5 {
padding-left: 1vw;
padding-right:1vw;
}
.index { .index {
text-align: left; text-align: left;
} }
.articles img { .articles img {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -144,6 +153,7 @@ a {
} }
.pagination a { .pagination a {
border: 1px solid; border: 1px solid;
border-color: $color_title; border-color: $color_title;
@ -166,8 +176,10 @@ a {
bottom:0px; bottom:0px;
width: 100%; width: 100%;
text-align:center; text-align:center;
padding-bottom:1vw;
} }
@media only screen and (max-width: 980px) @media only screen and (max-width: 980px)
{ {

View File

@ -12,18 +12,22 @@
<body> <body>
<div class="articles"> <div class="articles">
<div class="head-article">
<h2 class="titre"> {{ post_info.title }} </h2> <h2> {{ post_info.title }} </h2>
<h5 class="titre">Publié le : {{ post_info.creation_date }} par <a href="{{ url_for('blog.view') }}/{{ post_info.author }}"> {{ post_info.author }} </h5></a> <h5>Publié le : {{ post_info.creation_date }} par <a href="{{ url_for('blog.view') }}/{{ post_info.author }}"> {{ post_info.author }} </h5></a>
{% if post_info.last_updated %} {% if post_info.last_updated %}
<h5 class="titre">Mis à jour le : {{ post_info.last_updated }} </h5> <h5>Mis à jour le : {{ post_info.last_updated }} </h5>
{% endif %} {% endif %}
<h3 class="description titre"> {{ post_info.subtitle }} </h3> <h3 class="description"> {{ post_info.subtitle }} </h3>
<hr/> </div>
<hr/>
<div class="text-article">
{{ content|safe }} {{ content|safe }}
</div>
</div> </div>
<footer> <p> pywallter </p> </footer>
</body> </body>
</html> </html>