Skip to content

Instantly share code, notes, and snippets.

@jacobwalkr
Forked from mikeblum/callout.css
Created May 6, 2020 12:10
Show Gist options
  • Save jacobwalkr/97acd8c1daf20101b28fa2e2c626fd00 to your computer and use it in GitHub Desktop.
Save jacobwalkr/97acd8c1daf20101b28fa2e2c626fd00 to your computer and use it in GitHub Desktop.
.callout {
padding: 1.25rem;
margin-top: 1.25rem;
margin-bottom: 1.25rem;
border: $card-border-width solid $card-border-color;
border-left-width: .25rem;
@include border-radius($card-border-radius);
h2,h3,h4,h5 {
margin-top: 0;
margin-bottom: $spacer;
}
p:last-child {
margin-bottom: 0;
}
code {
border-radius: .25rem;
}
}
@each $color, $value in $theme-colors {
.callout-#{$color} {
border-left-color: $value;
h2,h3,h4,h5 {
color: $value;
}
}
}
@jacobwalkr
Copy link
Author

Depending on your setup, you might need to add @import 'bootstrap/variables'; or similar at the top. I did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment