1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-24 10:16:16 +01:00
blog/_src/_assets/styl/_kremalicious/content-featured.styl

64 lines
1.2 KiB
Stylus
Raw Normal View History

2014-07-12 21:22:47 +02:00
//
// kremalicious3
// --------------
// Content - Featured Posts
//
.featured
2016-06-09 19:25:01 +02:00
@extend .breakoutviewport
padding-bottom: ($spacer*2)
2014-07-12 21:22:47 +02:00
2015-08-18 19:51:49 +02:00
.grid
margin-bottom: 0
2014-07-12 21:22:47 +02:00
2016-06-09 19:25:01 +02:00
@media $screen-sm
padding-bottom: ($spacer*3)
2015-11-20 18:13:34 +01:00
.hentry__teaser
picture
margin: 0
2016-06-09 19:25:01 +02:00
@media $screen-xs
2015-11-20 18:13:34 +01:00
margin-left: 0
margin-right: 0
2015-08-20 20:06:14 +02:00
2014-07-12 21:22:47 +02:00
.featured-link
2016-10-05 17:13:28 +02:00
@extend .link--nounderline
2014-07-12 21:22:47 +02:00
display: block
2015-11-20 18:13:34 +01:00
position: relative
2014-07-12 21:22:47 +02:00
&:hover,
&:focus
img
border-color: $link-color
2014-07-12 21:22:47 +02:00
.featured-title
2015-11-20 18:13:34 +01:00
@extend .transition
2015-12-05 15:15:35 +01:00
transition-property: transform, opacity
2015-11-20 18:13:34 +01:00
margin: 0
position: absolute
top: 25%
min-width: 45%
text-align: right
font-family: $headings-font-family
font-weight: $headings-font-weight
font-style: normal
font-size: $font-size-small
padding: ($spacer/3)
2015-11-20 18:13:34 +01:00
background: $link-color
background: alpha($link-color, .85)
2015-11-20 18:13:34 +01:00
color: #fff
text-shadow: 0 1px 0 #000
left: 0
opacity: 0
2015-12-05 15:15:35 +01:00
transform: translate3d(0, -20px, 0)
2015-11-20 18:13:34 +01:00
.featured-link:hover &
opacity: 1
2015-12-05 15:15:35 +01:00
transform: translate3d(0, 0, 0)
2014-07-12 21:22:47 +02:00
2015-11-20 18:13:34 +01:00
img.featured-image
2014-07-12 21:22:47 +02:00
display: block
2015-08-02 21:15:22 +02:00
margin-bottom: 0