Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

integrations: Restyle bottom buttons to match /why-zulip.

Alya Abbott29c58500f053
diff --git a/templates/zerver/integrations/catalog.html b/templates/zerver/integrations/catalog.html
index 011aa8480c8..119a98aeef9 100644
--- a/templates/zerver/integrations/catalog.html
+++ b/templates/zerver/integrations/catalog.html
@@ -106,18 +106,16 @@
{{ integration_macros.render_integration_lozenge(integration) }}
</a>
{% endfor %}
- <hr />
<div class="integration-request center">
<p>Don't see an integration you need? We'd love to help.</p>
- <a href="/api/integrations-overview" class="button green">
- Create your own
- </a>
- <span class="integration-divider">
- or
- </span>
- <a href="/help/request-an-integration" class="button green">
- Request an integration
- </a>
+ <div class="hero-buttons center">
+ <a href="/api/integrations-overview" class="button">
+ Create your own
+ </a>
+ <a href="/help/request-an-integration" class="button">
+ Request an integration
+ </a>
+ </div>
</div>
</div>
</div>
diff --git a/web/styles/portico/integrations.css b/web/styles/portico/integrations.css
index 17f06e588f0..6b8e6c189df 100644
--- a/web/styles/portico/integrations.css
+++ b/web/styles/portico/integrations.css
@@ -496,32 +496,25 @@
.integration-request {
font-size: 1em;
- padding: 10px 0;
+ /* Generous top/bottom padding so the "Don't see an integration
+ you need?" section has visible breathing room between the
+ last row of cards above and the section content below. */
+ padding: 40px 0 20px;
& p {
- padding-bottom: 10px;
+ margin: 0 0 20px;
}
- .button {
- padding: 11px 25px;
- margin: 0 auto;
- font-size: 0.9em;
- }
- }
-
- @media (width <= 550px) {
- .button {
+ /* Lay out the /why-zulip-style hero-buttons as a centered
+ flex row, since the flex rule in marketing_page.css is
+ scoped to .why-page and its siblings. */
+ .hero-buttons {
display: flex;
- flex-wrap: wrap;
- width: 170px;
+ flex-flow: row wrap;
justify-content: center;
}
}
- .integration-divider {
- padding: 11px 15px 0;
- }
-
/* -- integration instructions -- */
#integration-instructions-group {