diff --git a/demo/documentation/components/modal/enUS/basic.md b/demo/documentation/components/modal/enUS/basic.md index b33e55db8..e8eeb12b6 100644 --- a/demo/documentation/components/modal/enUS/basic.md +++ b/demo/documentation/components/modal/enUS/basic.md @@ -7,7 +7,7 @@ Start Me up -
+
If you start me up, If you start me up, I'll never stop.
inputValue: {{ inputValue }}
diff --git a/demo/styles/ComponentDemo.scss b/demo/styles/ComponentDemo.scss index 72c408d82..8fec60e4e 100644 --- a/demo/styles/ComponentDemo.scss +++ b/demo/styles/ComponentDemo.scss @@ -3,9 +3,9 @@ @include themes-mixin { @include b(code-box) { - background-color: $service-layout-drawer-background-color; - border-color: $service-layout-border-color; - box-shadow: inset 0 0 0 1px $--n-divider-color; + background-color: $--n-card-color; + border: 1px solid $--n-divider-color; + background-clip: padding-box; @include e(code) { border-top: 1px solid $--n-divider-color; code { diff --git a/demo/styles/markdown.scss b/demo/styles/markdown.scss index 7c59bdb66..44362e8d9 100644 --- a/demo/styles/markdown.scss +++ b/demo/styles/markdown.scss @@ -1,72 +1,85 @@ -.n-app--light-theme .markdown { - code { - background-color: rgb(244, 244, 244); - border: 1px solid rgb(230, 230, 230); - } - table { - border: 1px solid rgba(34,36,38,.15); - th { - background: rgb(250, 250, 250); - } - td { - background-color: white; - } - } -} +@import '../../styles/mixins/config.scss'; +@import '../../styles/mixins/mixins.scss'; -.markdown { - h1, h2, h3, h4, h5, h6 { - margin: 0; - } - h1 { - font-size: 24px; - margin-bottom: 12px; - } - h2 { - font-size: 20px; - margin-top: 24px; - margin-bottom: 12px; - } - p { - margin: 0 0 16px 0; - font-size: 14px; - line-height: 2; - } - code { - box-sizing: border-box; - border-radius: 3px; - background-color: rgba(255, 255, 255, .09); - padding: .2em .4em; - font-size: 14px; - font-family: 'Lato'; - } - table { - font-size: 14px; - width: 100%; - border: 1px solid #40465b; - border-radius: 6px; - text-align: left; - border-collapse: separate; - border-spacing: 0; - overflow: hidden; - th { - background-color: hsl(226, 27%, 25%); - text-align: inherit; - padding: 14px 12px; - vertical-align: inherit; - font-style: none; - font-weight: 400; - text-transform: none; - border-bottom: 1px solid rgba(34,36,38,.1); - border-left: none; - font-weight: bold; +@include themes-mixin { + @if $theme == 'dark' { + .markdown { + h1, h2, h3, h4, h5, h6 { + margin: 0; + } + h1 { + font-size: 24px; + margin-bottom: 12px; + } + h2 { + font-size: 20px; + margin-top: 24px; + margin-bottom: 12px; + } + p { + margin: 0 0 16px 0; + font-size: 14px; + line-height: 2; + } + code { + box-sizing: border-box; + border-radius: 3px; + background-color: $--n-alpha-table-header-color; + padding: .2em .4em; + font-size: 14px; + font-family: 'Lato'; + } + table { + font-size: 14px; + width: 100%; + border: 1px solid $--n-alpha-divider-color; + border-radius: 6px; + text-align: left; + border-collapse: separate; + border-spacing: 0; + overflow: hidden; + // background-color: $--n-alpha-table-body-color; + th { + background-color: $--n-alpha-table-header-color; + background-clip: padding-box; + text-align: inherit; + padding: 14px 12px; + vertical-align: inherit; + font-style: none; + font-weight: 400; + text-transform: none; + border-left: none; + font-weight: bold; + border-bottom: 1px solid $--n-alpha-divider-color; + &:not(:last-child) { + border-right: 1px solid $--n-alpha-table-header-color; + } + } + td { + background-color: $--n-alpha-table-body-color; + background-clip: padding-box; + padding: 12px; + } + } + &.footer-part { + margin-top: 16px; + } } - td { - padding: 12px; - background-color: #1F263E; + } @else { + .n-app--light-theme .markdown { + code { + background-color: rgb(244, 244, 244); + border: 1px solid rgb(230, 230, 230); + } + table { + border: 1px solid rgba(34,36,38,.15); + th { + background: rgb(250, 250, 250); + } + td { + background-color: white; + } + } } } - &.footer-part { - margin-top: 16px; - } } \ No newline at end of file diff --git a/demo/utils/ComponentDemo.vue b/demo/utils/ComponentDemo.vue index 2602d403f..0ef2e36df 100644 --- a/demo/utils/ComponentDemo.vue +++ b/demo/utils/ComponentDemo.vue @@ -1,3 +1,16 @@ + +{ + "zh-cn": { + "show": "显示代码", + "hide": "收起代码" + }, + "en-us": { + "show": "Show Code", + "hide": "Hide Code" + } +} + + - Show Code + {{ !showCode ? $t('show') : $t('hide') }}
diff --git a/packages/common/TimePicker/src/main.vue b/packages/common/TimePicker/src/main.vue index 08dda5577..53422bb5a 100644 --- a/packages/common/TimePicker/src/main.vue +++ b/packages/common/TimePicker/src/main.vue @@ -45,6 +45,11 @@ > {{ hour }}
+
{{ minute }}
+
{{ second }}
+
diff --git a/packages/nimbus/ServiceLayout/src/main.vue b/packages/nimbus/ServiceLayout/src/main.vue index fee7828bf..453c1e35f 100644 --- a/packages/nimbus/ServiceLayout/src/main.vue +++ b/packages/nimbus/ServiceLayout/src/main.vue @@ -49,7 +49,10 @@ {{ name }} -
+