This commit is contained in:
McShelby 2023-08-25 22:01:58 +00:00
parent fbcdb0358f
commit 12c8bb4a15
255 changed files with 6281 additions and 7589 deletions

View file

@ -322,11 +322,11 @@ dd {
z-index: 70;
}
#body img:not(.lightbox-image),
#body img.center,
#body img,
#body .video-container {
display: block;
margin: 1.5rem auto;
margin-left: auto;
margin-right: auto;
text-align: center;
}
@ -563,33 +563,39 @@ div.box > .box-content {
padding-right: 1rem;
}
#body table th > :first-child,
#body table th > :first-child :first-child,
#body table td > :first-child,
#body table td > :first-child :first-child,
#body div.box > .box-content > :first-child,
#body div.box > .box-content > :first-child :first-child,
#body div.expand > .expand-content-text > :first-child,
#body div.expand > .expand-content-text > :first-child :first-child,
#body div.tab-content > .tab-content-text > :first-child,
#body div.tab-content > .tab-content-text > :first-child :first-child {
p:empty {
/* in case of image render hook, Hugo may generate empty <p>s that we want to ignore */
display: none;
}
/* in case of image render hook, Hugo may generate empty <p>s that we want to ignore aswell, so a simple :first-child or :last-child is not enough */
#body table th > :nth-child(1 of :not(:empty)),
#body table th > :nth-child(1 of :not(:empty)) :nth-child(1 of :not(:empty)),
#body table td > :nth-child(1 of :not(:empty)),
#body table td > :nth-child(1 of :not(:empty)) :nth-child(1 of :not(:empty)),
#body div.box > .box-content > :nth-child(1 of :not(:empty)),
#body div.box > .box-content > :nth-child(1 of :not(:empty)) :nth-child(1 of :not(:empty)),
#body div.expand > .expand-content-text > :nth-child(1 of :not(:empty)),
#body div.expand > .expand-content-text > :nth-child(1 of :not(:empty)) :nth-child(1 of :not(:empty)),
#body div.tab-content > .tab-content-text > :nth-child(1 of :not(:empty)),
#body div.tab-content > .tab-content-text > :nth-child(1 of :not(:empty)) :nth-child(1 of :not(:empty)) {
margin-top: 0;
}
#body table th > :last-child,
#body table th > :last-child :last-child,
#body table th > :nth-last-child(1 of :not(:empty)),
#body table th > :nth-last-child(1 of :not(:empty)) :nth-last-child(1 of :not(:empty)),
#body table th > div.highlight:last-child pre,
#body table td > :last-child,
#body table td > :last-child :last-child,
#body table td > :nth-last-child(1 of :not(:empty)),
#body table td > :nth-last-child(1 of :not(:empty)) :nth-last-child(1 of :not(:empty)),
#body table td > div:last-child pre,
#body div.box > .box-content > :last-child,
#body div.box > .box-content > :last-child :last-child,
#body div.box > .box-content > :nth-last-child(1 of :not(:empty)),
#body div.box > .box-content > :nth-last-child(1 of :not(:empty)) :nth-last-child(1 of :not(:empty)),
#body div.box > .box-content > div:last-child pre,
#body div.expand > .expand-content-text > :last-child,
#body div.expand > .expand-content-text > :last-child :last-child,
#body div.expand > .expand-content-text > :nth-last-child(1 of :not(:empty)),
#body div.expand > .expand-content-text > :nth-last-child(1 of :not(:empty)) :nth-last-child(1 of :not(:empty)),
#body div.expand > .expand-content-text > div:last-child pre,
#body div.tab-content > .tab-content-text > :last-child,
#body div.tab-content > .tab-content-text > :last-child :last-child,
#body div.tab-content > .tab-content-text > :nth-last-child(1 of :not(:empty)),
#body div.tab-content > .tab-content-text > :nth-last-child(1 of :not(:empty)) :nth-last-child(1 of :not(:empty)),
#body div.tab-content > .tab-content-text > div:last-child pre {
margin-bottom: 0;
}