Skip to content

Commit

Permalink
🔧 'focused' nos cards
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-gn committed May 19, 2022
1 parent 1e6848b commit 90bea33
Show file tree
Hide file tree
Showing 7 changed files with 175 additions and 150 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

| Angular Version | NPM Version |
|-----------------|-------------|
| 13.2.3 | 13.0.9 |
| 13.2.3 | 13.0.10 |
| < 13.0.0 | 0.0.77 |

## Reference
Expand Down
312 changes: 166 additions & 146 deletions documentation.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mprisma/components",
"version": "13.0.9",
"version": "13.0.10",
"repository": {
"type": "git",
"url": "https://github.com/gabriel-gn/prisma-components.git"
Expand Down
2 changes: 1 addition & 1 deletion src/components/cards/basic-card/basic-card.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="pm-basic-card">
<div
[ngClass]="{'hoverable': hoverable}"
[ngClass]="{'hoverable': hoverable, 'focused': focused}"
class="card-basic {{paddingClass}} {{borderRadius ? 'rad-' + borderRadius : ''}} w-100"
style="height: auto;">
<ng-content></ng-content>
Expand Down
1 change: 1 addition & 0 deletions src/components/cards/basic-card/basic-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {Sizes} from '../../../models/sizes';
export class BasicCardComponent {

@Input('hoverable') hoverable = false;
@Input('focused') focused = false;
@Input('borderRadius') borderRadius: Sizes = Sizes.md;
@Input('paddingClass') paddingClass: string = 'p-3';

Expand Down
4 changes: 4 additions & 0 deletions src/styles/default/_cards.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ $card-width-sm: 280px;
flex-direction: column-reverse;
}

&.focused {
box-shadow: 0px 0px 8px 0px var(--color-primary) !important;
}

&.selected {
border: 5px solid var(--color-primary) !important;
margin: 4px !important;
Expand Down

1 comment on commit 90bea33

@vercel
Copy link

@vercel vercel bot commented on 90bea33 May 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.