Berkarar/themes/berkarar/assets/css/components/3-page/post.scss

171 lines
3.5 KiB
SCSS
Executable File

// Post =========================
.post {
padding: 60px 0 80px;
&_box {
display: flex;
align-items: center;
}
&_info {
width: calc(100% - 560px);
&-title {
font-weight: 700;
font-size: 40px;
line-height: 1.5;
color: $gray;
border-bottom: 1px solid $gray;
padding-bottom: 25px;
margin-bottom: 30px;
}
&-row {
display: flex;
align-items: center;
justify-content: flex-start;
}
&-cnt {
padding: 10px 20px;
background: $yellow;
border-radius: 5px;
font-weight: 700;
font-size: 14px;
line-height: 1.3;
text-transform: uppercase;
color: $gray;
margin-right: 30px;
margin: 15px 20px 15px 0;
min-height: 20px;
display: flex;
align-items: center;
@include transition;
span {
display: block;
width: 20px;
height: 20px;
margin-right: 10px;
svg {
@include ImgCon;
path {
@include transition;
}
}
}
&.hov:hover {
color: $yellow;
background: $gray;
span {
path {
// stroke: $yellow;
fill: $yellow;
}
rect {
stroke: $yellow;
}
}
}
&:last-child {
margin-right: 0;
}
}
&-txt {
font-weight: 400;
font-size: 24px;
line-height: 1.5;
color: $gray;
margin-top: 30px;
}
}
&_photo {
width: 500px;
// height: 500px;
margin-left: 60px;
display: block;
img {
@include ImgCon;
}
}
&_slider {
max-width: 1300px;
margin: 0 auto;
&-title {
font-weight: 700;
font-size: 38px;
line-height: 1.4;
color: $black;
text-align: center;
margin: 50px 0;
}
.rest_item {
display: block;
}
}
&_link {
display: flex;
align-items: center;
justify-content: center;
margin-top: 100px;
a {
display: flex;
align-items: center;
padding: 10px 25px;
background: $yellow;
color: $gray;
@include transition;
border-radius: 5px;
font-weight: 700;
font-size: 16px;
line-height: 20px;
&:hover {
color: $yellow;
background: $gray;
span {
path {
fill: $yellow;
}
}
}
span {
display: block;
margin-left: 10px;
width: 20px;
height: 20px;
svg {
@include ImgCon;
path {
@include transition;
}
}
}
}
}
}
// Post end =====================