wp-theme/assets/_src/less/ascribe/_blog.less

190 lines
3.0 KiB
Plaintext
Raw Normal View History

2016-01-16 18:46:45 +01:00
.hentry {
&:extend(.subtemplate);
border-bottom: 2px solid @blueLight;
2016-01-16 19:37:04 +01:00
&:last-child { border: none }
2016-01-16 18:46:45 +01:00
}
.entry-title {
margin-top: 0;
}
.entry-image {
width: 100%;
img {
display: block;
width: 100%;
}
}
.entry-content {
}
.entry-meta {
.chevron-divider;
opacity: 1;
line-height: 75px;
height: 75px;
padding-left: 15px;
margin-bottom: 35px;
font-weight: 500;
font-size: 16px;
2016-03-10 15:05:06 +01:00
.avatar {
width: 48px;
height: 48px;
border-radius: 50%;
vertical-align: middle;
display: inline-block;
margin-right: (@spacer / 4);
border: 1px solid #CFEEF3;
}
2016-01-16 18:46:45 +01:00
}
2016-03-10 15:18:34 +01:00
//
// WP Media
//
.wp-caption-text {
&:extend(.small);
color: @greyHr;
font-style: italic;
}
2016-01-16 18:46:45 +01:00
//
// Categories list
//
.post-categories {
&:extend(.list-unstyled all, .small);
margin-bottom: (@line-height-small / 2);
}
//
2016-01-16 19:37:04 +01:00
// Pagination
2016-01-16 18:46:45 +01:00
//
2016-01-16 19:37:04 +01:00
.pagination {
background: @white;
margin-top: (@spacer/2);
padding-bottom: (@spacer/2);
2016-01-16 18:46:45 +01:00
2016-01-16 19:37:04 +01:00
a {
&:extend(.button all, .button.small);
2016-01-16 18:46:45 +01:00
}
}
2016-01-16 19:37:04 +01:00
.pagination__next {
&:extend(.text-right);
}
//
// Blog header
//
2016-01-16 18:46:45 +01:00
.blog-categories {
background-color: @blueBright;
border-top: 2px solid fade(@white,50);
ul {
2016-01-16 19:37:04 +01:00
&:extend(.list-unstyled all);
2016-01-16 18:46:45 +01:00
display: table;
padding: 0 10px;
width: 100%;
}
li {
width: 20%;
display: table;
text-align: center;
vertical-align: middle;
padding: 0;
height: 88px;
float: left;
2016-01-16 19:37:04 +01:00
transition: .2s ease-out;
2016-01-16 18:46:45 +01:00
2016-01-16 19:37:04 +01:00
&:hover,
&:focus {
2016-01-16 18:46:45 +01:00
background-color: fade(@white,50);
}
}
a {
2016-01-16 19:37:04 +01:00
&:extend(.text-center, .small);
2016-01-16 18:46:45 +01:00
display: table-cell;
2016-01-16 19:37:04 +01:00
color: @white;
2016-01-16 18:46:45 +01:00
height: 88px;
width: 100%;
vertical-align: middle;
padding: 0 10px;
2016-01-16 19:37:04 +01:00
&:hover,
&:focus {
color: @blueMedium;
}
2016-01-16 18:46:45 +01:00
}
@media screen and (max-width: 450px) {
li {
width: 50%;
}
}
}
//
// Featured Blog Posts
//
.subtemplate--featured {
@media (@screen-sm) {
.grid__col { flex: 33%; }
}
2016-03-10 14:36:32 +01:00
.grid__col > a { display: block; }
}
.subtemplate--featured--more {
&:extend(.text-center);
margin-bottom: 0;
}
.featured {
2016-03-10 14:36:32 +01:00
position: relative;
transition: .2s ease-out;
a:hover &,
a:focus & {
transform: scale(1.01);
box-shadow: 0 4px 8px fade(#000, 20%);
}
2016-03-10 14:36:32 +01:00
a:active & {
top: 1px;
transform: none;
transition: none;
box-shadow: none;
}
}
.featured__title {
&:extend(.h4);
2016-03-10 14:36:32 +01:00
margin: 0;
font-size: @font-size-base;
color: #fff;
position: absolute;
left: 0;
bottom: 0;
background: fade(@blueDeep, 70%);
padding: (@spacer / 4);
transition: .2s ease-out;
a:hover &,
a:focus & { color: @link-color; }
}
.featured__image {
max-height: 175px;
display: block;
}