Skip to content

Commit 28addc8

Browse files
authored
Add files via upload
1 parent 432adbd commit 28addc8

File tree

2 files changed

+27
-24
lines changed

2 files changed

+27
-24
lines changed

sources/style.css

+23-20
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,6 @@
256256
}
257257
/* post */
258258
@supports selector(::-webkit-scrollbar) {
259-
body.blur post > sub-post > post-content > post-content-substance::-webkit-scrollbar-track:horizontal {
260-
border-bottom-left-radius: 5px;
261-
border-bottom-right-radius: 5px;
262-
}
263259
post > sub-post > post-content > post-content-substance::-webkit-scrollbar-thumb {
264260
background-color: #4CAF50;
265261
border: 4px solid transparent;
@@ -606,29 +602,36 @@
606602
}
607603
post > sub-post > post-content /* -> */ {
608604
overflow: hidden;
609-
margin-top: -16px;
610605
flex-grow: 1;
611606
}
612-
post.tiny > sub-post > post-content {
607+
post > sub-post > post-content.has-only-post {
608+
margin-top: -16px;
609+
}
610+
post.tiny > sub-post > post-content.has-only-post {
613611
margin-top: -12px;
614612
}
615613
body.blur post > sub-post > post-content {
616614
border-bottom-left-radius: inherit;
617615
border-bottom-right-radius: inherit;
618616
}
619617
post > sub-post > post-content > post-content-substance /* -> */ {
620-
padding: 16px 40px 20px;
621-
overflow: auto hidden;
618+
overflow: auto;
619+
padding: 0px 40px 20px;
620+
box-sizing: border-box;
621+
height: 100%;
622622
}
623623
post.tiny > sub-post > post-content > post-content-substance {
624-
padding: 12px 30px 15px;
624+
padding: 0px 30px 15px;
625625
}
626-
post > sub-post > post-content > post-content-substance.no-content {
627-
padding-top: 0px;
626+
post > sub-post > post-content.has-only-post > post-content-substance {
627+
overflow: auto hidden;
628+
padding-top: 16px;
628629
}
629-
body.blur post > sub-post > post-content > post-content-substance {
630-
border-bottom-left-radius: inherit;
631-
border-bottom-right-radius: inherit;
630+
post.tiny > sub-post > post-content.has-only-post > post-content-substance {
631+
padding-top: 12px;
632+
}
633+
post > sub-post > post-content > post-content-substance.no-content {
634+
padding-bottom: 0px;
632635
}
633636
post > sub-post > scroll-into /* -> */ {
634637
position: relative;
@@ -893,12 +896,6 @@
893896
post > sub-post > post-content > post-content-substance:not(:first-of-type) {
894897
display: none;
895898
}
896-
post > sub-post > post-content > post-content-substance:not(.has-only-post) > post:first-of-type {
897-
padding-top: 20px;
898-
}
899-
post.tiny > sub-post > post-content > post-content-substance:not(.has-only-post) > post:first-of-type {
900-
padding-top: 15px;
901-
}
902899
post > sub-post > scroll-into:not(:first-of-type) {
903900
display: none;
904901
}
@@ -919,6 +916,12 @@
919916
post > sub-post > post-leader > post-leader-advance > :not(button.advance, dropdown.has-single-button) {
920917
display: none;
921918
}
919+
post > sub-post > post-content:not(.has-only-post) > post-content-substance > post:first-of-type {
920+
padding-top: 20px;
921+
}
922+
post.tiny > sub-post > post-content:not(.has-only-post) > post-content-substance > post:first-of-type {
923+
padding-top: 15px;
924+
}
922925
}
923926
}
924927
@layer backdrop-before {

sources/style.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -793,8 +793,8 @@
793793
value.postContentSubstanceNode.classList.add('no-content');
794794
}
795795
/* '.has-only-post' for the 'post > sub-post > post-content's */
796-
let hasOnlyPost = (parentNode) => {
797-
return Array.from(parentNode.childNodes).every((value) => {
796+
let hasOnlyPost = (postContentSubstanceNode) => {
797+
return Array.from(postContentSubstanceNode.childNodes).every((value) => {
798798
if (value.nodeName == '#comment') {
799799
return true;
800800
} else if (value.nodeName == '#text' && value.wholeText.removeSpace() == '') {
@@ -811,9 +811,9 @@
811811
});
812812
};
813813
if (hasOnlyPost(value.postContentSubstanceNode)) {
814-
value.postContentSubstanceNode.classList.add('has-only-post');
814+
value.postContentNode.classList.add('has-only-post');
815815
} else {
816-
value.postContentSubstanceNode.classList.remove('has-only-post');
816+
value.postContentNode.classList.remove('has-only-post');
817817
}
818818
/* '.non-blur' for the 'post's */
819819
if (value.postNode.hasAttribute('marker')) {

0 commit comments

Comments
 (0)