Skip to content

Commit

Permalink
fix: 样式 & 文案优化
Browse files Browse the repository at this point in the history
  • Loading branch information
WeilinerL committed Mar 20, 2024
1 parent b82ae52 commit 72fe97b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/theme/components/SidebarLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ a.sidebar-link
display inline-block
color $textColor
border-left 0.25rem solid transparent
padding 0.35rem 1rem 0.35rem 1.25rem
padding 0.35rem 0.35rem 0.35rem 1.25rem
line-height 1.4
width: 100%
box-sizing: border-box
Expand Down
2 changes: 2 additions & 0 deletions docs/.vuepress/theme/layouts/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ export default {
flex 1
min-width: 600px
background-color var(--bg-color)
@media screen and (max-width: $MQMobileNarrow)
min-width: unset
::v-deep .page-edit
display none
.preview-container
Expand Down
4 changes: 3 additions & 1 deletion docs/.vuepress/theme/styles/layout.styl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ html,body
.sidebar
position absolute
top $navbarHeight
bottom -$navbarHeight
bottom - $navbarHeight
max-width 14rem
min-width 14rem
border 0
Expand Down Expand Up @@ -61,6 +61,8 @@ html,body
min-width 500px
max-width unset
margin 0 auto
@media screen and (max-width: $MQMobileNarrow)
min-width: unset
.card:last-child
margin-bottom 0

Expand Down
4 changes: 2 additions & 2 deletions docs/guide/theme.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ module.exports = {
createComponent({
data: {
extends: `
style: `
--cube-btn-color: red;
--cube-btn-font-size: 25px;
`
},
created () {
setTimeout(() => {
this.extends = `
this.style = `
--cube-btn-color: blue;
--cube-btn-font-size: 10px;
`
Expand Down

0 comments on commit 72fe97b

Please sign in to comment.