Skip to content

Instantly share code, notes, and snippets.

@tamimibrahim17
Created April 26, 2017 10:23
Show Gist options
  • Save tamimibrahim17/adbdef7940fc9e1a0265bd27f2b0ab10 to your computer and use it in GitHub Desktop.
Save tamimibrahim17/adbdef7940fc9e1a0265bd27f2b0ab10 to your computer and use it in GitHub Desktop.
/* Common styles for all types */
.bs-callout {
padding: 20px;
margin: 20px 0;
border: 1px solid #eee;
border-left-width: 5px;
border-radius: 3px;
}
.bs-callout h4 {
margin-top: 0;
margin-bottom: 5px;
}
.bs-callout p:last-child {
margin-bottom: 0;
}
.bs-callout code {
border-radius: 3px;
}
/* Tighten up space between multiple callouts */
.bs-callout + .bs-callout {
margin-top: -5px;
}
/* Variations */
.bs-callout-danger {
border-left-color: #ce4844;
}
.bs-callout-danger h4 {
color: #ce4844;
}
.bs-callout-warning {
border-left-color: #aa6708;
}
.bs-callout-warning h4 {
color: #aa6708;
}
.bs-callout-info {
border-left-color: #1b809e;
}
.bs-callout-info h4 {
color: #1b809e;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment