Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
features_grid: Introduce partial grid-based layout.
Karl Stolleyd089254ff094
diff --git a/web/styles/portico/marketing_page.css b/web/styles/portico/marketing_page.cssindex 43fa38c5d66..54b2fd4619d 100644--- a/web/styles/portico/marketing_page.css+++ b/web/styles/portico/marketing_page.css@@ -3887,30 +3887,30 @@ button {background: var(--color-background-box);padding: 50px 0;+ /* TODO: simplify this markup for better use of grid here. */.feature-row {- display: flex;- flex-direction: row;+ display: grid;+ grid-template-columns: repeat(2, minmax(0, 1fr));max-width: 1000px;- margin: auto;- align-items: center;- justify-content: center;+ margin: 0 auto;gap: 20px;+ /* TODO: Define grid areas, etc. to be able to lay out+ intro quotes to the grid as well. */+ &:has(.intro_quote) {+ display: block;+ }+.feature-box {- display: flex;- justify-content: flex-start;- align-items: flex-start;- flex-direction: column;- width: 35vw;box-shadow:0 1px 1px 0 hsl(193deg 100% 7.1% / 30%),1px 1px 1px 0 hsl(193deg 100% 7.1% / 15%),-1px 1px 1px 0 hsl(193deg 100% 7.1% / 15%);-background: hsl(0deg 0% 100%);- text-align: left;+ /* TODO: Eliminate this margin and use `gap` with+ a fuller grid in the area. */margin: 10px 0;- padding: 50px 30px 0;+ padding: 30px;border-top: 5px solid var(--color-prominent-border);& h1 {@@ -3918,15 +3918,17 @@ button {font-size: clamp(24px, 2.5vw, 32px);}- .feature-icon {- align-self: center;-- & img {- width: 100px;- }+ .feature-icon img {+ display: block;+ margin: 0 auto;+ width: 100px;}.feature-text {+ ul {+ padding-left: 30px;+ }+ul li {line-height: 1.3;margin-bottom: 5px;@@ -3935,12 +3937,16 @@ button {}@media (width < 768px) {- flex-direction: column;+ max-width: 90%;+ /* Drop to a single column. */+ grid-template-columns: minmax(0, 1fr);+ /* Drop gap to 0px; margins handle spacing currently.+ TODO: Replace use of margins with gap with a fuller+ grid definition. */+ gap: 0;.feature-box {- width: 70vw;- height: auto;- padding-bottom: 20px;+ padding: 20px;}}}@@ -3980,26 +3986,16 @@ button {}}-.self-hosting-page .feature-box {- /* Defined a fixed height since we all boxes to have same height. */- height: 350px;+/* TODO: Specify this height at the grid level+ once there's a more robust grid in the area. */+.partners-page .feature-grid .feature-row {+ min-height: 200px;- @media (width < 1200px) {- height: 400px;- }-- @media (width < 900px) {- /* Based on height required to fit all content in the box at 768px. */- height: 480px;+ .feature-box {+ justify-content: center;}}-.partners-page .feature-grid .feature-row .feature-box {- height: 200px;- padding: 0 30px;- justify-content: center;-}-.apps .apps-page-link {text-decoration: underline;color: hsl(0deg 0% 100%);