ORIENT/themes/modern2/assets/css/components/3-page/home.scss

387 lines
9.0 KiB
SCSS
Raw Normal View History

2021-05-10 12:01:19 +00:00
.marquee {
2021-05-24 09:55:15 +00:00
&__outer {
position: relative;
}
2021-05-10 13:27:01 +00:00
width: 100%;
margin: 10px 0;
overflow: hidden;
position: relative;
2021-05-24 10:02:03 +00:00
height: 50px;
2021-05-24 09:35:31 +00:00
background: #00822c;
&__item {
2021-05-24 10:02:03 +00:00
&.slick-slide {
padding: 0;
}
2021-05-24 09:35:31 +00:00
margin: 0 50px;
2021-05-24 09:58:28 +00:00
a {
2021-05-24 10:02:03 +00:00
display: flex;
align-items: center;
height: 50px;
2021-05-24 09:35:31 +00:00
color: #fff;
font-size: 16px;
line-height: 20px;
font-weight: 400;
}
2021-05-10 13:27:01 +00:00
}
&__link {
position: absolute;
top: 0;
left: 0;
width: 120px;
height: 100%;
2021-05-24 09:35:31 +00:00
background: #ee4037;
2021-05-10 13:27:01 +00:00
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
font-size: 14px;
color: $text-color-white;
line-height: 16px;
font-weight: 700;
text-transform: uppercase;
&::before {
clip-path: polygon(100% 46%, 0 0, 0 100%);
2021-05-24 09:35:31 +00:00
background: #ee4037;
2021-05-10 13:27:01 +00:00
position: absolute;
top: 0;
left: 100%;
height: 100%;
width: 25px;
content: "";
}
2021-05-10 12:01:19 +00:00
}
}
2021-05-18 08:07:49 +00:00
.hero {
&__inner {
overflow: hidden;
}
}
2021-05-10 12:01:19 +00:00
@keyframes marquee {
2021-05-10 13:27:01 +00:00
0% {
left: 0;
}
100% {
2021-05-14 17:00:52 +00:00
left: -100%;
2021-05-10 13:27:01 +00:00
}
2021-05-10 12:01:19 +00:00
}
/* Make it move */
@keyframes marquee {
2021-05-10 13:27:01 +00:00
0% {
transform: translate(0, 0);
}
100% {
2021-05-14 17:00:52 +00:00
transform: translate(-100%, 0);
2021-05-10 13:27:01 +00:00
}
2021-05-10 12:01:19 +00:00
}
// banner start
.banner {
2021-05-10 13:27:01 +00:00
margin: 80px 0;
&__inner {
width: 100%;
height: auto;
img {
width: 100%;
}
2021-05-10 12:01:19 +00:00
}
}
// banner end
2021-05-10 13:27:01 +00:00
.advertisiment__item {
img {
width: 100%;
}
}
2021-05-10 12:01:19 +00:00
// main start
.main {
2021-05-10 13:27:01 +00:00
margin-top: 70px;
&__inner {
display: flex;
align-items: stretch;
2021-05-10 12:01:19 +00:00
}
2021-05-10 13:27:01 +00:00
&__content {
width: calc(70% - 25px);
margin-right: 25px;
2021-05-10 12:01:19 +00:00
}
2021-05-10 13:27:01 +00:00
&__body {
&-row {
margin: 0 -20px 80px -20px;
display: flex;
align-items: stretch;
flex-wrap: wrap;
}
&-column {
width: calc(50% - 42px);
margin: 0 20px;
a.progressive {
position: relative;
display: block;
overflow: hidden;
outline: none;
height: 300px;
}
a.progressive:not(.replace) {
cursor: default;
}
a.progressive img {
@include fullImage;
}
a.progressive img.preview {
filter: blur(2vw);
transform: scale(1.05);
}
a.progressive img.reveal {
position: absolute;
left: 0;
top: 0;
will-change: transform, opacity;
animation: reveal 1s ease-out;
}
&.border {
border: 1px solid #dcdcdc;
}
}
&-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 80px;
position: relative;
&::before {
position: absolute;
content: "";
top: 50%;
left: 50%;
width: 80%;
height: 1px;
background: #e6e6e6;
@include transform;
z-index: -1;
}
&-title {
font-size: $h3-size;
line-height: $h3-height;
font-weight: 700;
color: $text-light-black;
background: $text-color-white;
}
&-link {
font-size: $h5-size;
line-height: $h5-height;
font-weight: 400;
color: $text-color-grey;
background: $text-color-white;
display: block;
}
}
&-card {
2021-05-11 09:59:21 +00:00
margin: -100px 30px 0 30px;
2021-05-11 09:49:09 +00:00
border: 1px solid #dcdcdc;
.card {
border-bottom: 1px solid #dcdcdc;
&:last-child {
border-bottom: none;
}
}
2021-05-10 13:27:01 +00:00
}
&-title {
font-size: $h3-size;
line-height: $h3-height;
font-weight: 700;
color: $text-light-black;
margin-bottom: 20px;
}
2021-05-10 12:01:19 +00:00
}
2021-05-10 13:27:01 +00:00
&__banner {
2021-05-10 12:01:19 +00:00
width: 100%;
height: auto;
2021-05-10 13:27:01 +00:00
margin-bottom: 80px;
img {
width: 100%;
}
2021-05-10 12:01:19 +00:00
}
2021-05-10 13:27:01 +00:00
&__sidebar {
margin-left: 25px;
width: calc(30% - 25px);
&-adv {
margin-bottom: 40px;
}
&-title {
font-size: $h4-size;
line-height: $h4-height;
font-weight: 700;
text-transform: uppercase;
margin-bottom: 80px;
color: $text-light-black;
}
2021-05-24 11:43:30 +00:00
.card {
&__link {
height: unset;
text-overflow: unset;
}
}
2021-05-10 13:27:01 +00:00
a.progressive {
position: relative;
display: block;
overflow: hidden;
outline: none;
margin-bottom: 80px;
&:not(.replace) {
cursor: default;
}
& img {
width: 100%;
height: auto;
}
& img.preview {
filter: blur(2vw);
transform: scale(1.05);
}
& img.reveal {
position: absolute;
left: 0;
top: 0;
will-change: transform, opacity;
animation: reveal 1s ease-out;
}
}
&-tag {
display: flex;
align-items: center;
flex-wrap: wrap;
margin: -30px -5px 80px -5px;
&-link {
padding: 8px 9px;
border-right: 5px;
background: #f7f7f6;
font-size: 16px;
line-height: 16px;
color: $text-light-black;
margin: 5px;
}
}
2021-05-10 12:01:19 +00:00
}
}
// main end
2021-05-24 11:18:16 +00:00
.banner__mobile {
display: none ;
}
2021-05-10 12:01:19 +00:00
// event start
.event {
2021-05-10 13:27:01 +00:00
margin: 80px 0;
&__header {
margin-bottom: 80px;
display: flex;
align-items: center;
justify-content: space-between;
2021-05-10 12:01:19 +00:00
position: relative;
2021-05-10 13:27:01 +00:00
&-title {
font-size: $h3-size;
line-height: $h3-height;
font-weight: 700;
color: $text-light-black;
background: $text-color-white;
}
&-link {
font-size: $h5-size;
line-height: $h5-height;
font-weight: 400;
color: $text-color-grey;
background: $text-color-white;
}
&::before {
position: absolute;
content: "";
top: 50%;
left: 50%;
width: 80%;
height: 1px;
background: #e6e6e6;
@include transform;
z-index: -1;
}
2021-05-10 12:01:19 +00:00
}
2021-05-10 13:27:01 +00:00
&__body {
&-row {
display: flex;
align-items: stretch;
margin: 0 -20px;
}
&-image {
width: calc(50% - 40px);
margin: 0 20px;
position: relative;
a.progressive {
position: relative;
display: block;
overflow: hidden;
outline: none;
height: 330px;
}
a.progressive:not(.replace) {
cursor: default;
}
a.progressive img {
@include fullImage;
}
a.progressive img.preview {
filter: blur(2vw);
transform: scale(1.05);
}
a.progressive img.reveal {
position: absolute;
left: 0;
top: 0;
will-change: transform, opacity;
animation: reveal 1s ease-out;
}
}
&-card {
position: absolute;
2021-05-11 10:10:51 +00:00
top: 210px;
2021-05-10 13:27:01 +00:00
left: 30px;
width: calc(100% - 60px);
2021-05-11 10:07:04 +00:00
border: 1px solid #dcdcdc;
2021-05-10 13:27:01 +00:00
}
&-column {
width: calc(50% - 100px);
margin: 0 20px;
padding: 15px 30px;
border: 1px solid #dcdcdc;
.card {
padding: 30px 0;
border-bottom: 1px solid #dcdcdc;
&:nth-last-child(1) {
border-bottom: none;
}
}
2021-05-10 12:01:19 +00:00
}
}
}
2021-05-11 10:07:04 +00:00
2021-05-10 12:01:19 +00:00
// event end
// partner start
.partner {
margin-bottom: 80px;
2021-05-10 13:27:01 +00:00
&__title {
font-size: $h3-size;
line-height: $h3-height;
font-weight: 700;
color: $text-light-black;
margin-bottom: 80px;
}
2021-05-10 12:01:19 +00:00
}
// partner end
/* progressive image CSS */
@keyframes reveal {
2021-05-10 13:27:01 +00:00
0% {
transform: scale(1.05);
opacity: 0;
}
100% {
transform: scale(1);
opacity: 1;
}
2021-05-10 12:01:19 +00:00
}