Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @import 'src/styles/utility';
- .advice {
- position: relative;
- padding: 7rem 0;
- overflow: hidden;
- @media (max-width: $xl) {
- padding-top: 5rem;
- padding-bottom: 5rem;
- }
- @media (max-width: $sm) {
- padding: 2rem 0;
- }
- }
- .inner {
- @include container();
- position: relative;
- z-index: 10;
- }
- .adviceCategoryLink {
- text-decoration: none;
- color: black;
- }
- .categoryTitle {
- @include base-transition();
- position: relative;
- font-size: 1.125rem;
- font-weight: 600;
- text-transform: uppercase;
- width: max-content;
- &:after {
- @include base-transition();
- position: absolute;
- content: '';
- bottom: -6px;
- left: 0;
- height: 2px;
- width: 0;
- background-color: black;
- }
- &:hover {
- &:after {
- content: '';
- width: 100%;
- }
- }
- @media (max-width: $md) {
- margin-top: 0;
- }
- }
- .title {
- @include reset-webkit-margin();
- @include base-font();
- font-size: 3.75rem;
- margin: 0;
- @media (max-width: $md) {
- font-size: 2.375rem;
- text-overflow: ellipsis;
- overflow: hidden;
- }
- }
- .content {
- @include container;
- padding: 7rem 0;
- @media (max-width: $xl) {
- padding-top: 5rem;
- padding-bottom: 5rem;
- }
- @media (max-width: $sm) {
- padding-top: 2rem;
- padding-bottom: 2rem;
- }
- p {
- @include base-font();
- font-size: 1.5rem;
- font-weight: 400;
- line-height: 1.5;
- width: 100%;
- &:first-child {
- margin-top: 0;
- }
- @media (max-width: $md) {
- font-size: 1.2rem;
- }
- }
- }
- .text {
- margin-bottom: 40px;
- }
- .ad {
- position: sticky;
- width: 390px;
- max-width: 100%;
- height: 150vh;
- @media (max-width: $xl) {
- width: $article-width;
- flex-basis: 100%;
- margin: auto;
- height: auto;
- margin-bottom: 30px;
- }
- @media (max-width: $md) {
- width: auto;
- }
- }
- .imgPosition {
- position: absolute;
- left: 80%;
- top: 20px;
- }
- .image {
- clip-path: url('#mask');
- width: 1000px;
- height: 500px;
- object-fit: contain;
- position: absolute;
- @media (max-width: $md) {
- display: none;
- }
- }
- .button {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- max-width: 320px;
- height: 74px;
- border: 0;
- background: black;
- color: #00d280;
- font-size: 1rem;
- font-weight: 600;
- cursor: pointer;
- letter-spacing: 0.1rem;
- &:active {
- transform: translateY(1px);
- filter: saturate(150%);
- }
- &:focus {
- outline: none;
- }
- @media (max-width: 700px) {
- margin-right: 0;
- margin-bottom: 20px;
- }
- }
- .buttonText {
- margin-right: 15px;
- text-transform: uppercase;
- }
- .offline-mode {
- pointer-events: none;
- opacity: 0.3;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement