diff --git a/settings.yaml b/settings.yaml index 7847b8b..dcb067f 100644 --- a/settings.yaml +++ b/settings.yaml @@ -59,6 +59,16 @@ spec: name: cloud_by_url label: '云服务提供商 URL' placeholder: '请输入链接地址' + - $formkit: radio + name: footer_center + label: 页脚对齐方式 + value: false + help: 在非移动设备下改变页脚的对齐方式。 + options: + - label: 左侧 + value: false + - label: 居中 + value: true - group: basic_style label: '基础样式' formSchema: diff --git a/src/css/style.less b/src/css/style.less index ad86296..a7a33a4 100644 --- a/src/css/style.less +++ b/src/css/style.less @@ -3896,6 +3896,16 @@ button.swiper-pagination-bullet { } } +@media (min-width: (@mobile-max-width - 1)) { + .footer-center { + text-align: center; + + & > li { + text-align: left; + } + } +} + @media (max-width: (@desktop-min-width - 1)) { .navbar { .navbar-search .input { diff --git a/templates/common/footer.html b/templates/common/footer.html index 48e1498..033a3eb 100644 --- a/templates/common/footer.html +++ b/templates/common/footer.html @@ -1,6 +1,6 @@