210 lines
4.4 KiB
CSS
210 lines
4.4 KiB
CSS
/* content.css - Styles pour le contenu de l'éditeur */
|
|
|
|
/* Conteneur principal du contenu */
|
|
.chapter-content,
|
|
.novel-description {
|
|
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,
|
|
.novel-description h6 {
|
|
margin: 1.5em 0 0.8em;
|
|
line-height: 1.3;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.chapter-content h1,
|
|
.novel-description h1 { font-size: 2em; }
|
|
|
|
.chapter-content h2,
|
|
.novel-description h2 { font-size: 1.75em; }
|
|
|
|
.chapter-content h3,
|
|
.novel-description h3 { font-size: 1.5em; }
|
|
|
|
.chapter-content h4,
|
|
.novel-description h4 { font-size: 1.25em; }
|
|
|
|
.chapter-content h5,
|
|
.novel-description h5 { font-size: 1.1em; }
|
|
|
|
.chapter-content h6,
|
|
.novel-description h6 { font-size: 1em; }
|
|
|
|
/* Paragraphes et espacement */
|
|
.chapter-content p,
|
|
.novel-description p {
|
|
margin: 0 0 1.5em 0;
|
|
min-height: 1.5em;
|
|
}
|
|
|
|
/* Listes */
|
|
.chapter-content ul,
|
|
.chapter-content ol,
|
|
.novel-description ul,
|
|
.novel-description ol {
|
|
margin: 1em 0;
|
|
padding-left: 2em;
|
|
list-style-position: outside;
|
|
}
|
|
|
|
.chapter-content li,
|
|
.novel-description li {
|
|
margin: 0.5em 0;
|
|
padding-left: 0.5em;
|
|
}
|
|
|
|
/* Citations */
|
|
.chapter-content blockquote,
|
|
.novel-description blockquote {
|
|
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,
|
|
.novel-description pre {
|
|
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,
|
|
.novel-description code {
|
|
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%;
|
|
}
|
|
|
|
/* Images */
|
|
.chapter-content img,
|
|
.novel-description img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
margin: 1.5em 0;
|
|
border-radius: var(--radius-sm);
|
|
display: block;
|
|
}
|
|
|
|
/* Alignements */
|
|
.chapter-content [style*="text-align"],
|
|
.novel-description [style*="text-align"],
|
|
.novel-description p[style*="text-align"] {
|
|
display: block !important;
|
|
margin: 1em 0 !important;
|
|
}
|
|
|
|
.novel-description .font-serif,
|
|
.novel-description .font-sans,
|
|
.novel-description .font-mono {
|
|
display: inline-block !important;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
/* Styles pour les liens */
|
|
.chapter-content a,
|
|
.novel-description a {
|
|
color: var(--accent-primary);
|
|
text-decoration: none;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.chapter-content a:hover,
|
|
.novel-description a:hover {
|
|
color: var(--accent-secondary);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Styles pour les indices et exposants */
|
|
.chapter-content sub,
|
|
.novel-description sub {
|
|
vertical-align: sub;
|
|
font-size: smaller;
|
|
}
|
|
|
|
.chapter-content sup,
|
|
.novel-description sup {
|
|
vertical-align: super;
|
|
font-size: smaller;
|
|
}
|
|
|
|
/* Media queries pour le responsive */
|
|
@media (max-width: 768px) {
|
|
.chapter-content,
|
|
.novel-description {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.chapter-content blockquote,
|
|
.novel-description blockquote {
|
|
margin: 1em 0;
|
|
padding: 0.8em 1em;
|
|
}
|
|
|
|
.chapter-content pre,
|
|
.novel-description pre {
|
|
padding: 0.8em;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.chapter-content h1,
|
|
.novel-description h1 { font-size: 1.75em; }
|
|
|
|
.chapter-content h2,
|
|
.novel-description h2 { font-size: 1.5em; }
|
|
|
|
.chapter-content h3,
|
|
.novel-description h3 { font-size: 1.25em; }
|
|
} |