style: optimize first screen icon align

This commit is contained in:
XPoet 2020-12-10 18:37:56 +08:00
parent aa396b1735
commit 0821561705
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<%= theme.style.first_screen.description || config.description %>
</div>
<% if (theme.social_contact.enable) { %>
<ul class="s-icon-list">
<ul class="s-icon-list flex-center">
<% for (const key in theme.social_contact.links) { %>
<% if(theme.social_contact.links[key]) { %>
<% if(key === 'email') { %>

View File

@ -2,7 +2,7 @@ $first-screen-font-size = 2rem;
$first-screen-icon-size = 1.6rem;
$temp-img = hexo-config('style.first_screen.background_img');
$first-screen-img = $temp-img ? $temp-img : '/images/bg.svg';
$first-screen-img = $temp-img ? $temp-img:'/images/bg.svg';
.first-screen-container {
position: relative;
@ -16,6 +16,7 @@ $first-screen-img = $temp-img ? $temp-img : '/images/bg.svg';
padding: 30px;
width: 80%;
height: 80%;
box-sizing: border-box;
.description {
font-weight: bold;
@ -28,6 +29,7 @@ $first-screen-img = $temp-img ? $temp-img : '/images/bg.svg';
}
}
.s-icon-list {
position: absolute;
bottom: $component-interspace;