1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-14 09:05:17 +01:00
blog/_src/_assets/styl/content.styl

184 lines
2.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
margin-top: $spacer
margin-bottom: $spacer
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
padding-top: ($spacer*2)
padding-bottom: ($spacer*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
padding-top: ($spacer*3)
padding-bottom: ($spacer*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: $spacer
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
2015-11-20 18:13:34 +01:00
max-width: none
2015-09-26 22:47:34 +02:00
display: block
margin: ($spacer*1.5) -8%
2015-09-26 22:47:34 +02:00
@media $breakpoint2
margin-left: -16%
margin-right: -16%
2015-08-20 20:06:14 +02:00
img
@extend .media-frame
2015-08-20 20:06:14 +02:00
border-radius: 0
@media $breakpoint2
border-radius: $border-radius-base
.hentry__teaser--link
&:hover,
&:focus
img
border-color: $link-color
2015-08-20 20:06:14 +02:00
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
@extend .h2
h2
@extend .h3
h3
@extend .h4
2014-07-12 02:00:18 +02:00
2015-09-26 22:47:34 +02:00
img:not(.hentry__teaser img)
margin-bottom: ($spacer/2)
2015-08-19 01:37:29 +02:00
2014-07-12 02:00:18 +02:00
p:last-child
margin-bottom: 0
// Post meta
/////////////////////////////////////
.entry-meta
margin-top: ($spacer*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: ($spacer*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: ($spacer/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