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.

portico: Re-add bootstrap CSS for tables with "table-bordered" class.

Sahil Batra29ce34020dee
diff --git a/templates/analytics/ad_hoc_query.html b/templates/analytics/ad_hoc_query.html
index 1417d301b95..9e85172151d 100644
--- a/templates/analytics/ad_hoc_query.html
+++ b/templates/analytics/ad_hoc_query.html
@@ -1,7 +1,7 @@
<h3>{{ data.title }}</h3>
{{ data.rows|length}} rows
-<table class="table sortable table-striped table-bordered">
+<table class="table sortable table-striped table-bordered analytics_table">
<thead class="activity_head">
<tr>
diff --git a/web/styles/portico/activity.css b/web/styles/portico/activity.css
index 533c3057f6b..5e3abf3fa58 100644
--- a/web/styles/portico/activity.css
+++ b/web/styles/portico/activity.css
@@ -24,6 +24,35 @@ td.number {
text-align: right;
}
+.summary-table,
+.analytics_table {
+ border: 1px solid hsl(0deg 0% 87%);
+ border-collapse: separate;
+ border-left: 0;
+ border-radius: 4px;
+
+ & th,
+ td {
+ border-left: 1px solid hsl(0deg 0% 87%);
+ }
+
+ thead tr:first-child > th:first-child {
+ border-top-left-radius: 4px;
+ }
+
+ thead tr:first-child > th:last-child {
+ border-top-right-radius: 4px;
+ }
+
+ tbody tr:last-child > td:first-child {
+ border-bottom-left-radius: 4px;
+ }
+
+ tbody tr:last-child > td:last-child {
+ border-bottom-right-radius: 4px;
+ }
+}
+
.summary-table {
width: auto;
margin: 0 auto;
diff --git a/web/styles/portico/portico.css b/web/styles/portico/portico.css
index d1e758e1839..aed5391fa5e 100644
--- a/web/styles/portico/portico.css
+++ b/web/styles/portico/portico.css
@@ -1242,6 +1242,34 @@ label.label-title {
#devtools-page {
max-width: 800px;
margin: 0 auto;
+
+ .table-bordered {
+ border: 1px solid hsl(0deg 0% 87%);
+ border-collapse: separate;
+ border-left: 0;
+ border-radius: 4px;
+
+ & th,
+ td {
+ border-left: 1px solid hsl(0deg 0% 87%);
+ }
+
+ thead tr:first-child > th:first-child {
+ border-top-left-radius: 4px;
+ }
+
+ thead tr:first-child > th:last-child {
+ border-top-right-radius: 4px;
+ }
+
+ tbody tr:last-child > td:first-child {
+ border-bottom-left-radius: 4px;
+ }
+
+ tbody tr:last-child > td:last-child {
+ border-bottom-right-radius: 4px;
+ }
+ }
}
.portico-page.error {