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

222 lines
3.9 KiB
Stylus
Raw Normal View History

2014-07-12 02:00:18 +02:00
//
// kremalicious3
// --------------
// Generic Content
//
// Page Title
/////////////////////////////////////
.page-title
@extend .h2, .heading-band
color: $brand-grey-light
2015-09-26 23:11:05 +02:00
margin-top: $line-height-computed
margin-bottom: $line-height-computed
2014-07-12 02:00:18 +02:00
2015-06-22 21:28:31 +02:00
.hash
@extend .h3
color: darken($page-bg, 15%)
2015-08-09 21:50:06 +02:00
margin-right: 2px
2015-06-22 21:28:31 +02:00
2015-08-10 00:48:31 +02:00
.hentry
2014-07-12 02:00:18 +02:00
@extend .divider-bottom
2015-08-09 21:50:06 +02:00
padding-top: ($line-height-computed*2)
padding-bottom: ($line-height-computed*2)
2015-08-10 00:48:31 +02:00
width: 100%
2014-07-12 02:00:18 +02:00
2014-07-12 21:22:47 +02:00
@media $breakpoint2
2015-08-09 21:50:06 +02:00
padding-top: ($line-height-computed*4)
padding-bottom: ($line-height-computed*4)
2014-07-12 02:00:18 +02:00
2015-08-18 19:51:49 +02:00
.page-index &:first-child
padding-top: ($line-height-computed*3)
2014-07-12 02:00:18 +02:00
.page-single &
border: none
2015-08-20 20:06:14 +02:00
padding-top: 0
2014-07-12 21:22:47 +02:00
2014-07-12 02:00:18 +02:00
&:before
@extend .hide
// Post Title
/////////////////////////////////////
2014-07-12 21:22:47 +02:00
.entry-title
2014-07-12 02:00:18 +02:00
@extend .h1, .textcenter
2014-07-12 21:22:47 +02:00
color: $headings-color
margin-top: 0
margin-bottom: $line-height-computed
2014-07-12 02:00:18 +02:00
2014-07-12 21:22:47 +02:00
.format-link &
2014-07-12 02:00:18 +02:00
@extend .h3
2014-07-12 21:22:47 +02:00
2015-08-20 20:06:14 +02:00
// Post/photo teaser
/////////////////////////////////////
2015-09-26 22:47:34 +02:00
.hentry__teaser
picture
display: block
margin: ($line-height-computed*1.5) -8%
@media $breakpoint2
margin-left: -16%
margin-right: -16%
.featured &
picture
@media $breakpoint1
margin-left: 0
margin-right: 0
2015-08-20 20:06:14 +02:00
2015-09-26 22:47:34 +02:00
.hentry__teaser
2015-08-20 20:06:14 +02:00
img
box-shadow: 0 1px 3px rgba(0,0,0,.2)
border-radius: 0
@media $breakpoint2
border-radius: $border-radius-base
2014-07-12 02:00:18 +02:00
// Post Content
/////////////////////////////////////
.entry-content
2014-07-12 21:22:47 +02:00
h1,
2014-07-12 02:00:18 +02:00
h2
@extend .heading-band
h1
font-size: ceil($font-size-base * 2.5)
2015-09-26 22:47:34 +02:00
img:not(.hentry__teaser img)
2015-08-19 01:37:29 +02:00
margin-bottom: ($line-height-computed/2)
2014-07-12 02:00:18 +02:00
p:last-child
margin-bottom: 0
// Post meta
/////////////////////////////////////
.entry-meta
2014-07-12 21:22:47 +02:00
margin-top: ($line-height-computed*2)
2014-07-12 02:00:18 +02:00
font-size: $font-size-small
.byline,
2015-06-10 22:17:56 +02:00
.time,
.tags,
.categories
2014-07-12 02:00:18 +02:00
@extend .textcenter
.byline,
2015-06-10 22:17:56 +02:00
.time
2014-07-12 21:22:47 +02:00
font-style: italic
2015-06-10 22:53:29 +02:00
color: $text-color-dimmed
2014-07-12 02:00:18 +02:00
.byline
2014-07-12 21:22:47 +02:00
margin-bottom: 0
2014-07-12 02:00:18 +02:00
.by
display: block
.time
margin-bottom: ($line-height-computed*2)
2014-07-12 02:00:18 +02:00
2015-06-10 22:17:56 +02:00
// Categories & Tags
2015-06-10 22:53:29 +02:00
/////////////////////////////////////
2015-06-10 22:17:56 +02:00
.categories
margin-bottom: ($line-height-computed/2)
2015-06-10 22:17:56 +02:00
.category
@extend .h6, .textcenter
font-size: $font-size-mini
line-height: 1
color: $brand-grey-light
text-transform: uppercase
border: 1px solid $text-color-dimmed
border-radius: $border-radius-base
padding: 4px 8px
margin: 0
display: inline-block
&:hover,
&:focus
color: $link-color
border-color: $link-color
&:active
background: $link-color
top: 0
color: #fff
2014-07-12 02:00:18 +02:00
2015-06-07 22:53:01 +02:00
.tag
2015-06-10 22:53:29 +02:00
color: $text-color
2015-06-07 22:53:01 +02:00
margin-right: 5px
&:before
content: '#'
2015-08-20 00:19:58 +02:00
color: $text-color-dimmed
margin-right: 1px
2015-06-07 22:53:01 +02:00
2014-07-12 02:00:18 +02:00
.avatar
width: 80px
height: 80px
border-radius: 80px
border: 2px solid #fff
// Goodies download
/////////////////////////////////////
.goodie-actions
2015-08-19 01:37:29 +02:00
@extend .aligncenter
2014-07-12 02:00:18 +02:00
max-width: 640px
p,
.btn
margin-bottom: 0
.btn
display: block
// Masonry
/////////////////////////////////////
.masonry
@media $breakpoint2
2015-08-18 22:45:30 +02:00
width: 100%
2014-07-12 21:22:47 +02:00
clearfix()
2014-07-12 02:00:18 +02:00
.hentry
@media $breakpoint1
width: 49%
2014-07-12 21:22:47 +02:00
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
2014-07-12 02:00:18 +02:00
display: none
&:nth-child(2n+1)
margin-right: 0
2014-07-12 21:22:47 +02:00
&:last-child
2014-07-12 02:00:18 +02:00
margin-bottom: 3em
.grid-sizer
width: 100%
@media screen and (min-width: 480px)
width: 50%