Skip to content

Commit

Permalink
Fix card's style (#408)
Browse files Browse the repository at this point in the history
* fix card style

* add helper class
  • Loading branch information
gsambrotta committed Nov 15, 2023
1 parent e3fae90 commit b0b9695
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 13 deletions.
6 changes: 5 additions & 1 deletion src/app/blocks/card-block/card-block.component.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
mat-card {
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
display: block;
position: relative;
padding: 1em;
margin-bottom: 1em;
}
}
32 changes: 20 additions & 12 deletions src/styles/main.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/*********
Global Style Guide:
- Styles not applicable directly within component styles should go here.
- Helper classes are listed below. They are usable within sanitised
HTML and are marked as "HELPER CLASS" for easy identification.
- Helper classes are particularly useful with the Template block,
where the style attribute is sanitised, but CSS classes are allowed.
*********/


@import "~@ng-select/ng-select/themes/material.theme.css";
// @import '../../app/ng-select-theme';

Expand Down Expand Up @@ -163,23 +173,21 @@ dynamic-material-form-control:not(:last-child) {
}

.mat-card {
transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
display: block;
position: relative;
padding: 1em;
//border-radius: 4px;
//&:hover {
// box-shadow: 0;
// background-color: #f3f3f3;
//}

img {
object-fit: contain;
object-fit: cover;
width: 100%;
padding: 40px;
margin-top: 20px;
}
}

// HELPER CLASS
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
width: 90%;
display: inline-block;
}

.ng-dropdown-panel-items {
font-size: 1rem;
Expand Down

1 comment on commit b0b9695

@vercel
Copy link

@vercel vercel bot commented on b0b9695 Nov 15, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

kendraio-app – ./

kendraio-app-kendraio.vercel.app
kendraio-app-git-develop-kendraio.vercel.app

Please sign in to comment.