correction de l'alignement du texte et des images
This commit is contained in:
parent
6ec572ef0c
commit
dd2913337f
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
/* Conteneur principal du contenu */
|
/* Conteneur principal du contenu */
|
||||||
.chapter-content,
|
.chapter-content,
|
||||||
.novel-description {
|
.novel-description,
|
||||||
|
.about-description {
|
||||||
font-size: 1.1rem;
|
font-size: 1.1rem;
|
||||||
line-height: 1.8;
|
line-height: 1.8;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
@ -24,34 +25,47 @@
|
|||||||
.novel-description h3,
|
.novel-description h3,
|
||||||
.novel-description h4,
|
.novel-description h4,
|
||||||
.novel-description h5,
|
.novel-description h5,
|
||||||
.novel-description h6 {
|
.novel-description h6,
|
||||||
|
.about-description h1,
|
||||||
|
.about-description h2,
|
||||||
|
.about-description h3,
|
||||||
|
.about-description h4,
|
||||||
|
.about-description h5,
|
||||||
|
.about-description h6 {
|
||||||
margin: 1.5em 0 0.8em;
|
margin: 1.5em 0 0.8em;
|
||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
}
|
}
|
||||||
|
|
||||||
.chapter-content h1,
|
.chapter-content h1,
|
||||||
.novel-description h1 { font-size: 2em; }
|
.novel-description h1,
|
||||||
|
.about-description h1 { font-size: 2em; }
|
||||||
|
|
||||||
.chapter-content h2,
|
.chapter-content h2,
|
||||||
.novel-description h2 { font-size: 1.75em; }
|
.novel-description h2,
|
||||||
|
.about-description h2 { font-size: 1.75em; }
|
||||||
|
|
||||||
.chapter-content h3,
|
.chapter-content h3,
|
||||||
.novel-description h3 { font-size: 1.5em; }
|
.novel-description h3,
|
||||||
|
.about-description h3 { font-size: 1.5em; }
|
||||||
|
|
||||||
.chapter-content h4,
|
.chapter-content h4,
|
||||||
.novel-description h4 { font-size: 1.25em; }
|
.novel-description h4,
|
||||||
|
.about-description h4 { font-size: 1.25em; }
|
||||||
|
|
||||||
.chapter-content h5,
|
.chapter-content h5,
|
||||||
.novel-description h5 { font-size: 1.1em; }
|
.novel-description h5,
|
||||||
|
.about-description h5 { font-size: 1.1em; }
|
||||||
|
|
||||||
.chapter-content h6,
|
.chapter-content h6,
|
||||||
.novel-description h6 { font-size: 1em; }
|
.novel-description h6,
|
||||||
|
.about-description h6 { font-size: 1em; }
|
||||||
|
|
||||||
/* Paragraphes et espacement */
|
/* Paragraphes et espacement */
|
||||||
.chapter-content p,
|
.chapter-content p,
|
||||||
.novel-description p {
|
.novel-description p,
|
||||||
margin: 0 0 0em 0;
|
.about-description p {
|
||||||
|
margin: 0em 0;
|
||||||
min-height: 1.5em;
|
min-height: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -59,21 +73,25 @@
|
|||||||
.chapter-content ul,
|
.chapter-content ul,
|
||||||
.chapter-content ol,
|
.chapter-content ol,
|
||||||
.novel-description ul,
|
.novel-description ul,
|
||||||
.novel-description ol {
|
.novel-description ol,
|
||||||
|
.about-description ul,
|
||||||
|
.about-description ol {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
padding-left: 2em;
|
padding-left: 2em;
|
||||||
list-style-position: outside;
|
list-style-position: outside;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chapter-content li,
|
.chapter-content li,
|
||||||
.novel-description li {
|
.novel-description li,
|
||||||
|
.about-description li {
|
||||||
margin: 0.5em 0;
|
margin: 0.5em 0;
|
||||||
padding-left: 0.5em;
|
padding-left: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Citations */
|
/* Citations */
|
||||||
.chapter-content blockquote,
|
.chapter-content blockquote,
|
||||||
.novel-description blockquote {
|
.novel-description blockquote,
|
||||||
|
.about-description blockquote {
|
||||||
margin: 1.5em 0;
|
margin: 1.5em 0;
|
||||||
padding: 1em 1.5em;
|
padding: 1em 1.5em;
|
||||||
border-left: 4px solid var(--accent-primary);
|
border-left: 4px solid var(--accent-primary);
|
||||||
@ -85,7 +103,8 @@
|
|||||||
|
|
||||||
/* Blocs de code */
|
/* Blocs de code */
|
||||||
.chapter-content pre,
|
.chapter-content pre,
|
||||||
.novel-description pre {
|
.novel-description pre,
|
||||||
|
.about-description pre {
|
||||||
margin: 1.5em 0;
|
margin: 1.5em 0;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
background-color: var(--bg-secondary);
|
background-color: var(--bg-secondary);
|
||||||
@ -97,7 +116,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.chapter-content code,
|
.chapter-content code,
|
||||||
.novel-description code {
|
.novel-description code,
|
||||||
|
.about-description code {
|
||||||
font-family: "Consolas", "Monaco", monospace;
|
font-family: "Consolas", "Monaco", monospace;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
padding: 0.2em 0.4em;
|
padding: 0.2em 0.4em;
|
||||||
@ -106,28 +126,109 @@
|
|||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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;
|
||||||
|
}
|
||||||
|
|
||||||
/* Images */
|
/* Images */
|
||||||
.chapter-content img,
|
.chapter-content p img,
|
||||||
.novel-description img {
|
.novel-description p img,
|
||||||
|
.about-description p img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin: 1.5em 0;
|
margin: 1.5em auto;
|
||||||
border-radius: var(--radius-sm);
|
border-radius: var(--radius-sm);
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ajustements spécifiques pour les images selon l'alignement */
|
||||||
|
.ql-align-left p img {
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ql-align-center p img {
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Alignements */
|
.ql-align-right p img {
|
||||||
.chapter-content [style*="text-align"],
|
margin-left: auto;
|
||||||
.novel-description [style*="text-align"],
|
margin-right: 0;
|
||||||
.novel-description p[style*="text-align"] {
|
display: block;
|
||||||
display: block !important;
|
|
||||||
margin: 1em 0 !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.novel-description .font-serif,
|
/* Support des tailles d'images */
|
||||||
.novel-description .font-sans,
|
.ql-size-small img {
|
||||||
.novel-description .font-mono {
|
max-width: 50% !important;
|
||||||
display: inline-block !important;
|
}
|
||||||
|
|
||||||
|
.ql-size-large img {
|
||||||
|
max-width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Styles pour les liens */
|
||||||
|
.chapter-content a,
|
||||||
|
.novel-description a,
|
||||||
|
.about-description a {
|
||||||
|
color: var(--accent-primary);
|
||||||
|
text-decoration: none;
|
||||||
|
transition: color var(--transition-fast);
|
||||||
|
}
|
||||||
|
|
||||||
|
.chapter-content a:hover,
|
||||||
|
.novel-description a:hover,
|
||||||
|
.about-description a:hover {
|
||||||
|
color: var(--accent-secondary);
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Styles pour les indices et exposants */
|
||||||
|
.chapter-content sub,
|
||||||
|
.novel-description sub,
|
||||||
|
.about-description sub {
|
||||||
|
vertical-align: sub;
|
||||||
|
font-size: smaller;
|
||||||
|
}
|
||||||
|
|
||||||
|
.chapter-content sup,
|
||||||
|
.novel-description sup,
|
||||||
|
.about-description sup {
|
||||||
|
vertical-align: super;
|
||||||
|
font-size: smaller;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 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 */
|
/* Polices */
|
||||||
@ -143,68 +244,37 @@
|
|||||||
font-family: "Consolas", "Monaco", monospace !important;
|
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 queries pour le responsive */
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.chapter-content,
|
.chapter-content,
|
||||||
.novel-description {
|
.novel-description,
|
||||||
|
.about-description {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chapter-content blockquote,
|
.chapter-content blockquote,
|
||||||
.novel-description blockquote {
|
.novel-description blockquote,
|
||||||
|
.about-description blockquote {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
padding: 0.8em 1em;
|
padding: 0.8em 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chapter-content pre,
|
.chapter-content pre,
|
||||||
.novel-description pre {
|
.novel-description pre,
|
||||||
|
.about-description pre {
|
||||||
padding: 0.8em;
|
padding: 0.8em;
|
||||||
font-size: 0.85em;
|
font-size: 0.85em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chapter-content h1,
|
.chapter-content h1,
|
||||||
.novel-description h1 { font-size: 1.75em; }
|
.novel-description h1,
|
||||||
|
.about-description h1 { font-size: 1.75em; }
|
||||||
|
|
||||||
.chapter-content h2,
|
.chapter-content h2,
|
||||||
.novel-description h2 { font-size: 1.5em; }
|
.novel-description h2,
|
||||||
|
.about-description h2 { font-size: 1.5em; }
|
||||||
|
|
||||||
.chapter-content h3,
|
.chapter-content h3,
|
||||||
.novel-description h3 { font-size: 1.25em; }
|
.novel-description h3,
|
||||||
|
.about-description h3 { font-size: 1.25em; }
|
||||||
}
|
}
|
@ -1 +1 @@
|
|||||||
1.1.6
|
1.1.7
|
Loading…
x
Reference in New Issue
Block a user