abdullahtarawneh.com/assets/scss/components/pullquote.scss

46 lines
714 B
SCSS
Raw Normal View History

2021-12-24 06:20:07 +00:00
@mixin pullquote {
content: attr(data-pullquote);
font-size: 1em;
line-height: 1.4;
2021-12-24 06:20:07 +00:00
display: flex;
font-family: serif;
color: #555;
font-size: 1.25em;
}
2024-03-13 06:54:20 +00:00
@mixin left {
float: left;
max-width: 30ch;
text-align: left;
}
@mixin right {
float: right;
max-width: 30ch;
text-align: right;
}
.has-pullquote {
2024-03-13 06:54:20 +00:00
&.left:before {
@include pullquote;
margin-bottom: 1rem;
@media (min-width: 40rem) {
@include left;
}
@media (min-width: 80rem) {
margin-left: -9rem;
padding-right: 1em;
}
2021-12-24 06:20:07 +00:00
}
2024-03-13 06:54:20 +00:00
&.right:before {
@include pullquote;
margin-bottom: 1rem;
@media (min-width: 40rem) {
@include right;
}
@media (min-width: 80rem) {
margin-right: -9rem;
padding-left: 1em;
}
2021-12-24 06:20:07 +00:00
}
}