Files
profile/template-parts/critical-styles/styles-tag.php
Andrey Kuvshinov 8fc8cbae32 add files
2025-07-09 21:21:17 +03:00

233 lines
5.5 KiB
PHP

<!--[critical-styles/styles-tag]-->
<style>
.tag {
position: relative;
overflow: hidden;
margin-bottom: 1.875rem;
}
.tag__body {
display: flex;
flex-direction: column;
justify-content: flex-end;
margin-bottom: 2.5rem;
}
.tag-main {
position:absolute;
width:100%;
height:100%;
background:rgba(0,0,0, 0.35);
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.tag figure:first-child {
margin: 0;
}
.tag figure img {
width: 100%;
}
.tag__img {
width: 100%;
}
.tag__body .tag__body__title {
font-size: 3rem;
font-weight: 500;
line-height: 1;
position: relative;
color: #fff;
}
.tag__body .tag__body__title img {
margin-top: -6px;
}
.tag__body .tag__body__title svg {
content: '';
position: absolute;
width: 45px;
height: 45px;
left: 0;
top: 0.1875rem;
transform: translate(-54px, 0);
}
.tag__body .tag__body__text {
font-size: 1rem;
line-height: 1.5;
}
.tag__body,
.tag__body a {
color: white;
}
.taglist__body,
.taglist__body p {
margin: 0 0 0.75rem;
}
.taglist {
margin: 0 0 3.75rem;
}
.taglist__body {
font-size: 1rem;
line-height: 1.6;
transition: all 0.2s;
}
.taglist__frame {
display: block;
width: 100%;
margin-top: .125rem;
margin-right: 1.25rem;
overflow: hidden;
}
.taglist__frame img {
height: auto;
}
.taglist__title {
font-size: 1.5rem;
line-height: 1.30;
font-weight: 700;
margin: 0 0 0.625rem;
transition: all 0.2s;
}
.taglist__text {
font-size: 0.875rem;
}
.taglist .taglist__title {
margin: 0 0 0.625rem;
font-weight: 700;
}
.taglist .taglist__title a {
font-size: 1.25rem;
line-height: 1.2;
color: #212529;
transition: all 0.2s;
}
@media (min-width: 768px) {
.tag__body .tag__body__title {
margin: 0 0 1.5625rem;
}
.tag-main {
position: absolute;
padding: 2.5rem 2.5rem 3.625rem 1.5625rem;
}
.tag__body__text {
padding-left: 51px;
}
.taglist__frame {
display: block;
margin-top: .125rem;
min-width: 14rem;
width: 14rem;
margin-right: 1.25rem;
overflow: hidden;
}
.taglist__frame img {
width: 100%;
height: auto;
}
}
@media (max-width: 767.98px) {
.tag__body {
margin-bottom: 1.25rem;
}
.tag-mobile__text {
margin-bottom: 2.5rem;
font-size: 14px;
}
.tag-main {
padding: 0 2.5rem 1.25rem 0.9375rem;
}
.tag-tablet {
display: none;
}
.tag {
width: 109%;
margin-left: -15px;
overflow: unset;
}
.tag__body .tag__body__title {
font-size: 2rem;
margin-left: 0.625rem;
}
.tag__body__text {
font-size: 0.875rem;
line-height: 21px;
}
.tag__img {
position: absolute;
max-width: none;
width: auto;
min-height: 100%;
left: 50%;
transform: translate(-50%, 0);
}
.taglist__title {
font-size: 1.25rem;
}
.taglist__body {
margin-top: 20px;
}
.taglist__body h3 {
margin-top: 20px;
font-size: 18px;
line-height: 20px;
}
.taglist__frame img {
width: 100%;
}
.tag__body__title img {
width: 100%;
max-width: 24px;
margin-bottom: -2px;
margin-right: 8px;
display: unset;
}
.tag .profile_onenews__picture {
position: relative;
display:block;
}
.tag__body .tag__body__text {
font-size: 0.875rem;
line-height: 21px;
padding: 1.0625rem 1.25rem;
}
.tag__body__title img {
width: 100%;
max-width: 24px;
margin-bottom: -2px;
margin-right: 8px;
display: unset;
}
.tag .profile_onenews__picture {
position: relative;
display:block;
}
.tag__body .tag__body__text {
font-size: 0.875rem;
line-height: 21px;
padding: 1.0625rem 1.25rem;
}
.tag__body .tag__body__title {
position: absolute;
font-size: 2rem;
font-weight: 500;
line-height: 1;
z-index: 2;
}
.tag__body {
position: relative;
color: #000;
background: none;
}
.tag__body .tag__body__title h1 {
font-size: 1.5rem;
line-height: 1.30;
margin: 0;
}
}
</style>
<!--[/critical-styles/styles-tag]-->