1
0
mirror of https://github.com/avinal/avinal.github.io.git synced 2026-07-03 23:30:09 +05:30
Files
avinal.github.io/html-only/static/css/content.css
T

232 lines
4.2 KiB
CSS

.content .MathJax {
font-size: 100%!important;
overflow-x: auto;
overflow-y: hidden;
}
.content .katex {
font-size: 100%!important;
overflow-x: auto;
overflow-y: hidden;
}
.content :last-child {
margin-bottom: 0;
}
.content a {
color: #AA0000;
text-decoration: underline;
}
.content a.footnote-ref::before {
content: "[";
}
.content a.footnote-ref::after {
content: "]";
}
.content blockquote,
.content div,
.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6,
.content p,
.content pre,
.content ol,
.content table,
.content ul {
margin-bottom: 1rem;
}
.content blockquote {
border-left: black 2px solid;
font-style: italic;
padding: 1rem 0 1rem 2rem;
}
.content code {
background-color: #F5F5F5;
border-radius: .2rem;
color: #AA0000;
font-family: 'Latin Modern Mono', Courier, monospace;
padding: 0 .2rem;
}
.content h1, .content h2, .content h3,
.content h4, .content h5, .content h6 {
line-height: 1.5;
}
.content h1 {
font-size: 2.4rem;
}
.content h2 {
font-size: 1.8rem;
}
.content h3 {
font-size: 1.4rem;
}
.content h4 {
font-size: 1.2rem;
}
.content h5 {
font-size: 1.1rem;
}
.content h6 {
font-size: 1rem;
}
.content img {
max-width: 100%;
}
.content p {
text-align: justify;
}
.content pre {
background-color: #F5F5F5!important;
border-radius: .2rem;
font-family: 'Latin Modern Mono', Courier, monospace;
margin-top: .5rem;
overflow-x: auto;
padding: .5rem;
}
.content pre code {
padding: 0;
}
.content strong.chinese {
font-weight: normal;
text-emphasis-style: dot;
text-emphasis-position: under;
-webkit-text-emphasis-style: dot;
-webkit-text-emphasis-position: under;
}
.content table {
display: block;
overflow-x: auto;
}
.content td, .content th {
border: #575C61 1px solid;
padding: .1rem .5rem;
}
.content th {
background-color: #575C61;
color: #FAFAFA;
}
.content ol, .content ul {
margin-left: 1.5rem;
}
.content.numbered-subtitles {
counter-reset: section-h2;
}
.content.numbered-subtitles h2 {
counter-reset: section-h3;
}
.content.numbered-subtitles h2:before {
counter-increment: section-h2;
content: counter(section-h2) " ";
}
.content.numbered-subtitles h3 {
counter-reset: section-h4;
}
.content.numbered-subtitles h3:before {
counter-increment: section-h3;
content: counter(section-h2) "." counter(section-h3) " ";
}
.content.numbered-subtitles h4 {
counter-reset: section-h5;
}
.content.numbered-subtitles h4:before {
counter-increment: section-h4;
content: counter(section-h2) "." counter(section-h3) "." counter(section-h4) " ";
}
.content.numbered-subtitles h5 {
counter-reset: section-h6;
}
.content.numbered-subtitles h5:before {
counter-increment: section-h5;
content: counter(section-h2) "." counter(section-h3) "." counter(section-h4) "." counter(section-h5) " ";
}
.content.numbered-subtitles h6:before {
counter-increment: section-h6;
content: counter(section-h2) "." counter(section-h3) "." counter(section-h4) "." counter(section-h5) "." counter(section-h6) " ";
}
.toc.numbered-subtitles {
counter-reset: ul-h2;
}
.toc.numbered-subtitles li {
counter-reset: ul-h3;
}
.toc.numbered-subtitles li:before {
counter-increment: ul-h2;
content: counter(ul-h2) " ";
}
.toc.numbered-subtitles li li {
counter-reset: ul-h4;
}
.toc.numbered-subtitles li li:before {
counter-increment: ul-h3;
content: counter(ul-h2) "." counter(ul-h3) " ";
}
.toc.numbered-subtitles li li li {
counter-reset: ul-h5;
}
.toc.numbered-subtitles li li li:before {
counter-increment: ul-h4;
content: counter(ul-h2) "." counter(ul-h3) "." counter(ul-h4) " ";
}
.toc.numbered-subtitles li li li li {
counter-reset: ul-h6;
}
.toc.numbered-subtitles li li li li:before {
counter-increment: ul-h5;
content: counter(ul-h2) "." counter(ul-h3) "." counter(ul-h4) "." counter(ul-h5) " ";
}
.toc.numbered-subtitles li li li li li:before {
counter-increment: ul-h6;
content: counter(ul-h2) "." counter(ul-h3) "." counter(ul-h4) "." counter(ul-h5) "." counter(ul-h6) " ";
}