Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
for_education: Highlight Zulip column vs. competitors.
Karl Stolley01aa6629df74
diff --git a/templates/corporate/compare-education.html b/templates/corporate/compare-education.htmlindex 2373600affe..f6825771c66 100644--- a/templates/corporate/compare-education.html+++ b/templates/corporate/compare-education.html@@ -13,7 +13,7 @@<th class="comparison-table-feature"><span class="label-features">Feature</span></th>- <th class="zulip-cell">Zulip</th>+ <th class="zulip-cell"><span class="label-zulip">Zulip</span></th><th class="competitor-cell">Slack</th><th class="competitor-cell">Discord</th><th class="competitor-cell">Piazza</th>@@ -119,7 +119,7 @@</tr><tr><td class="comparison-table-feature"># supported languages</td>- <td class="zulip-cell comparison-value-positive number">23</td>+ <td class="zulip-cell comparison-value-positive number">23 <span class="bottom-border"></span></td><td class="competitor-cell comparison-value-positive number">13</td><td class="competitor-cell comparison-value-positive number">30</td><td class="competitor-cell comparison-value-warning number one">1</td>diff --git a/web/styles/portico/comparison_table.css b/web/styles/portico/comparison_table.cssindex 023eb260377..bfcd5ba1879 100644--- a/web/styles/portico/comparison_table.css+++ b/web/styles/portico/comparison_table.css@@ -161,6 +161,12 @@}&.education-features-comparison {+ --zulip-cell-background-color: hsl(217deg 71% 78%);+ --zulip-cell-foreground-color: hsl(210deg 4% 10%);+ --zulip-column-border-width: 8px;+ --zulip-column-border-negative-offset: calc(+ var(--zulip-column-border-width) * -1+ );padding-bottom: 48px;.comparison-table {@@ -174,8 +180,48 @@width: 30%;}- td.competitor-cell {- opacity: 0.5;+ th.zulip-cell {+ padding: 0;+ }++ th.zulip-cell .label-zulip {+ display: block;+ /* We make the border larger by 1px to avoid an+ occasional rendering bug in Chrome that lets+ daylight in between the border here and the+ top of the table row. */+ border-top: calc(var(--zulip-column-border-width) + 1px) solid+ var(--zulip-cell-background-color);+ margin: var(--zulip-column-border-negative-offset)+ var(--zulip-column-border-negative-offset) 0;+ /* The hard-coded numeric values here keep the Zulip+ label aligned with other labels in the table-header+ row. */+ padding: calc(var(--zulip-column-border-width) + 7px)+ calc(var(--zulip-column-border-width) + 2px)+ calc(var(--zulip-column-border-width) + 5px);+ }++ .zulip-cell {+ color: var(--zulip-cell-foreground-color);+ background: var(--zulip-cell-background-color);+ border-left: var(--zulip-column-border-width) solid+ var(--zulip-cell-background-color);+ border-right: var(--zulip-column-border-width) solid+ var(--zulip-cell-background-color);+ /* Don't display stripes in the Zulip column. */+ border-top-color: var(--zulip-cell-background-color);+ }++ .zulip-cell .bottom-border {+ display: block;+ width: 100%;+ padding: 0 var(--zulip-column-border-width);+ border-bottom: var(--zulip-column-border-width) solid+ var(--zulip-cell-background-color);+ position: absolute;+ bottom: var(--zulip-column-border-negative-offset);+ left: var(--zulip-column-border-negative-offset);}}