mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Merge pull request #21446 from overleaf/jel-content-pages-btn
[web] Fix spacing between `.btn` on gallery pages GitOrigin-RevId: f3603ffb0a64b69fd3f12eae74639599aa5f8c9a
This commit is contained in:
parent
9745c045ba
commit
d0df44b190
5 changed files with 30 additions and 32 deletions
|
@ -13,12 +13,12 @@ mixin begin_now_card()
|
||||||
span now
|
span now
|
||||||
span.text-green-bright }
|
span.text-green-bright }
|
||||||
p #{translate("discover_why_people_worldwide_trust_overleaf", {count: 18})}
|
p #{translate("discover_why_people_worldwide_trust_overleaf", {count: 18})}
|
||||||
p
|
p.card-links
|
||||||
if !isUserLoggedIn
|
if !isUserLoggedIn
|
||||||
a.btn.btn-primary.card-link(
|
a.btn.btn-primary.card-link(
|
||||||
href=registerURL
|
href=registerURL
|
||||||
) #{translate("sign_up_for_free")}
|
) #{translate("sign_up_for_free")}
|
||||||
a.card-link(
|
a.btn.card-link(
|
||||||
class = isUserLoggedIn ? 'btn btn-primary' : 'btn btn-secondary'
|
class = isUserLoggedIn ? 'btn-primary' : 'btn-secondary'
|
||||||
href=plansURL
|
href=plansURL
|
||||||
) #{translate("explore_all_plans")}
|
) #{translate("explore_all_plans")}
|
||||||
|
|
|
@ -66,10 +66,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn + .btn {
|
|
||||||
margin-left: var(--spacing-06);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card + .card {
|
.card + .card {
|
||||||
margin-top: var(--spacing-09);
|
margin-top: var(--spacing-09);
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,25 @@
|
||||||
|
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
|
||||||
|
.btn + .btn,
|
||||||
|
.card-link + .card-link {
|
||||||
|
margin-left: var(--spacing-06);
|
||||||
|
}
|
||||||
|
|
||||||
|
.card-links {
|
||||||
|
@include media-breakpoint-down(md) {
|
||||||
|
.btn {
|
||||||
|
width: 100%;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: var(--spacing-05);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:first-child {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Links and Buttons
|
Links and Buttons
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -354,13 +354,18 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.cta-links-container {
|
.cta-links-container {
|
||||||
margin: var(--spacing-09) 0;
|
margin-top: var(--spacing-09);
|
||||||
|
margin-bottom: var(--spacing-09);
|
||||||
|
|
||||||
.cta-links {
|
.cta-links {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
gap: var(--spacing-04);
|
align-items: flex-start;
|
||||||
padding: unset;
|
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
gap: var(--spacing-06);
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
margin: 0; // gap will handle spacing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -236,28 +236,6 @@
|
||||||
--bs-card-spacer-x: var(--spacing-08);
|
--bs-card-spacer-x: var(--spacing-08);
|
||||||
}
|
}
|
||||||
|
|
||||||
.cta-card {
|
|
||||||
.btn + .btn {
|
|
||||||
margin-left: var(--spacing-04);
|
|
||||||
}
|
|
||||||
|
|
||||||
p:has(.btn) {
|
|
||||||
margin-top: var(--spacing-09);
|
|
||||||
|
|
||||||
@include media-breakpoint-down(md) {
|
|
||||||
.btn {
|
|
||||||
width: 100%;
|
|
||||||
margin-left: 0;
|
|
||||||
margin-top: var(--spacing-05);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:first-child {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.badge-premium {
|
.badge-premium {
|
||||||
--badge-font-weight: 600;
|
--badge-font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue