更新
This commit is contained in:
parent
1e35537f64
commit
9d4ff99084
File diff suppressed because one or more lines are too long
@ -278,11 +278,23 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 273px;
|
height: 273px;
|
||||||
background: url('https://cdn.jsdelivr.net/npm/typecho_joe_theme@4.3.5/assets/img/snow.gif') no-repeat;
|
background: url('https://cdn.jsdelivr.net/gh/HaoOuBa/Joe@master/assets/img/snow.gif') no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
&:hover::after {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.image {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 120px;
|
||||||
|
object-fit: cover;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BIN
assets/img/aside_author_image.jpg
Normal file
BIN
assets/img/aside_author_image.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 81 KiB |
@ -87,4 +87,16 @@ function themeConfig($form)
|
|||||||
);
|
);
|
||||||
$JAside->setAttribute('class', 'joe_content joe_aside');
|
$JAside->setAttribute('class', 'joe_content joe_aside');
|
||||||
$form->addInput($JAside->multiMode());
|
$form->addInput($JAside->multiMode());
|
||||||
|
|
||||||
|
$JAside_Author_Image = new Typecho_Widget_Helper_Form_Element_Textarea(
|
||||||
|
'JAside_Author_Image',
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
'作者栏 —— 背景(非必填)',
|
||||||
|
'介绍:用于修改作者栏的背景图片 <br/>
|
||||||
|
格式:图片地址 <br />
|
||||||
|
注意:不填写时,则显示默认背景'
|
||||||
|
);
|
||||||
|
$JAside_Author_Image->setAttribute('class', 'joe_content joe_aside');
|
||||||
|
$form->addInput($JAside_Author_Image);
|
||||||
} ?>
|
} ?>
|
@ -2,7 +2,7 @@
|
|||||||
<aside class="joe_aside">
|
<aside class="joe_aside">
|
||||||
<?php if (in_array('author', $this->options->JAside)) : ?>
|
<?php if (in_array('author', $this->options->JAside)) : ?>
|
||||||
<section class="joe_aside__item author">
|
<section class="joe_aside__item author">
|
||||||
<img class="wallpaper" />
|
<img class="image" src="" alt="<?php $this->author->screenName(); ?>" />
|
||||||
</section>
|
</section>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</aside>
|
</aside>
|
||||||
|
Loading…
Reference in New Issue
Block a user