plans: Filter table based on active plans tab.

This commit is contained in:
Karl Stolley
2024-02-07 12:55:09 -06:00
committed by Tim Abbott
parent 5031d7a06c
commit 7d2adda31c
2 changed files with 21 additions and 1 deletions

View File

@@ -25,7 +25,7 @@
<th class="comparison-table-feature">Features</th> <th class="comparison-table-feature">Features</th>
<th class="cloud-cell">Free</th> <th class="cloud-cell">Free</th>
<th class="cloud-cell">Stan<wbr />dard</th> <th class="cloud-cell">Stan<wbr />dard</th>
<th class="cloud-cell">Plus</th> <th class="cloud-cell last-cloud-th">Plus</th>
<th class="self-hosted-cell">Free</th> <th class="self-hosted-cell">Free</th>
<th class="self-hosted-cell">Basic</th> <th class="self-hosted-cell">Basic</th>

View File

@@ -353,3 +353,23 @@
} }
} }
} }
/* Change comparison-table visibility on /plans
based on active plan tab. */
.showing-cloud {
#self-hosted-plan-comparison,
#all-plan-comparison,
.self-hosted-feature-only,
.self-hosted-cell {
display: none;
}
}
.showing-self-hosted {
#cloud-plan-comparison,
#all-plan-comparison,
.cloud-cell {
display: none;
}
}