mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
- markdown.css: .prose table gets display:block + overflow-x:auto so wide tables scroll inside their own box instead of stretching the page (post 2970 had a 1076px table overflowing 390px mobile and 1440px desktop) - td gets word-break:break-word + overflow-wrap:anywhere for long URLs - post_detail.html: .post-actions max-width:100% so Listen/Edit/Share/Delete buttons wrap inside the container on narrow screens
104 lines
1.9 KiB
CSS
104 lines
1.9 KiB
CSS
.prose {
|
|
color: #374151;
|
|
max-width: none;
|
|
}
|
|
.prose p {
|
|
margin-top: 1.25em;
|
|
margin-bottom: 1.25em;
|
|
}
|
|
.prose a {
|
|
color: #2563eb;
|
|
text-decoration: underline;
|
|
}
|
|
.prose strong {
|
|
font-weight: 600;
|
|
}
|
|
.prose ul {
|
|
margin-top: 1.25em;
|
|
margin-bottom: 1.25em;
|
|
list-style-type: disc;
|
|
padding-left: 1.625em;
|
|
}
|
|
.prose ol {
|
|
margin-top: 1.25em;
|
|
margin-bottom: 1.25em;
|
|
list-style-type: decimal;
|
|
padding-left: 1.625em;
|
|
}
|
|
.prose h1 {
|
|
font-size: 2.25em;
|
|
margin-top: 0;
|
|
margin-bottom: 0.8888889em;
|
|
line-height: 1.1111111;
|
|
font-weight: 600;
|
|
}
|
|
.prose h2 {
|
|
font-size: 1.5em;
|
|
margin-top: 2em;
|
|
margin-bottom: 1em;
|
|
line-height: 1.3333333;
|
|
font-weight: 600;
|
|
}
|
|
.prose h3 {
|
|
font-size: 1.25em;
|
|
margin-top: 1.6em;
|
|
margin-bottom: 0.6em;
|
|
line-height: 1.6;
|
|
font-weight: 600;
|
|
}
|
|
.prose img {
|
|
margin-top: 2em;
|
|
margin-bottom: 2em;
|
|
}
|
|
.prose code {
|
|
color: #111827;
|
|
font-weight: 600;
|
|
background-color: #f3f4f6;
|
|
padding: 0.2em 0.4em;
|
|
border-radius: 0.375rem;
|
|
font-size: 0.875em;
|
|
}
|
|
.prose pre {
|
|
color: #e5e7eb;
|
|
background-color: #1f2937;
|
|
overflow-x: auto;
|
|
font-size: 0.875em;
|
|
line-height: 1.7142857;
|
|
margin-top: 1.7142857em;
|
|
margin-bottom: 1.7142857em;
|
|
border-radius: 0.375rem;
|
|
padding: 1em;
|
|
}
|
|
.prose pre code {
|
|
background-color: transparent;
|
|
color: inherit;
|
|
padding: 0;
|
|
}
|
|
.prose blockquote {
|
|
font-style: italic;
|
|
border-left: 4px solid #e5e7eb;
|
|
padding-left: 1em;
|
|
margin: 1.25em 0;
|
|
}
|
|
.prose table {
|
|
display: block;
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
border-collapse: collapse;
|
|
margin: 2em 0;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
.prose table th {
|
|
background-color: #f3f4f6;
|
|
font-weight: 600;
|
|
text-align: left;
|
|
padding: 0.5em;
|
|
border: 1px solid #e5e7eb;
|
|
}
|
|
.prose table td {
|
|
padding: 0.5em;
|
|
border: 1px solid #e5e7eb;
|
|
word-break: break-word;
|
|
overflow-wrap: anywhere;
|
|
}
|