2018-05-26 18:59:29 +08:00
|
|
|
<?php
|
|
|
|
function customizer_css() { ?>
|
|
|
|
<style type="text/css">
|
|
|
|
<?php // Style Settings
|
|
|
|
if ( akina_option('shownav') ) { ?>
|
|
|
|
.site-top .lower nav {display: block !important;}
|
|
|
|
<?php } // Style Settings ?>
|
|
|
|
<?php // theme-skin
|
|
|
|
if ( akina_option('theme_skin') ) { ?>
|
|
|
|
.author-profile i , .post-like a , .post-share .show-share , .sub-text , .we-info a , span.sitename , .post-more i:hover , #pagination a:hover , .post-content a:hover , .float-content i:hover{ color: <?php echo akina_option('theme_skin'); ?> }
|
|
|
|
.feature i , /*.feature-title span ,*/ .download , .navigator i:hover , .links ul li:before , .ar-time i , span.ar-circle , .object , .comment .comment-reply-link , .siren-checkbox-radio:checked + .siren-checkbox-radioInput:after { background: <?php echo akina_option('theme_skin'); ?> }
|
|
|
|
::-webkit-scrollbar-thumb { background: <?php echo akina_option('theme_skin'); ?> }
|
|
|
|
.download , .navigator i:hover , .link-title , .links ul li:hover , #pagination a:hover , .comment-respond input[type='submit']:hover { border-color: <?php echo akina_option('theme_skin'); ?> }
|
2019-01-25 11:27:53 +08:00
|
|
|
.entry-content a:hover , .site-info a:hover , .comment h4 a , #comments-navi a.prev , #comments-navi a.next , .comment h4 a:hover , .site-top ul li a:hover , .entry-title a:hover , #archives-temp h3 , span.page-numbers.current , .sorry li a:hover , .site-title a:hover , i.iconfont.js-toggle-search.iconsearch:hover , .comment-respond input[type='submit']:hover, blockquote:before, blockquote:after { color: <?php echo akina_option('theme_skin'); ?> }
|
|
|
|
|
|
|
|
#aplayer-float .aplayer-lrc-current { color: <?php echo akina_option('theme_skin'); ?> !important}
|
2019-01-02 12:34:58 +08:00
|
|
|
|
2019-08-03 15:39:07 +08:00
|
|
|
.is-active-link::before, .commentbody:not(:placeholder-shown)~.input-label, .commentbody:focus~.input-label {
|
2019-01-02 12:34:58 +08:00
|
|
|
background-color: <?php echo akina_option('theme_skin'); ?> !important
|
|
|
|
}
|
|
|
|
|
2019-08-03 15:39:07 +08:00
|
|
|
.commentbody:focus {
|
|
|
|
border-color: <?php echo akina_option('theme_skin'); ?> !important
|
|
|
|
}
|
|
|
|
|
2019-01-02 12:56:17 +08:00
|
|
|
.insert-image-tips:hover, .insert-image-tips-hover{
|
2019-01-02 12:34:58 +08:00
|
|
|
color: <?php echo akina_option('theme_skin'); ?>;
|
|
|
|
border: 1px solid <?php echo akina_option('theme_skin'); ?>
|
|
|
|
}
|
|
|
|
|
2019-01-02 12:56:17 +08:00
|
|
|
.site-top ul li a:after {
|
2019-01-26 11:25:53 +08:00
|
|
|
background-color: <?php echo akina_option('theme_skin'); ?>
|
2019-01-02 12:56:17 +08:00
|
|
|
}
|
|
|
|
|
2019-01-02 13:15:14 +08:00
|
|
|
.scrollbar,.butterBar-message {
|
2019-01-24 17:01:27 +08:00
|
|
|
background: <?php echo akina_option('theme_skin'); ?> !important
|
2019-01-02 12:56:17 +08:00
|
|
|
}
|
|
|
|
|
2019-01-02 12:34:58 +08:00
|
|
|
#nprogress .spinner-icon{
|
|
|
|
border-top-color: <?php echo akina_option('theme_skin'); ?>;
|
|
|
|
border-left-color: <?php echo akina_option('theme_skin'); ?>
|
|
|
|
}
|
|
|
|
|
2019-01-02 12:56:17 +08:00
|
|
|
#nprogress .bar {
|
|
|
|
background: <?php echo akina_option('theme_skin'); ?>
|
|
|
|
}
|
|
|
|
|
2019-08-19 17:47:43 +08:00
|
|
|
.changeSkin-gear,.toc{
|
|
|
|
background:rgba(255,255,255,<?php echo akina_option('sakura_skin_alpha','') ?>);
|
|
|
|
}
|
|
|
|
|
2019-01-26 11:25:53 +08:00
|
|
|
<?php if(akina_option('entry_content_theme') == "sakura"){ ?>
|
|
|
|
.entry-content th {
|
|
|
|
background-color: <?php echo akina_option('theme_skin'); ?>
|
|
|
|
}
|
|
|
|
<?php } ?>
|
2019-08-18 01:50:21 +08:00
|
|
|
<?php if(akina_option('live_search')){ ?>
|
|
|
|
.search-form--modal .search-form__inner {
|
|
|
|
bottom: unset !important;
|
|
|
|
top: 10% !important;
|
|
|
|
}
|
|
|
|
<?php } ?>
|
2019-01-26 11:25:53 +08:00
|
|
|
|
2020-08-06 17:14:46 +08:00
|
|
|
<?php if(akina_option('feature_align') == 'left'){ ?>
|
|
|
|
.post-list-thumb .post-content-wrap {
|
|
|
|
float: left;
|
|
|
|
padding-left: 30px;
|
|
|
|
padding-right: 0;
|
|
|
|
text-align: right;
|
|
|
|
margin: 20px 10px 10px 0
|
|
|
|
}
|
|
|
|
.post-list-thumb .post-thumb {
|
|
|
|
float: left
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-list-thumb .post-thumb a {
|
|
|
|
border-radius: 10px 0 0 10px
|
|
|
|
}
|
|
|
|
<?php }if(akina_option('feature_align') == 'alternate'){ ?>
|
|
|
|
.post-list-thumb:nth-child(2n) .post-content-wrap {
|
|
|
|
float: left;
|
|
|
|
padding-left: 30px;
|
|
|
|
padding-right: 0;
|
|
|
|
text-align: right;
|
|
|
|
margin: 20px 10px 10px 0
|
|
|
|
}
|
|
|
|
.post-list-thumb:nth-child(2n) .post-thumb {
|
|
|
|
float: left
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-list-thumb:nth-child(2n) .post-thumb a {
|
|
|
|
border-radius: 10px 0 0 10px
|
|
|
|
}
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
|
2020-02-14 00:09:01 +08:00
|
|
|
.post-list-thumb{opacity: 0}
|
|
|
|
.post-list-show {opacity: 1}
|
|
|
|
|
2018-05-26 18:59:29 +08:00
|
|
|
<?php } // theme-skin ?>
|
|
|
|
<?php // Custom style
|
|
|
|
if ( akina_option('site_custom_style') ) {
|
|
|
|
echo akina_option('site_custom_style');
|
|
|
|
}
|
|
|
|
// Custom style end ?>
|
|
|
|
<?php // liststyle
|
|
|
|
if ( akina_option('list_type') == 'square') { ?>
|
|
|
|
.feature img{ border-radius: 0px; !important; }
|
|
|
|
.feature i { border-radius: 0px; !important; }
|
|
|
|
<?php } // liststyle ?>
|
|
|
|
<?php // comments
|
|
|
|
if ( akina_option('toggle-menu') == 'no') { ?>
|
|
|
|
.comments .comments-main {display:block !important;}
|
|
|
|
.comments .comments-hidden {display:none !important;}
|
|
|
|
<?php } // comments ?>
|
|
|
|
<?php
|
2019-11-28 23:21:24 +08:00
|
|
|
$image_api = 'background-image: url("'.rest_url('sakura/v1/image/cover').'");';
|
2018-05-26 18:59:29 +08:00
|
|
|
$bg_style = akina_option('focus_height') ? 'background-position: center center;background-attachment: inherit;' : '';
|
|
|
|
?>
|
|
|
|
.centerbg{<?php echo $image_api.$bg_style ?>background-position: center center;background-attachment: inherit;}
|
|
|
|
.rotating {
|
|
|
|
-webkit-animation: rotating 6s linear infinite;
|
|
|
|
-moz-animation: rotating 6s linear infinite;
|
|
|
|
-ms-animation: rotating 6s linear infinite;
|
|
|
|
-o-animation: rotating 6s linear infinite;
|
|
|
|
animation: rotating 6s linear infinite;
|
|
|
|
}
|
2018-06-26 15:43:54 +08:00
|
|
|
<?php if(akina_option('comment_info_box_width', '')): ?>
|
|
|
|
.cmt-popup {
|
|
|
|
--widthA: <?php echo akina_option('comment_info_box_width', ''); ?>%;
|
|
|
|
--widthB: calc(var(--widthA) - 71px);
|
|
|
|
--widthC: calc(var(--widthB) / 3);
|
|
|
|
width: var(--widthC);
|
|
|
|
}
|
|
|
|
<?php endif;?>
|
2020-08-08 00:02:36 +08:00
|
|
|
body.dark #main-container,body.dark .pattern-center:after,body.dark #mo-nav,body.dark .headertop-bar::after,body.dark .site-content,body.dark .comments,body.dark .site-footer{background:#31363b !important;}body.dark .pattern-center-blank,body.dark .yya,body.dark .blank,body.dark .changeSkin-gear,body.dark .toc,body.dark .search-form input{background:rgba(49,54,59,0.85);}body.dark .single-reward .reward-row{background:#bebebe;}body.dark .font-family-controls button{background-color:#828080;}body.dark .single-reward .reward-row:before{border-bottom:13px solid #bebebe;}body.dark .search-form--modal,body.dark .ins-section .ins-section-header{border-bottom:none;background:rgba(49,54,59,0.95);}body.dark .ins-section .ins-search-item:hover,body.dark .ins-section .ins-search-item.active,body.dark .ins-section .ins-search-item:hover .ins-slug,body.dark .ins-section .ins-search-item.active .ins-slug,body.dark .ins-section .ins-search-item:hover .ins-search-preview,body.dark .ins-section .ins-search-item.active .ins-search-preview,body.dark .ins-section .ins-search-item:hover header,body.dark .ins-section .ins-search-item:hover .iconfont{color:#fff;background:#31363b;}body.dark .search_close:after,body.dark .search_close:before{background-color:#eee;}body.dark .search_close:hover:after,body.dark .search_close:hover:before{background-color:#3daee9;}body.dark input.m-search-input{background:#bebebe;}body.dark .openNav .icon,body.dark .openNav .icon:after,body.dark .openNav .icon:before{background-color:#eee;}body.dark .site-header:hover{background:#31363b;}body.dark .post-date,body.dark .post-list-thumb a,body.dark .menhera-container .emoji-item:hover{color:#424952;}body.dark .entry-content p,body.dark .entry-content ul,body.dark .entry-content ol,body.dark .comments .body p,body.dark .float-content,body.dark .post-list p,body.dark .link-title{color:#bebebe !important;}body.dark .entry-title a,body.dark .post-list-thumb .post-title,body.dark .post-list-thumb,body.dark .art-content #archives .al_mon_list .al_mon,body.dark .art-content #archives .al_mon_list span,body.dark .art .art-content #archives a,body.dark .menhera-container .emoji-item{color:#bebebe;}body.dark .logolink a,body.dark .post-content a:hover,body.dark .comment .body p a{color:rgba(61,174,233,0.8) !important;}body.dark .lower li ul,body.dark .header-user-avatar:hover .header-user-menu{background:#31363b;}body.dark .header-user-menu::before,body.dark .lower li ul::before{border-color:transparent transparent #31363b transparent;}body.dark .site-top ul li a,body.dark .header-user-menu a,body.dark #mo-nav ul li a,body.dark .site-title a,body.dark header.page-header,body.dark h1.cat-title{color:#eee;}body.dark .art .art-content #archives .al_year,body.dark .comment-respond input,body.dark .comment-respond textarea,body.dark .siren-checkbox-label{color:#eee;}body.dark input[type=color]:focus,body.dark input[type=date]:focus,body.dark input[type=datetime-local]:focus,body.dark input[type=datetime]:focus,body.dark input[type=email]:focus,body.dark input[type=month]:focus,body.dark input[type=number]:focus,body.dark input[type=password]:focus,body.dark input[type=range]:focus,body.dark input[type=search]:focus,body.dark input[type=tel]:focus,body.dark input[type=text]:focus,body.dark input[type=time]:focus,body.dark input[type=url]:focus,body.dark input[type=week]:focus,body.dark textarea:focus,body.dark #mo-nav .m-search form{color:#eee;background-color:#31363b;}body.dark .post-date,body.dark .post-list-thumb a,body.dark .post-meta{color:#888;}body.dark img,body.dark .cd-top,body.dark .highlight-wrap,body.dark iframe,body.dark .entry-content .aplayer{filter:brightness(0.8);}body.dark .post-list-thumb{box-shadow:0 1px 35px -8px rgba(0,0,0,0.8);}body.dark .centerbg{background-blend-mode:hard-light;background-color:#31363b;}body.dark .notice{color:#EFF0F1;background:#232629;border:none;}body.dark h1.fes-title,body.dark h1.main-title{border-bottom:1px dashed #ababab;}body.dark .scrollbar,body.dark .butterBar p.butterBar-message{background:#3daee9 !important;}body.dark .entry-con
|
2018-05-26 18:59:29 +08:00
|
|
|
</style>
|
|
|
|
<?php }
|
2019-01-02 20:39:04 +08:00
|
|
|
add_action('wp_head', 'customizer_css');
|