Fix the corners of the page navigation buttons of the latest/oldest post

This commit is contained in:
Cotes Chung 2021-03-04 14:42:02 +08:00
parent 3400568b09
commit eae506113b

View file

@ -70,11 +70,13 @@
@include btn-post-nav; @include btn-post-nav;
color: var(--link-color); color: var(--link-color);
&:hover { &:hover {
background: #2a408e; background: #2a408e;
color: #fff; color: #fff;
border-color: #2a408e; border-color: #2a408e;
} }
&.disabled { &.disabled {
@include btn-post-nav; @include btn-post-nav;
@ -82,19 +84,34 @@
cursor: not-allowed; cursor: not-allowed;
background: none; background: none;
color: gray; color: gray;
&:hover { &:hover {
border-color: none; border-color: none;
} }
} }
&.btn-outline-primary.disabled:focus { &.btn-outline-primary.disabled:focus {
box-shadow: none; box-shadow: none;
} }
&::before { &::before {
color: var(--text-muted-color); color: var(--text-muted-color);
font-size: 0.65rem; font-size: 0.65rem;
text-transform: uppercase; text-transform: uppercase;
content: attr(prompt); content: attr(prompt);
} }
&:first-child {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
left: 0.5px;
}
&:last-child {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
right: 0.5px;
}
} }
p { p {
@ -104,19 +121,6 @@
white-space: normal; white-space: normal;
} }
a {
&:first-child {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
left: 0.5px;
}
&:last-child {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
right: 0.5px;
}
}
} // .post-navigation } // .post-navigation
@keyframes fade-up { @keyframes fade-up {