Skip to content

Commit

Permalink
updated styles to work woth changes in feature and changes icon styli…
Browse files Browse the repository at this point in the history
…ng so there is no unneeded space when slot is not used
  • Loading branch information
SamanthaAO committed May 13, 2020
1 parent faf3545 commit dd8f8a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ import { html, when } from "@microsoft/fast-element";
import { ContentPlacement } from "./content-placement";

export const ContentPlacementTemplate = html<ContentPlacement>`<fast-card>
<div class="contentPlacement_icon">
<div
class=${x =>
x.divider
? ""
: "contentPlacement_icon"}
>
<slot name="icon"></slot>
</div>
<slot></slot>
Expand Down
5 changes: 3 additions & 2 deletions sites/fast-website/src/app/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,19 @@ body {

.section-component {
--card-width: 410px;
color: var(--neutral-foreground-rest);
display: flex;
flex-wrap: wrap;
justify-content: center;
}

/* This creates the blur and background color changes on hover */
/* start */
.section-component:hover fast-hover-card{
.section-component:hover site-content-placement{
filter: blur(2px);
}

.section-component:hover fast-hover-card:hover{
.section-component:hover site-content-placement:hover{
/* background: linear-gradient(349.8deg, rgba(143, 68, 95, 0.3) 20.91%, rgba(148, 81, 73, 0.3) 99.75%); */
box-shadow: 0px 10px 44px rgba(0, 0, 0, 0.1);
border-radius: var(--design-unit);
Expand Down

0 comments on commit dd8f8a3

Please sign in to comment.