fix(*): minor layout and style fixes
- allow empty profile social_links - fix code block font size on iOS safaripull/707/head
parent
077780c993
commit
d0184c21bb
|
@ -43,7 +43,7 @@ blog feature-rich and powerful.
|
|||
<th><a href="https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Search/">Search</a></th>
|
||||
<th><a href="https://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/Share/">Share</a></th>
|
||||
<th><a href="https://ppoffice.github.io/hexo-theme-icarus/categories/Widgets/">Widgets</a></th>
|
||||
<th><a href="https://blog.zhangruipeng.me/hexo-theme-icarus/categories/Plugins/General/">Other Plugins</a></th>
|
||||
<th><a href="https://blog.zhangruipeng.me/hexo-theme-icarus/categories/Plugins/">Other Plugins</a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Changyan</td>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"$id": "/common/plugins.json",
|
||||
"description": "Plugin configurations",
|
||||
"description": "Plugin configurations\nhttps://ppoffice.github.io/hexo-theme-icarus/categories/Plugins/",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"animejs": {
|
||||
|
|
|
@ -58,3 +58,9 @@ $colors = merge($colors, $custom-colors)
|
|||
@import bulma-stylus-root + '/form/_all'
|
||||
@import bulma-stylus-root + '/grid/_all'
|
||||
@import bulma-stylus-root + '/layout/_all'
|
||||
|
||||
html
|
||||
-webkit-text-size-adjust: 100%
|
||||
-moz-text-size-adjust: 100%
|
||||
-ms-text-size-adjust: 100%
|
||||
text-size-adjust: 100%
|
||||
|
|
|
@ -16,16 +16,16 @@
|
|||
width: $desktop - 2 * $gap
|
||||
|
||||
+tablet()
|
||||
.is-sticky
|
||||
position: -webkit-sticky
|
||||
position: sticky
|
||||
top: 1.5rem
|
||||
z-index: 99
|
||||
|
||||
.column-main, .column-left, .column-right, .column-right-shadow
|
||||
&.is-sticky
|
||||
align-self: flex-start
|
||||
position: -webkit-sticky
|
||||
position: sticky
|
||||
top: .75rem
|
||||
|
||||
.column-right-shadow
|
||||
&.is-sticky
|
||||
top: 1.5rem
|
||||
align-self: flex-start
|
||||
|
||||
+mobile()
|
||||
.section
|
||||
|
|
|
@ -75,7 +75,7 @@ class Profile extends Component {
|
|||
{followLink ? <div class="level">
|
||||
<a class="level-item button is-primary is-rounded" href={followLink} target="_blank" rel="noopener">{followTitle}</a>
|
||||
</div> : null}
|
||||
{this.renderSocialLinks(socialLinks)}
|
||||
{socialLinks ? this.renderSocialLinks(socialLinks) : null}
|
||||
</div>
|
||||
</div>;
|
||||
}
|
||||
|
@ -109,7 +109,7 @@ Profile.Cacheable = cacheComponent(Profile, 'widget.profile', props => {
|
|||
const categoryCount = site.categories.filter(category => category.length).length;
|
||||
const tagCount = site.tags.filter(tag => tag.length).length;
|
||||
|
||||
const socialLinks = Object.keys(social_links).map(name => {
|
||||
const socialLinks = social_links ? Object.keys(social_links).map(name => {
|
||||
const link = social_links[name];
|
||||
if (typeof link === 'string') {
|
||||
return {
|
||||
|
@ -122,7 +122,7 @@ Profile.Cacheable = cacheComponent(Profile, 'widget.profile', props => {
|
|||
url: url_for(link.url),
|
||||
icon: link.icon
|
||||
};
|
||||
});
|
||||
}) : null;
|
||||
|
||||
return {
|
||||
avatar: getAvatar(),
|
||||
|
|
Loading…
Reference in New Issue