mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2026-11-22 12:39:04 +00:00
refactor(md-content): remove unused css rules
- removed pygments line number styles (.highlighttable, .linenodiv) - removed li>.highlight margin reset left over from full-bleed code blocks
This commit is contained in:
1 file changed
+2
-23
@@ -88,7 +88,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.md-content table th,
|
.md-content table th,
|
||||||
.md-content table:not(.highlighttable, .highlight table, .gist .highlight) td {
|
.md-content table:not(.highlight table, .gist .highlight) td {
|
||||||
min-width: 80px;
|
min-width: 80px;
|
||||||
padding: 6px 13px;
|
padding: 6px 13px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
text-align: start;
|
text-align: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-content table:not(.highlighttable) td code:only-child {
|
.md-content table td code:only-child {
|
||||||
margin: auto 0;
|
margin: auto 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,31 +114,10 @@
|
|||||||
direction: ltr;
|
direction: ltr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-content li>.highlight {
|
|
||||||
margin-inline-end: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md-content .highlight pre {
|
.md-content .highlight pre {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-content .highlighttable {
|
|
||||||
table-layout: fixed;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md-content .highlighttable td:first-child {
|
|
||||||
width: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md-content .highlighttable td .linenodiv {
|
|
||||||
padding-inline-end: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md-content .highlighttable td .highlight,
|
|
||||||
.md-content .highlighttable td .linenodiv pre {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-content code {
|
.post-content code {
|
||||||
padding: 0.2rem 0.3rem;
|
padding: 0.2rem 0.3rem;
|
||||||
font-size: 0.78em;
|
font-size: 0.78em;
|
||||||
|
|||||||
Reference in new issue
Block a user