Skip to content

Commit 719de57

Browse files
committed
fix(css): variable CSS pour la taille de l'avatar
1 parent 66f96db commit 719de57

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

app/css/styles.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
--color-lighter: rgb(0 0 0 / 20%);
2727
--color-ultra-light: rgb(255 255 255 / 25%);
2828
--color-link: darkblue;
29+
--avatar-size: 40px;
2930
}
3031

3132
/* DARKMODE */
@@ -373,9 +374,9 @@ iframe {
373374
content: "";
374375
margin-right: 15px;
375376
background-image: url("../favicon.svg");
376-
background-size: 40px;
377-
width: 40px;
378-
height: 40px;
377+
background-size: var(--avatar-size);
378+
width: var(--avatar-size);
379+
height: var(--avatar-size);
379380
display: inline-block;
380381
vertical-align: bottom;
381382
}
@@ -638,12 +639,12 @@ button.copyCode {
638639
.message > .admonition:first-child,
639640
.message > table:first-child,
640641
.message > pre:first-child {
641-
margin-left: 60px !important;
642+
margin-left: calc(var(--avatar-size) + 20px) !important;
642643
}
643644
.message > .admonition:first-child:before,
644645
.message > table:first-child:before,
645646
.message > pre:first-child:before {
646-
margin-left: -70px !important;
647+
margin-left: calc(-1 * (var(--avatar-size) + 30px)) !important;
647648
position: absolute !important;
648649
margin-top: -20px !important;
649650
}

app/css/styles.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)