Skip to content

Commit

Permalink
chore(adaptor): 适配博客园VIP样式 (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyang0210 authored Aug 1, 2023
1 parent aeefe08 commit 39b10b3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/imgBox/imgBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function main(_) {
setTimeout(() => {
let cpb = $('#cnblogs_post_body')
,imgList = $('#cnblogs_post_body img')
,comImgList = $('.feedbackItem img')
,comImgList = $('.feedbackCon img')
,data = [];

$.each(imgList, function (i) {
Expand Down
3 changes: 2 additions & 1 deletion src/components/sidebar/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export default function main(_) {
_.__timeIds.introduceTId = window.setInterval(() => {
let introduceHtml = $('#profile_block').html(),
menuIntroduce = $('.sidebar-userinfo#introduce');
if($('#profile_block img')[0]) introduceHtml = introduceHtml.replace('<br>', '')
if ((typeof introduceHtml == 'string') && menuIntroduce.html() === '') {
menuIntroduce.html(_.__tools.htmlFiltrationScript(introduceHtml));
_.__tools.clearIntervalTimeId(_.__timeIds.introduceTId);
Expand Down Expand Up @@ -345,7 +346,7 @@ export default function main(_) {
}, 300);
});
})();

/**
* 设置是否默认展开菜单栏
*/
Expand Down
9 changes: 9 additions & 0 deletions src/style/simpleMemory.css
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,15 @@ p.article-info-text > .postMeta br {
text-decoration: underline
}

img.sidebar-vip-logo {
height: 11px;
vertical-align: middle;
width: 11px;
position: absolute;
left: 76px;
top: 9px;
}

/*.div_my_zzk {*/
/* width: 175px;*/
/* position: relative;*/
Expand Down

0 comments on commit 39b10b3

Please sign in to comment.