ITRadio/client/src/assets/css/module/blog.scss

119 lines
2.0 KiB
SCSS

.blog {
margin-bottom: var(--space-between-sections);
&__header {
display: flex;
justify-content: space-between;
align-items: start;
flex-wrap: wrap;
margin-bottom: var(--space-between-block);
row-gap: var(--space-between-block);
&-title{
margin-bottom: 0;
}
&-btn{
margin-left: auto;
@mixin responsive-xxs {
width: 100%;
}
}
}
&__content {
display: flex;
gap: 80px;
@mixin responsive-m {
flex-direction: column;
}
}
&__cover {
width: 100%;
max-height: 640px;
background: url("./assets/img/bg/blog.svg") no-repeat center;
position: relative;
z-index: 2;
background-size: cover;
@mixin responsive-m {
height: calc(var(--base-content-size) / 2);
max-height: none;
}
}
&__list {
}
&__item {
border-bottom: 1px solid var(--color-white-opacity);
color: var(--color-white-opacity);
padding: 2rem 0;
position: relative;
z-index: 2;
transition: all .3s ease;
&:after, &:before {
position: absolute;
content: '';
left: 0;
right: 0;
background: var(--color-white-opacity);
height: 1px;
display: none;
transition: background .3s ease;
}
&:before {
top: -1px;
}
&:after {
display: block;
bottom: -1px;
}
&:first-child {
&:before {
display: block;
}
}
&:hover {
color: var(--color-white);
&:after, &:before {
display: block;
background: var(--linear-gradient);
}
}
&:hover &-btn {
&:before {
opacity: 1;
}
&:after {
background: svg-load('./assets/img/icon/ArrowRight.svg', stroke=#FFFF) no-repeat 100%;
}
}
&-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
}
&-title {
font-size: 2rem;
width: calc(100% - 56px - 1rem);
margin-bottom: 2rem;
}
}
&__info {
display: flex;
gap: 1.5rem;
}
}