intro css
unknown
plain_text
2 years ago
2.6 kB
2
Indexable
Never
@import "../../../styles/global/variables"; .component { transition: 0.25s; @media only screen and (min-width: $tablet) { margin-top: 60px; } @media only screen and (min-width: $small) { margin-top: 70px; } @media only screen and (min-width: $large) { margin-top: 95px; } @media only screen and (min-width: $xLarge) { margin-top: 145px; } .title, .description, .links { transition: 0.25s; text-align: center; } .title { font-size: 25px; transition: 0.25s; text-transform: uppercase; @media only screen and (min-width: $tablet) { font-size: 35px; } @media only screen and (min-width: $small) { font-size: 40px; } @media only screen and (min-width: $xLarge) { font-size: 50px; } } .description { font-size: 12px; transition: 0.25s; max-width: 270px; margin: 0 auto; line-height: 1.5; margin-top: 30px; @media only screen and (min-width: $tablet) { font-size: 16px; max-width: 520px; } @media only screen and (min-width: $small) { font-size: 18px; line-height: 25px; } @media only screen and (min-width: $xLarge) { font-size: 22px; max-width: 640px; line-height: 38px; } } .links { margin-top: 35px; @media only screen and (min-width: 525px) { display: flex; justify-content: center; } @media only screen and (min-width: $small) { margin-top: 65px; } .link { padding: 15px 0; display: block; border: 1px black solid; font-size: 12px; border-radius: 34px; text-transform: uppercase; margin-bottom: 10px; cursor: pointer; @media only screen and (min-width: 525px) { padding: 14px 0; width: 100px; margin-right: 15px; &:last-child { margin-right: 0; } } @media only screen and (min-width: $tablet) { font-size: 12px; padding: 12px 0; width: 115px; } @media only screen and (min-width: $small) { font-size: 14px; padding: 20px 0; width: 132px; } @media only screen and (min-width: $large) { padding: 20px 0; width: 176px; margin-right: 30px; &:last-child { margin-right: 0; } } @media only screen and (min-width: $xLarge) { font-size: 18px; padding: 26.5px 0; width: 240px; } &:hover { background: #000; color: #fff; text-decoration: none; } } } }