mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 02:48:47 -05:00
92a23b7e9d
* Adding max width for gallery-summary * changin card background color * removing row from within the card * matching the padding of gray card with figma design * removing row and spaced row to avoid extra padding and adding doc-rows-container * adding grid for templates and removing some old styling * adding .recent-templates-container to add the padding and margins * deleting a comment and adding img border radius for the thumbnail * adding margin-bottom on recent-templates-container * adding .gallery-tagged-title-container to match the figma padding and then a fix was needed for the width of the filters * renaming gallery-tagged-title-container to gallery-tagged-container-spacing and re-using it for Related tags container * making recent heading as heading-xl to match figma * adding badge styling and its container styling via .gallery-tagged-template-tags-container * making two classes out of this class .gallery-tagged-container-spacing to add the styling for the h2 heading * adding margin-bottom to match figma style * making class generic and using it at multiple places * removing some extra code * removing grid styling because after rebase the layout was fixed with col classes * adding rows back * adding h2 instead of h3 and making them heading-xl * adapting some changes after merge conflicts * removing duplicate classname after rebase GitOrigin-RevId: d02a0b1e2784fd96d2af2326700829879dacc464
185 lines
3.3 KiB
SCSS
185 lines
3.3 KiB
SCSS
.card {
|
|
--bs-card-bg: var(--white);
|
|
--bs-card-border-width: 0;
|
|
--bs-card-border-radius: var(--border-radius-base);
|
|
--bs-card-spacer-x: var(--spacing-08);
|
|
--bs-card-spacer-y: var(--spacing-08);
|
|
|
|
.card-body {
|
|
> :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
> :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
&.card-dark-green-bg {
|
|
background: var(--dark-jungle-green);
|
|
border-radius: var(--border-radius-large);
|
|
color: var(--green-10);
|
|
|
|
.card-body {
|
|
padding: var(--spacing-09);
|
|
}
|
|
|
|
a:not(.btn) {
|
|
color: var(--green-30);
|
|
|
|
&:hover {
|
|
color: var(--green-30);
|
|
}
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
p {
|
|
color: var(--green-10);
|
|
}
|
|
}
|
|
|
|
&.card-purple-top-border {
|
|
background-color: white;
|
|
border-radius: var(--border-radius-medium);
|
|
box-shadow:
|
|
0 2px 4px 0 #1e253014,
|
|
0 4px 12px 0 #1e25301f;
|
|
border-top: 8px solid var(--sapphire-blue);
|
|
|
|
.card-body {
|
|
padding: var(--spacing-09) var(--spacing-10);
|
|
}
|
|
}
|
|
|
|
&.card-premium-border {
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5 {
|
|
color: var(--blue-60);
|
|
}
|
|
|
|
border-radius: var(--spacing-04);
|
|
border: 2px solid transparent;
|
|
background:
|
|
linear-gradient(white, white) padding-box,
|
|
linear-gradient(to right, var(--blue-40), #254c84, var(--blue-70))
|
|
border-box;
|
|
|
|
.card-body {
|
|
padding: var(--spacing-10);
|
|
}
|
|
|
|
.btn {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
&.card-pattern {
|
|
border-radius: var(--border-radius-medium);
|
|
color: var(--white);
|
|
text-align: center;
|
|
background-size: cover;
|
|
background-image: linear-gradient(
|
|
to right,
|
|
rgba(0 0 0 / 40%) 0%,
|
|
var(--dark-jungle-green) 25%,
|
|
var(--dark-jungle-green) 75%,
|
|
rgba(0 0 0 / 40%) 100%
|
|
),
|
|
url('../../../../public/img/website-redesign/overleaf-pattern-purple.png');
|
|
|
|
h2 {
|
|
@include heading-lg;
|
|
}
|
|
|
|
p {
|
|
@include body-lg;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
p {
|
|
color: var(--white);
|
|
}
|
|
|
|
.card-body {
|
|
padding: var(--spacing-13);
|
|
}
|
|
}
|
|
|
|
&.card-pattern-left-only {
|
|
border-radius: var(--border-radius-medium);
|
|
color: var(--white);
|
|
background-size: cover;
|
|
background-image: linear-gradient(
|
|
to right,
|
|
rgba(0 0 0 / 40%) 0%,
|
|
var(--dark-jungle-green) 20%,
|
|
var(--dark-jungle-green) 100%
|
|
),
|
|
url('../../../../public/img/website-redesign/overleaf-pattern-purple.png');
|
|
|
|
h2 {
|
|
@include heading-lg;
|
|
}
|
|
|
|
p {
|
|
@include body-lg;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
p {
|
|
color: var(--white);
|
|
}
|
|
|
|
.card-body {
|
|
padding: var(--spacing-13);
|
|
}
|
|
}
|
|
|
|
&.card-grey-border {
|
|
background-color: white;
|
|
border-radius: var(--border-radius-medium);
|
|
border: 2px solid var(--neutral-20);
|
|
|
|
.card-body {
|
|
padding: var(--spacing-10);
|
|
}
|
|
}
|
|
|
|
&.card-green-border {
|
|
background-color: white;
|
|
border-radius: var(--border-radius-medium);
|
|
border: 2px solid var(--green-50);
|
|
|
|
.card-body {
|
|
padding: var(--spacing-09);
|
|
}
|
|
}
|
|
}
|
|
|
|
.card-gray {
|
|
background-color: var(--neutral-10);
|
|
}
|
|
|
|
.card-gray-dark {
|
|
background-color: var(--neutral-10);
|
|
border-radius: var(--border-radius-base);
|
|
|
|
.card-body {
|
|
padding: var(--spacing-10) var(--spacing-09);
|
|
}
|
|
}
|