Simplify post nav styles
This commit is contained in:
@ -1,16 +1,19 @@
|
||||
#post-nav {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: 0.25rem;
|
||||
max-width: 100vw;
|
||||
|
||||
@media only screen and (max-width: 720px) {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.post-nav-item {
|
||||
flex: 1 1 0;
|
||||
flex: 1;
|
||||
transition: var(--transition);
|
||||
border-radius: var(--rounded-corner);
|
||||
padding: 1rem;
|
||||
padding-block-end: 0.75rem;
|
||||
width: 0;
|
||||
max-width: calc(50% - 0.125rem);
|
||||
min-width: 0;
|
||||
text-decoration: none;
|
||||
|
||||
&:hover {
|
||||
@ -35,7 +38,6 @@
|
||||
}
|
||||
|
||||
&.post-nav-next {
|
||||
margin-inline-start: auto;
|
||||
text-align: end;
|
||||
|
||||
.nav-arrow::after {
|
||||
@ -48,7 +50,7 @@
|
||||
}
|
||||
|
||||
.nav-arrow {
|
||||
margin-block-end: 0.5rem;
|
||||
margin-block-end: 0.75rem;
|
||||
color: var(--fg-muted-5);
|
||||
font-weight: normal;
|
||||
line-height: 1;
|
||||
@ -57,19 +59,11 @@
|
||||
.post-title {
|
||||
display: block;
|
||||
transition: var(--transition);
|
||||
max-width: 90vw;
|
||||
overflow: hidden;
|
||||
color: var(--fg-color);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 720px) {
|
||||
flex-direction: column;
|
||||
|
||||
.post-nav-item {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user