New variable $scheme-text-align

This commit is contained in:
Mimi 2022-11-13 20:33:34 +08:00
parent 26b7ad7e63
commit 273fdfba5a
8 changed files with 9 additions and 12 deletions

View File

@ -13,7 +13,7 @@
.post-button {
margin-top: 40px;
text-align: center;
text-align: $scheme-text-align;
}
.use-motion {

View File

@ -28,7 +28,7 @@ if (hexo-config('creative_commons.post')) {
.post-tags {
margin-top: 40px;
text-align: center;
text-align: $scheme-text-align;
a {
display: inline-block;

View File

@ -17,7 +17,7 @@
// elements of .footer-inner through the `order` CSS property
.footer-inner {
box-sizing: border-box;
text-align: center;
text-align: $scheme-text-align;
flex-column();
main-container();
}

View File

@ -17,7 +17,7 @@ $page-number-current {
.pagination {
border-top: 1px solid $pagination-border;
margin: 120px 0 0;
text-align: center;
text-align: $scheme-text-align;
.prev, .next, .page-number {
@extend $page-number-basic;

View File

@ -18,8 +18,6 @@ hr {
// Pagination
// --------------------------------------------------
.pagination {
text-align: left;
+mobile() {
margin: 80px 0 0;
text-align: center;
@ -35,8 +33,6 @@ hr {
}
.footer-inner {
text-align: left;
+mobile() {
text-align: center;
}

View File

@ -3,7 +3,7 @@
.posts-expand {
&.index {
.post-header {
text-align: left;
text-align: $scheme-text-align;
+mobile() {
text-align: center;
@ -36,8 +36,6 @@
}
.post-tags {
text-align: left;
a {
background: var(--content-bg-color);
border-bottom: 0;
@ -56,7 +54,6 @@
.post-button {
margin-top: 20px;
text-align: left;
.btn {
background: none;

View File

@ -3,6 +3,8 @@
@import 'Muse';
$scheme-text-align = left;
$content-padding-bottom = 80px;
$posts-first-padding = 80px;
$posts-first-padding-mobile = 60px;

View File

@ -69,6 +69,8 @@ $menu-item-bg-color-dark = $black-light;
$theme-color = convert(hexo-config('theme_color.light'));
$theme-color-dark = convert(hexo-config('theme_color.dark'));
$scheme-text-align = center;
// Typography
// Font, line-height, and elements colors.
// --------------------------------------------------