Skip to content
Snippets Groups Projects
Commit 606bfbcd authored by Sreeram, Sudarshan's avatar Sreeram, Sudarshan :carrot:
Browse files

Fix scaling of quick view cards on smaller devices

parent c4c34c82
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ const ModuleResources: React.FC = () => { ...@@ -41,7 +41,7 @@ const ModuleResources: React.FC = () => {
<Row> <Row>
{[...Array(4)].map((e, i) => ( {[...Array(4)].map((e, i) => (
<Col xs={6} sm={6} md={3} key={i}> <Col xs={12} sm={6} md={6} lg={4} xl={3} key={i}>
<Card className={styles.quickViewCard}> <Card className={styles.quickViewCard}>
<Card.Img variant="top" src={graphIllustration} /> <Card.Img variant="top" src={graphIllustration} />
<Card.Body> <Card.Body>
...@@ -52,9 +52,12 @@ const ModuleResources: React.FC = () => { ...@@ -52,9 +52,12 @@ const ModuleResources: React.FC = () => {
/> />
</Card.Body> </Card.Body>
<Card.Footer> <Card.Footer>
<Badge pill className={styles.quickViewTag}> <Badge pill className={classNames(styles.quickViewTag, styles.tagTeal)}>
New New
</Badge> </Badge>
<Badge pill className={classNames(styles.quickViewTag, styles.tagBlue)}>
Week 1
</Badge>
</Card.Footer> </Card.Footer>
</Card> </Card>
</Col> </Col>
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
border-radius: 8px; border-radius: 8px;
background-color: $gray-100; background-color: $gray-100;
border-color: $gray-100; border-color: $gray-100;
transition: 0s all; transition: 0.2s background-color;
-webkit-transition: 0s all; -webkit-transition: 0.2s background-color;
-moz-transition: 0s all; -moz-transition: 0.2s back-ground-color;
} }
.serachBar::placeholder { .serachBar::placeholder {
...@@ -42,10 +42,9 @@ ...@@ -42,10 +42,9 @@
background-color: $gray-100; background-color: $gray-100;
border-color: $gray-100; border-color: $gray-100;
color: $gray-500; color: $gray-500;
transition: 0s all; transition: 0.2s background-color;
-webkit-transition: 0s all; -webkit-transition: 0.2s background-color;
-moz-transition: 0s all; -moz-transition: 0.2s back-ground-color;
margin-left: 1px;
} }
...@@ -78,6 +77,7 @@ ...@@ -78,6 +77,7 @@
padding: 0.5rem; padding: 0.5rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center;
border-top: 1px solid $gray-300; border-top: 1px solid $gray-300;
} }
...@@ -101,15 +101,25 @@ ...@@ -101,15 +101,25 @@
border-top-right-radius: 8px; border-top-right-radius: 8px;
} }
$new-tag-background: transparentize($blue-100, 0.5); $blue-tag-background: transparentize($blue-100, 0.5);
$teal-tag-background: transparentize($teal-100, 0.5);
.quickViewTag { .quickViewTag {
text-transform: uppercase; text-transform: uppercase;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: $blue-700;
background: $new-tag-background;
border-radius: 4px; border-radius: 4px;
margin-right: 8px;
}
.tagBlue {
color: $blue-700;
background: $blue-tag-background;
}
.tagTeal {
color: $teal-700;
background: $teal-tag-background;
} }
.folderCard { .folderCard {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment