Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @import 'src/styles/utility';
- .root {
- margin: 0 0 16px 0;
- position: relative;
- overflow: hidden;
- @media (max-width: $lg) {
- flex-direction: column;
- }
- }
- .cover {
- height: 464px;
- object-fit: cover;
- position: relative;
- width: 570px;
- // transition: all 0.3s ease;
- &:after {
- @include base-transition;
- content: '';
- height: 100%;
- left: 0;
- position: absolute;
- bottom: 0;
- right: 0;
- top: 0;
- width: 100%;
- // mix-blend-mode: color;
- // background-color: transparent;
- transition: all 0.3s ease;
- }
- @media (max-width: $lg) {
- flex-direction: column;
- height: 360px;
- max-width: 100%;
- width: 100%;
- }
- @media (max-width: $sm) {
- height: 280px;
- }
- }
- .coverWithoutPreview {
- height: 464px;
- object-fit: cover;
- position: relative;
- width: 570px;
- transition: all 0.3s ease;
- &:after {
- // background-color: rgba(0, 0, 0, 0.8);
- content: '';
- height: 100%;
- left: 0;
- position: absolute;
- bottom: 0;
- right: 0;
- top: 0;
- width: 100%;
- // mix-blend-mode: color;
- // transition: all 0.3s ease;
- }
- @media (max-width: $lg) {
- flex-direction: column;
- height: 360px;
- max-width: 100%;
- width: 100%;
- }
- @media (max-width: $sm) {
- height: 280px;
- }
- }
- .innerWithoutPreview {
- color: white;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- padding: 32px;
- width: 100%;
- position: absolute;
- bottom: 0;
- h3 {
- @include reset-webkit-margin();
- color: #333;
- font-size: 1.25rem;
- font-weight: normal;
- line-height: 1.5;
- @media (max-width: $lg) {
- margin-bottom: 48px;
- margin-top: 48px;
- }
- @media (max-width: $sm) {
- font-size: 1rem;
- }
- }
- @media (max-width: $md) {
- padding: 18px;
- }
- }
- .title {
- @include reset-webkit-margin();
- @include base-font();
- font-size: 2.1875rem;
- position: relative;
- bottom: 10px;
- width: 85%;
- font-weight: 700;
- font-size: 2.1875rem;
- position: relative;
- bottom: 10px;
- width: 85%;
- font-weight: 700;
- color: white;
- text-decoration: none;
- @media (max-width: $lg) {
- font-size: 1.9rem;
- }
- @media (max-width: $md) {
- font-size: 2.1875rem;
- }
- @media (max-width: $sm) {
- font-size: 1.5rem;
- bottom: 5px;
- width: 90%;
- }
- }
- .inner {
- background-color: #fff;
- color: #000;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- padding: 32px;
- width: 100%;
- h2 {
- @include reset-webkit-margin();
- @include base-font();
- font-size: 2.1875rem;
- font-weight: 700;
- @media (max-width: $sm) {
- font-size: 1.7rem;
- }
- }
- h3 {
- @include reset-webkit-margin();
- color: #333;
- font-size: 1.25rem;
- font-weight: normal;
- line-height: 1.5;
- @media (max-width: $lg) {
- margin-bottom: 48px;
- margin-top: 48px;
- }
- @media (max-width: $sm) {
- font-size: 1rem;
- }
- }
- @media (max-width: $sm) {
- padding: 32px 24px;
- }
- }
- .tags {
- align-items: center;
- display: flex;
- justify-content: space-between;
- flex-wrap: wrap;
- .date,
- .tag {
- @include base-font();
- color: $green;
- font-size: 1rem;
- font-weight: 600;
- letter-spacing: 0.1rem;
- }
- .tagWithoutContent {
- @include base-font();
- font-weight: normal;
- font-size: 0.9rem;
- border-bottom: 1px solid white;
- }
- .date {
- color: #aaa;
- }
- a {
- @include base-transition();
- text-decoration: none;
- color: #fff;
- &:hover {
- color: #00d280;
- }
- }
- }
- .link {
- display: block;
- text-decoration: none;
- width: calc(50% - 8px);
- // &:nth-child(even) {
- // margin-left: 8px;
- // }
- // &:nth-child(odd) {
- // margin-right: 8px;
- // }
- // &:hover {
- // .coverWithoutPreview,
- // .cover {
- // &:after {
- // background-color: #64629e;
- // mix-blend-mode: color;
- // }
- // }
- // }
- .coverWithoutPreview,
- .cover {
- &:after {
- background-color: #161616;
- opacity: 0.4;
- }
- }
- @media (max-width: $md) {
- &:nth-child(n) {
- width: 100%;
- margin-left: 0;
- margin-right: 0;
- }
- }
- }
- .link2 {
- @extend .link;
- width: calc(100% - 8px);
- &:nth-child(n) {
- margin-right: 0;
- margin-left: 0;
- }
- }
- .callToAction {
- position: absolute;
- top: 25px;
- left: 35px;
- display: flex;
- align-items: center;
- cursor: pointer;
- .tag {
- @include base-font();
- color: $green;
- font-size: 1rem;
- font-weight: 600;
- letter-spacing: 0.1rem;
- @media (max-width: $sm) {
- display: none;
- }
- }
- @media (max-width: $sm) {
- top: 15px;
- left: 0;
- }
- }
- .offline-mode {
- opacity: 0.3;
- pointer-events: none;
- }
- .isFullWidth {
- width: 98.6%;
- @media(max-width: 1024px){
- width: 98.4%;
- }
- &:nth-child(even) {
- margin-left: 0px;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement