Skip to content

Commit

Permalink
feat: more work on posts
Browse files Browse the repository at this point in the history
  • Loading branch information
pdanpdan committed Oct 31, 2023
1 parent 8d25093 commit 7b4b7b5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
17 changes: 13 additions & 4 deletions components/CodeBlock/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,15 @@ const sfcPlaygroundUrl = computed(() => {

<style lang="sass" scoped>
section
padding: 8px 16px
padding: 8px 24px
color: var(--vp-c-text-1)
font-size: 14px
line-height: 2
border-radius: 0
@media (max-width: 960px)
padding-inline: 16px
& + section
border-block-start: 1px solid var(--vp-c-divider)
Expand All @@ -151,14 +154,18 @@ section
&__title
padding-block-start: 10px
background-color: var(--vp-c-bg-alt)
color: var(--vp-custom-block-tip-text)
background-color: var(--vp-custom-block-tip-bg)
&__description
color: var(--vp-custom-block-info-text)
background-color: var(--vp-custom-block-info-bg)
:deep(p)
margin-block: 2px
&__demo
background-color: var(--vp-c-bg-alt)
// background-color: var(--vp-c-bg-alt)
:deep(p)
margin-block: 0
Expand All @@ -175,12 +182,14 @@ section
justify-content: center
align-items: center
gap: 16px
color: var(--vp-custom-block-info-text)
background-color: var(--vp-custom-block-info-bg)
&__action
position: relative
color: var(--vp-button-alt-text)
opacity: 0.55
transition: color .25s, opacity .25s
color: inherit
&:hover
color: inherit
Expand Down
7 changes: 5 additions & 2 deletions components/PostsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@

<style lang="sass" scoped>
.container
padding: 1rem
padding: 32px 24px 96px
max-width: 1104px
margin-inline: auto
.tags
margin-block-end: 1em
padding-inline: 8px
padding-block-end: 16px
margin-block-end: 16px
border-block-end: 1px solid var(--vp-c-divider)
display: flex
gap: 0.4em
Expand Down

0 comments on commit 7b4b7b5

Please sign in to comment.