mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-30 23:39:42 +01:00
f8d655fe37
The theme's original approach to its non-latin font fallbacks required `!important`, which overrode fonts that shouldn't have been changed, like the icon fonts used for editor buttons. Props kjellr, mako09, allancole. Fixes #45731. Built from https://develop.svn.wordpress.org/trunk@44650 git-svn-id: http://core.svn.wordpress.org/trunk@44481 1a063a9b-81f0-0310-95a4-ce76da25c4cd
202 lines
2.7 KiB
SCSS
202 lines
2.7 KiB
SCSS
/* Next/Previous navigation */
|
|
|
|
// Singular navigation
|
|
.post-navigation {
|
|
|
|
margin: calc(3 * 1rem) 0;
|
|
|
|
@include media(tablet) {
|
|
margin: calc(3 * 1rem) $size__site-margins;
|
|
max-width: calc(6 * (100vw / 12));
|
|
}
|
|
|
|
@include media(desktop) {
|
|
margin: calc(3 * 1rem) 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.nav-links {
|
|
|
|
margin: 0 $size__spacing-unit;
|
|
max-width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
@include media(tablet) {
|
|
margin: 0;
|
|
}
|
|
|
|
@include media(desktop) {
|
|
flex-direction: row;
|
|
margin: 0 $size__site-margins;
|
|
max-width: $size__site-desktop-content;
|
|
}
|
|
|
|
a {
|
|
.meta-nav {
|
|
color: $color__text-light;
|
|
user-select: none;
|
|
|
|
&:before,
|
|
&:after {
|
|
display: none;
|
|
content: "—";
|
|
width: 2em;
|
|
color: $color__text-light;
|
|
height: 1em;
|
|
}
|
|
}
|
|
|
|
.post-title {
|
|
hyphens: auto;
|
|
}
|
|
|
|
&:hover {
|
|
color: $color__link-hover;
|
|
}
|
|
}
|
|
|
|
.nav-previous,
|
|
.nav-next {
|
|
|
|
@include media(desktop) {
|
|
min-width: calc(50% - 2 * #{$size__spacing-unit});
|
|
}
|
|
}
|
|
|
|
.nav-previous {
|
|
order: 2;
|
|
|
|
@include media(desktop) {
|
|
order: 1;
|
|
}
|
|
|
|
+ .nav-next {
|
|
margin-bottom: $size__spacing-unit;
|
|
}
|
|
|
|
.meta-nav {
|
|
&:before {
|
|
display: inline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-next {
|
|
order: 1;
|
|
|
|
@include media(desktop) {
|
|
order: 2;
|
|
padding-left: $size__spacing-unit;
|
|
}
|
|
|
|
.meta-nav {
|
|
&:after {
|
|
display: inline;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Index/archive navigation
|
|
.pagination {
|
|
|
|
.nav-links {
|
|
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: 0 calc(.5 * #{$size__spacing-unit});
|
|
|
|
|
|
& > * {
|
|
padding: calc(.5 * #{$size__spacing-unit});
|
|
|
|
&.dots,
|
|
&.prev {
|
|
padding-left: 0;
|
|
}
|
|
|
|
&.dots,
|
|
&.next {
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
|
|
a:focus {
|
|
text-decoration: underline;
|
|
outline-offset: -1px;
|
|
|
|
&.prev,
|
|
&.next {
|
|
text-decoration: none;
|
|
|
|
.nav-prev-text,
|
|
.nav-next-text {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-next-text,
|
|
.nav-prev-text {
|
|
display: none;
|
|
}
|
|
|
|
@include media(tablet) {
|
|
|
|
margin-left: $size__site-margins;
|
|
padding: 0;
|
|
|
|
.prev,
|
|
.next {
|
|
|
|
& > * {
|
|
display: inline-block;
|
|
vertical-align: text-bottom;
|
|
}
|
|
}
|
|
|
|
& > * {
|
|
padding: $size__spacing-unit;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Comments navigation
|
|
.comment-navigation {
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.nav-previous,
|
|
.nav-next {
|
|
min-width: 50%;
|
|
width: 100%;
|
|
@include font-family( $font__heading );
|
|
font-weight: bold;
|
|
|
|
.secondary-text {
|
|
display: none;
|
|
|
|
@include media(tablet) {
|
|
display: inline;
|
|
}
|
|
}
|
|
|
|
svg {
|
|
vertical-align: middle;
|
|
position: relative;
|
|
margin: 0 -0.35em;
|
|
top: -1px;
|
|
}
|
|
}
|
|
|
|
.nav-next {
|
|
text-align: right;
|
|
}
|
|
}
|