123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092 |
- <?php
- function customizer_css() { ?>
- <style>
- <?php // Style Settings
- if(iro_opt('nav_menu_display') == 'unfold'){ ?>
- .site-top .lower nav {display: block !important;}
- <?php } // Style Settings ?>
- <?php
- /**
- * theme-skin
- * */
- if (iro_opt('theme_skin')) { ?>
- :root{
- --theme-skin: <?=iro_opt('theme_skin'); ?>;
- --theme-skin-matching:<?=iro_opt('theme_skin_matching'); ?>;
- --infor_bar_bgcolor:<?=iro_opt('infor_bar_bgcolor'); ?>;
- --style_menu_background_color:<?=iro_opt('style_menu_background_color'); ?>;
- --style_menu_selection_radius:<?=iro_opt('style_menu_selection_radius', ''); ?>px;
- --post_date_text_color:<?=iro_opt('post_date_text_color'); ?>;
- --load_nextpage_svg:url("<?=iro_opt('load_nextpage_svg'); ?>");
- --style_menu_radius:<?=iro_opt('style_menu_radius', ''); ?>px;
- --post-list-thumb: <?=iro_opt('post_border_shadow_color'); ?>;
- --style_menu_selection_color: <?=iro_opt('style_menu_selection_color'); ?>;
- --shuoshuo_background_color1:<?=iro_opt('shuoshuo_background_color1');?>;
- --shuoshuo_background_color2:<?=iro_opt('shuoshuo_background_color2');?>;
- <?php //深色模式主题色 ?>
- --theme-skin-dark: <?=iro_opt('theme_skin_dark'); ?>;
- --global-font-weight:<?=iro_opt('global_font_weight');?>;
- --theme-dm-background_transparency:<?=iro_opt('theme_darkmode_background_transparency')?>;
- --area_title_bottom_color:<?=iro_opt('area_title_bottom_color');?>;
- }
- <?php if (iro_opt('theme_commemorate_mode')) {?>
- html{
- filter: grayscale(100%) !important;
- }
- <?php } ?>
- .the-feature.from_left_and_right .info,.the-feature.from_left_and_right .info h3{background: <?=iro_opt('exhibition_background_color'); ?> ;}
- /*白猫样式Logo*/
- <?php if (iro_opt('mashiro_logo_option', 'true')) {
- $mashiro_logo = iro_opt('mashiro_logo');
- ?>
- .logolink{
- font-family: '<?= $mashiro_logo['font_name']; ?>', 'Merriweather Sans', Helvetica, Tahoma, Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft Yahei', 'WenQuanYi Micro Hei', sans-serif;
- }
- .logolink .sakuraso {
- background-color: rgba(255, 255, 255, .5);
- border-radius: 5px;
- color: <?=iro_opt('theme_skin'); ?>;
- height: auto;
- line-height: 25px;
- margin-right: 0;
- padding-bottom: 0px;
- padding-top: 1px;
- text-size-adjust: 100%;
- width: auto
- }
-
- .logolink a:hover .sakuraso {
- background-color: <?=iro_opt('theme_skin_matching'); ?>;
- color: #fff;
- }
-
- .logolink a:hover .shironeko,
- .logolink a:hover .no,
- .logolink a:hover rt {
- color: <?=iro_opt('theme_skin_matching'); ?>;
- }
-
- .logolink.moe-mashiro a {
- color: <?=iro_opt('theme_skin'); ?>;
- float: left;
- font-size: 25px;
- font-weight: 800;
- height: 56px;
- line-height: 56px;
- padding-left: 8px;
- padding-right: 8px;
- padding-top: 8px;
- text-decoration-line: none;
- }
- @media (max-width:860px) {
- .logolink.moe-mashiro a {
- color: <?=iro_opt('theme_skin'); ?>;
- float: left;
- font-size: 25px;
- font-weight: 800;
- height: 56px;
- line-height: 56px;
- padding-left: 6px;
- padding-right: 15px;
- padding-top: 11px;
- }
- }
- .logolink.moe-mashiro .sakuraso,.logolink.moe-mashiro .no {
- font-size: 25px;
- border-radius: 9px;
- padding-bottom: 2px;
- padding-top: 5px;
- }
-
- .logolink.moe-mashiro .no {
- font-size: 20px;
- display: inline-block;
- margin-left: 5px;
- }
-
- .logolink a:hover .no {
- -webkit-animation: spin 1.5s linear infinite;
- animation: spin 1.5s linear infinite;
- }
-
- .logolink ruby {
- ruby-position: under;
- -webkit-ruby-position: after;
- }
-
- .logolink ruby rt {
- font-size: 10px;
- letter-spacing:2px;
- transform: translateY(-15px);
- opacity: 0;
- transiton-property: opacity;
- transition-duration: 0.5s, 0.5s;
- }
-
- .logolink a:hover ruby rt {
- opacity: 1
- }
- <?php } ?>
- /*非全局色彩管理*/
- .post-date {
- background-color: <?=iro_opt('post_date_background_color'); ?>;
- }
- <?php $text_logo = iro_opt('text_logo'); ?>
- .center-text{
- color: <?=$text_logo['color']; ?> ;
- font-size: <?=$text_logo['size']; ?>px;
- }
- .Ubuntu-font,.center-text{
- font-family: <?=$text_logo['font']; ?> ;
- }
- .notice i ,
- .notice {
- color: <?=iro_opt('bulletin_text_color'); ?>;
- }
- .notice {
- border: 1px solid <?=iro_opt('bulletin_board_border_color'); ?>;
- }
- <?php if(iro_opt('entry_content_style') == "sakurairo"){ ?>
- .entry-content th {
- background-color: <?=iro_opt('theme_skin'); ?>
- }
- <?php } ?>
- <?php if(iro_opt('live_search')){ ?>
- .search-form--modal .search-form__inner {
- bottom: unset !important;
- top: 10% !important;
- }
- <?php } ?>
- <?php } // theme-skin ?>
- <?php // Custom style
- if ( iro_opt('site_custom_style') ) {
- echo iro_opt('site_custom_style');
- }
- // Custom style end ?>
- <?php // liststyle
- if ( iro_opt('post_list_akina_type') == 'square') { ?>
- .feature img{ border-radius: 0px !important; }
- .feature i { border-radius: 0px !important; }
- <?php } // liststyle ?>
- <?php
- //$image_api = 'background-image: url("'.rest_url('sakura/v1/image/cover').'");';
- $bg_style = iro_opt('cover_full_screen') ?'': 'background-position: center center;background-attachment: inherit;';
- ?>
- #centerbg{<?php
- echo $bg_style;
- echo iro_opt('site_bg_as_cover',false)? 'background:#0000;':'';
- ?>}
- /*预加载部分*/
- <?php if (iro_opt('preload_animation', 'true')): ?>
- #preload {
- position: fixed;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- background: #ffffff;
- z-index: 99999;
- }
- #preload li.active {
- position: absolute;
- top: 49%;
- left: 49%;
- list-style: none;
- }
- html {
- overflow-y: hidden;
- }
- #preloader_3 {
- position:relative;
- }
- #preloader_3:before {
- background:<?=iro_opt('preload_animation_color2'); ?>;
- -webkit-animation: preloader_3_before 1.5s infinite ease-in-out;
- -moz-animation: preloader_3_before 1.5s infinite ease-in-out;
- -ms-animation: preloader_3_before 1.5s infinite ease-in-out;
- animation: preloader_3_before 1.5s infinite ease-in-out;
- }
- #preloader_3:after {
- background:<?=iro_opt('preload_animation_color1'); ?>;
- left:22px;
- -webkit-animation: preloader_3_after 1.5s infinite ease-in-out;
- -moz-animation: preloader_3_after 1.5s infinite ease-in-out;
- -ms-animation: preloader_3_after 1.5s infinite ease-in-out;
- animation: preloader_3_after 1.5s infinite ease-in-out;
- }
- #preloader_3:before,#preloader_3:after {
- width:20px;
- height:20px;
- border-radius:20px;
- background:<?=iro_opt('preload_animation_color1'); ?>;
- position:absolute;
- content:'';
- }
- @-webkit-keyframes preloader_3_before {
- 0% {
- -webkit-transform: translateX(0px) rotate(0deg)
- }
- 50% {
- -webkit-transform: translateX(50px) scale(1.2) rotate(260deg);
- background:<?=iro_opt('preload_animation_color1'); ?>;
- border-radius:0px;
- }
- 100% {
- -webkit-transform: translateX(0px) rotate(0deg)
- }
- }
- @-webkit-keyframes preloader_3_after {
- 0% {
- -webkit-transform: translateX(0px)
- }
- 50% {
- -webkit-transform: translateX(-50px) scale(1.2) rotate(-260deg);
- background:<?=iro_opt('preload_animation_color2'); ?>;
- border-radius:0px;
- }
- 100% {
- -webkit-transform: translateX(0px)
- }
- }
- @-moz-keyframes preloader_3_before {
- 0% {
- -moz-transform: translateX(0px) rotate(0deg)
- }
- 50% {
- -moz-transform: translateX(50px) scale(1.2) rotate(260deg);
- background:<?=iro_opt('preload_animation_color1'); ?>;
- border-radius:0px;
- }
- 100% {
- -moz-transform: translateX(0px) rotate(0deg)
- }
- }
- @-moz-keyframes preloader_3_after {
- 0% {
- -moz-transform: translateX(0px)
- }
- 50% {
- -moz-transform: translateX(-50px) scale(1.2) rotate(-260deg);
- background:<?=iro_opt('preload_animation_color2'); ?>;
- border-radius:0px;
- }
- 100% {
- -moz-transform: translateX(0px)
- }
- }
- @-ms-keyframes preloader_3_before {
- 0% {
- -ms-transform: translateX(0px) rotate(0deg)
- }
- 50% {
- -ms-transform: translateX(50px) scale(1.2) rotate(260deg);
- background:<?=iro_opt('preload_animation_color1'); ?>;
- border-radius:0px;
- }
- 100% {
- -ms-transform: translateX(0px) rotate(0deg)
- }
- }
- @-ms-keyframes preloader_3_after {
- 0% {
- -ms-transform: translateX(0px)
- }
- 50% {
- -ms-transform: translateX(-50px) scale(1.2) rotate(-260deg);
- background:<?=iro_opt('preload_animation_color2'); ?>;
- border-radius:0px;
- }
- 100% {
- -ms-transform: translateX(0px)
- }
- }
- @keyframes preloader_3_before {
- 0% {
- transform: translateX(0px) rotate(0deg)
- }
- 50% {
- transform: translateX(50px) scale(1.2) rotate(260deg);
- background:<?=iro_opt('preload_animation_color1'); ?>;
- border-radius:0px;
- }
- 100% {
- transform: translateX(0px) rotate(0deg)
- }
- }
- @keyframes preloader_3_after {
- 0% {
- transform: translateX(0px)
- }
- 50% {
- transform: translateX(-50px) scale(1.2) rotate(-260deg);
- background:<?=iro_opt('preload_animation_color2'); ?>;
- border-radius:0px;
- }
- 100% {
- transform: translateX(0px)
- }
- }
- <?php endif; ?>
- /*深色模式*/
- /*可变项目*/
- /*深色模式控件透明度*/
- body.dark .header-info,
- body.dark .top-social img
- {color:#fff;background:rgba(51,51,51,<?=iro_opt('theme_darkmode_widget_transparency'); ?>);}
- body.dark .the-feature.from_left_and_right .info
- {background-color: rgba(51,51,51,<?=iro_opt('theme_darkmode_widget_transparency'); ?>);}
- body.dark .yya,
- body.dark .widget-area,
- body.dark .skin-menu,
- body.dark input[type=submit]
- {background-color:rgba(38,38,38,<?=iro_opt('theme_darkmode_widget_transparency'); ?>) !important;}
- /*深色模式自定义颜色*/
- body.dark .headertop-down i
- {color: <?=iro_opt('drop_down_arrow_dark_color'); ?> !important;}
- /*深色模式图像亮度*/
- body.dark img,
- body.dark .highlight-wrap,
- body.dark iframe,
- body.dark .entry-content .aplayer,
- body.dark .post-thumb video
- {filter:brightness(<?=iro_opt('theme_darkmode_img_bright'); ?>);}
- @media (max-width: 1200px){
- body.dark .site-top .lower nav.navbar ul
- {background: rgba(255,255,255,0);}
- }
- /*字体*/
- <?php if (iro_opt('reference_exter_font', 'true')): ?>
- @font-face {
- font-family: '<?=iro_opt('exter_font_name'); ?>';
- src : url('<?=iro_opt('exter_font_link'); ?>');
- }
- <?php endif; ?>
- .serif{
- font-family:<?=iro_opt('global_default_font'); ?> !important ;
- font-size: <?=iro_opt('global_font_size'); ?>px;
- }
- body{
- font-family:<?=iro_opt('global_font_2'); ?> !important;
- font-size: <?=iro_opt('global_font_size'); ?>px;
- }
- h1.main-title,h1.fes-title{
- font-family:<?=iro_opt('area_title_font'); ?>;
- }
- .header-info p{
- font-family:<?=iro_opt('signature_font'); ?> !important;
- font-size: <?=iro_opt('signature_font_size'); ?>px;
- }
- .cbp_tmtimeline > li .cbp_tmlabel {
- font-family:<?=iro_opt('shuoshuo_font'); ?> !important;
- }
- .post-list-thumb .post-title h3{
- font-size: <?=iro_opt('post_title_font_size'); ?>px !important;
- }
- .post-meta, .post-meta a{
- font-size: <?=iro_opt('post_date_font_size'); ?>px !important;
- }
- .pattern-center h1.cat-title,
- .pattern-center h1.entry-title {
- font-size: <?=iro_opt('page_temp_title_font_size'); ?>px ;
- }
- .pattern-center-sakura h1.cat-title,
- .pattern-center-sakura h1.entry-title {
- font-size: <?=iro_opt('page_temp_title_font_size'); ?>px !important;
- }
- .single-center .single-header h1.entry-title {
- font-size: <?=iro_opt('article_title_font_size'); ?>px ;
- }
- /*鼠标*/
- body{
- cursor: url(<?=iro_opt('cursor_nor'); ?>), auto;
- }
- .headertop-down i,
- .faa-parent.animated-hover:hover>.faa-spin,
- .faa-spin.animated,
- .faa-spin.animated-hover:hover,
- i.iconfont.js-toggle-search.iconsearch,
- #waifu #live2d,
- .aplayer svg,
- .aplayer.aplayer-narrow .aplayer-body,
- .aplayer.aplayer-narrow .aplayer-pic,
- #emotion-toggle,
- .emoji-item,
- .emotion-box,
- .emotion-item,
- .on-hover,
- .tieba-container span,
- #moblieGoTop,
- #changskin{
- cursor: url(<?=iro_opt('cursor_no'); ?>), auto;
- }
- a,
- .ins-section .ins-section-header,
- .font-family-controls button,
- .menu-list li,.ins-section .ins-search-item,
- .ins-section .ins-search-item .ins-search-preview{
- cursor: url(<?=iro_opt('cursor_ayu'); ?>), auto;
- }
- p,
- .highlight-wrap code,
- .highlight-wrap,
- .hljs-ln-code .hljs-ln-line{
- cursor: url(<?=iro_opt('cursor_text'); ?>), auto;
- }
- a:active{
- cursor: url(<?=iro_opt('cursor_work'); ?>), alias;
- }
- /*背景类*/
- .comment-respond textarea {
- background-image: url(<?=iro_opt('comment_area_image'); ?>);
- }
- .search-form.is-visible{
- background-image: url(<?=iro_opt('search_area_background'); ?>);
- }
- .site-footer {
- background-color: rgba(255, 255, 255,<?=iro_opt('reception_background_transparency'); ?>);
- <?php if (iro_opt('reception_background_blur', 'false')): ?> backdrop-filter: blur(10px); <?php endif; ?>
- <?php if (iro_opt('reception_background_blur', 'false')): ?> -webkit-backdrop-filter: blur(10px); <?php endif; ?>
- }
- .wrapper {
- background-color: rgba(255, 255, 255,<?=iro_opt('reception_background_transparency'); ?>);
- <?php if (iro_opt('reception_background_blur', 'false')): ?> backdrop-filter: blur(10px); <?php endif; ?>
- <?php if (iro_opt('reception_background_blur', 'false')): ?> -webkit-backdrop-filter: blur(10px); <?php endif; ?>
- }
- /*首页圆角设置*/
- .header-info{
- border-radius: <?=iro_opt('signature_radius'); ?>px;
- }
- .focusinfo img{
- border-radius: <?=iro_opt('social_area_radius'); ?>px;
- }
- .focusinfo .header-tou img{
- border-radius: <?=iro_opt('avatar_radius'); ?>px;
- }
- /*标题横线动画*/
- <?php if (iro_opt('article_title_line', 'true')): ?>
- .single-center header.single-header .toppic-line{
- position:relative;bottom:0;left:0;display:block;width:100%;height:2px;background-color:#fff;animation:lineWidth 2.5s;animation-fill-mode:forwards;}
- @keyframes lineWidth{0%{width:0;}
- 100%{width:100%;}
- }
- <?php endif; ?>
- /*标题动画*/
- <?php if (iro_opt('page_title_animation', 'true')): ?>
- .entry-title,.single-center .entry-census a,.entry-census,.post-list p,.post-more i,.p-time,.feature{
- -moz-animation: fadeInUp <?=iro_opt('page_title_animation_time'); ?>s;
- -webkit-animation:fadeInUp <?=iro_opt('page_title_animation_time'); ?>s;
- animation: fadeInUp <?=iro_opt('page_title_animation_time'); ?>s;
- }
- @-moz-keyframes fadeInUp {
- 0% {
- -moz-transform: translateY(200%);
- transform: translateY(200%);
- opacity: 0
- }
-
- 50% {
- -moz-transform: translateY(200%);
- transform: translateY(200%);
- opacity: 0
- }
-
- 100% {
- -moz-transform: translateY(0%);
- transform: translateY(0%);
- opacity: 1
- }
- }
-
- @-webkit-keyframes fadeInUp {
- 0% {
- -webkit-transform: translateY(200%);
- transform: translateY(200%);
- opacity: 0
- }
-
- 50% {
- -webkit-transform: translateY(200%);
- transform: translateY(200%);
- opacity: 0
- }
-
- 100% {
- -webkit-transform: translateY(0%);
- transform: translateY(0%);
- opacity: 1
- }
- }
-
- @keyframes fadeInUp {
- 0% {
- -moz-transform: translateY(200%);
- -ms-transform: translateY(200%);
- -webkit-transform: translateY(200%);
- transform: translateY(200%);
- opacity: 0
- }
-
- 50% {
- -moz-transform: translateY(200%);
- -ms-transform: translateY(200%);
- -webkit-transform: translateY(200%);
- transform: translateY(200%);
- opacity: 0
- }
-
- 100% {
- -moz-transform: translateY(0%);
- -ms-transform: translateY(0%);
- -webkit-transform: translateY(0%);
- transform: translateY(0%);
- opacity: 1
- }
- }
- <?php endif; ?>
- /*首页封面动画*/
- <?php if (iro_opt('cover_animation', 'true')): ?>
- h1.main-title, h1.fes-title,.the-feature.from_left_and_right .info,.header-info p,.header-info,.focusinfo .header-tou img,.top-social img,.center-text{
- -moz-animation: fadeInDown <?=iro_opt('cover_animation_time'); ?>s;
- -webkit-animation:fadeInDown <?=iro_opt('cover_animation_time'); ?>s;
- animation: fadeInDown <?=iro_opt('cover_animation_time'); ?>s;
- }
- @-moz-keyframes fadeInDown {
- 0% {
- -moz-transform: translateY(-100%);
- transform: translateY(-100%);
- opacity: 0
- }
-
- 50% {
- -moz-transform: translateY(-100%);
- transform: translateY(-100%);
- opacity: 0
- }
-
- 100% {
- -moz-transform: translateY(0%);
- transform: translateY(0%);
- opacity: 1
- }
- }
-
- @-webkit-keyframes fadeInDown {
- 0% {
- -webkit-transform: translateY(-100%);
- transform: translateY(-100%);
- opacity: 0
- }
-
- 50% {
- -webkit-transform: translateY(-100%);
- transform: translateY(-100%);
- opacity: 0
- }
-
- 100% {
- -webkit-transform: translateY(0%);
- transform: translateY(0%);
- opacity: 1
- }
- }
-
- @keyframes fadeInDown {
- 0% {
- -moz-transform: translateY(-100%);
- -ms-transform: translateY(-100%);
- -webkit-transform: translateY(-100%);
- transform: translateY(-100%);
- opacity: 0
- }
-
- 50% {
- -moz-transform: translateY(-100%);
- -ms-transform: translateY(-100%);
- -webkit-transform: translateY(-100%);
- transform: translateY(-100%);
- opacity: 0
- }
-
- 100% {
- -moz-transform: translateY(0%);
- -ms-transform: translateY(0%);
- -webkit-transform: translateY(0%);
- transform: translateY(0%);
- opacity: 1
- }
- }
- <?php endif; ?>
- /*导航菜单动画*/
- <?php if (iro_opt('nav_menu_animation', 'true')): ?>
- .site-top ul {
- -moz-animation: fadeInLeft <?=iro_opt('nav_menu_animation_time'); ?>s;
- -webkit-animation:fadeInLeft <?=iro_opt('nav_menu_animation_time'); ?>s;
- animation: fadeInLeft <?=iro_opt('nav_menu_animation_time'); ?>s;
- }
- @-moz-keyframes fadeInLeft {
- 0% {
- -moz-transform: translateX(100%);
- transform: translateX(100%);
- opacity: 0
- }
-
- 50% {
- -moz-transform: translateX(100%);
- transform: translateX(100%);
- opacity: 0
- }
-
- 100% {
- -moz-transform: translateX(0%);
- transform: translateX(0%);
- opacity: 1
- }
- }
-
- @-webkit-keyframes fadeInLeft {
- 0% {
- -webkit-transform: translateX(100%);
- transform: translateX(100%);
- opacity: 0
- }
-
- 50% {
- -webkit-transform: translateX(100%);
- transform: translateX(100%);
- opacity: 0
- }
-
- 100% {
- -webkit-transform: translateX(0%);
- transform: translateX(0%);
- opacity: 1
- }
- }
-
- @keyframes fadeInLeft {
- 0% {
- -moz-transform: translateX(100%);
- -ms-transform: translateX(100%);
- -webkit-transform: translateX(100%);
- transform: translateX(100%);
- opacity: 0
- }
-
- 50% {
- -moz-transform: translateX(100%);
- -ms-transform: translateX(100%);
- -webkit-transform: translateX(100%);
- transform: translateX(100%);
- opacity: 0
- }
-
- 100% {
- -moz-transform: translateX(0%);
- -ms-transform: translateX(0%);
- -webkit-transform: translateX(0%);
- transform: translateX(0%);
- opacity: 1
- }
- }
- <?php endif; ?>
- /*其他*/
- .widget-area .sakura_widget{
- background-image: url(<?=iro_opt('sakura_widget_background', ''); ?>);
- }
- .headertop{
- border-radius: 0 0 <?=iro_opt('cover_radius', ''); ?>px <?=iro_opt('cover_radius', ''); ?>px;
- }
- <?php if (!iro_opt('article_lincenses', 'true')): ?>
- .post-footer {
- display:none;
- }
- <?php endif; ?>
- <?php if (!iro_opt('nav_menu_user_avatar', 'true')): ?>
- .header-user-avatar{
- display:none;
- }
- <?php endif; ?>
- <?php if (!iro_opt('drop_down_arrow_mobile', 'true')): ?>
- @media (max-width: 860px) {
- .headertop-down {
- display: none
- }
- }
- <?php endif; ?>
- <?php if (!iro_opt('post_icon_more', 'true')): ?>
- .float-content i {
- display: none;
- }
- <?php endif; ?>
- <?php if (!iro_opt('social_area', 'true')): ?>
- .top-social_v2,.top-social{
- display: none;
- }
- <?php endif; ?>
- <?php if(iro_opt('nav_menu_icon_size') == 'large'){ ?>
- i.iconfont.js-toggle-search.iconsearch {
- font-size: 25px;
- }
- .lower li ul {
- right: -13px;
- }
- #show-nav .line {
- width: 28px;
- margin-left: -15px;
- }
- #show-nav {
- width: 30px;
- height: 33px;
- }
- <?php }else if(iro_opt('nav_menu_search_size') == 'standard'){ ?>
- <?php } ?>
- <?php if(iro_opt('friend_link_align') == 'right'){ ?>
- span.sitename {
- margin: 0px;
- }
- .linkdes {
- margin: 0px;
- }
- li.link-item {
- text-align: right;
- }
- .links ul li img{
- float:none;
- }
- <?php }else if(iro_opt('friend_link_align') == 'center'){ ?>
- span.sitename {
- margin: 0px;
- }
- .linkdes {
- margin: 0px;
- }
- li.link-item {
- text-align: center;
- }
- .links ul li img{
- float:none;
- }
- <?php } ?>
- <?php if(iro_opt('post_list_image_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 }else if(iro_opt('post_list_image_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 } ?>
- <?php if(iro_opt('page_style') == 'sakurairo'){ ?>
- .pattern-center::after {
- display:none;
- }
- .pattern-center-blank {
- display:none;
- }
- <?php }else if(iro_opt('page_style') == 'sakura'){ ?>
- .pattern-center {
- position: relative;
- top: 0;
- left: 0;
- width: 100%;
- border-radius: 0px;
- overflow: hidden;
- }
- <?php } ?>
- <?php if(iro_opt('nav_menu_style') == 'sakurairo'){ ?>
- .yya {
- position: fixed;
- -webkit-transition: all 1s ease !important;
- transition: all 1s ease !important;
- width:<?=iro_opt('nav_menu_shrink_animation', ''); ?>% ;
- left:calc(97.5% - <?=iro_opt('nav_menu_shrink_animation', ''); ?>%);
- box-shadow: 0 1px 40px -8px rgba(255, 255, 255, .4);
- border-radius: <?=iro_opt('nav_menu_radius', ''); ?>px !important;
- }
- .site-title img {
- margin-left: 10px;
- }
- .site-header {
- border-radius: <?=iro_opt('nav_menu_radius', ''); ?>px !important;
- }
- .header-user-menu {
- border-radius: <?=iro_opt('nav_menu_secondary_radius', ''); ?>px !important;
- }
- .lower li ul {
- border-radius: <?=iro_opt('nav_menu_secondary_radius', ''); ?>px !important;
- }
- @media (max-width:860px) {
- .openNav .icon {
- left: 5vw;
- }
- .site-header {
- width: 100%;
- height: 60px;
- top: 0;
- left: 0;
- background: 0 0;
- position: fixed;
- border-radius: 0 !important;
- }
- .yya {
- border-radius: 0 !important;
- }
- }
- <?php }if(iro_opt('nav_menu_style') == 'sakura'){ ?>
- .site-header {
- width: 100%;
- height: 75px;
- top: 0;
- left: 0;
- background: 0 0;
- -webkit-transition: all .4s ease;
- transition: all .4s ease;
- position: fixed;
- z-index: 999;
- border-radius: 0px;
- }
- @media (max-width:860px) {
- .site-header {
- height: 60px;
- }
- }
- <?php } ?>
- <?php if (!iro_opt('nav_menu_secondary_arrow', 'true')): ?>
- .header-user-menu::before {
- display: none;
- }
- .lower li ul::before {
- display: none;
- }
- <?php endif; ?>
- <?php if (!iro_opt('shuoshuo_arrow', 'true')): ?>
- .cbp_tmtimeline > li:nth-child(odd) .cbp_tmlabel:after {
- display: none;
- }
- .cbp_tmtimeline > li .cbp_tmlabel:after {
- display: none;
- }
- <?php endif; ?>
- <?php if (iro_opt('exhibition_area_compat', 'true')): ?>
- .the-feature.from_left_and_right {
- position: relative;
- border-radius: <?=iro_opt('exhibition_radius', ''); ?>px;
- height: 160px;
- width: 258px;
- margin: 6px 6px 0 6px;
- }
- .the-feature img {
- height: 160px;
- width: 258px;
- }
- <?php endif; ?>
- <?php if(iro_opt('bulletin_board_text_align') == 'center'){ ?>
- .notice {
- text-align: center;
- }
- <?php }if(iro_opt('bulletin_board_text_align') == 'right'){ ?>
- .notice {
- text-align: right;
- }
- <?php } ?>
- <?php if(iro_opt('area_title_text_align') == 'center'){ ?>
- h1.fes-title,
- h1.main-title {
- text-align: center;
- }
- <?php }if(iro_opt('area_title_text_align') == 'right'){ ?>
- h1.fes-title,
- h1.main-title {
- text-align: right;
- }
- <?php } ?>
- <?php if(iro_opt('bulletin_board_style') == 'picture'){ ?>
- .notice {
- background-image:url(<?=iro_opt('bulletin_board_bg', ''); ?>);
- background-repeat: round;
- border: none;
- box-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
- }
- <?php }if(iro_opt('bulletin_board_style') == 'pure'){ ?>
- .notice {
- background: #fbfbfb50;
- }
- <?php }
- $nav_menu_blur=iro_opt('nav_menu_blur','0');
- if($nav_menu_blur != '0'){
- ?>
- .yya{
- backdrop-filter: blur(<?=$nav_menu_blur?>px);
- -webkit-backdrop-filter: blur(<?=$nav_menu_blur?>px);
- }
- <?php
- }
- ?>
- <?php
- if(iro_opt('cover_half_screen_curve',true)){
- ?>
- .headertop-bar::after {
- content: '';
- width: 150%;
- height: 4.375rem;
- background: #fff;
- left: -25%;
- bottom: -2.875rem;
- border-radius: 100%;
- position: absolute;
- z-index: 4;
- }
- <?php
- }
- ?>
- body{
- background-size:<?=iro_opt(('reception_background_size'),'auto')
- ?>;
- }
- #video-add{
- background-image: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>basic/add.png);
- }
- body.dark .post-footer {
- background-image: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>basic/creativecommons-dark.png);
- }
- @media (max-width:860px) {
- .headertop.filter-dot::before {
- background-image: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>basic/grid.png);
- }
- }
- .post-footer{background-image: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>basic/creativecommons-light.png);}
- .headertop.filter-grid::before {
- background-image: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>basic/grid.png);
- }
- .headertop.filter-dot::before {
- background-image: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>basic/dot.gif);
- }
- .loadvideo,.video-play {
- background-image: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>basic/play.png);
- }
- .video-pause {
- background-image: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>basic/stop.png);
- }
- #loading-comments {
- background-image: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>load_svg/ball.svg);
- }
- <?php if (iro_opt('wave_effects', 'true')): ?>
- #banner_wave_1 {
- background: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>basic/wave1.png) repeat-x;
- }
- #banner_wave_2 {
- background: url(<?=iro_opt('vision_resource_basepath', 'https://s.nmxc.ltd/sakurairo_vision/@2.5/')?>basic/wave2.png) repeat-x;
- }
- <?php endif; ?>
- </style>
- <?php }
- add_action('wp_head', 'customizer_css');
|