diff --git a/packages/devui-vue/docs/.vitepress/devui-theme/styles/demo-block.scss b/packages/devui-vue/docs/.vitepress/devui-theme/styles/demo-block.scss index b9e49c8a70..668d600a93 100644 --- a/packages/devui-vue/docs/.vitepress/devui-theme/styles/demo-block.scss +++ b/packages/devui-vue/docs/.vitepress/devui-theme/styles/demo-block.scss @@ -6,6 +6,24 @@ &.hover { box-shadow: none !important; } + + .source { + .demo-spacing { + & > * { + margin: 0 8px 8px 0; + + &:last-child { + margin-right: 0; + } + } + + &:last-child { + & > * { + margin-bottom: 0; + } + } + } + } } .demo-block-control { diff --git a/packages/devui-vue/docs/.vitepress/devui-theme/styles/layout.scss b/packages/devui-vue/docs/.vitepress/devui-theme/styles/layout.scss index addaa060bc..6cbf7f148e 100644 --- a/packages/devui-vue/docs/.vitepress/devui-theme/styles/layout.scss +++ b/packages/devui-vue/docs/.vitepress/devui-theme/styles/layout.scss @@ -42,6 +42,10 @@ h5, h6 { margin: 0; line-height: 1.25; + + &:focus { + outline: none; + } } h1, @@ -88,7 +92,6 @@ h2 { padding-bottom: 0.3rem; line-height: 1.25; font-size: 1.65rem; - /* overflow-x: auto; */ } h2 + h3 { @@ -101,6 +104,7 @@ h3 { } h4 { + margin-top: 2rem; font-size: 1.15rem; } @@ -195,7 +199,7 @@ blockquote { border-left: 0.2rem solid $devui-dividing-line; padding: 0.25rem 0 0.25rem 1rem; font-size: 1rem; - color: #999; + color: #999999; } blockquote > p { @@ -269,22 +273,27 @@ $max-width: 1440px; } } -[ui-theme=infinity-theme], [ui-theme=galaxy-theme] { +[ui-theme=infinity-theme], +[ui-theme=galaxy-theme] { .nav-bar { background-color: $devui-base-bg !important; } } -[ui-theme=sweet-theme], [ui-theme=provence-theme], [ui-theme=deep-theme] { +[ui-theme=sweet-theme], +[ui-theme=provence-theme], +[ui-theme=deep-theme] { .nav-bar { background-color: $devui-brand !important; a { - color: #fff !important; + color: #ffffff !important; } - svg, path, polygon { - fill: #fff !important; + svg, + path, + polygon { + fill: #ffffff !important; } } } diff --git a/packages/devui-vue/docs/components/button/index.md b/packages/devui-vue/docs/components/button/index.md index 3023a010eb..fa46e14f85 100644 --- a/packages/devui-vue/docs/components/button/index.md +++ b/packages/devui-vue/docs/components/button/index.md @@ -2,45 +2,45 @@ 按钮用于开始一个即时操作。 -### 何时使用 +#### 何时使用 标记了一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。 -### 按钮类型 +### 形态 -:::demo 通过`variant`设置按钮类型,目前支持`solid`、`outline`、`text`三种类型,默认为`outline`类型。 +:::demo 通过`variant`设置按钮形态,目前支持`solid`、`outline`、`text`三种形态,默认为`outline`。 ```vue - - ``` ::: ### 主题色 -:::demo 通过`color`设置按钮主题,目前支持`secondary`、`primary`、`danger`三种类型,默认为`secondary`类型。 +:::demo 通过`color`设置按钮的主题色,目前支持`primary`、`secondary`、`danger`三种主题色,默认为`secondary`。
注意:如果`variant`设置成`solid`,则默认使用`primary`主题色。 ```vue