mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-09-04 02:17:34 -05:00
Compare commits
1 Commits
b1cdf7c318
...
5631f1655a
Author | SHA1 | Date | |
---|---|---|---|
5631f1655a
|
@@ -217,6 +217,14 @@ hr {
|
|||||||
border: 1px solid var(--background-3);
|
border: 1px solid var(--background-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (min-width: 720px) {
|
||||||
|
.full-width-hr {
|
||||||
|
/* see also: the related-posts section too */
|
||||||
|
margin-left: calc(-100vw / 2 + 760px / 2);
|
||||||
|
margin-right: calc(-100vw / 2 + 760px / 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
table.simple {
|
table.simple {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border: 2px solid var(--text-1);
|
border: 2px solid var(--text-1);
|
||||||
@@ -846,14 +854,15 @@ aside.quote {
|
|||||||
|
|
||||||
/* Related posts section {{{ */
|
/* Related posts section {{{ */
|
||||||
|
|
||||||
/* set the margins on the contents instead of the parent .related-posts
|
.full-width-page-list {
|
||||||
* so that the posts in the list clip off the edge of the screen,
|
/* make left/right 0 margin so it takes up full width */
|
||||||
* which makes a more obvious indicator that it's scrollable
|
margin: 25px 0;
|
||||||
*/
|
}
|
||||||
|
|
||||||
.related-posts > hr,
|
.related-posts > hr,
|
||||||
.related-posts > h1 {
|
.related-posts > h1 {
|
||||||
margin: var(--page-margin);
|
margin-left: 20px;
|
||||||
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.related-posts .page {
|
.related-posts .page {
|
||||||
@@ -863,18 +872,17 @@ aside.quote {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.related-posts .page:first-child {
|
.related-posts .page:first-child {
|
||||||
margin-left: var(--page-margin);
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
.related-posts .page:last-child {
|
.related-posts .page:last-child {
|
||||||
margin-right: var(--page-margin);
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.related-posts .page-list {
|
.related-posts .page-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
overflow-x: auto;
|
overflow-x: scroll;
|
||||||
margin-bottom: var(--page-margin);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
1
layouts/_shortcodes/full-width-hr.html
Normal file
1
layouts/_shortcodes/full-width-hr.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<hr class="full-width-hr">
|
Reference in New Issue
Block a user