Chore/BOOK-708 replace title component * chore(BOOK-708): replace title with typography * chore(BOOK-708): replace title with typography * chore(BOOK-708): remove Title from package.json Approved-by: Linus Flood Approved-by: Anton Gunnarsson
163 lines
2.8 KiB
CSS
163 lines
2.8 KiB
CSS
.container {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
border-radius: var(--Corner-radius-md);
|
|
margin-right: var(--Space-x2);
|
|
text-align: center;
|
|
width: 100%;
|
|
text-wrap: wrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.fixed {
|
|
height: 320px; /* Fixed height from Figma */
|
|
}
|
|
|
|
.dynamic {
|
|
height: 100%;
|
|
}
|
|
|
|
.imageContainer {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.imageGradient::after {
|
|
background: linear-gradient(
|
|
180deg,
|
|
rgba(0, 0, 0, 0) 0%,
|
|
rgba(0, 0, 0, 0.36) 50%,
|
|
rgba(0, 0, 0, 0.75) 100%
|
|
);
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.image {
|
|
object-fit: cover;
|
|
width: 100%;
|
|
height: 100%;
|
|
min-height: 320px; /* Fixed height from Figma */
|
|
}
|
|
|
|
.content {
|
|
display: grid;
|
|
padding: var(--Space-x4) var(--Space-x3);
|
|
gap: var(--Space-x2);
|
|
}
|
|
|
|
.themeOne {
|
|
background: var(--Primary-Light-Surface-Normal);
|
|
.heading {
|
|
color: var(--Primary-Light-On-Surface-Text);
|
|
}
|
|
.bodyText {
|
|
color: var(--Primary-Light-On-Surface-Text);
|
|
}
|
|
}
|
|
|
|
.themeTwo {
|
|
background: var(--Secondary-Light-Surface-Normal);
|
|
.heading {
|
|
color: var(--Secondary-Light-On-Surface-Text);
|
|
}
|
|
.bodyText {
|
|
color: var(--Secondary-Light-On-Surface-Text);
|
|
}
|
|
}
|
|
|
|
.themeThree {
|
|
background: var(--Tertiary-Light-Surface-Normal);
|
|
.heading {
|
|
color: var(--Tertiary-Light-On-Surface-Text);
|
|
}
|
|
.bodyText {
|
|
color: var(--Tertiary-Light-On-Surface-Text);
|
|
}
|
|
}
|
|
|
|
.themePrimaryDark {
|
|
background: var(--Primary-Dark-Surface-Normal);
|
|
.heading {
|
|
color: var(--Primary-Dark-On-Surface-Text);
|
|
}
|
|
.bodyText {
|
|
color: var(--Primary-Dark-On-Surface-Text);
|
|
}
|
|
}
|
|
|
|
.themePrimaryDim {
|
|
background: var(--Primary-Dim-Surface-Normal);
|
|
.heading {
|
|
color: var(--Primary-Dim-On-Surface-Text);
|
|
}
|
|
.bodyText {
|
|
color: var(--Primary-Dim-On-Surface-Text);
|
|
}
|
|
}
|
|
|
|
.themePrimaryInverted {
|
|
background: var(--Base-Surface-Primary-light-Normal);
|
|
.heading {
|
|
color: var(--Primary-Light-On-Surface-Text);
|
|
}
|
|
.bodyText {
|
|
color: var(--Primary-Light-On-Surface-Text);
|
|
}
|
|
}
|
|
|
|
.themePrimaryStrong {
|
|
background: var(--Primary-Strong-Surface-Normal);
|
|
.heading {
|
|
color: var(--Primary-Strong-On-Surface-Text);
|
|
}
|
|
.bodyText {
|
|
color: var(--Primary-Strong-On-Surface-Text);
|
|
}
|
|
}
|
|
|
|
.themeImage {
|
|
.bodyText {
|
|
color: var(--Base-Text-Inverted);
|
|
}
|
|
.heading {
|
|
color: var(--Base-Text-Inverted);
|
|
}
|
|
.content {
|
|
position: absolute;
|
|
}
|
|
}
|
|
|
|
.scriptContainer {
|
|
display: grid;
|
|
gap: var(--Space-x1);
|
|
}
|
|
|
|
.scriptedTitle {
|
|
padding: var(--Space-x1);
|
|
margin: 0;
|
|
}
|
|
|
|
.buttonContainer {
|
|
display: grid;
|
|
gap: var(--Space-x1);
|
|
justify-content: center;
|
|
}
|
|
.button {
|
|
min-width: 150px;
|
|
}
|
|
|
|
@media screen and (min-width: 768px) {
|
|
.buttonContainer {
|
|
display: flex;
|
|
}
|
|
}
|