site/components/wasm-slice/style.css
@value badgerBlack, badgerWhite, scorpian, badgerRed, stuBlue from '../../css/_colors.css';
@value mediumScreen, largeScreen from "../../css/_sizes.css";
.WasmSliceWrapper {
composes: dividerBlue from '../../css/_divider.css';
width: 100%;
background: stuBlue;
color: badgerBlack;
}
.WasmSliceStrong {
composes: boldSansSerif from '../../css/typography/_fonts.css';
}
.WasmSlice {
composes: sansSerif from '../../css/typography/_fonts.css';
position: relative;
max-width: 1440px;
width: 100%;
margin: 0 auto;
padding: 60px 24px;
line-height: 1.5em;
}
.WasmSliceHeading {
composes: serif from '../../css/typography/_fonts.css';
font-size: 28px;
line-height: 1.25em;
}
.WasmSliceTextContent {
padding-top: 16px;
}
.WasmSlice p {
font-size: 18px;
line-height: 1.25em;
margin-bottom: 20px;
}
.WasmSlice h4 {
margin-bottom: 16px;
}
.WasmSliceTitleImage {
display: block;
width: 100%;
max-width: 610px;
}
.WasmSliceLink {
composes: boldSansSerif from '../../css/typography/_fonts.css';
cursor: pointer;
font-size: 18px;
background: badgerBlack;
color: badgerWhite;
display: block;
height: 72px;
width: 300px;
line-height: 72px;
text-align: center;
}
.WasmSliceLink:hover {
background: scorpian;
}
.WasmSliceCloseButton {
position: absolute;
display: block;
height: 16px;
width: 16px;
background: none;
top: 14px;
right: 14px;
border: none;
outline: none;
cursor: pointer;
}
.WasmSliceCloseButton:after,
.WasmSliceCloseButton:before {
content: '';
display: block;
background: badgerWhite;
height: 2px;
width: 20px;
position: absolute;
left: -2px;
top: 7px;
}
.WasmSliceCloseButton:after {
transform: rotate(45deg);
}
.WasmSliceCloseButton:before {
transform: rotate(-45deg);
}
.WasmSliceImageWrapper {
display: none;
max-width: 472px;
}
.WasmSliceImageWrapper img {
display: none;
}
.WasmSliceCTA {
composes: boldSansSerif from '../../css/typography/_fonts.css';
display: block;
}
.WasmSliceCTA p {
display: flex;
}
@media mediumScreen {
.WasmSlice {
display: flex;
flex-direction: row;
padding: 40px 60px;
}
.WasmSliceTextContent {
padding-top: 40px;
}
.WasmSliceImage {
margin-top: 14px;
}
.WasmSliceHeading {
font-size: 60px;
}
.WasmSlice h4 {
margin-bottom: 40px;
}
.WasmSlice p {
font-size: 22px;
margin-bottom: 40px;
}
.WasmSliceLink {
font-size: 24px;
width: 300px;
height: 72px;
line-height: 72px;
}
.WasmSliceText {
width: 100%;
min-width: 420px;
}
}
@media largeScreen {
.WasmSliceImageWrapper {
display: block;
position: relative;
width: 100%;
}
.WasmSliceImageWrapper img {
display: block;
width: 200%;
position: absolute;
right: -422px;
top: 50%;
transform: translateY(-50%);
}
.WasmSliceText {
width: 52%;
}
.WasmSliceTextContent {
margin-right: 50px;
}
}