Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 066c1fd

Browse files
bloyceyulivz
authored andcommitted
feat: CSS Fixes and adjustments (#1)
- Changed content container functions so that it is centered on all viewports. - Removed card layout for posts when on small devices - Gave blog tags a little more spacing and centered using flex - Adjusted TOC component to suit new layout - Softened the color on the search bar to be a bit less intense - Centered footer content on small devices
1 parent ca92d2d commit 066c1fd

File tree

7 files changed

+16
-13
lines changed

7 files changed

+16
-13
lines changed

Diff for: components/Footer.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@
113113
flex 1
114114
display flex
115115
align-items center
116-
justify-content flex-end
116+
justify-content center
117+
118+
@media(min-width: $MQNarrow)
119+
justify-content flex-end
117120
118121
.copyright
119122
display flex

Diff for: components/Header.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
background-color #FFF
4242
padding 20px 32px 20px
4343
margin auto
44-
border-bottom 1px solid rgba(0, 0, 0, 0.15)
4544
box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03), 0 6px 6px rgba(0, 0, 0, 0.05)
4645
transition: all 1s cubic-bezier(.25, .8, .25, 1)
4746
@@ -107,7 +106,7 @@
107106
input
108107
border-radius 5px
109108
transition all .5s
110-
border: 1px solid #000
109+
border: 1px solid #cecece
111110
112111
&:hover
113112
border: 1px solid $accentColor

Diff for: components/Toc.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
padding-left: 1rem * (i - 2);
186186
187187
// for vuepress-toc
188-
@media (min-width: $MQNarrow)
188+
@media (min-width: 1300px)
189189
.vuepress-toc
190190
display: block;
191191
</style>

Diff for: global-components/BlogTag.vue

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@
1212

1313
<style lang="stylus">
1414
.blog-tag
15-
display inline-block
15+
display inline-flex
16+
align-items center
17+
height 45px
1618
word-break break-word
1719
font-size 20px
18-
line-height 25px
1920
margin-right 20px
2021
margin-bottom 20px
21-
padding 3px 15px
22+
padding 0 15px
2223
border-radius 5px
2324
font-weight: 300
2425
text-align left

Diff for: layouts/GlobalLayout.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424

2525
<style lang="stylus">
2626
.content-wrapper
27-
padding-top 160px
27+
padding 160px 15px 80px 15px
2828
min-height calc(100vh - 80px - 60px - 160px)
2929
max-width 740px
30-
padding-left 20vw
31-
padding-bottom 80px
30+
margin 0 auto
3231
</style>

Diff for: layouts/Post.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
font-family PT Serif, Serif
2323
color #2c3e50
2424
position relative
25-
box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 6px 6px rgba(0,0,0,0.07);
25+
26+
@media(min-width: $MQNarrow)
27+
box-shadow: 0 10px 20px rgba(0,0,0,0.05), 0 6px 6px rgba(0,0,0,0.07)
2628
2729
</style>
2830

Diff for: styles/wrapper.styl

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ $wrapper
22
max-width $contentWidth
33
margin 0 auto
44
background-color #FFF
5-
padding 3rem 4rem
6-
@media (max-width: $MQNarrow)
5+
@media (min-width: $MQNarrow)
76
padding 2rem
87
@media (max-width: $MQMobileNarrow)
98
padding 1.5rem

0 commit comments

Comments
 (0)