cheatsheets/_sass/2017/components/related-posts-callout.scss

61 lines
1.1 KiB
SCSS

/*
* Callout
*/
.related-posts-callout {
& {
display: flex;
text-decoration: none;
background: $base-a-gradient;
padding: 32px;
align-items: center;
justify-content: center;
color: white;
border-radius: 2px;
box-shadow: $shadow2;
text-shadow: 0 1px 1px rgba(black, 0.2);
}
&,
&:visited {
color: white;
}
&:hover,
&:focus {
background: darken($base-a, 8%);
}
& > .text {
margin: auto;
text-align: center;
}
& > .text > .icon {
margin-bottom: 16px;
display: block;
color: adjust-color($base-a, $lightness: 16%, $hue: 20deg);
}
& > .text > .icon::before {
@include ion-icon('ios-arrow-back');
font-size: 48px;
height: 64px;
width: 64px;
line-height: 64px - 4px;
text-align: center;
border: solid 2px adjust-color($base-a, $lightness: 16%, $hue: 20deg);
border-radius: 50%;
text-indent: -2px;
text-shadow: none;
}
& > .text > .description {
@include font-size(1);
line-height: 1.4;
font-weight: 300;
display: block;
margin-bottom: 16px;
}
}