Initial commit
This commit is contained in:
74
themes/default/assets/css/article.css
Normal file
74
themes/default/assets/css/article.css
Normal file
@@ -0,0 +1,74 @@
|
||||
article {
|
||||
.article-hero {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
z-index: 1;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
|
||||
&.blurred-cover {
|
||||
filter: blur(4px);
|
||||
/* ou ce que vous souhaitez */
|
||||
}
|
||||
|
||||
.image-attribution {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
transform-origin: bottom right;
|
||||
transform: rotate(-90deg) translateX(100%);
|
||||
|
||||
font-size: 0.75rem;
|
||||
color: #bbb;
|
||||
background: rgba(0, 0, 0, 0.75);
|
||||
padding: 0.4rem 0.6rem;
|
||||
border-radius: 6px 6px 0 0;
|
||||
pointer-events: none;
|
||||
z-index: 7;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.article-content,
|
||||
aside {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
max-width: 80ch;
|
||||
margin: 2rem auto;
|
||||
padding: 2rem;
|
||||
background: rgba(30, 30, 30, 1);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
|
||||
inset 0 1px 2px rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#article-backdrop {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
overflow: hidden;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: auto;
|
||||
bottom: 0;
|
||||
/* suffisamment grand pour dépasser l’article */
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
|
||||
background: linear-gradient(to bottom,
|
||||
rgba(0, 0, 0, 0) 0%,
|
||||
rgba(0, 0, 0, 0) 100vh,
|
||||
rgba(0, 0, 0, 0.4) 113vh,
|
||||
rgba(0, 0, 0, 0.8) 125vh);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
article .article-content {
|
||||
padding: 2rem 0;
|
||||
}
|
||||
}
|
||||
39
themes/default/assets/css/base.css
Normal file
39
themes/default/assets/css/base.css
Normal file
@@ -0,0 +1,39 @@
|
||||
body {
|
||||
font-family: 'GowunDodum', system-ui, sans-serif;
|
||||
color: var(--text-color);
|
||||
font-size: 1rem;
|
||||
min-height: 100vh;
|
||||
height: auto;
|
||||
background: #121212 linear-gradient(to bottom, #232323 0%, #1a1a1a 50%, #121212 100%);
|
||||
background-size: 100% 100%;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
|
||||
background-size: 2px 2px;
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
main {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.external-link::after {
|
||||
content: " ↗";
|
||||
font-size: 0.85em;
|
||||
display: inline-block;
|
||||
margin-left: 0.2em;
|
||||
vertical-align: baseline;
|
||||
text-decoration: none;
|
||||
}
|
||||
6
themes/default/assets/css/fonts.css
Normal file
6
themes/default/assets/css/fonts.css
Normal file
@@ -0,0 +1,6 @@
|
||||
@font-face {
|
||||
font-family: 'GowunDodum';
|
||||
src: url('/fonts/gowun-dodum.woff2') format('woff2');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
85
themes/default/assets/css/footer.css
Normal file
85
themes/default/assets/css/footer.css
Normal file
@@ -0,0 +1,85 @@
|
||||
body>footer {
|
||||
width: 90%;
|
||||
z-index: 10;
|
||||
max-width: 1200px;
|
||||
margin: 2rem auto 0 auto;
|
||||
padding: 2rem;
|
||||
background: linear-gradient(to bottom, rgba(15, 15, 15, 1), rgba(1, 1, 1, 1));
|
||||
border-radius: 2rem 2rem 0 0;
|
||||
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
|
||||
text-align: center;
|
||||
color: #d0d0d0;
|
||||
border-top: 2px solid rgba(255, 255, 255, 0.2);
|
||||
|
||||
p {
|
||||
font-size: 0.85rem;
|
||||
color: #999;
|
||||
margin-top: 1rem;
|
||||
text-align: center;
|
||||
|
||||
a {
|
||||
color: #8ab4f8;
|
||||
|
||||
&:hover {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
nav {
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
a {
|
||||
color: #8ab4f8;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
transition: color 0.3s ease-in-out, background 0.2s;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
color: #fff;
|
||||
background: rgba(138, 180, 248, 0.2);
|
||||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
gap: 2rem;
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
flex: 1 1 0px;
|
||||
flex-basis: 0;
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
margin-top: 0.5rem;
|
||||
padding-top: 0.5rem;
|
||||
border-top: 2px solid rgba(255, 255, 255, 0.15);
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
gap: 0.3rem;
|
||||
|
||||
li {
|
||||
padding: 0.2rem 0;
|
||||
font-size: 0.9rem;
|
||||
color: #b0b0b0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
13
themes/default/assets/css/generated/sections-colors.css
Normal file
13
themes/default/assets/css/generated/sections-colors.css
Normal file
@@ -0,0 +1,13 @@
|
||||
{{- range $section, $color := site.Data.sections_colors }}
|
||||
.section-{{ $section }} {
|
||||
--section-color: {{ $color }};
|
||||
color: var(--section-color);
|
||||
}
|
||||
.section-{{ $section }} a {
|
||||
color: var(--section-color);
|
||||
}
|
||||
.section-{{ $section }} a:hover {
|
||||
color: #fff;
|
||||
background-color: var(--section-color);
|
||||
}
|
||||
{{- end }}
|
||||
204
themes/default/assets/css/header.css
Normal file
204
themes/default/assets/css/header.css
Normal file
@@ -0,0 +1,204 @@
|
||||
article>header,
|
||||
main>header {
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
width: 90%;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto 2rem auto;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: .5rem 1rem;
|
||||
background:
|
||||
radial-gradient(circle at top left, rgba(255, 255, 255, 0.12) 0%, rgba(0, 0, 0, 0) 60%),
|
||||
linear-gradient(to bottom, rgba(15, 15, 15, 1), rgba(1, 1, 1, 1));
|
||||
border-radius: 0 0 2rem 2rem;
|
||||
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
|
||||
gap: 1rem;
|
||||
|
||||
.site-logo {
|
||||
flex-shrink: 0;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.header-content {
|
||||
flex: 1;
|
||||
min-width: 200px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.page-title {
|
||||
font-size: 1.5rem;
|
||||
margin: 0;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.page-meta {
|
||||
font-size: 0.875rem;
|
||||
margin-top: .25rem;
|
||||
opacity: 0.8;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
.tablet-header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 9;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
width: 85%;
|
||||
max-width: 1140px;
|
||||
margin: -4.5rem auto 2rem auto;
|
||||
padding: 0.4rem 1rem;
|
||||
height: 2.5rem;
|
||||
|
||||
background-color: #2a2a2a;
|
||||
|
||||
background-image:
|
||||
/* Stries métalliques irrégulières */
|
||||
repeating-linear-gradient(to right,
|
||||
hsla(0, 0%, 28%, 0.02) 0%,
|
||||
hsla(0, 0%, 28%, 0.02) 4%,
|
||||
hsla(0, 0%, 32%, 0.04) 5%,
|
||||
hsla(0, 0%, 28%, 0.02) 6%),
|
||||
/* Stries secondaires plus douces */
|
||||
repeating-linear-gradient(to right,
|
||||
hsla(0, 0%, 22%, 0.01) 0%,
|
||||
hsla(0, 0%, 22%, 0.01) 2%,
|
||||
hsla(0, 0%, 26%, 0.03) 3%,
|
||||
hsla(0, 0%, 22%, 0.01) 4%),
|
||||
/* Effet d'ombrage et reflet léger */
|
||||
linear-gradient(to bottom,
|
||||
hsl(0, 0%, 18%) 0%,
|
||||
hsl(0, 0%, 22%) 47%,
|
||||
hsl(0, 0%, 18%) 53%,
|
||||
hsl(0, 0%, 16%) 100%);
|
||||
|
||||
background-size: 200px 100%;
|
||||
background-repeat: repeat;
|
||||
|
||||
border-radius: 0 0 1rem 1rem;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
|
||||
overflow: hidden;
|
||||
|
||||
.tablet-links {
|
||||
display: flex;
|
||||
gap: .5rem;
|
||||
|
||||
>a,
|
||||
summary {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
min-width: 32px;
|
||||
min-height: 32px;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
border-radius: 50%;
|
||||
background: #2a2a2a;
|
||||
color: #ccc;
|
||||
|
||||
font-size: 1rem;
|
||||
text-decoration: none;
|
||||
border: none;
|
||||
outline: none;
|
||||
|
||||
transition: background 0.2s ease, color 0.2s ease;
|
||||
}
|
||||
|
||||
>a:hover,
|
||||
summary:hover {
|
||||
background-color: #3a3a3a;
|
||||
color: white;
|
||||
}
|
||||
|
||||
summary {
|
||||
list-style: none;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
details[open] summary {
|
||||
background-color: #444;
|
||||
color: white;
|
||||
}
|
||||
|
||||
/* Empêche l'effet de flèche par défaut dans WebKit */
|
||||
summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
summary::marker {
|
||||
content: "";
|
||||
}
|
||||
}
|
||||
|
||||
.tablet-logo {
|
||||
height: 32px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tablet-title {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
color: #d0d0d0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
#toc {
|
||||
position: relative;
|
||||
|
||||
#TableOfContents {
|
||||
position: fixed;
|
||||
top: 2.5rem;
|
||||
z-index: 8;
|
||||
width: clamp(300px, 50vw, 600px);
|
||||
max-height: 50vh;
|
||||
right: 0;
|
||||
margin: 0 auto;
|
||||
background-color: #2a2a2a;
|
||||
border: 1px solid #3a3a3a;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
|
||||
overflow: auto;
|
||||
padding: 1rem;
|
||||
scrollbar-width: thin;
|
||||
scrollbar-color: #555 #2a2a2a;
|
||||
}
|
||||
|
||||
#TableOfContents ul {
|
||||
list-style: none;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
#TableOfContents li {
|
||||
margin: 0.25rem 0;
|
||||
}
|
||||
|
||||
#TableOfContents a {
|
||||
text-decoration: none;
|
||||
color: #ccc;
|
||||
transition: color 0.2s ease;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#TableOfContents a:hover {
|
||||
color: #64c7ff;
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
13
themes/default/assets/css/hero.css
Normal file
13
themes/default/assets/css/hero.css
Normal file
@@ -0,0 +1,13 @@
|
||||
#hero {
|
||||
padding: 1rem;
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
#hero {
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
104
themes/default/assets/css/list.css
Normal file
104
themes/default/assets/css/list.css
Normal file
@@ -0,0 +1,104 @@
|
||||
.articles-list {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
.articles-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.article-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
background: linear-gradient(to bottom, rgba(15, 15, 15, 0.9), rgba(1, 1, 1, 0.95));
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
border-top: 2px solid rgba(255, 255, 255, 0.2);
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
transition: box-shadow 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
/* Effet léger au survol */
|
||||
.article-card:hover {
|
||||
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
|
||||
}
|
||||
|
||||
/* Image en haut, occupant toute la largeur */
|
||||
.article-image {
|
||||
height: 180px;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
position: relative;
|
||||
border-bottom: 2px solid rgba(255, 255, 255, 0.1);
|
||||
filter: brightness(0.6);
|
||||
/* Image légèrement plus sombre */
|
||||
transition: filter 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
/* Supprimer l'effet d'opacité au survol */
|
||||
.article-card:hover .article-image {
|
||||
filter: brightness(1);
|
||||
}
|
||||
|
||||
/* Effet verre */
|
||||
.article-image::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(to top, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
/* Date en haut à gauche */
|
||||
.article-date {
|
||||
position: absolute;
|
||||
top: 160px;
|
||||
left: 0;
|
||||
background: #b16a00;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
font-size: 0.75rem;
|
||||
padding: 4px 12px;
|
||||
border-top-right-radius: 4px;
|
||||
border-bottom-right-radius: 4px;
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
/* Contenu bien structuré */
|
||||
.article-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
/* Permet à la section du bas de rester alignée */
|
||||
padding: 0.8rem;
|
||||
}
|
||||
|
||||
/* Titre bien collé sous l'image */
|
||||
.article-title {
|
||||
font-size: 1rem;
|
||||
margin-bottom: auto;
|
||||
/* Repousse la section et la durée de lecture vers le bas */
|
||||
transition: color 0.2s ease-in-out;
|
||||
}
|
||||
|
||||
/* Titre devient bleu au survol */
|
||||
.article-card:hover .article-title {
|
||||
color: #8ab4f8;
|
||||
}
|
||||
|
||||
/* Métadonnées (section + durée de lecture) bien ancrées en bas */
|
||||
.article-meta {
|
||||
font-size: 0.8rem;
|
||||
color: #bbb;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
margin-top: .5rem;
|
||||
/* Force ces éléments à coller en bas */
|
||||
}
|
||||
12
themes/default/assets/css/main.css
Normal file
12
themes/default/assets/css/main.css
Normal file
@@ -0,0 +1,12 @@
|
||||
@import "variables.css";
|
||||
@import "reset.css";
|
||||
@import "fonts.css";
|
||||
@import "base.css";
|
||||
@import "hero.css";
|
||||
@import "footer.css";
|
||||
@import "list.css";
|
||||
@import "header.css";
|
||||
@import "pagination.css";
|
||||
@import "article.css";
|
||||
@import "typography.css";
|
||||
@import "timeline.css";
|
||||
190
themes/default/assets/css/pagination.css
Normal file
190
themes/default/assets/css/pagination.css
Normal file
@@ -0,0 +1,190 @@
|
||||
.pagination-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: .2rem .3rem;
|
||||
background: linear-gradient(to bottom, rgba(15, 15, 15, 0.9), rgba(1, 1, 1, 0.95));
|
||||
border-top: 2px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
|
||||
&.up {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
&.down {
|
||||
margin-bottom: 2em;
|
||||
}
|
||||
}
|
||||
|
||||
.pagination-bar a,
|
||||
.pagination-bar .disabled {
|
||||
color: #8ab4f8;
|
||||
text-decoration: none;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 6px;
|
||||
transition: color 0.3s ease-in-out, background 0.2s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pagination-bar a:hover {
|
||||
color: #fff;
|
||||
background: rgba(138, 180, 248, 0.2);
|
||||
}
|
||||
|
||||
.pagination-bar .disabled {
|
||||
opacity: 0.4;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.page-select {
|
||||
position: relative;
|
||||
display: block;
|
||||
color: var(--footer-link-color);
|
||||
text-decoration: none;
|
||||
white-space: nowrap;
|
||||
font-size: 1rem;
|
||||
z-index: 10;
|
||||
|
||||
&[open] {
|
||||
summary {
|
||||
background: rgba(138, 180, 248, 0.2);
|
||||
color: #fff;
|
||||
border-color: rgba(138, 180, 248, 0.4);
|
||||
}
|
||||
}
|
||||
|
||||
summary {
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
padding: 0.5rem 1rem;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
border-radius: 6px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
summary::after {
|
||||
margin-left: 0.5em;
|
||||
font-family: monospace;
|
||||
content: '▶';
|
||||
}
|
||||
|
||||
&.down summary~* {
|
||||
top: 2.5em;
|
||||
|
||||
&[open] {
|
||||
summary::after {
|
||||
font-family: monospace;
|
||||
content: '▼';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.up summary~* {
|
||||
bottom: 2.5em;
|
||||
|
||||
&[open] {
|
||||
summary::after {
|
||||
font-family: monospace;
|
||||
content: '▲';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
summary~* {
|
||||
position: absolute;
|
||||
border: 1px solid #333;
|
||||
border-radius: 0.5rem;
|
||||
background: #111;
|
||||
box-shadow: 0 1px 1em #000;
|
||||
max-height: 50vh;
|
||||
overflow-y: auto;
|
||||
margin: 0;
|
||||
padding: 0.5rem;
|
||||
list-style: none;
|
||||
min-width: 6rem;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
li a,
|
||||
li span.current {
|
||||
display: block;
|
||||
padding: 0.4rem 1rem;
|
||||
text-align: center;
|
||||
color: var(--footer-link-color);
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
transition: background-color 0.2s, color 0.2s;
|
||||
}
|
||||
|
||||
li a:hover {
|
||||
background-color: rgba(255, 255, 255, 0.05);
|
||||
color: var(--footer-link-hover-color);
|
||||
}
|
||||
|
||||
li span.current {
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
background-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.pagination-bar.dossier-pagination {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 1em;
|
||||
margin: 2em 0;
|
||||
}
|
||||
|
||||
.pagination-bar h2 {
|
||||
flex: 1 1 100%;
|
||||
font-size: 1.5em;
|
||||
margin-bottom: 0.5em;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.page-select.dossier-select summary {
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.page-select.dossier-select ul {
|
||||
margin: 0.5em 0 0 0;
|
||||
padding-left: 1em;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.page-select.dossier-select li {
|
||||
margin: 0.25em 0;
|
||||
}
|
||||
|
||||
.page-select.dossier-select .current {
|
||||
font-weight: bold;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.prev-page,
|
||||
.next-page {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.disabled {
|
||||
opacity: 0.4;
|
||||
pointer-events: none;
|
||||
}
|
||||
88
themes/default/assets/css/reset.css
Normal file
88
themes/default/assets/css/reset.css
Normal file
@@ -0,0 +1,88 @@
|
||||
/* 1. Box-sizing plus intuitif */
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
line-height: 150%;
|
||||
}
|
||||
|
||||
html {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* 2. Supprime les marges par défaut */
|
||||
body,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
p,
|
||||
figure,
|
||||
blockquote,
|
||||
dl,
|
||||
dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* 3. Empêche les textes trop larges */
|
||||
body {
|
||||
max-width: 100vw;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
/* 5. Uniformise la gestion des images */
|
||||
img,
|
||||
picture,
|
||||
video,
|
||||
canvas,
|
||||
svg {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* 6. Supprime l’héritage des polices dans les inputs et boutons */
|
||||
input,
|
||||
button,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
/* 7. Évite l'effet "saut de style" lors du chargement des polices */
|
||||
html {
|
||||
font-size: 125%;
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
/* 8. Curseur "pointer" par défaut sur les boutons */
|
||||
button,
|
||||
details,
|
||||
summary {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 9. Supprime l'effet de contour bleu flashy de Chrome mais garde l'accessibilité */
|
||||
a,
|
||||
button {
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
p+p {
|
||||
margin-top: .75rem;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
* {
|
||||
transition: none !important;
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
93
themes/default/assets/css/timeline.css
Normal file
93
themes/default/assets/css/timeline.css
Normal file
@@ -0,0 +1,93 @@
|
||||
.timeline {
|
||||
display: grid;
|
||||
grid-template-columns: 4rem 6rem 3rem 1fr;
|
||||
row-gap: 0.5rem;
|
||||
column-gap: 0.5rem;
|
||||
max-width: 80ch;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
/* Empêche les blocs internes de casser la grille */
|
||||
.timeline .year,
|
||||
.timeline .month,
|
||||
.timeline .day,
|
||||
.timeline .list {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
.timeline .year>span {
|
||||
grid-column: 1;
|
||||
font-weight: bold;
|
||||
color: #eee;
|
||||
background: #2b2b2b;
|
||||
padding: 0.2rem 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
position: sticky;
|
||||
top: 3rem;
|
||||
z-index: 3;
|
||||
text-align: center;
|
||||
align-self: start;
|
||||
height: auto;
|
||||
max-height: none;
|
||||
}
|
||||
|
||||
.timeline .month>span {
|
||||
grid-column: 2;
|
||||
font-style: italic;
|
||||
color: #bceeff;
|
||||
background: #2d3a3f;
|
||||
padding: 0.2rem 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
position: sticky;
|
||||
top: 3rem;
|
||||
z-index: 2;
|
||||
align-self: start;
|
||||
height: auto;
|
||||
max-height: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.timeline .day>span {
|
||||
grid-column: 3;
|
||||
color: #ccc;
|
||||
background: #333;
|
||||
padding: 0.2rem 0.5rem;
|
||||
border-radius: 0.5rem;
|
||||
position: sticky;
|
||||
top: 3rem;
|
||||
z-index: 1;
|
||||
align-self: start;
|
||||
height: auto;
|
||||
max-height: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Articles */
|
||||
.timeline .day>.list {
|
||||
grid-column: 4;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.2rem;
|
||||
padding: 0.2rem 0.5rem;
|
||||
}
|
||||
|
||||
.timeline ul {
|
||||
margin: 0 !important;
|
||||
|
||||
li {
|
||||
margin: 0 !important;
|
||||
padding: 0 0 0 1rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
.timeline .day>.list a {
|
||||
text-decoration: none;
|
||||
color: #ddd;
|
||||
font-weight: 500;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.timeline .day>.list a:hover {
|
||||
color: #2da8f4;
|
||||
text-decoration: underline;
|
||||
}
|
||||
584
themes/default/assets/css/typography.css
Normal file
584
themes/default/assets/css/typography.css
Normal file
@@ -0,0 +1,584 @@
|
||||
article {
|
||||
.article-content {
|
||||
counter-reset: h2;
|
||||
}
|
||||
|
||||
.article-content,
|
||||
aside {
|
||||
a {
|
||||
color: #8ab4f8;
|
||||
text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
text-decoration-thickness: 1.5px;
|
||||
overflow-wrap: break-word;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: #64c7ff;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid #64c7ff;
|
||||
outline-offset: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
a.affiliated {
|
||||
color: #e553ff;
|
||||
/* or: gold */
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a.affiliated:hover,
|
||||
a.affiliated:focus {
|
||||
color: #f6a7ff;
|
||||
}
|
||||
|
||||
a.external {
|
||||
color: #f38c8c;
|
||||
/* or: gold */
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a.external:hover,
|
||||
a.external:focus {
|
||||
color: #ffd8d8;
|
||||
}
|
||||
|
||||
a.active {
|
||||
color: #fff !important;
|
||||
}
|
||||
|
||||
abbr {
|
||||
text-decoration: underline dotted;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
address {
|
||||
display: block;
|
||||
margin: 2em;
|
||||
padding: 1em 1.5em;
|
||||
border-left: 4px solid #64c7ff;
|
||||
background-color: rgba(255, 255, 255, 0.03);
|
||||
font-size: 0.9em;
|
||||
color: #ccc;
|
||||
font-style: normal;
|
||||
border-radius: 0.5em;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
audio {
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 500px;
|
||||
margin: 2em auto;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 2em 0;
|
||||
padding-left: 1.5em;
|
||||
border-left: 4px solid #64c7ff;
|
||||
color: #ccc;
|
||||
font-style: italic;
|
||||
font-size: 1.1em;
|
||||
line-height: 1.6;
|
||||
text-align: justify;
|
||||
|
||||
cite {
|
||||
display: block;
|
||||
margin-top: 1em;
|
||||
font-style: normal;
|
||||
font-size: 0.9em;
|
||||
color: #999;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
dl {
|
||||
margin: 2em 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: bold;
|
||||
color: #fff;
|
||||
margin-top: 1.5em;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin-left: 1em;
|
||||
color: #ccc;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
del {
|
||||
display: inline;
|
||||
text-decoration: line-through;
|
||||
color: #d44;
|
||||
background-color: rgba(255, 0, 0, 0.1);
|
||||
padding: 0 0.2em;
|
||||
border-radius: 0.2em;
|
||||
}
|
||||
|
||||
details {
|
||||
margin: 2em 0;
|
||||
border-radius: 0.5em;
|
||||
overflow: hidden;
|
||||
padding: 1rem;
|
||||
|
||||
summary {
|
||||
cursor: pointer;
|
||||
padding: 0.5rem 1rem;
|
||||
font-weight: bold;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
&.spoiler {
|
||||
border-left: 4px solid #888;
|
||||
background-color: rgba(255, 255, 255, 0.03);
|
||||
|
||||
summary {
|
||||
color: #aaa;
|
||||
|
||||
&::before {
|
||||
content: "⚠️ ";
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
}
|
||||
|
||||
&[open] summary {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
&.update {
|
||||
border-left: 4px solid #64c7ff;
|
||||
background-color: rgba(100, 199, 255, 0.1);
|
||||
|
||||
summary {
|
||||
color: #64c7ff;
|
||||
|
||||
&::before {
|
||||
content: "🛈 ";
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
}
|
||||
|
||||
&[open] summary {
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
&.read-more {
|
||||
border: none;
|
||||
background: none;
|
||||
|
||||
summary {
|
||||
font-weight: normal;
|
||||
color: #8ab4f8;
|
||||
text-decoration: underline dotted;
|
||||
|
||||
&::before {
|
||||
content: "➕ ";
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: #64c7ff;
|
||||
}
|
||||
}
|
||||
|
||||
summary~p {
|
||||
padding-left: 1.25em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dfn {
|
||||
font-style: italic;
|
||||
font-weight: normal;
|
||||
border-bottom: 1px dashed #64c7ff;
|
||||
cursor: help;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
figure {
|
||||
display: block;
|
||||
margin: 3em auto;
|
||||
padding: 1rem;
|
||||
border-radius: 1em;
|
||||
background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.7));
|
||||
box-shadow:
|
||||
inset 0 0 0 1px rgba(255, 255, 255, 0.05),
|
||||
0 0 10px rgba(0, 0, 0, 0.4);
|
||||
backdrop-filter: blur(4px);
|
||||
max-width: 100%;
|
||||
text-align: center;
|
||||
|
||||
img,
|
||||
video,
|
||||
audio {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
max-height: 60vh;
|
||||
margin: 0 auto;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
font-size: 0.9em;
|
||||
color: #aaa;
|
||||
margin-top: 0.5em;
|
||||
line-height: 1.4;
|
||||
font-style: italic;
|
||||
padding: 0 1em;
|
||||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
all: unset;
|
||||
display: block;
|
||||
width: 100%;
|
||||
max-width: 30em;
|
||||
height: 1rem;
|
||||
margin: 4em auto;
|
||||
position: relative;
|
||||
background: radial-gradient(ellipse at center -20px,
|
||||
rgba(200, 240, 255, 0.18),
|
||||
transparent 80%);
|
||||
}
|
||||
|
||||
input[type="checkbox"] {
|
||||
appearance: none;
|
||||
width: 1.1em;
|
||||
height: 1.1em;
|
||||
margin-right: 0.5em;
|
||||
vertical-align: text-bottom;
|
||||
/* ⬅ correction ici */
|
||||
border: 2px solid #888;
|
||||
border-radius: 0.2em;
|
||||
background-color: transparent;
|
||||
position: relative;
|
||||
cursor: default;
|
||||
|
||||
&:checked::after {
|
||||
content: "✓";
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
/* ⬅ centrage parfait */
|
||||
color: #64c7ff;
|
||||
font-weight: bold;
|
||||
font-size: 0.85em;
|
||||
/* ⬅ très léger ajustement */
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
ins {
|
||||
display: inline;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
color: #2c5;
|
||||
background-color: rgba(0, 255, 0, 0.1);
|
||||
padding: 0 0.2em;
|
||||
border-radius: 0.2em;
|
||||
}
|
||||
|
||||
kbd {
|
||||
display: inline-block;
|
||||
padding: 0.2em 0.6em;
|
||||
margin: 0 0.1em;
|
||||
font-family: inherit;
|
||||
font-size: 0.9em;
|
||||
line-height: 1.2;
|
||||
color: #aaa;
|
||||
background-color: #111;
|
||||
border-radius: 0.3em;
|
||||
box-shadow:
|
||||
0 0 6px rgba(255, 255, 255, 0.25),
|
||||
0 0 12px rgba(255, 255, 255, 0.12),
|
||||
inset 0 0 1px rgba(255, 255, 255, 0.04);
|
||||
white-space: nowrap;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
ul,
|
||||
ol {
|
||||
margin-block: 1em;
|
||||
padding-left: 1.5em;
|
||||
|
||||
li {
|
||||
margin-block: 0.3em;
|
||||
}
|
||||
|
||||
li>ul,
|
||||
li>ol {
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
}
|
||||
|
||||
/* UL : puce unifiée */
|
||||
ul {
|
||||
list-style: none;
|
||||
padding-left: 1.5em;
|
||||
margin-block: 1em;
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
margin-block: 0.3em;
|
||||
padding-left: 1em;
|
||||
text-indent: 0;
|
||||
|
||||
&::before {
|
||||
content: "•";
|
||||
color: #64c7ff;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0.1em;
|
||||
}
|
||||
|
||||
>ul,
|
||||
>ol {
|
||||
margin-top: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* OL : numérotation propre et lisible */
|
||||
ol {
|
||||
list-style: decimal;
|
||||
|
||||
li::marker {
|
||||
color: #9fd356;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
text-align: justify;
|
||||
margin-block: .5em;
|
||||
}
|
||||
|
||||
.highlight {
|
||||
font-size: .8rem;
|
||||
|
||||
pre {
|
||||
padding: 1rem;
|
||||
overflow: auto;
|
||||
max-height: 50vh;
|
||||
border-radius: .5rem;
|
||||
}
|
||||
}
|
||||
|
||||
q {
|
||||
quotes: "«\00a0" " »" "“" "”";
|
||||
font-style: italic;
|
||||
color: #aaa;
|
||||
|
||||
&::before {
|
||||
content: open-quote;
|
||||
}
|
||||
|
||||
&::after {
|
||||
content: close-quote;
|
||||
}
|
||||
}
|
||||
|
||||
samp {
|
||||
display: inline-block;
|
||||
padding: 0.3em 0.6em;
|
||||
margin: 0.2em 0.1em;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 0.9em;
|
||||
line-height: 1.4;
|
||||
color: #a8ff60;
|
||||
background-color: #111;
|
||||
border-radius: 0.3em;
|
||||
box-shadow:
|
||||
0 0 1px rgba(0, 255, 0, 0.2),
|
||||
inset 0 0 2px rgba(255, 255, 255, 0.05);
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
pre samp {
|
||||
display: block;
|
||||
padding: 1em;
|
||||
margin: 2em auto;
|
||||
background-color: #111;
|
||||
color: #a8ff60;
|
||||
border-radius: 0.5em;
|
||||
box-shadow:
|
||||
0 0 10px rgba(0, 255, 100, 0.05),
|
||||
inset 0 0 3px rgba(0, 255, 100, 0.1);
|
||||
font-size: 0.8em;
|
||||
max-height: 50vh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
strong {
|
||||
color: white;
|
||||
}
|
||||
|
||||
sub,
|
||||
sup {
|
||||
font-size: 0.75em;
|
||||
line-height: 1;
|
||||
position: relative;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.4em;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.2em;
|
||||
}
|
||||
|
||||
table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 3em 0;
|
||||
font-size: 0.95em;
|
||||
line-height: 1.5;
|
||||
border: 1px solid #444;
|
||||
background-color: rgba(255, 255, 255, 0.015);
|
||||
/* Suppression des coins arrondis */
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
thead {
|
||||
background-color: rgba(255, 255, 255, 0.04);
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
thead th {
|
||||
padding: 0.75em 1em;
|
||||
border: 1px solid #444;
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.4));
|
||||
}
|
||||
|
||||
tbody td {
|
||||
padding: 0.75em 1em;
|
||||
border: 1px solid #444;
|
||||
vertical-align: top;
|
||||
text-align: left;
|
||||
color: #ccc;
|
||||
background-color: transparent;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
/* Alternance des lignes */
|
||||
tbody tr:nth-child(even) td {
|
||||
background-color: rgba(255, 255, 255, 0.015);
|
||||
}
|
||||
|
||||
/* Survol ligne */
|
||||
tbody tr:hover td {
|
||||
background-color: rgba(100, 199, 255, 0.05);
|
||||
}
|
||||
|
||||
/* Survol cellule */
|
||||
tbody td:hover {
|
||||
background-color: rgba(100, 199, 255, 0.08);
|
||||
}
|
||||
|
||||
/* Pied du tableau */
|
||||
tfoot td {
|
||||
padding: 0.75em 1em;
|
||||
font-style: italic;
|
||||
color: #aaa;
|
||||
background-color: rgba(255, 255, 255, 0.02);
|
||||
border: 1px solid #444;
|
||||
}
|
||||
}
|
||||
|
||||
aside {
|
||||
|
||||
h2::before,
|
||||
h3::before,
|
||||
h4::before,
|
||||
h5::before,
|
||||
h6::before {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.numbered-headings {
|
||||
h2 {
|
||||
counter-reset: h3;
|
||||
counter-increment: h2;
|
||||
margin: 2.2em 0 1em;
|
||||
font-size: 1.8em;
|
||||
color: #64c7ff;
|
||||
scroll-margin-top: 4rem;
|
||||
|
||||
&::before {
|
||||
content: counter(h2) ". ";
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
counter-reset: h4;
|
||||
counter-increment: h3;
|
||||
margin: 2em 0 0.8em;
|
||||
font-size: 1.5em;
|
||||
color: #9fd356;
|
||||
scroll-margin-top: 4rem;
|
||||
|
||||
&::before {
|
||||
content: counter(h2) "." counter(h3) ". ";
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
counter-reset: h5;
|
||||
counter-increment: h4;
|
||||
margin: 1.8em 0 0.7em;
|
||||
font-size: 1.3em;
|
||||
color: #e6c84f;
|
||||
scroll-margin-top: 4rem;
|
||||
|
||||
&::before {
|
||||
content: counter(h2) "." counter(h3) "." counter(h4) ". ";
|
||||
}
|
||||
}
|
||||
|
||||
h5 {
|
||||
counter-reset: h6;
|
||||
counter-increment: h5;
|
||||
margin: 1.6em 0 0.6em;
|
||||
font-size: 1.1em;
|
||||
color: #da88ff;
|
||||
scroll-margin-top: 4rem;
|
||||
|
||||
&::before {
|
||||
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) ". ";
|
||||
}
|
||||
}
|
||||
|
||||
h6 {
|
||||
counter-increment: h6;
|
||||
margin: 1.4em 0 0.5em;
|
||||
font-size: 1em;
|
||||
color: #f38c8c;
|
||||
scroll-margin-top: 4rem;
|
||||
|
||||
&::before {
|
||||
content: counter(h2) "." counter(h3) "." counter(h4) "." counter(h5) "." counter(h6) ". ";
|
||||
}
|
||||
}
|
||||
}
|
||||
38
themes/default/assets/css/variables.css
Normal file
38
themes/default/assets/css/variables.css
Normal file
@@ -0,0 +1,38 @@
|
||||
:root {
|
||||
--body-bg-color: #000000;
|
||||
--body-bg-color2: #232f3b;
|
||||
--body-bg-color3: #232f3b55;
|
||||
--text-color: hsl(213 20% 80%);
|
||||
--footer-bg-color: #000000;
|
||||
--footer-link-color: hsl(213, 20%, 65%);
|
||||
--footer-link-hover-color: hsl(211, 98%, 90%);
|
||||
|
||||
--accent-blue: #64c7ff;
|
||||
--link-blue: #8ab4f8;
|
||||
--text-muted: #aaa;
|
||||
--text-muted2: #999;
|
||||
--text-light: #ccc;
|
||||
--text-white: #fff;
|
||||
--text-red: #d44;
|
||||
--text-green: #22cc55;
|
||||
--heading-green: #9fd356;
|
||||
--heading-yellow: #e6c84f;
|
||||
--heading-purple: #da88ff;
|
||||
--heading-pink: #f38c8c;
|
||||
|
||||
--border-dark: #444;
|
||||
--border-muted: #888;
|
||||
|
||||
--bg-dark: #111;
|
||||
--bg-white-015: rgba(255, 255, 255, 0.015);
|
||||
--bg-white-02: rgba(255, 255, 255, 0.02);
|
||||
--bg-white-03: rgba(255, 255, 255, 0.03);
|
||||
--bg-white-04: rgba(255, 255, 255, 0.04);
|
||||
|
||||
--bg-red-01: rgba(255, 0, 0, 0.1);
|
||||
--bg-green-01: rgba(0, 255, 0, 0.1);
|
||||
|
||||
--bg-accent-blue-01: rgba(100, 199, 255, 0.1);
|
||||
--bg-accent-blue-005: rgba(100, 199, 255, 0.05);
|
||||
--bg-accent-blue-008: rgba(100, 199, 255, 0.08);
|
||||
}
|
||||
BIN
themes/default/assets/logo-large.png
Normal file
BIN
themes/default/assets/logo-large.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 91 KiB |
55
themes/default/layouts/_default/_markup/render-image.html
Normal file
55
themes/default/layouts/_default/_markup/render-image.html
Normal file
@@ -0,0 +1,55 @@
|
||||
{{- $imgPath := .Destination -}}
|
||||
{{- $imgName := path.Base $imgPath | replaceRE "\\.[^.]+$" "" -}} {{/* Supprime l'extension */}}
|
||||
{{- $dataPath := printf "data/images/%s.yaml" $imgName -}}
|
||||
{{- $dataFile := .Page.Resources.Get $dataPath -}}
|
||||
{{- $data := dict -}}
|
||||
{{- if $dataFile }}
|
||||
{{- $data = $dataFile.Content | transform.Unmarshal -}}
|
||||
{{- end }}
|
||||
{{- $alt := .PlainText | default $data.title | default "" -}}
|
||||
{{- $title := .Title | default $data.title | default "" -}}
|
||||
{{- $image := .Page.Resources.GetMatch $imgPath -}}
|
||||
{{- $isBlock := .IsBlock -}}
|
||||
{{- if $image }}
|
||||
{{- $resized := $image.Resize (cond (eq $isBlock true) "1024x" "500x") -}}
|
||||
{{- $large := $image.Resize "1920x" -}}
|
||||
{{- if $isBlock }}
|
||||
<figure class="custom-image center">
|
||||
<a href="{{ $large.RelPermalink }}" title="Cliquez pour agrandir l'image">
|
||||
<img src="{{ $resized.RelPermalink }}" alt="{{ $alt }}" title="{{ $title }}" />
|
||||
</a>
|
||||
{{- if $data.prompt }}
|
||||
<details>
|
||||
<summary>
|
||||
<strong>Attribution :</strong>
|
||||
{{- with $data.attribution }}<em>{{ . | markdownify }}</em>{{- end }}
|
||||
</summary>
|
||||
<p><strong>Prompt :</strong> <em>{{ $data.prompt }}</em></p>
|
||||
</details>
|
||||
{{- else }}
|
||||
{{- with $data.attribution }}
|
||||
<p class="details">
|
||||
<strong>Attribution :</strong>
|
||||
<em>{{ . | markdownify }}</em>
|
||||
</p>
|
||||
{{- end }}
|
||||
<figcaption>
|
||||
{{- with $data.description }}
|
||||
<p>{{ . | markdownify }}</p>
|
||||
{{- end }}
|
||||
</figcaption>
|
||||
{{- end }}
|
||||
</figure>
|
||||
{{- else }}
|
||||
<img src="{{ $resized.RelPermalink }}" alt="{{ $alt }}" title="{{ $title }}">
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- if $isBlock }}
|
||||
<figure>
|
||||
<img src="{{ $imgPath | safeURL }}" alt="{{ $alt }}" title="{{ $title }}">
|
||||
{{- with $title }}<figcaption>{{ . }}</figcaption>{{ end }}
|
||||
</figure>
|
||||
{{- else }}
|
||||
<img src="{{ $imgPath | safeURL }}" alt="{{ $alt }}" title="{{ $title }}">
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
22
themes/default/layouts/_default/_markup/render-link.html
Normal file
22
themes/default/layouts/_default/_markup/render-link.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{{- $isExternal := strings.HasPrefix .Destination "http" -}}
|
||||
{{- $parsed := urls.Parse .Destination -}}
|
||||
{{- $host := $parsed.Host -}}
|
||||
{{- $path := $parsed.Path -}}
|
||||
{{- $query := $parsed.RawQuery -}}
|
||||
{{- $aff := index site.Data.affiliates.sites $host -}}
|
||||
{{- $isAffiliated := false -}}
|
||||
{{- $newURL := .Destination -}}
|
||||
{{- if and $isExternal $aff -}}
|
||||
{{- $param := $aff.param -}}
|
||||
{{- $value := $aff.value -}}
|
||||
{{- $isAffiliated = true -}}
|
||||
{{- if $query }}
|
||||
{{- $newURL = printf "%s://%s%s?%s&%s=%s" $parsed.Scheme $host $path $query $param $value -}}
|
||||
{{- else }}
|
||||
{{- $newURL = printf "%s://%s%s?%s=%s" $parsed.Scheme $host $path $param $value -}}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
<a href="{{ $newURL }}" title="{{ .Title }}"
|
||||
{{- if $isExternal -}} rel="noreferrer" class="external-link{{ if $isAffiliated }} affiliated{{ end }}{{ if $isExternal }} external{{ end }}" {{- end -}}>
|
||||
{{- .Text | safeHTML -}}
|
||||
</a>
|
||||
13
themes/default/layouts/_default/baseof.html
Normal file
13
themes/default/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
|
||||
<head>
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
<body>
|
||||
{{- block "main" . -}}{{- end }}
|
||||
|
||||
<footer>
|
||||
{{ partial "footer.html" . }}
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
24
themes/default/layouts/_default/home.html
Normal file
24
themes/default/layouts/_default/home.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{{- define "main" }}
|
||||
<main>
|
||||
<section id="hero">
|
||||
{{ $logo := resources.GetMatch "logo-large.png" -}}
|
||||
{{- with $logo.Resize "x256" -}}
|
||||
<img src="{{ .RelPermalink }}" alt="Logo" class="site-logo" />
|
||||
{{- end }}
|
||||
|
||||
<div>
|
||||
{{ .Content -}}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="articles-list">
|
||||
{{- $pages := site.RegularPages -}}
|
||||
{{- $paginator := .Paginate $pages.ByDate.Reverse 12 -}}
|
||||
{{- $context := . -}}
|
||||
{{- $context.Scratch.Set "paginationPosition" "up" -}}
|
||||
{{- $context.Scratch.Set "paginator" $paginator -}}
|
||||
{{ partial "articles-list.html" (dict "Pages" $paginator.Pages "Context" $context) -}}
|
||||
{{ partial "pagination.html" $context -}}
|
||||
</section>
|
||||
</main>
|
||||
{{- end }}
|
||||
16
themes/default/layouts/_default/list.html
Normal file
16
themes/default/layouts/_default/list.html
Normal file
@@ -0,0 +1,16 @@
|
||||
{{ define "main" }}
|
||||
<main>
|
||||
{{- partial "header.html" . }}
|
||||
{{ .Content }}
|
||||
<section class="articles-list">
|
||||
{{ $pages := .Pages -}}
|
||||
{{- $paginator := .Paginate $pages.ByDate.Reverse 12 -}}
|
||||
{{- $context := . -}}
|
||||
{{- $context.Scratch.Set "paginationPosition" "up" -}}
|
||||
{{- $context.Scratch.Set "paginator" $paginator -}}
|
||||
{{ partial "articles-list.html" (dict "Pages" $paginator.Pages "Context" $context) -}}
|
||||
{{ partial "pagination.html" $context -}}
|
||||
</section>
|
||||
</main>
|
||||
{{ end }}
|
||||
|
||||
110
themes/default/layouts/_default/single.html
Normal file
110
themes/default/layouts/_default/single.html
Normal file
@@ -0,0 +1,110 @@
|
||||
{{ define "main" }}
|
||||
<main>
|
||||
<article>
|
||||
{{ partial "header.html" . -}}
|
||||
{{- $isLiens := eq .Parent.Title "Liens intéressants" -}}
|
||||
{{- $mtop := cond $isLiens "0" "2rem" -}}
|
||||
|
||||
{{- $coverPath := .Params.cover -}}
|
||||
{{- $img := false -}}
|
||||
{{- $coverData := dict -}}
|
||||
{{- if $coverPath -}}
|
||||
{{- $img = .Resources.GetMatch $coverPath -}}
|
||||
{{- if $img }}
|
||||
{{- $mtop = cond $isLiens "0" "100vh" -}}
|
||||
|
||||
{{/* Traitement YAML associé à l’image de couverture */}}
|
||||
{{- $basename := path.Base $coverPath -}}
|
||||
{{- $filename := replaceRE "\\.[^.]+$" "" $basename -}}
|
||||
{{- $yamlPath := printf "data/images/%s.yaml" $filename -}}
|
||||
{{- $yamlFile := .Resources.GetMatch $yamlPath -}}
|
||||
|
||||
{{- with $yamlFile }}
|
||||
{{- $yamlContent := .Content -}}
|
||||
{{- $coverData = $yamlContent | transform.Unmarshal -}}
|
||||
{{- end }}
|
||||
|
||||
<div class="article-hero {{ if $isLiens }}blurred-cover{{ end }}"
|
||||
style="background-image: url('{{ $img.RelPermalink }}');">
|
||||
{{ if $coverData.attribution }}
|
||||
<div class="image-attribution">
|
||||
<span>Attribution :</span>
|
||||
{{ $coverData.attribution | markdownify }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
<div id="article-backdrop"></div>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
{{- $context := . -}}
|
||||
{{- $context.Scratch.Set "paginationPosition" "down" -}}
|
||||
|
||||
<section class="articles-list">
|
||||
{{- partial "dossier-summary" . -}}
|
||||
</section>
|
||||
|
||||
<div class="article-content numbered-headings" style="margin-top: {{ $mtop }}">
|
||||
{{- if $isLiens }}
|
||||
{{- with .Params.links }}
|
||||
<div class="external-links-block" style="margin-top: 2rem; text-align: center;">
|
||||
{{- range . }}
|
||||
{{- if eq .name "Page d'origine" }}
|
||||
<a class="external-link" href="{{ .url }}" target="_blank" rel="noopener">
|
||||
Visiter le site
|
||||
</a>
|
||||
{{- else if eq .name "Lien archivé" }}
|
||||
<a class="archive-link" href="{{ .url }}" target="_blank" rel="noopener">
|
||||
Voir sur archive.org
|
||||
</a>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
{{ if and $img (gt (len $coverData) 0) }}
|
||||
<aside class="image-info-block" aria-labelledby="image-info-title">
|
||||
<h2>Image d'en-tête</h2>
|
||||
{{ with $coverData.title }}
|
||||
<h3 id="image-info-title">{{ . | markdownify }}</h3>
|
||||
{{ end }}
|
||||
|
||||
{{ $resized := $img.Resize "800x" }}
|
||||
<figure class="image-inline">
|
||||
<a href="{{ $img.RelPermalink }}" title="Cliquez pour agrandir l'image">
|
||||
<img src="{{ $resized.RelPermalink }}" alt="{{ $coverData.title }}" title="{{ $coverData.title }}" />
|
||||
</a>
|
||||
</figure>
|
||||
|
||||
{{ with $coverData.description }}
|
||||
<section class="image-description">
|
||||
<h3>Description</h3>
|
||||
<p>{{ . }}</p>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ with $coverData.prompt }}
|
||||
<section class="image-prompt">
|
||||
<h3>Prompt de génération IA</h3>
|
||||
<blockquote>{{ . }}</blockquote>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
{{ with $coverData.attribution }}
|
||||
<footer>
|
||||
<p><strong>Attribution :</strong> {{ . | markdownify }}</p>
|
||||
</footer>
|
||||
{{ end }}
|
||||
</aside>
|
||||
{{ end }}
|
||||
|
||||
{{- $context.Scratch.Set "paginationPosition" "up" -}}
|
||||
<section class="articles-list">
|
||||
{{- partial "dossier-summary" . -}}
|
||||
</section>
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
||||
12
themes/default/layouts/_default/timeline.html
Normal file
12
themes/default/layouts/_default/timeline.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
<main>
|
||||
<article>
|
||||
{{- partial "header.html" . }}
|
||||
<div class="article-content-wrapper">
|
||||
<div class="article-content">
|
||||
{{ partial "timeline.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
{{ end }}
|
||||
62
themes/default/layouts/partials/articles-list.html
Normal file
62
themes/default/layouts/partials/articles-list.html
Normal file
@@ -0,0 +1,62 @@
|
||||
{{- $pages := .Pages -}}
|
||||
{{- $context := .Context -}}
|
||||
<div class="articles-grid">
|
||||
{{ range $pages -}}
|
||||
<a href="{{ .RelPermalink }}" class="article-card">
|
||||
{{ $page := . -}}
|
||||
{{- $coverPath := .Params.cover -}}
|
||||
{{- $img := false -}}
|
||||
{{- if $coverPath -}}
|
||||
{{- if strings.HasSuffix $coverPath ".yaml" -}}
|
||||
{{- $coverAbsPath := printf "%s%s" $page.File.Dir $coverPath -}}
|
||||
{{- $coverRaw := readFile $coverAbsPath -}}
|
||||
{{- $coverData := $coverRaw | transform.Unmarshal -}}
|
||||
{{- with $coverData.file -}}
|
||||
{{- $img = $page.Resources.GetMatch . -}}
|
||||
{{- end -}}
|
||||
{{- else -}}
|
||||
{{- $img = $page.Resources.GetMatch $coverPath -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- if $img -}}
|
||||
{{- with $img -}}
|
||||
{{- $resized := .Resize "650x" -}}
|
||||
<div class="article-image" style="background-image: url('{{ $resized.RelPermalink }}');">
|
||||
{{ with $page.Params.date -}}
|
||||
<span class="article-date">{{ $page.Date | time.Format ":date_long" }}</span>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{ end -}}
|
||||
{{- else -}}
|
||||
<div class="article-image" style="background: linear-gradient(135deg, #222 0%, #111 100%);">
|
||||
{{ with $page.Params.date -}}
|
||||
<span class="article-date">{{ $page.Date | time.Format ":date_long" }}</span>
|
||||
{{- end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
|
||||
<div class="article-content">
|
||||
<h3 class="article-title">{{ .Title }}</h3>
|
||||
<div class="article-meta">
|
||||
{{ $section := "" -}}
|
||||
{{- with .Parent -}}
|
||||
{{- $sectionPath := path.Base .File.Dir -}}
|
||||
{{- $section = $sectionPath -}}
|
||||
{{- end -}}
|
||||
<span class="section section-{{ $section }}">{{ .Parent.LinkTitle }}</span>
|
||||
<span class="reading-time">
|
||||
{{ if .IsSection -}}
|
||||
{{- $count := len .Pages -}}
|
||||
{{- $label := cond (eq $count 1) "article" "articles" -}}
|
||||
{{- $count }} {{ $label -}}
|
||||
{{- else -}}
|
||||
{{- if ge .ReadingTime 5 -}}
|
||||
{{- .ReadingTime }} min de lecture
|
||||
{{- end -}}
|
||||
{{- end }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
53
themes/default/layouts/partials/dossier-summary.html
Normal file
53
themes/default/layouts/partials/dossier-summary.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{{- $current := . }}
|
||||
{{- $currentTitle := .Title }}
|
||||
{{- $position := .Scratch.Get "paginationPosition" | default "up" }}
|
||||
|
||||
{{- with index .Params.dossier 0 }}
|
||||
{{- $dossierID := . }}
|
||||
{{- $allPages := site.RegularPages }}
|
||||
{{- $filtered := where $allPages "Params.dossier" "intersect" (slice $dossierID) }}
|
||||
{{- $valid := where $filtered "Weight" "gt" 0 }}
|
||||
{{- $sorted := sort $valid "Weight" }}
|
||||
|
||||
{{- if gt (len $sorted) 1 }}
|
||||
{{- $index := -1 }}
|
||||
{{- range $i, $p := $sorted }}
|
||||
{{- if eq $p.Permalink $current.Permalink }}
|
||||
{{- $index = $i }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- $prev := index $sorted (sub $index 1) }}
|
||||
{{- $next := index $sorted (add $index 1) }}
|
||||
|
||||
<nav class="pagination-bar dossier-pagination {{ $position }}">
|
||||
<h2>{{ $dossierID }}</h2>
|
||||
|
||||
{{- if ge $index 1 }}
|
||||
<a class="prev-page" href="{{ $prev.RelPermalink }}">← Page précédente</a>
|
||||
{{- else }}
|
||||
<span class="disabled prev-page">← Page précédente</span>
|
||||
{{- end }}
|
||||
|
||||
<details class="page-select {{ $position }}">
|
||||
<summary>{{ $currentTitle }}</summary>
|
||||
<ul>
|
||||
{{- range $i, $p := $sorted }}
|
||||
<li>
|
||||
{{- if eq $p.Permalink $current.Permalink }}
|
||||
<span class="current">{{ $p.Title }}</span>
|
||||
{{- else }}
|
||||
<a href="{{ $p.RelPermalink }}">{{ $p.Title }}</a>
|
||||
{{- end }}
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
{{- if lt (add $index 1) (len $sorted) }}
|
||||
<a class="next-page" href="{{ $next.RelPermalink }}">Page suivante →</a>
|
||||
{{- else }}
|
||||
<span class="disabled next-page">Page suivante →</span>
|
||||
{{- end }}
|
||||
</nav>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
4
themes/default/layouts/partials/footer.html
Normal file
4
themes/default/layouts/partials/footer.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{{ partial "footer/nav.html" . }}
|
||||
|
||||
<p>Sauf mention contraire, l'intégralité du contenu de ce site est disponible sous licence <a href="https://creativecommons.org/licenses/by-nc-nd/4.0/">CC BY-NC-ND</a>.
|
||||
</p>
|
||||
22
themes/default/layouts/partials/footer/nav.html
Normal file
22
themes/default/layouts/partials/footer/nav.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<nav>
|
||||
<ul>
|
||||
{{ range site.Menus.main -}}
|
||||
{{- if .HasChildren -}}
|
||||
<li>
|
||||
<a href="{{ .PageRef }}" title="{{ .Title }}">{{ .Name }}</a>
|
||||
<ul>
|
||||
{{ range .Children -}}
|
||||
<li>
|
||||
<a href="{{ .PageRef }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</li>
|
||||
{{- else -}}
|
||||
<li>
|
||||
<a href="{{ .PageRef }}" title="{{ .Title }}">{{ .Name }}</a>
|
||||
</li>
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
10
themes/default/layouts/partials/head.html
Normal file
10
themes/default/layouts/partials/head.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
|
||||
|
||||
{{- partial "head/css.html" . }}
|
||||
|
||||
{{ with .Site.Params.favicon -}}
|
||||
<link rel="icon" href="{{ . }}" type="image/png" />
|
||||
{{- end }}
|
||||
11
themes/default/layouts/partials/head/css.html
Normal file
11
themes/default/layouts/partials/head/css.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{ $sectionSource := resources.Get "css/generated/sections-colors.css" -}}
|
||||
{{- $sectionCSS := $sectionSource | resources.ExecuteAsTemplate "css/generated/sections-colors.css" . -}}
|
||||
{{- $mainCSS := resources.Get "css/main.css" | postCSS (dict "inlineImports" true) -}}
|
||||
{{- $bundle := slice $sectionCSS $mainCSS | resources.Concat "css/bundle.css" -}}
|
||||
{{- if eq hugo.Environment "development" -}}
|
||||
<link rel="stylesheet" href="{{ $bundle.RelPermalink }}" type="text/css" />
|
||||
{{- else -}}
|
||||
{{- with $bundle | minify | fingerprint -}}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous" type="text/css" />
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
45
themes/default/layouts/partials/header.html
Normal file
45
themes/default/layouts/partials/header.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<header>
|
||||
{{ $logo := resources.GetMatch "logo-large.png" }}
|
||||
{{ with $logo.Resize "x120" }}
|
||||
<img src="{{ .RelPermalink }}" alt="Logo" class="site-logo" />
|
||||
{{ end }}
|
||||
<div class="header-content">
|
||||
<h1 class="page-title">{{ .Title }}</h1>
|
||||
<div class="page-meta">
|
||||
{{ with .Date }}
|
||||
<time datetime="{{ . }}">{{ . | time.Format ":date_long" }}</time>
|
||||
{{ end }}
|
||||
{{ $section := "" -}}
|
||||
{{- with .Parent -}}
|
||||
{{- $sectionPath := path.Base .File.Dir -}}
|
||||
{{- $section = $sectionPath -}}
|
||||
{{- end -}}
|
||||
<span class="section section-{{ $section }}">{{ .Parent.LinkTitle }}</span>
|
||||
{{- if ge .ReadingTime 5 -}}
|
||||
{{- .ReadingTime }} min de lecture
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="tablet-header">
|
||||
{{ $logo := resources.GetMatch "logo-large.png" }}
|
||||
{{ with $logo.Resize "x32" }}
|
||||
<img src="{{ .RelPermalink }}" alt="Logo réduit" class="tablet-logo" />
|
||||
{{ end }}
|
||||
<span class="tablet-title">{{ .Title }}</span>
|
||||
<div class="tablet-links">
|
||||
<a href="/" title="Retour à la page d'accueil du site">⌂</a>
|
||||
{{ if and (.Parent) (ne .Parent.RelPermalink "/") }}
|
||||
<a href="{{ .Parent.RelPermalink }}" title="Retour à la section parente">↰</a>
|
||||
{{ end }}
|
||||
|
||||
{{ with .TableOfContents }}
|
||||
{{ if gt (len (plainify .)) 0 }}
|
||||
<details id="toc" title="Table des matières">
|
||||
<summary>☰</summary>
|
||||
{{ . | safeHTML }}
|
||||
</details>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
33
themes/default/layouts/partials/pagination.html
Normal file
33
themes/default/layouts/partials/pagination.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{{- $paginator := .Scratch.Get "paginator" -}}
|
||||
{{- if $paginator -}}
|
||||
{{- if gt $paginator.TotalPages 1 -}}
|
||||
<nav class="pagination-bar {{ .Scratch.Get "paginationPosition" }}">
|
||||
{{ with $paginator.Prev -}}
|
||||
<a class="prev-page" href="{{ .URL }}">← Page précédente</a>
|
||||
{{- else -}}
|
||||
<span class="disabled prev-page">← Page précédente</span>
|
||||
{{- end }}
|
||||
|
||||
<details class="page-select {{ .Scratch.Get "paginationPosition" }}">
|
||||
<summary>Page {{ $paginator.PageNumber }} / {{ $paginator.TotalPages }}</summary>
|
||||
<ul>
|
||||
{{- range $paginator.Pagers }}
|
||||
<li>
|
||||
{{- if eq .PageNumber $paginator.PageNumber -}}
|
||||
<span class="current">{{ .PageNumber }}</span>
|
||||
{{- else -}}
|
||||
<a href="{{ .URL }}">{{ .PageNumber }}</a>
|
||||
{{- end -}}
|
||||
</li>
|
||||
{{- end }}
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
{{ with $paginator.Next -}}
|
||||
<a class="next-page" href="{{ .URL }}">Page suivante →</a>
|
||||
{{- else -}}
|
||||
<span class="disabled next-page">Page suivante →</span>
|
||||
{{- end }}
|
||||
</nav>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
80
themes/default/layouts/partials/timeline.html
Normal file
80
themes/default/layouts/partials/timeline.html
Normal file
@@ -0,0 +1,80 @@
|
||||
{{/* Partial : timeline.html */}}
|
||||
|
||||
{{- $pages := sort site.RegularPages "Date" -}}
|
||||
{{- $entries := slice -}}
|
||||
{{- range $pages -}}
|
||||
{{- if ne (.Date.Format "2006-01-02") "0001-01-01" -}}
|
||||
{{- $entries = $entries | append . -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- $grouped := dict -}}
|
||||
{{- range $entries -}}
|
||||
{{- $year := printf "%d" .Date.Year -}}
|
||||
{{- $month := printf "%02d" .Date.Month -}}
|
||||
{{- $day := printf "%02d" .Date.Day -}}
|
||||
{{- $y := index $grouped $year | default dict -}}
|
||||
{{- $m := index $y $month | default dict -}}
|
||||
{{- $d := index $m $day | default slice -}}
|
||||
{{- $d = $d | append . -}}
|
||||
{{- $m = merge $m (dict $day $d) -}}
|
||||
{{- $y = merge $y (dict $month $m) -}}
|
||||
{{- $grouped = merge $grouped (dict $year $y) -}}
|
||||
{{- end -}}
|
||||
|
||||
<div class="timeline">
|
||||
<div class="list">
|
||||
{{- $years := slice -}}
|
||||
{{- range $yKey, $_ := $grouped -}}
|
||||
{{- $years = $years | append $yKey -}}
|
||||
{{- end -}}
|
||||
{{- range sort $years -}}
|
||||
{{- $yKey := . -}}
|
||||
{{- $months := index $grouped $yKey -}}
|
||||
<div class="year">
|
||||
<span>{{- $yKey -}}</span>
|
||||
<div class="list">
|
||||
{{- $monthKeys := slice -}}
|
||||
{{- range $mKey, $_ := $months -}}
|
||||
{{- if ne $mKey "" -}}
|
||||
{{- $monthKeys = $monthKeys | append $mKey -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- range sort $monthKeys -}}
|
||||
{{- $mKey := . -}}
|
||||
{{- $mKeyTrimmed := replaceRE "^0+" "" $mKey -}}
|
||||
{{- $mKeyInt := cond (eq $mKeyTrimmed "") 1 (int $mKeyTrimmed) -}}
|
||||
{{- $days := index $months $mKey -}}
|
||||
<div class="month">
|
||||
<span>{{- index (slice "janvier" "février" "mars" "avril" "mai" "juin" "juillet" "août" "septembre" "octobre" "novembre" "décembre") (sub $mKeyInt 1) -}}</span>
|
||||
<div class="list">
|
||||
{{- $dayKeys := slice -}}
|
||||
{{- range $dKey, $_ := $days -}}
|
||||
{{- if ne $dKey "" -}}
|
||||
{{- $dayKeys = $dayKeys | append $dKey -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
{{- range sort $dayKeys -}}
|
||||
{{- $dKey := . -}}
|
||||
{{- $articles := index $days $dKey -}}
|
||||
<div class="day">
|
||||
<span>{{- $dKey -}}</span>
|
||||
<ul class="list">
|
||||
{{- range $articles -}}
|
||||
<li>
|
||||
<a href="{{- .RelPermalink -}}">
|
||||
{{- .Title -}}
|
||||
</a>
|
||||
</li>
|
||||
{{- end -}}
|
||||
</ul>
|
||||
</div>
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
{{- end -}}
|
||||
</div>
|
||||
</div>
|
||||
30
themes/default/layouts/shortcodes/extimage.html
Normal file
30
themes/default/layouts/shortcodes/extimage.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{{- $imageURL := .Get 0 -}}
|
||||
{{- $alignment := .Get 1 | default "center" -}}
|
||||
{{- $title := .Get 2 | default "" -}}
|
||||
{{- $description := .Get 3 | default "" -}}
|
||||
{{- $attribution := .Get 4 | default "" -}}
|
||||
{{- $imageURL := printf "%s?raw=true" $imageURL -}}
|
||||
{{- $remoteImage := resources.GetRemote $imageURL -}}
|
||||
{{- $hash := md5 $imageURL -}}
|
||||
{{- $extension := path.Ext $imageURL -}}
|
||||
{{- $cleanFilename := printf "%s%s" $hash $extension -}}
|
||||
{{- $cleanFilename := replace $cleanFilename "?raw=true" "" -}}
|
||||
{{- $localImage := $remoteImage | resources.Copy (printf "remote-images/%s" $cleanFilename) -}}
|
||||
{{- $width := (cond (eq $alignment "center") "1024x" "500x") -}}
|
||||
{{- $resizedImage := $localImage.Resize $width -}}
|
||||
<figure class="custom-image {{ $alignment }}">
|
||||
<a href="{{ $localImage.RelPermalink }}" title="Cliquez pour agrandir l'image">
|
||||
<img src="{{ $resizedImage.RelPermalink }}" alt="{{ $title }}" title="{{ $title }}" />
|
||||
</a>
|
||||
{{- with $attribution }}
|
||||
<p class="details">
|
||||
<strong>Attribution :</strong>
|
||||
<em>{{ . | markdownify }}</em>
|
||||
</p>
|
||||
{{- end }}
|
||||
{{- with $description }}
|
||||
<figcaption>
|
||||
<p>{{ .| markdownify }}</p>
|
||||
</figcaption>
|
||||
{{- end }}
|
||||
</figure>
|
||||
0
themes/default/layouts/shortcodes/sound.html
Normal file
0
themes/default/layouts/shortcodes/sound.html
Normal file
44
themes/default/layouts/shortcodes/video.html
Normal file
44
themes/default/layouts/shortcodes/video.html
Normal file
@@ -0,0 +1,44 @@
|
||||
{{- $videoData := .Get 0 -}}
|
||||
{{- $alignment := .Get 1 | default "center" -}}
|
||||
{{- $dataFile := .Page.Resources.Get (printf "data/videos/%s.yaml" $videoData) -}}
|
||||
{{- if $dataFile -}}
|
||||
{{- $data := $dataFile.Content | transform.Unmarshal -}}
|
||||
{{- $video := .Page.Resources.Get $data.file -}}
|
||||
{{- if $video -}}
|
||||
<figure class="custom-video {{ $alignment }}">
|
||||
<video controls preload="metadata" width="100%">
|
||||
<source src="{{ $video.RelPermalink }}" type="video/mp4">
|
||||
Votre navigateur ne prend pas en charge la lecture des vidéos.
|
||||
</video>
|
||||
{{- if $data.prompt }}
|
||||
<details>
|
||||
<summary>
|
||||
<strong>Attribution :</strong>
|
||||
{{- with $data.attribution }}
|
||||
<em>{{ . | markdownify }}</em>
|
||||
{{- end }}
|
||||
</summary>
|
||||
{{- with $data.prompt }}
|
||||
<p><strong>Prompt :</strong> <em>{{ . }}</em></p>
|
||||
{{- end }}
|
||||
</details>
|
||||
{{- with $data.description }}
|
||||
<figcaption>
|
||||
<p>{{ .| markdownify }}</p>
|
||||
</figcaption>
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
{{- with $data.attribution }}
|
||||
<p class="details">
|
||||
<strong>Attribution :</strong>
|
||||
<em>{{ . | markdownify }}</em>
|
||||
</p>
|
||||
{{- end }}{{- with $data.description }}
|
||||
<figcaption>
|
||||
<p>{{ .| markdownify }}</p>
|
||||
</figcaption>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
</figure>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user