244 lines
6.5 KiB
SCSS
244 lines
6.5 KiB
SCSS
.news-first-part {
|
|
.news-card {
|
|
border: 1px solid #ebebeb;
|
|
margin: 16px 15px 0 15px;
|
|
position: relative;
|
|
|
|
.news-card-description {
|
|
padding: 15px;
|
|
|
|
.post-tags {
|
|
margin: 8px 0 12px 0;
|
|
|
|
.post-tags-a {
|
|
text-decoration: none;
|
|
color: #15c1c6;
|
|
margin-right: 12px;
|
|
font-family: Merriweather, serif;
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
line-height: 1.4375;
|
|
}
|
|
|
|
.post-tags-a:hover {
|
|
color: #31353d;
|
|
transition: 0.3s;
|
|
}
|
|
}
|
|
|
|
.news-card-text {
|
|
font-style: normal;
|
|
font-weight: 500;
|
|
font-size: 24px;
|
|
line-height: 1.38462;
|
|
font-family: Merriweather, serif;
|
|
letter-spacing: 0px;
|
|
text-align: inherit;
|
|
color: #31353d;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.news-card-p {
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
line-height: 1.4375;
|
|
font-family: MerriweatherSans, sans-serif;
|
|
letter-spacing: 0px;
|
|
text-align: left;
|
|
color: #777777;
|
|
}
|
|
|
|
.news-card-text:hover {
|
|
color: #15c1c6;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.news-card-date {
|
|
.date-a {
|
|
text-decoration: none;
|
|
color: #15c1c6;
|
|
margin-right: 15px;
|
|
font-family: Merriweather, serif;
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.date-a:hover {
|
|
color: #31353d;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.by-admin {
|
|
text-decoration: none;
|
|
color: #777777;
|
|
font-family: Merriweather, serif;
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.by-admin:hover {
|
|
color: #15c1c6;
|
|
transition: 0.3s;
|
|
}
|
|
}
|
|
}
|
|
|
|
.news-img-container {
|
|
#star{
|
|
text-align: center;
|
|
position: absolute;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
left: 15px;
|
|
top: 15px;
|
|
background-color: #15c1c6;
|
|
color: white;
|
|
border-radius: 50%;
|
|
font-size: 17px;
|
|
height: 58px;
|
|
width: 58px;
|
|
}
|
|
.link-on-image {
|
|
position: absolute;
|
|
bottom: 55%;
|
|
left: 10%;
|
|
text-align: center;
|
|
padding: 10px 20px 10px 15px;
|
|
color: #ffffff;
|
|
background-color: rgba(51, 51, 51, 0.78);
|
|
|
|
.link-a {
|
|
text-decoration: none;
|
|
color: #ffffff;
|
|
font-family: Merriweather, serif;
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
}
|
|
}
|
|
|
|
.link-on-image:hover {
|
|
background-color: rgba(21, 193, 198, 0.78);
|
|
transition: 0.3s;
|
|
}
|
|
|
|
.news-img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
|
|
.img-text-container {
|
|
padding: 15px 0 0 15px;
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
display: inline-block;
|
|
}
|
|
|
|
.news-img-text {
|
|
border-radius: 15px;
|
|
text-decoration: none;
|
|
color: #ffffff;
|
|
background-color: #15c1c6;
|
|
font-style: normal;
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
font-family: MerriweatherSans, sans-serif;
|
|
letter-spacing: 0px;
|
|
padding: 4px 12px;
|
|
margin-bottom: 6px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.news-img-text:hover {
|
|
background-color: #31353d;
|
|
transition: 0.3s;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width:768px) {
|
|
.news-first-part {
|
|
margin: 0 60px;
|
|
|
|
.news-card {
|
|
.news-img-container {
|
|
|
|
.link-on-image {
|
|
position: absolute;
|
|
bottom: 63%;
|
|
left: 25%;
|
|
text-align: center;
|
|
}
|
|
|
|
.img-text-container {
|
|
position: absolute;
|
|
top: 30px;
|
|
right: 30px;
|
|
overflow: hidden;
|
|
width: auto;
|
|
max-width: 80%;
|
|
text-align: right;
|
|
z-index: 1;
|
|
left: auto;
|
|
|
|
}
|
|
|
|
.news-img {
|
|
width: 688px;
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width:992px) {
|
|
.news-first-part {
|
|
margin: 34px 0px 0px 60px;
|
|
|
|
.news-card {
|
|
margin-bottom: 25px !important;
|
|
.news-card-description{
|
|
padding: 45px 50px 0 59px;
|
|
|
|
.news-card-text{
|
|
font-size: 29px;
|
|
}
|
|
|
|
.news-card-date {
|
|
margin-top: 50px !important;
|
|
}
|
|
.post-tags{
|
|
margin-bottom: 40px;
|
|
}
|
|
}
|
|
|
|
.news-img-container {
|
|
#star{
|
|
left: 30px;
|
|
top: 30px;
|
|
}
|
|
.img-text-container {
|
|
position: absolute;
|
|
top: 30px;
|
|
right: 53%;
|
|
}
|
|
|
|
.news-img {
|
|
min-width: 629px;
|
|
height: 497px;
|
|
}
|
|
|
|
.link-on-image {
|
|
position: absolute;
|
|
bottom: 47%;
|
|
left: 12%;
|
|
text-align: center;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |