Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 13b99fe

Browse files
committed
make the cards tall in accordance to their content height.
Fixes gitpod-io/website#814
1 parent bcd6dcc commit 13b99fe

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/components/PopOver.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ const StyledDescripion = styled.span`
4444
font-weight: 400;
4545
color: ${colors.textDark};
4646
background: ${colors.offWhite2};
47-
z-index: 1000 !important;
47+
z-index: 1000;
4848
border-radius: 3px;
4949
5050
@media(max-width: 1080px) {
5151
position: absolute;
5252
right: -5rem;
5353
top: 2.4rem;
5454
min-width: 18rem;
55-
z-index: 1999999999;
55+
z-index: 9999999999;
5656
}
5757
5858
@media(min-width: 1081px) {

src/components/PricingBox.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ const StyledPricingBox = styled.div<StyledPricingBoxProps>`
6363
padding: 2rem 3rem;
6464
}
6565
66+
@media(max-width: 650px) {
67+
display: flex;
68+
flex-direction: column;
69+
align-items: center;
70+
min-height: 0;
71+
}
72+
6673
@media(max-width: ${sizes.breakpoints.sm}) {
6774
min-width: 25rem;
6875
min-height: auto;
@@ -174,6 +181,12 @@ const StyledPricingBox = styled.div<StyledPricingBoxProps>`
174181
@media(min-width: calc(${sizes.breakpoints.lg} + 1px)) {
175182
bottom: ${({ transform }) => (transform ? '2rem' : '1.5rem')};
176183
}
184+
185+
@media(max-width: 650px) {
186+
position: static;
187+
transform: none;
188+
margin-top: 5rem;
189+
}
177190
}
178191
179192
.text {

0 commit comments

Comments
 (0)