fix: markdownのデザイン修正

This commit is contained in:
moris 2024-12-22 11:56:02 +09:00
parent 4e3b33d7fd
commit 50abc892c7

View File

@ -1,13 +1,11 @@
.markdown {
width: 100%;
&>* {
max-width: 100%;
overflow: scroll;
@media (width>480px) {
font-size: 1.125em;
}
& h1 {
font-size: 2em;
@media(width>999px){padding-top:50px;margin-top:0;}
}
& h1::before {
@ -45,7 +43,6 @@
line-height: 2em;
@media (width>480px) {
margin: 1em 2em;
font-size: 1.125em;
}
}
@ -66,6 +63,7 @@
& img {
display: block;
margin: 1em auto;
max-width: 100%;
max-height: 60vh;
}
@ -77,15 +75,15 @@
background-color: var(--code-color);
}
& pre {
margin: 16px;
padding: 16px;
margin: 1em;
padding: 1em;
box-sizing: border-box;
border-radius: 8px;
background-color: var(--code-block);
color: #d1d9e1;
overflow-x: scroll;
@media (width<480px) {
margin: 0;
margin: 1em 0;
}
& code {
margin: 0;
@ -96,7 +94,7 @@
}
& table {
margin: 1rem auto;
font-size: 1.2em;
font-size: 1.2rem;
border-collapse: collapse;
& thead tr {
@ -115,7 +113,8 @@
position: relative;
font-style: italic;
width: fit-content;
padding: 1em;
max-width: 100%;
margin: 1em auto;
border-top: 1px solid var(--font-color);
border-bottom: 1px solid var(--font-color);