Skip to content

Commit

Permalink
nueva variación del componente card
Browse files Browse the repository at this point in the history
nueva variación del componente card como tipo: category-product.
  • Loading branch information
alejaCrea20 committed Sep 20, 2021
1 parent d44fe1d commit a6c5eb4
Show file tree
Hide file tree
Showing 5 changed files with 254 additions and 214 deletions.
18 changes: 18 additions & 0 deletions components/card/css/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,21 @@ const styles = css`:host{
padding: .5rem;
text-align: center;
}
:host([type=category-product]) {
align-items: end;
display: flex;
padding: 0 10px;
}
:host([type=category-product]) ::slotted(img) {
order: 2;
margin-left: 25px;
width: 30%;
}
:host([type=category-product]) ::slotted(h3) {
font-weight: normal;
order: 1;
width: 70%;
}
:host([type=icon-item]){
align-items: center;
display:flex;
Expand Down Expand Up @@ -155,6 +170,9 @@ const styles = css`:host{
::slotted(p) {
display: block;
}
:host([type=category-product]) ::slotted(img) {
margin-left: 30px;
}
}`;

export { styles };
4 changes: 2 additions & 2 deletions dist/components.js

Large diffs are not rendered by default.

Loading

0 comments on commit a6c5eb4

Please sign in to comment.