Merged in fix/move-sas-comparison-to-dynamic-content (pull request #1279)
Move SASTierComparison block to DynamicContent Approved-by: Erik Tiekstra
This commit is contained in:
183
components/SasTierComparison/sasTierComparison.module.css
Normal file
183
components/SasTierComparison/sasTierComparison.module.css
Normal file
@@ -0,0 +1,183 @@
|
||||
.comparisonSection {
|
||||
width: 100%;
|
||||
gap: var(--Spacing-x6);
|
||||
background-color: var(--Base-Surface-Primary-light-Normal);
|
||||
border-radius: var(--Corner-radius-Large);
|
||||
padding: var(--Spacing-x6) var(--Spacing-x2);
|
||||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--Spacing-x1);
|
||||
margin: 0 auto;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.preamble {
|
||||
margin: 0;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--Spacing-x-half);
|
||||
}
|
||||
|
||||
.tierMatchList {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.tierDetails {
|
||||
overflow: hidden;
|
||||
background-color: var(--Base-Surface-Primary-light-Normal);
|
||||
transition: background-color 200ms;
|
||||
transition-delay: 50ms;
|
||||
border-bottom: 1px solid var(--Base-Border-Subtle);
|
||||
|
||||
&:hover,
|
||||
&[open] {
|
||||
background-color: var(--Base-Surface-Primary-light-Hover);
|
||||
|
||||
.comparisonIcon {
|
||||
background-color: var(--Base-Surface-Primary-light-Normal);
|
||||
}
|
||||
}
|
||||
|
||||
&[open] {
|
||||
.chevron {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
&::details-content {
|
||||
block-size: auto;
|
||||
}
|
||||
}
|
||||
|
||||
&::details-content {
|
||||
block-size: 0;
|
||||
transition:
|
||||
block-size 0.4s,
|
||||
content-visibility 0.4s;
|
||||
transition-behavior: allow-discrete;
|
||||
}
|
||||
}
|
||||
|
||||
.iconWrapper {
|
||||
position: absolute;
|
||||
right: var(--Spacing-x1);
|
||||
}
|
||||
.chevron {
|
||||
transition: transform 200ms;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tierSummary {
|
||||
list-style: none;
|
||||
|
||||
&::marker,
|
||||
&::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.columnHeaders {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
align-items: center;
|
||||
row-gap: var(--Spacing-x2);
|
||||
margin-bottom: var(--Spacing-x2);
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
.tierTitles {
|
||||
cursor: pointer;
|
||||
padding: var(--Spacing-x-half);
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 64px;
|
||||
align-items: center;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
}
|
||||
|
||||
.tierTitle {
|
||||
flex-grow: 1;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.comparisonIcon {
|
||||
background-color: var(--Base-Surface-Secondary-light-Normal);
|
||||
border-radius: 50%;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 1;
|
||||
transition: background-color 0.3s;
|
||||
transition-delay: 50ms;
|
||||
}
|
||||
|
||||
.tierContent {
|
||||
padding: var(--Spacing-x3);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--Spacing-x2);
|
||||
}
|
||||
|
||||
.tierInfo {
|
||||
display: grid;
|
||||
gap: var(--Spacing-x2);
|
||||
}
|
||||
|
||||
.htmlContent {
|
||||
gap: 0;
|
||||
|
||||
& ul {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.columnTitle {
|
||||
width: 100%;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
|
||||
& > span {
|
||||
position: relative;
|
||||
padding: 0 var(--Spacing-x2);
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
&::before {
|
||||
position: absolute;
|
||||
bottom: calc(50% - 1px);
|
||||
content: "";
|
||||
display: block;
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
background-color: var(--Base-Border-Normal);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.tierInfo {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0;
|
||||
}
|
||||
|
||||
.ctaButton {
|
||||
width: fit-content;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.columnHeaders {
|
||||
column-gap: var(--Spacing-x3);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user