Skip to content

Commit 52825f9

Browse files
author
Tiko
committed
added margins for better looking dropshadows on CaseCards
1 parent 899b0e6 commit 52825f9

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

components/src/containers/CaseCard/CaseCard.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ const CaseCardContainer = styled.div`
88
border-radius: 10px;
99
height: 391px;
1010
width: 272px;
11-
filter: drop-shadow(2px 2px 24px rgba(0, 0, 0, 0.08));
11+
filter: drop-shadow(15px 15px 10px rgba(0, 0, 0, 0.2));
12+
overflow: visible;
13+
margin-right: 30px;
14+
margin-bottom: 30px;
1215
padding: 60px 20px 0;
1316
display: flex;
1417
flex-direction: column;

website/pages/cases.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ const casesOverviewContainerResponsiveCSS = () => {
8181
"",
8282
breakpointNameToPx({
8383
xs: "1fr",
84-
lg: "1fr 650px",
85-
xl: "1fr 650px",
84+
lg: "1fr 680px",
8685
}));
8786
const paddingTop = responsiveValuesCSS(
8887
"padding-top",
@@ -101,7 +100,15 @@ const casesOverviewContainerResponsiveCSS = () => {
101100
xl: 80
102101
})
103102
);
104-
return gridColumns + paddingTop + columnGap;
103+
const justifyItems = responsiveValuesCSS(
104+
"justify-items",
105+
"",
106+
breakpointNameToPx({
107+
xs: "center",
108+
lg: "flex-start"
109+
})
110+
);
111+
return gridColumns + paddingTop + columnGap + justifyItems;
105112
};
106113
const CasesOverviewContainer = styled.div`
107114
${casesOverviewContainerResponsiveCSS};
@@ -143,10 +150,9 @@ const CasesOverviewRightColumn = styled.div`
143150
${casesOverviewRightColumnResponsiveCSS};
144151
display: grid;
145152
justify-items: center;
146-
grid-column-gap: 20px;
147-
grid-row-gap: 20px;
148153
height: 800px;
149154
overflow: scroll;
155+
150156
`;
151157

152158
type Case = {

0 commit comments

Comments
 (0)