add files
This commit is contained in:
200
template-parts/critical-styles/styles-single.php
Normal file
200
template-parts/critical-styles/styles-single.php
Normal file
@@ -0,0 +1,200 @@
|
||||
<!--[critical-styles/styles-single]-->
|
||||
|
||||
<style>
|
||||
.author {
|
||||
position: relative;
|
||||
margin: 0 0 30px;
|
||||
}
|
||||
|
||||
.author__title {
|
||||
font-size: 1.625rem;
|
||||
line-height: 1;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.author__post {
|
||||
font-size: .875rem;
|
||||
}
|
||||
|
||||
.author__footer {
|
||||
color:#505258;
|
||||
border-top: 1px solid silver;
|
||||
padding: 11px 0 0;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.author__footer a {
|
||||
text-decoration: underline;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.author:before {
|
||||
content: '';
|
||||
background: #ececec;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
@media (max-width: 991.98px) {
|
||||
.author:before {
|
||||
top: 104px;
|
||||
}
|
||||
}
|
||||
.nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
padding-left: 0;
|
||||
margin-bottom: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.nav-link {
|
||||
display: block;
|
||||
padding: 0.5rem 1rem;
|
||||
}
|
||||
|
||||
.news {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 0 0 1;
|
||||
}
|
||||
.news__tabs .nav-item:first-child .nav-link {
|
||||
border-radius: 6px 0 0 0;
|
||||
}
|
||||
.news__tabs .nav-item {
|
||||
width: 50%;
|
||||
text-align: center;
|
||||
}
|
||||
.news__tabs-content .tab-pane {
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
.news__tabs {
|
||||
justify-content: space-between;
|
||||
border: 0 none;
|
||||
padding-bottom: 1px;
|
||||
}
|
||||
.news__tabs-content .tab-pane {
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
|
||||
.tab-pane {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tab-content .active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.news__tabs .nav-link.active {
|
||||
background-color: #FFF;
|
||||
border-color: #D4D4D4;
|
||||
color: #000;
|
||||
font-weight: 700;
|
||||
}
|
||||
.news__tabs .nav-link {
|
||||
background-color: #ECECEC;
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
font-size: 1.125rem;
|
||||
font-weight: 500;
|
||||
color: #BFBFBF;
|
||||
}
|
||||
.news__body {
|
||||
border-style: solid;
|
||||
border-color: #ECECEC;
|
||||
border-width: 0 1px 1px 1px;
|
||||
border-radius: 0 0 6px 6px;
|
||||
flex: 1;
|
||||
position: relative;
|
||||
}
|
||||
.news__body__inner {
|
||||
background-color: #fff;
|
||||
padding: 0.875rem 0.625rem;
|
||||
}
|
||||
.news__date {
|
||||
font-size: 0.625rem;
|
||||
line-height: 1.1;
|
||||
color:#505258;
|
||||
margin: 0 0 0.4375rem;
|
||||
}
|
||||
.news__list {
|
||||
margin: 0 0 1.125rem;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
.news__list li {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
}
|
||||
.news__time {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
color: #B61D1D;
|
||||
min-width: 2.5rem;
|
||||
}
|
||||
.news__name.active {
|
||||
color: #B61D1D;
|
||||
}
|
||||
|
||||
.profile_onenews {
|
||||
margin: 0 0 1.875rem;
|
||||
}
|
||||
|
||||
|
||||
.author {
|
||||
position: relative;
|
||||
margin: 0 0 30px;
|
||||
padding-top: 16px;
|
||||
}
|
||||
.author__title {
|
||||
font-size: 26px;
|
||||
line-height: 1.0;
|
||||
font-weight: 700;
|
||||
}
|
||||
.author__post {
|
||||
font-size: 14px;
|
||||
}
|
||||
.author__footer {
|
||||
color:#505258;
|
||||
border-top: 1px solid #C0C0C0;
|
||||
padding: 11px 0 0;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
}
|
||||
.author__footer a {
|
||||
text-decoration: underline;
|
||||
color: inherit;
|
||||
}
|
||||
.author__footer:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.author:before {
|
||||
content: '';
|
||||
background: #ececec;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.profile_onenews .profile_onenews__title {
|
||||
margin: -0.625rem 0 0.1875rem;
|
||||
font-size: 2.375rem;
|
||||
line-height: 1.2;
|
||||
margin: 0 0 0.625rem;
|
||||
}
|
||||
.profile_onenews__title {
|
||||
font-weight: 400;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!--[/critical-styles/styles-single]-->
|
||||
Reference in New Issue
Block a user