From 09dad70cfb0c342e46fa21fc8c7f86bd71b80ae7 Mon Sep 17 00:00:00 2001 From: kooriookami <38392315+kooriookami@users.noreply.github.com> Date: Mon, 1 Feb 2021 00:48:26 -0600 Subject: [PATCH] docs(docs): fix style of demo card header (#1405) * docs(docs): fix style of card header * docs: update --- website/demo-styles/card.scss | 15 ++++++++++++- website/demo-styles/index.scss | 1 + website/demo-styles/skeleton.scss | 12 ++++++++--- website/demo-styles/space.scss | 12 +++++++++++ website/docs/en-US/card.md | 36 +++++++++++-------------------- website/docs/en-US/skeleton.md | 8 +++---- website/docs/en-US/space.md | 24 +++++++-------------- website/docs/es/card.md | 36 +++++++++++-------------------- website/docs/es/skeleton.md | 8 +++---- website/docs/es/space.md | 24 +++++++-------------- website/docs/fr-FR/card.md | 36 +++++++++++-------------------- website/docs/fr-FR/skeleton.md | 8 +++---- website/docs/fr-FR/space.md | 24 +++++++-------------- website/docs/jp/card.md | 36 +++++++++++-------------------- website/docs/jp/skeleton.md | 8 +++---- website/docs/jp/space.md | 24 +++++++-------------- website/docs/zh-CN/card.md | 36 +++++++++++-------------------- website/docs/zh-CN/skeleton.md | 6 +++--- website/docs/zh-CN/space.md | 24 +++++++-------------- 19 files changed, 160 insertions(+), 218 deletions(-) create mode 100644 website/demo-styles/space.scss diff --git a/website/demo-styles/card.scss b/website/demo-styles/card.scss index a558b14962..8293952141 100644 --- a/website/demo-styles/card.scss +++ b/website/demo-styles/card.scss @@ -1,4 +1,10 @@ .demo-block.demo-card { + .card-header { + display: flex; + justify-content: space-between; + align-items: center; + } + .text { font-size: 14px; } @@ -11,15 +17,22 @@ .bottom { margin-top: 13px; line-height: 12px; + display: flex; + justify-content: space-between; + align-items: center; } .item { margin-bottom: 18px; + + &:last-child { + margin-bottom: 0; + } } .button { padding: 0; - float: right; + min-height: auto; } .image { diff --git a/website/demo-styles/index.scss b/website/demo-styles/index.scss index 28b0915e4b..5e2edd56e7 100644 --- a/website/demo-styles/index.scss +++ b/website/demo-styles/index.scss @@ -46,3 +46,4 @@ @import "./avatar.scss"; @import "./drawer.scss"; @import "./skeleton.scss"; +@import "./space.scss"; diff --git a/website/demo-styles/skeleton.scss b/website/demo-styles/skeleton.scss index d68bd7068a..c349db827c 100644 --- a/website/demo-styles/skeleton.scss +++ b/website/demo-styles/skeleton.scss @@ -1,9 +1,14 @@ .demo-block.demo-skeleton { - .el-card { margin-bottom: 16px; } + .card-header { + display: flex; + justify-content: space-between; + align-items: center; + } + .time { font-size: 13px; color: #999; @@ -16,14 +21,15 @@ .button { padding: 0; - float: right; + min-height: auto; } .image { &.multi-content { width: 400px; - height: 267px; + height: 267px; } + width: 100%; display: block; } diff --git a/website/demo-styles/space.scss b/website/demo-styles/space.scss new file mode 100644 index 0000000000..83755c20be --- /dev/null +++ b/website/demo-styles/space.scss @@ -0,0 +1,12 @@ +.demo-block.demo-space { + .card-header { + display: flex; + justify-content: space-between; + align-items: center; + } + + .button { + padding: 0; + min-height: auto; + } +} diff --git a/website/docs/en-US/card.md b/website/docs/en-US/card.md index 510dfdc595..67009e1792 100644 --- a/website/docs/en-US/card.md +++ b/website/docs/en-US/card.md @@ -9,9 +9,9 @@ Card includes title, content and operations. ```html
@@ -20,6 +20,12 @@ Card includes title, content and operations.