cheatsheets/_sass/2017/components/berry-sponsor.scss

63 lines
765 B
SCSS

.berry-sponsor {
text-align: center;
position: relative;
overflow: hidden;
max-width: 320px;
margin-left: auto;
margin-right: auto;
}
/*
* Berry styles
*/
.cs__header {
color: $base-mute;
@include font-size(-1);
display: block;
margin-bottom: 8px;
&::before,
&::after {
content: '';
margin: 0 0.5em;
opacity: 0.5;
}
}
.cs__blurb {
&,
&:hover,
&:focus {
text-decoration: none;
}
& {
color: $base-text;
display: block;
}
& > strong {
color: $base-head;
font-weight: bold;
}
&:hover,
&:focus {
& > strong {
color: $base-text;
}
& > span {
color: $base-mute;
}
}
}
.cs__pixel {
position: absolute;
left: 0;
top: 0;
pointer-events: none;
}