Skip to content

Commit

Permalink
✨2.0版本优化
Browse files Browse the repository at this point in the history
1.更新了后台样式表链接
2.修复了部分表情命名问题
3.优化了右下角浮标按钮的显示
4.优化了部分短代码样式
  • Loading branch information
youranreus committed Aug 14, 2020
1 parent 13b82b2 commit b04bb33
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 91 deletions.
18 changes: 9 additions & 9 deletions CSS/G.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ html::-webkit-scrollbar-thumb,html *::-webkit-scrollbar-thumb {
}
#m_toc{
bottom:150px;
display: none;
}
#m_top{
bottom:100px;
Expand All @@ -136,6 +137,9 @@ html::-webkit-scrollbar-thumb,html *::-webkit-scrollbar-thumb {
bottom:200px;
display: none;
}
.m_search_c{
bottom:150px!important;
}
.i{
width: 20px;
height: 20px;
Expand Down Expand Up @@ -786,6 +790,8 @@ table td:hover{
border-left: none;
border-left: 3px solid #f5f5f5;
text-align: justify;
background: rgba(245,245,245,0.5);
border-radius: 0 5px 5px 0;
}
#post-content-article blockquote p {
font-size: 16px;
Expand Down Expand Up @@ -2002,15 +2008,6 @@ background : hsla(0,0%,100%,.6);
height: 2.5rem;
top: 0.45rem;
}
/* .article-item {
background: white;
border-radius: 30px;
box-shadow: 0px 0px 70px 6px rgba(0,0,0,0.12);
padding: 20px;
width: 87%;
margin: 20px auto;
float: none;
} */
.article-item p {
margin: 5px 0px;
}
Expand Down Expand Up @@ -2055,6 +2052,9 @@ input#url, input#mail, input#author {
#m_search {
bottom: 180px;
}
.m_search_c{
bottom:125px!important;
}
#sliderbar-toc{
backdrop-filter: blur(0px);
-webkit-backdrop-filter: blur(0px);
Expand Down
76 changes: 22 additions & 54 deletions CSS/shortcode.G.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
margin:0!important;
border: none!important;
}
.ArtinArt h4 a{
display: block;
}
.ArtinArt h4:hover{
letter-spacing: normal!important;
border: none!important;
Expand Down Expand Up @@ -87,49 +90,8 @@
background:#666;
color:white!important;
}
.post-content-notice{
margin:15px 0;
border:1.5px solid RGB(121,145,209);
border-radius: 10px;
padding: 1.5rem 1.25rem 1.5rem 3.5rem;
position: relative;
overflow: hidden;
}
.post-content-content{
position: relative;
z-index:2;
}
.post-content-notice:before{
content: " ";
position: absolute;
top: -10;
right: 0;
bottom: 0;
left: -50;
background: url(https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/notice.svg) no-repeat;
opacity: .1;
z-index:1;
}

.post-content-warn{
margin:15px 0;
border:1.5px solid RGBA(184,2,51,0.6);
border-radius: 10px;
padding: 1.5rem 1.25rem 1.5rem 3.5rem;
position: relative;
overflow: hidden;
}
.post-content-warn:before{
content: " ";
position: absolute;
top: -10;
right: 0;
bottom: 0;
left: -50;
background: url(https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/warn.svg) no-repeat;
opacity: .1;
z-index:1;
}

.post-content-tag{
display: inline-block;
margin: 0 5px;
Expand All @@ -150,17 +112,23 @@
color: RGBA(184,2,51,0.6);
border: 0.0625rem solid RGBA(184,2,51,0.6);
}
/*
.post-content-article-photos a{
display: inline-block;
float:left;
margin:0 2.5%;
width:42.5%;

.shortcode-notice{
background: #eef6fd;
padding: 8px 20px;
border-left: 3px solid #38a3fd;
border-radius: 0 5px 5px 0;
margin-bottom: 10px;
color: #777;
font-size:15px;
}
.post-content-article-photos a img{
margin: 1px!important;
height:150px;

.shortcode-warn{
background: #fcf1f1;
padding: 8px 20px;
border-left: 3px solid #ed0000;
border-radius: 0 5px 5px 0;
margin-bottom: 10px;
color: #777;
font-size:15px;
}
.post-content-article-photos .imageinfo{
display: none;
} */
3 changes: 3 additions & 0 deletions JS/X.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ function sideMenu_toggle(){
function toc_toggle(){
$("#sliderbar-toc").toggleClass("move_left");
$("#sliderbar-toc").toggleClass("move_right");
$('#m_search').removeClass('m_search_c');
$("#sliderbar-toc-cover").toggle();
}

Expand Down Expand Up @@ -202,6 +203,7 @@ function toc(){
if(status == true){
$('#sliderbar-toc').show();
$('#m_toc').show();
$('#m_search').removeClass('m_search_c');
}
tocbot.init({
tocSelector: '.toc',
Expand All @@ -217,6 +219,7 @@ function toc(){
}else{
$('#sliderbar-toc').hide();
$('#m_toc').hide();
$('#m_search').addClass('m_search_c');
}


Expand Down
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
if (!defined('__TYPECHO_ROOT_DIR__')) exit;
function themeConfig($form) {
echo "<link rel='stylesheet' href='".__TYPECHO_THEME_DIR__."/G/CSS/S.css'/>";
echo "<link rel='stylesheet' href='https://cdn.jsdelivr.net/gh/youranreus/R@v1.1.5/G/CSS/S.css'/>";
echo "<h2>G主题设置</h2>";
$favicon = new Typecho_Widget_Helper_Form_Element_Text('favicon', NULL, NULL, _t('图标') , _t(''));
$form->addInput($favicon);
Expand Down
27 changes: 2 additions & 25 deletions lib/shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ function shortcode_button_dl( $atts, $content = '' ) {


function shortcode_notice( $atts, $content = '' ) {
return "<div class='post-content-notice'><div class='post-content-content'>".$content."</div></div>";
return "<div class='shortcode-notice'>".$content."</div>";
}
add_shortcode( 'notice' , 'shortcode_notice' );


function shortcode_warn( $atts, $content = '' ) {
return "<div class='post-content-warn'><div class='post-content-content'>".$content."</div></div>";
return "<div class='shortcode-warn'>".$content."</div>";
}
add_shortcode( 'warn' , 'shortcode_warn' );

Expand Down Expand Up @@ -110,26 +110,3 @@ function shortcode_bili( $atts, $content = '' ) {
return '<iframe class="bilibili" src="//player.bilibili.com/player.html?aid='.$content.'" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>';
}
add_shortcode( 'bili' , 'shortcode_bili' );

// function _strip_tags($tagsArr,$str) {
// foreach ($tagsArr as $tag) {
// $p[]="/(<(?:\/".$tag."|".$tag.")[^>]*>)/i";
// }
// $return_str = preg_replace($p,"",$str);
// return $return_str;
// }
//
// function shortcode_photos( $atts, $content = '' ) {
// $args = shortcode_atts( array(
// '' => ''
// ), $atts );
//
// $content = _strip_tags(array("br"),$content);
//
// return '
// <div class="post-content-article-photos">
// '.$content.'
// </div>
// ';
// }
// add_shortcode( 'photos' , 'shortcode_photos' );
4 changes: 2 additions & 2 deletions owo.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<li class="OwO-item" onclick="Smilies.grin('@(biexiao)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/biexiao.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(hemenjiu)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/hemenjiu.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(chigua2)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/chigua2.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(chaoquan_love)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/chaoquan_love.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(chaiquan_love)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.1.6/G/IMG/bq/chaiquan_love.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(chaiquan_red_1)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/chaiquan_red_1.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(chaiquan_melon)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/chaiquan_melon.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(chaiquan_mask)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/chaiquan_mask.png" /></li>
Expand All @@ -31,7 +31,7 @@
<li class="OwO-item" onclick="Smilies.grin('@(chaiquanzaijian)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/chaiquanzaijian.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(chaiquanku)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/chaiquanku.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(hehe)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/hehe.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(haha)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/haha.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(haha)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.1.6/G/IMG/bq/yo.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(tushe)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/tushe.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(taikaixin)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/taikaixin.png" /></li>
<li class="OwO-item" onclick="Smilies.grin('@(xiaoyan)');"><img src="https://cdn.jsdelivr.net/gh/youranreus/R@v1.0.3/G/IMG/bq/xiaoyan.png" /></li>
Expand Down

0 comments on commit b04bb33

Please sign in to comment.