fix: make styles work in older browsers

This commit is contained in:
Ivan R. 2024-03-29 23:48:41 +05:00
parent f711ced991
commit b8dbc971cd
Signed by: lumin
GPG key ID: E0937DC7CD6D3817

View file

@ -51,33 +51,32 @@ const formatDate = (date: Date) => {
display: flex; display: flex;
gap: 5px; gap: 5px;
} }
.content { .content :global(img) {
img {
width: 100%; width: 100%;
max-width: 700px; max-width: 700px;
margin-left: calc((100% - min(100%, 700px)) / 2); margin-left: calc((100% - min(100%, 700px)) / 2);
margin-bottom: 20px; margin-bottom: 20px;
cursor: pointer; cursor: pointer;
} }
th, td { .content :global(th),
.content :global(td) {
border: 1px solid #444; border: 1px solid #444;
padding: 6px 10px; padding: 6px 10px;
} }
th { .content :global(th) {
text-align: left; text-align: left;
} }
table { .content :global(table) {
border-collapse: collapse; border-collapse: collapse;
width: 100%; width: 100%;
} }
pre { .content :global(pre) {
padding: 12px; padding: 12px;
border-radius: 5px; border-radius: 5px;
} }
p > code { .content :global(code) {
background-color: #24292e; background-color: #24292e;
padding: 2px 4px; padding: 2px 4px;
border-radius: 4px; border-radius: 4px;
} }
}
</style> </style>