Merge pull request #19886 from overleaf/jel-plans-headers

[web] Separate column header pieces into new rows on new plans page

GitOrigin-RevId: db7f316ce8b7c983e7e000f95eb870962fc0bc9f
This commit is contained in:
Jessica Lawshe 2024-08-14 09:45:55 -05:00 committed by Copybot
parent a46219b055
commit 5496e13640

View file

@ -21,6 +21,8 @@
@group-member-picker-height: 24px;
@table-4-column-width: 25%;
.plans-new-design {
padding-top: calc(var(--spacing-16) + var(--header-height));
@ -292,74 +294,58 @@
.plans-new-table {
width: 100%;
// overrides
th {
font-weight: normal;
}
// the following rules are used to make every .plans-new-table-header-content
// occupy the whole height dynamically
height: fit-content;
thead tr {
height: 100%;
.plans-new-table-header-content {
height: 100%;
}
}
}
@table-4-column-width: 25%;
// TODO: review the usage of this class
// and check whether we can move the rule directly in the .plans-new-table
.plans-new-table-4-column {
th,
td {
width: @table-4-column-width;
}
}
.plans-new-table-4-column.plans-new-table-student {
.plans-new-table-student {
margin-left: @table-4-column-width / 2;
}
.plans-new-table-group {
margin-top: @spacing-11 + @highlighted-heading-height;
.plans-new-table-header-grid-container {
min-height: 85px;
}
// css specificity issue
thead tr th .plans-new-table-header-title {
@media (max-width: @screen-md-max) {
font-size: var(--font-size-03);
}
}
}
.plans-new-table-header {
thead th {
position: relative;
padding: @spacing-06 @spacing-08;
@media (max-width: @screen-md-max) {
padding: var(--spacing-05);
}
}
.plans-new-table-header-content {
display: flex;
flex-direction: column;
position: relative;
.plans-new-table-header-title {
padding: var(--spacing-06) var(--spacing-08) var(--spacing-04)
var(--spacing-08);
font-size: var(--font-size-05);
font-weight: 600;
line-height: var(--line-height-04);
margin-bottom: var(--spacing-04);
color: var(--neutral-90);
text-align: center;
@media (max-width: @screen-md-max) {
padding: var(--spacing-05) var(--spacing-05) 0 var(--spacing-05);
}
}
.plans-new-table-subheader {
vertical-align: top;
padding: 0 var(--spacing-08);
@media (max-width: @screen-md-max) {
padding: 0 var(--spacing-05);
}
&.plans-new-table-icon-cta-cell {
vertical-align: bottom;
}
}
.plans-new-table-cta-row {
td {
padding-bottom: var(--spacing-06);
@media (max-width: @screen-md-max) {
padding-bottom: var(--spacing-05);
}
}
.btn-block + .btn-block {
margin-top: var(--spacing-04);
}
}
.plans-new-table-header-grid-container {
@ -367,7 +353,8 @@
flex-direction: column;
align-items: center;
s {
s,
.match-original-price-height {
font-size: var(--font-size-02);
line-height: @nondiscounted-price-element-height;
color: var(--neutral-60);
@ -379,11 +366,6 @@
font-weight: 600;
line-height: var(--line-height-07);
color: var(--neutral-90);
// will affect the element if header does not have nondiscounted price
&:first-child {
margin-top: @nondiscounted-price-element-height;
}
}
.plans-new-table-header-price-unit {
@ -391,31 +373,29 @@
line-height: var(--line-height-02);
}
.plans-new-table-header-price-unit-total {
font-size: var(--font-size-01);
line-height: var(--line-height-01);
}
.plans-new-table-header-icon {
font-size: 56px;
color: var(--neutral-90);
margin-top: @nondiscounted-price-element-height;
}
}
.plans-new-table-header-desc {
margin-top: var(--spacing-05);
margin-bottom: var(--spacing-08);
font-size: var(--font-size-02);
line-height: var(--line-height-02);
}
.plans-new-table-cta {
margin-top: auto;
a:nth-child(2) {
margin-top: var(--spacing-04);
}
}
.plans-new-table-header-icon {
font-size: 56px;
color: var(--neutral-90);
}
}
.plans-new-table-header-price-unit-total {
font-size: var(--font-size-01);
line-height: var(--line-height-01);
}
.plans-new-table-header-desc {
margin-top: var(--spacing-05);
margin-bottom: var(--spacing-08);
font-size: var(--font-size-02);
line-height: var(--line-height-02);
}
.plans-new-group-member-picker {
@ -623,6 +603,7 @@
}
.plans-new-table-feature-th {
font-weight: normal;
padding: var(--spacing-05) var(--spacing-08) var(--spacing-05)
var(--spacing-05);
@ -678,6 +659,7 @@
line-height: @highlighted-heading-line-height;
background-color: var(--green-50);
color: var(--white);
font-size: var(--font-size-03);
}
.plans-new-table-highlighted-cell {