mirror of https://github.com/mashirozx/sakura.git
添加支持三段式拼注站点标题
parent
77722ed4d7
commit
e918b590e6
24
header.php
24
header.php
|
@ -90,7 +90,7 @@ window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}
|
|||
</div>
|
||||
<?php } ?>
|
||||
<div id="page" class="site wrapper">
|
||||
<header class="site-header no-select" role="banner">
|
||||
<header class="site-header no-select is-homepage gizle sabit" role="banner">
|
||||
<div class="site-top">
|
||||
<div class="site-branding">
|
||||
<?php if (akina_option('akina_logo')){ ?>
|
||||
|
@ -99,9 +99,29 @@ window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}
|
|||
</div>
|
||||
<?php }else{ ?>
|
||||
<span class="site-title">
|
||||
<span class="logolink serif">
|
||||
<span class="logolink moe-mashiro serif">
|
||||
<a href="<?php bloginfo('url');?>">
|
||||
<?php
|
||||
$flag = 0;
|
||||
$l1 = explode(':', akina_option('site_name', ''));
|
||||
if (count($l1) == 2){
|
||||
$l2 = explode(',', $l1[0]);
|
||||
if (count($l2) == 3){
|
||||
$flag = 1;
|
||||
}
|
||||
}
|
||||
if ($flag == 0) {
|
||||
|
||||
?>
|
||||
<span class="site-name"><?php echo akina_option('site_name', ''); ?></span>
|
||||
<?php }else{ ?>
|
||||
<ruby>
|
||||
<span class="sakuraso"><?php echo $l2[0]; ?></span>
|
||||
<span class="no"><?php echo $l2[1]; ?></span>
|
||||
<span class="shironeko"><?php echo $l2[2]; ?></span>
|
||||
<rp></rp><rt class="chinese-font"><?php echo $l1[1]; ?></rt><rp></rp>
|
||||
</ruby>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</span>
|
||||
</span>
|
||||
|
|
Binary file not shown.
|
@ -2,14 +2,14 @@ msgid ""
|
|||
msgstr ""
|
||||
"Project-Id-Version: Sakura\n"
|
||||
"POT-Creation-Date: 2020-08-06 17:39+0800\n"
|
||||
"PO-Revision-Date: 2020-08-06 17:42+0800\n"
|
||||
"PO-Revision-Date: 2020-08-18 09:06+0800\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: zh_CN\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Generator: Poedit 2.3.1\n"
|
||||
"X-Generator: Poedit 2.2.4\n"
|
||||
"X-Poedit-Basepath: ..\n"
|
||||
"Plural-Forms: nplurals=1; plural=0;\n"
|
||||
"X-Poedit-Flags-xgettext: --add-comments=translators:\n"
|
||||
|
@ -481,7 +481,9 @@ msgstr "站点名称"
|
|||
|
||||
#: options.php:115
|
||||
msgid "Mashiro's Blog"
|
||||
msgstr "樱花庄的白猫"
|
||||
msgstr ""
|
||||
"樱花庄的白猫,支持三段式拼注站点标题,三段式使用英文逗号隔开,拼注使用英文冒"
|
||||
"号隔开,例: さくら荘,の,白猫:樱花庄的白猫"
|
||||
|
||||
#: options.php:122
|
||||
msgid "Mashiro"
|
||||
|
|
|
@ -112,7 +112,7 @@ function optionsframework_options()
|
|||
|
||||
$options[] = array(
|
||||
'name' => __('Site title', 'sakura'), /*站点名称*/
|
||||
'desc' => __('Mashiro\'s Blog', 'sakura'),
|
||||
'desc' => __('Mashiro\'s Blog', 'sakura'), /*樱花庄的白猫,支持三段式拼注站点标题,三段式使用英文逗号隔开,拼注使用英文冒号隔开,例: さくら荘,の,白猫:樱花庄的白猫*/
|
||||
'id' => 'site_name',
|
||||
'std' => '',
|
||||
'type' => 'text');
|
||||
|
|
72
style.css
72
style.css
|
@ -6357,6 +6357,78 @@ button.botui-actions-buttons-button {
|
|||
text-decoration-line: none
|
||||
}
|
||||
|
||||
.logolink .sakuraso {
|
||||
background-color: rgba(255, 255, 255, .5);
|
||||
border-radius: 5px;
|
||||
color: #464646;
|
||||
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: orange;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.logolink a:hover .shironeko,
|
||||
.logolink a:hover .no,
|
||||
.logolink a:hover rt {
|
||||
color: orange;
|
||||
}
|
||||
|
||||
.logolink.moe-mashiro a {
|
||||
color: #464646;
|
||||
float: left;
|
||||
font-size: 25px;
|
||||
font-weight: 800;
|
||||
height: 56px;
|
||||
line-height: 56px;
|
||||
padding-left: 6px;
|
||||
padding-right: 15px;
|
||||
padding-top: 11px;
|
||||
text-decoration-line: none;
|
||||
}
|
||||
.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
|
||||
}
|
||||
|
||||
.forgetmenot input[type=checkbox] {
|
||||
border: 1px solid #b4b9be;
|
||||
background: #fff;
|
||||
|
|
Loading…
Reference in New Issue