Skip to content

Commit

Permalink
docs: fix css syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Oct 20, 2023
1 parent a291db3 commit a9d919b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
28 changes: 16 additions & 12 deletions packages/documentation/src/components/Card.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,31 @@
cursor: pointer;
text-decoration: none;
transition: transform 0.15s ease-in-out;
}

@media (max-width: 684px) {
@media (max-width: 684px) {
.Card {
width: 100%;
margin-right: 0;
}
}

@media (min-width: 664px) and (max-width: 684px) {
@media (min-width: 664px) and (max-width: 684px) {
.Card {
max-width: 640px;
}
}

@media (min-width: 997px) and (max-width: 1087px) {
@media (min-width: 997px) and (max-width: 1087px) {
.Card {
width: 100%;
}

&:hover {
transform: scale(1.07);
text-decoration: none !important;
}

}


.Card:hover {
transform: scale(1.07);
text-decoration: none !important;
}

.Card.Auto__Width {
width: auto;
Expand All @@ -62,11 +65,12 @@
background-color: var(--theme-color-2);
margin: 0 0 1.25rem 0;
cursor: pointer;
}

@media (min-width: 994px) {
@media (min-width: 994px) {
.Card_big {
margin-right: 1.25rem;
}

}

.Card.With__Icon {
Expand Down
2 changes: 0 additions & 2 deletions packages/documentation/src/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export function Card(
)}
style={props.style}
>

<div
className={clsx(styles.Label, 'text-h2', {
[styles.Full__Height]: !props.icon,
Expand All @@ -73,7 +72,6 @@ export function Card(
</div>
</>
) : null}

</Link>
);
}
Expand Down

0 comments on commit a9d919b

Please sign in to comment.