@duetds/components
Version:
This package includes Duet Core Components and related tools.
196 lines (189 loc) • 4.01 kB
CSS
:host {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
box-sizing: border-box;
background: transparent;
border: 0;
padding: 0;
margin: 0;
margin-bottom: 40px ;
display: block;
width: 100%;
}
@media only screen and (min-width: 62em) {
:host {
margin-bottom: 56px ;
}
}
:host(.duet-m-0) {
margin: 0 ;
}
.duet-hero {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
box-sizing: border-box;
background: transparent;
border: 0;
padding: 0;
margin: 0;
padding: 48px 28px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-family: "localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 1rem;
background: #00294d;
font-weight: 400;
line-height: 1.5;
font-style: normal;
text-transform: none;
text-decoration: none;
text-shadow: none;
width: 100%;
position: relative;
justify-content: center;
align-items: center;
display: flex;
}
.duet-hero.duet-p-0 {
padding: 0 ;
}
.duet-hero.duet-m-0 {
margin: 0 ;
}
.duet-hero.duet-hero-light {
padding-bottom: 0 ;
color: #00294d;
background-color: white;
background-image: linear-gradient(white, #e6f2f8);
}
.duet-hero.duet-hero-light::before {
content: "";
position: absolute;
background: #e6f2f8;
z-index: -1;
top: 100%;
left: 0;
width: 100%;
height: 210px;
}
.duet-hero.duet-hero-light.duet-theme-turva {
color: #111111;
background-image: linear-gradient(white, #f7f7f7);
}
.duet-hero.duet-hero-light.duet-theme-turva::before {
background: #f7f7f7;
}
.duet-hero.duet-hero-gray {
color: #00294d;
background: #f5f8fa;
}
.duet-hero.duet-without-links {
margin-top: 4rem;
}
.duet-hero.duet-with-links {
margin-top: 4rem;
}
@media only screen and (min-width: 62em) {
.duet-hero.duet-with-links {
margin-top: 7rem;
}
}
.duet-hero.duet-theme-turva {
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
background: #c60c30;
}
@media only screen and (min-width: 62em) {
.duet-hero {
min-height: 400px;
padding: 72px 56px;
}
.duet-hero::after {
content: "";
min-height: 300px;
}
}
@media only screen and (min-width: 62em) {
.duet-hero-icon {
position: absolute;
top: 0;
left: 0;
}
}
.duet-hero-wrapper {
position: relative;
text-align: center;
max-width: 1110px;
width: 100%;
}
@media only screen and (min-width: 62em) {
.duet-hero-wrapper {
text-align: left;
}
}
.duet-hero-text {
margin: 0 auto;
max-width: 50rem;
}
@media only screen and (min-width: 48em) {
.duet-hero-text {
width: 80%;
}
}
@media only screen and (min-width: 62em) {
.duet-hero-text {
margin-left: 0;
max-width: none;
margin-top: -10px;
width: 52%;
}
.duet-hero-gray .duet-hero-text {
margin-left: 96px;
}
}
.duet-hero-image {
width: 100%;
height: 0;
max-width: 400px;
background-size: contain;
background-repeat: no-repeat;
background-position: 50% 50%;
padding-bottom: 50%;
margin: 28px auto 0;
}
@media only screen and (min-width: 36em) {
.duet-hero-image {
padding-bottom: 40%;
}
}
@media only screen and (min-width: 48em) {
.duet-hero-image {
padding-bottom: 34%;
max-width: 420px;
}
.duet-hero-light .duet-hero-image {
max-width: 540px;
}
}
@media only screen and (min-width: 62em) {
.duet-hero-image {
position: absolute;
padding-bottom: 30%;
transform: translateY(-50%);
top: 50%;
right: 0;
margin: 0;
}
.duet-hero-light .duet-hero-image {
padding-bottom: 26%;
right: -60px;
}
.duet-hero-gray .duet-hero-image {
padding-bottom: 20%;
right: -34px;
}
}
duet-heading + duet-button {
margin-top: 12px ;
}