Fixed border issue for non main imgs

This commit is contained in:
Anton Pogrebnjak
2025-02-16 00:39:30 +01:00
parent 58b311046f
commit 810280fd33

View File

@@ -124,9 +124,17 @@ strong {
font-weight: bold; font-weight: bold;
} }
p { p, ul {
line-height: 1.5; line-height: 1.5;
margin-bottom: 1em; margin: 0;
}
p + p {
margin-top: 1em;
}
p + ul, p + ol {
margin-top: 0.4em;
} }
code { code {
@@ -144,57 +152,51 @@ code {
font-family: "Ubuntu"; font-family: "Ubuntu";
} }
quote {
width: 80%;
text-overflow: clip;
color: #ddd;
}
quote p {
margin: 0;
padding: 8px;
font-weight: 600;
line-height: 1.5;
text-align: center;
color: #aaa;
}
.prose p {
margin-bottom: 2em;
}
textarea { textarea {
width: 100%; width: 100%;
font-size: 16px; font-size: 16px;
} }
input { input {
font-size: 16px; font-size: 16px;
} }
table { table {
width: 100%; width: 100%;
} }
img {
max-width: 100%; main img {
display: block;
background-color: var(--text);
color: var(--background);
text-align: center;
width: 100%;
height: auto; height: auto;
border-radius: 8px; border-radius: 8px;
} }
code { code {
padding: 2px 5px; padding: 2px 5px;
background-color: rgb(var(--gray-light)); background-color: rgb(var(--gray-light));
border-radius: 2px; border-radius: 2px;
} }
pre { pre {
padding: 1.5em; padding: 1.5em;
border-radius: 8px; border-radius: 8px;
} }
pre > code { pre > code {
all: unset; all: unset;
} }
blockquote { blockquote {
border-left: 4px solid var(--accent); border-left: 4px solid var(--accent);
padding: 0 0 0 20px; padding: 0 0 0 20px;
margin: 0px; margin: 0px;
font-size: 1.333em; font-size: 1.333em;
} }
hr { hr {
border: none; border: none;
border-top: 1px solid var(--primary); border-top: 1px solid var(--primary);