2025-02-16 16:20:48 +01:00
|
|
|
/* content.css - Styles pour le contenu de l'éditeur */
|
|
|
|
|
|
|
|
/* Conteneur principal du contenu */
|
|
|
|
.chapter-content,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description,
|
|
|
|
.about-description {
|
2025-02-16 16:20:48 +01:00
|
|
|
font-size: 1.1rem;
|
|
|
|
line-height: 1.8;
|
|
|
|
color: var(--text-primary);
|
|
|
|
font-weight: normal;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Titres */
|
|
|
|
.chapter-content h1,
|
|
|
|
.chapter-content h2,
|
|
|
|
.chapter-content h3,
|
|
|
|
.chapter-content h4,
|
|
|
|
.chapter-content h5,
|
|
|
|
.chapter-content h6,
|
|
|
|
.novel-description h1,
|
|
|
|
.novel-description h2,
|
|
|
|
.novel-description h3,
|
|
|
|
.novel-description h4,
|
|
|
|
.novel-description h5,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description h6,
|
|
|
|
.about-description h1,
|
|
|
|
.about-description h2,
|
|
|
|
.about-description h3,
|
|
|
|
.about-description h4,
|
|
|
|
.about-description h5,
|
|
|
|
.about-description h6 {
|
2025-02-16 16:20:48 +01:00
|
|
|
margin: 1.5em 0 0.8em;
|
|
|
|
line-height: 1.3;
|
|
|
|
color: var(--text-primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content h1,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description h1,
|
|
|
|
.about-description h1 { font-size: 2em; }
|
2025-02-16 16:20:48 +01:00
|
|
|
|
|
|
|
.chapter-content h2,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description h2,
|
|
|
|
.about-description h2 { font-size: 1.75em; }
|
2025-02-16 16:20:48 +01:00
|
|
|
|
|
|
|
.chapter-content h3,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description h3,
|
|
|
|
.about-description h3 { font-size: 1.5em; }
|
2025-02-16 16:20:48 +01:00
|
|
|
|
|
|
|
.chapter-content h4,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description h4,
|
|
|
|
.about-description h4 { font-size: 1.25em; }
|
2025-02-16 16:20:48 +01:00
|
|
|
|
|
|
|
.chapter-content h5,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description h5,
|
|
|
|
.about-description h5 { font-size: 1.1em; }
|
2025-02-16 16:20:48 +01:00
|
|
|
|
|
|
|
.chapter-content h6,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description h6,
|
|
|
|
.about-description h6 { font-size: 1em; }
|
2025-02-16 16:20:48 +01:00
|
|
|
|
|
|
|
/* Paragraphes et espacement */
|
|
|
|
.chapter-content p,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description p,
|
|
|
|
.about-description p {
|
|
|
|
margin: 0em 0;
|
2025-02-16 16:20:48 +01:00
|
|
|
min-height: 1.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Listes */
|
|
|
|
.chapter-content ul,
|
|
|
|
.chapter-content ol,
|
|
|
|
.novel-description ul,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description ol,
|
|
|
|
.about-description ul,
|
|
|
|
.about-description ol {
|
2025-02-16 16:20:48 +01:00
|
|
|
margin: 1em 0;
|
|
|
|
padding-left: 2em;
|
|
|
|
list-style-position: outside;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content li,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description li,
|
|
|
|
.about-description li {
|
2025-02-16 16:20:48 +01:00
|
|
|
margin: 0.5em 0;
|
|
|
|
padding-left: 0.5em;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Citations */
|
|
|
|
.chapter-content blockquote,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description blockquote,
|
|
|
|
.about-description blockquote {
|
2025-02-16 16:20:48 +01:00
|
|
|
margin: 1.5em 0;
|
|
|
|
padding: 1em 1.5em;
|
|
|
|
border-left: 4px solid var(--accent-primary);
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
font-style: italic;
|
|
|
|
color: var(--text-secondary);
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Blocs de code */
|
|
|
|
.chapter-content pre,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description pre,
|
|
|
|
.about-description pre {
|
2025-02-16 16:20:48 +01:00
|
|
|
margin: 1.5em 0;
|
|
|
|
padding: 1em;
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
max-width: 100%;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content code,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description code,
|
|
|
|
.about-description code {
|
2025-02-16 16:20:48 +01:00
|
|
|
font-family: "Consolas", "Monaco", monospace;
|
|
|
|
font-size: 0.9em;
|
|
|
|
padding: 0.2em 0.4em;
|
|
|
|
background-color: var(--bg-secondary);
|
|
|
|
border-radius: var(--radius-sm);
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2025-02-18 01:10:42 +01:00
|
|
|
/* Images et alignements */
|
|
|
|
.chapter-content .ql-align-left,
|
|
|
|
.novel-description .ql-align-left,
|
|
|
|
.about-description .ql-align-left {
|
|
|
|
text-align: left !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content .ql-align-center,
|
|
|
|
.novel-description .ql-align-center,
|
|
|
|
.about-description .ql-align-center {
|
|
|
|
text-align: center !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content .ql-align-right,
|
|
|
|
.novel-description .ql-align-right,
|
|
|
|
.about-description .ql-align-right {
|
|
|
|
text-align: right !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content .ql-align-justify,
|
|
|
|
.novel-description .ql-align-justify,
|
|
|
|
.about-description .ql-align-justify {
|
|
|
|
text-align: justify !important;
|
|
|
|
}
|
|
|
|
|
2025-02-16 16:20:48 +01:00
|
|
|
/* Images */
|
2025-02-18 01:10:42 +01:00
|
|
|
.chapter-content p img,
|
|
|
|
.novel-description p img,
|
|
|
|
.about-description p img {
|
2025-02-16 16:20:48 +01:00
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
2025-02-18 01:10:42 +01:00
|
|
|
margin: 1.5em auto;
|
2025-02-16 16:20:48 +01:00
|
|
|
border-radius: var(--radius-sm);
|
2025-02-18 01:10:42 +01:00
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
2025-02-16 16:20:48 +01:00
|
|
|
}
|
|
|
|
|
2025-02-18 01:10:42 +01:00
|
|
|
/* Ajustements spécifiques pour les images selon l'alignement */
|
|
|
|
.ql-align-left p img {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: auto;
|
2025-02-16 16:20:48 +01:00
|
|
|
}
|
|
|
|
|
2025-02-18 01:10:42 +01:00
|
|
|
.ql-align-center p img {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
display: block;
|
2025-02-16 16:20:48 +01:00
|
|
|
}
|
|
|
|
|
2025-02-18 01:10:42 +01:00
|
|
|
.ql-align-right p img {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: 0;
|
|
|
|
display: block;
|
2025-02-16 16:20:48 +01:00
|
|
|
}
|
|
|
|
|
2025-02-18 01:10:42 +01:00
|
|
|
/* Support des tailles d'images */
|
|
|
|
.ql-size-small img {
|
|
|
|
max-width: 50% !important;
|
2025-02-16 16:20:48 +01:00
|
|
|
}
|
|
|
|
|
2025-02-18 01:10:42 +01:00
|
|
|
.ql-size-large img {
|
|
|
|
max-width: 100% !important;
|
2025-02-16 16:20:48 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Styles pour les liens */
|
|
|
|
.chapter-content a,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description a,
|
|
|
|
.about-description a {
|
2025-02-16 16:20:48 +01:00
|
|
|
color: var(--accent-primary);
|
|
|
|
text-decoration: none;
|
|
|
|
transition: color var(--transition-fast);
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content a:hover,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description a:hover,
|
|
|
|
.about-description a:hover {
|
2025-02-16 16:20:48 +01:00
|
|
|
color: var(--accent-secondary);
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Styles pour les indices et exposants */
|
|
|
|
.chapter-content sub,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description sub,
|
|
|
|
.about-description sub {
|
2025-02-16 16:20:48 +01:00
|
|
|
vertical-align: sub;
|
|
|
|
font-size: smaller;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content sup,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description sup,
|
|
|
|
.about-description sup {
|
2025-02-16 16:20:48 +01:00
|
|
|
vertical-align: super;
|
|
|
|
font-size: smaller;
|
|
|
|
}
|
|
|
|
|
2025-02-18 01:10:42 +01:00
|
|
|
/* Barre de séparation */
|
|
|
|
.chapter-divider {
|
|
|
|
margin: 2em auto;
|
|
|
|
border: none;
|
|
|
|
border-top: 2px solid var(--accent-primary);
|
|
|
|
opacity: 0.5;
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Polices */
|
|
|
|
.font-serif {
|
|
|
|
font-family: Georgia, "Times New Roman", serif !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.font-sans {
|
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.font-mono {
|
|
|
|
font-family: "Consolas", "Monaco", monospace !important;
|
|
|
|
}
|
|
|
|
|
2025-02-16 16:20:48 +01:00
|
|
|
/* Media queries pour le responsive */
|
|
|
|
@media (max-width: 768px) {
|
|
|
|
.chapter-content,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description,
|
|
|
|
.about-description {
|
2025-02-16 16:20:48 +01:00
|
|
|
font-size: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content blockquote,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description blockquote,
|
|
|
|
.about-description blockquote {
|
2025-02-16 16:20:48 +01:00
|
|
|
margin: 1em 0;
|
|
|
|
padding: 0.8em 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content pre,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description pre,
|
|
|
|
.about-description pre {
|
2025-02-16 16:20:48 +01:00
|
|
|
padding: 0.8em;
|
|
|
|
font-size: 0.85em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chapter-content h1,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description h1,
|
|
|
|
.about-description h1 { font-size: 1.75em; }
|
2025-02-16 16:20:48 +01:00
|
|
|
|
|
|
|
.chapter-content h2,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description h2,
|
|
|
|
.about-description h2 { font-size: 1.5em; }
|
2025-02-16 16:20:48 +01:00
|
|
|
|
|
|
|
.chapter-content h3,
|
2025-02-18 01:10:42 +01:00
|
|
|
.novel-description h3,
|
|
|
|
.about-description h3 { font-size: 1.25em; }
|
2025-02-16 16:20:48 +01:00
|
|
|
}
|