diff --git a/src/base/card.wc b/src/base/card.wc index 1ae23f0..26dc356 100644 --- a/src/base/card.wc +++ b/src/base/card.wc @@ -12,16 +12,6 @@ border-radius: 3px; } -.header { - display: none; - padding: 8px 16px; - border-bottom: 1px solid var(--color-plain-2); - font-size: 16px; - - &.show { - display: block; - } -} .card { display: flex; flex-direction: column; @@ -34,6 +24,17 @@ transition: box-shadow 0.3s ease-in-out; } +.header { + display: none; + padding: 8px 16px; + border-bottom: 1px solid var(--color-plain-2); + font-size: 16px; + + &.show { + display: block; + } +} + :host([shadow='hover']) { .card { box-shadow: none; diff --git a/src/base/collapse-item.wc b/src/base/collapse-item.wc new file mode 100644 index 0000000..30a68ce --- /dev/null +++ b/src/base/collapse-item.wc @@ -0,0 +1,127 @@ + + + + + diff --git a/src/base/collapse.wc b/src/base/collapse.wc new file mode 100644 index 0000000..7e4eade --- /dev/null +++ b/src/base/collapse.wc @@ -0,0 +1,58 @@ + + + + + diff --git a/src/base/index.js b/src/base/index.js new file mode 100644 index 0000000..afdc26f --- /dev/null +++ b/src/base/index.js @@ -0,0 +1,3 @@ +import './row' +import './card' +import './collapse' diff --git a/src/index.js b/src/index.js index dfded9f..2b86224 100644 --- a/src/index.js +++ b/src/index.js @@ -1,7 +1,6 @@ import './avatar/index' import './badge/index' -import './base/row' -import './base/card' +import './base/index' import './code/index' import './color/index' import './drag/index'