1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-09-24 18:18:49 +02:00
blog/_src/assets/less/content.less

191 lines
3.0 KiB
Plaintext
Raw Normal View History

.page-title {
&:extend(.h2, .heading-band);
color: @brand-grey-light;
margin-top: @line-height-computed/2;
margin-bottom: @line-height-computed/2;
2013-12-10 00:04:04 +01:00
// icons
2013-12-10 00:32:54 +01:00
&:before {
2013-12-10 00:04:04 +01:00
font-size: 32px;
2013-12-10 00:32:54 +01:00
color: fade(@text-color-dimmed, 70%);
2013-12-10 00:04:04 +01:00
margin-right: .5em
}
2013-12-10 00:04:04 +01:00
@media @breakpoint2 {
margin-left: -108%;
.page-photos & { margin-bottom: @line-height-computed*4; }
}
}
.hentry {
&:extend(.divider-bottom);
padding: @line-height-computed*2 0;
@media @breakpoint2 {
2013-11-24 17:31:03 +01:00
padding: @line-height-computed*4 0;
}
&:first-child {
padding-top: @line-height-computed;
}
.page-single & {
padding-bottom: @line-height-computed*2;
border: none;
&:before { .hide; }
2013-11-24 17:31:03 +01:00
}
}
// post title
.entry-title {
&:extend(.h1, .textcenter);
color: @headings-color;
margin-top: 0;
margin-bottom: @line-height-computed;
.format-link & { &:extend(.h3); }
}
// post content
.entry-content {
2013-11-19 23:21:19 +01:00
h1, h2 {
&:extend(.heading-band);
}
2013-12-09 23:29:19 +01:00
h1 { font-size: ceil(@font-size-base * 2.5) }
p:last-child {
margin-bottom: 0;
}
}
// post category icons
/////////////////////////////////////
.posttype {
display: block;
width: 20px;
margin-left: auto;
margin-right: auto;
margin-bottom: @line-height-computed/2;
margin-top: -@line-height-computed;
// icon adjustments
&:before {
font-size: 20px;
color: @text-color-light
}
&:hover:before {
color: @link-color
}
}
2013-11-24 17:31:03 +01:00
// POST META
/////////////////////////////////////
.entry-meta {
&:extend(.clearfix all);
2013-11-24 17:31:03 +01:00
margin-top: @line-height-computed*2;
font-size: @font-size-small;
}
.byline,
2013-12-01 21:46:31 +01:00
time,
.categories {
&:extend(.textcenter);
}
.byline,
2013-12-01 21:46:31 +01:00
time {
font-style: italic;
color: @text-color-light;
2013-11-24 17:31:03 +01:00
}
.byline {
margin-bottom: 0;
.by { display: block }
2013-11-24 17:31:03 +01:00
}
2013-12-01 21:46:31 +01:00
time {
display: block;
color: @text-color-dimmed
2013-11-24 17:31:03 +01:00
}
2013-11-29 00:17:23 +01:00
.categories {
2013-12-01 21:46:31 +01:00
margin-top: @line-height-computed;
2013-11-29 00:17:23 +01:00
}
.avatar {
width: 80px;
height: 80px;
.border-radius(80px);
border: 2px solid #fff;
}
//
// Goodies download
//
.goodie-actions {
&:extend(.clearfix all);
2013-11-28 22:45:29 +01:00
max-width: 640px;
margin: 0 auto;
p,
.btn { margin-bottom: 0 }
.btn { display: block; }
.download {
margin-top: @line-height-computed/2;
@media @breakpoint2 {
margin-top: 0;
text-align: right
}
}
}
2013-11-24 17:31:03 +01:00
// Masonry
2013-11-24 17:31:03 +01:00
.masonry {
@media @breakpoint2 {
width: 125%;
margin-left: -12.5%;
.clearfix();
}
.hentry {
@media @breakpoint1 {
width: 49%;
float: left;
clear: none;
padding-top: 0;
padding-bottom: 0;
margin-bottom: .7em;
margin-top: 0;
margin-left: 0;
margin-right: 1%;
border: none;
&:before { display: none; }
&:nth-child(2n+1) { margin-right: 0; }
&:last-child { margin-bottom: 3em; }
}
}
}
.grid-sizer {
width: 100%;
@media screen and (min-width: 480px) {
width: 50%;
}
}