Skip to content

Commit

Permalink
fix: 优化设计图标尺寸
Browse files Browse the repository at this point in the history
  • Loading branch information
xugaoyi committed Jan 3, 2022
1 parent 7d9c17f commit d8e4447
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
32 changes: 12 additions & 20 deletions vdoing/components/Sidebar.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
<template>
<aside class="sidebar">
<div
class="blogger"
v-if="blogger"
>
<div class="blogger" v-if="blogger">
<img :src="blogger.avatar" />
<div class="blogger-info">
<h3>{{blogger.name}}</h3>
<h3>{{ blogger.name }}</h3>

<div
class="icons"
v-if="blogger.social"
>
<div class="icons" v-if="blogger.social">
<a
:href="item.link"
:title="item.title"
Expand All @@ -21,7 +15,7 @@
target="_blank"
></a>
</div>
<span v-else>{{blogger.slogan}}</span>
<span v-else>{{ blogger.slogan }}</span>
</div>
</div>

Expand All @@ -30,10 +24,7 @@

<slot name="top" />

<SidebarLinks
:depth="0"
:items="items"
/>
<SidebarLinks :depth="0" :items="items" />
<slot name="bottom" />
</aside>
</template>
Expand All @@ -50,7 +41,7 @@ export default {
props: ['items'],
computed: {
blogger () {
blogger() {
return this.$themeConfig.blogger
}
}
Expand Down Expand Up @@ -94,20 +85,21 @@ export default {
margin 0.75rem 1rem
.blogger-info
flex 1
padding 0 0.3rem 0.3rem 0
h3
margin 0.95rem 0 0.7rem
margin 0.95rem 0 0.6rem
font-size 1.1rem
.icons .iconfont
font-size 1.2rem
padding-right 0.6rem
color #777
.sidebar-slot
margin-bottom: -.5rem;
font-size: .85rem;
margin-bottom -0.5rem
font-size 0.85rem
&.sidebar-slot-top
padding: 1.5rem 1.5rem 0;
padding 1.5rem 1.5rem 0
&.sidebar-slot-bottom
padding: 0 1.5rem 1.5rem;
padding 0 1.5rem 1.5rem
@media (max-width $MQMobile)
.sidebar
.blogger
Expand Down
2 changes: 1 addition & 1 deletion vdoing/styles/index.styl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 引入字体图标
@import '//at.alicdn.com/t/font_1678482_kdcbbwxa6v.css'
@import '//at.alicdn.com/t/font_1678482_4tbhmh589x.css'

@require './config'
@require './code'
Expand Down

0 comments on commit d8e4447

Please sign in to comment.