本站所用WordPress主题《Tempo》优化版。
请先从WordPress官方主题库中安装原始版本:🔗 https://wordpress.org/themes/tempo/
在模板自定义CSS处新增如下内容:
注:针对移动端忽略部分调整的CSS样式。移动端页面宽度阈值为主题默认的1200px
@media (max-width:1169px) { body {padding:60px 0;} .comments-list-collapse {padding:30px 0 15px !important;} .tempo-comments {margin-top:-10px;} input#submit { margin-bottom: 15px !important; } } .category-sticked .tempo-title {font-size:28px !important;} .category-sticked .tempo-title a { cursor:default;} .tempo-site-description {display:none !important;} .tempo-container {margin-bottom:-5px;} .tempo-site-title { font-size:30px !important; font-family:'Domine',serif !important; line-height:1.25 !important; } .col-lg-12 .tempo-menu-wrapper {display:none;} .tempo-headline { font-family:'Domine',serif !important; font-weight:700 !important; margin:30px 0 0 -1px !important; } #tempo-headline-404 {display:none;} .tempo-article.sticky {margin-bottom: -50px;} .tempo-article.sticky .tempo-meta {display:none;} a.more-link {display:none !important;} .tempo-page.template-single {padding:20px 0 !important;} .counter-wrapper {margin:55px 0 0 0px !important;} .nav-links {margin:-0.25rem 0 0.25rem;} .pagination-wrapper span, .pagination-wrapper a{padding: 10px 20px;} ol.hoverEnabled.EnlighterJS {margin: 0 !important;} .tempo-hentry>*+div.clearfix:last-child {margin-top:1.5rem !important;} .comments-list-collapse { text-align:center; padding-bottom: 15px; } input#submit { width:100%; margin:10px 0 45px; } h3.tempo-comments-title {padding-bottom: 40px !important;} .tempo-not-found {padding-top:0;} .tempo-section.tempo-404 div.tempo-hentry {padding-top:0;} .tempo-search-form button {padding:8px 22px;}
最后更新:2021-3-20,修正移动版宽度适配错误。
原版《Tempo》主题版权归 myThem.es 所有,基于GPL v2协议开源。