Template:Callout/styles.css: Difference between revisions
mNo edit summary |
mNo edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
.callout { | .callout { | ||
border-left: 3px solid #999; | border-left: 3px solid #999; | ||
padding: 0. | padding: 0.25em 0.25em; | ||
margin: | margin: 0.25em 0; /* reduced whitespace */ | ||
background: #fafafa; /* consistent background */ | |||
border-radius: 4px; | |||
} | } | ||
.callout- | .callout-header { | ||
display: flex; | |||
align-items: center; | |||
gap: 0.25em; | |||
margin-bottom: 0.25em; | |||
} | } | ||
.callout- | .callout-icon { | ||
font-size: 1.2em; | |||
} | } | ||
.callout- | .callout-label { | ||
font-weight: bold; | |||
font-size: 1.0em; | |||
} | } | ||
.callout- | .callout-title { | ||
font-weight: normal; | |||
opacity: 0.8; | |||
} | } | ||
.callout- | .callout-body { | ||
margin-left: 0.25em; | |||
line-height: 1.5; | |||
} | } | ||
.callout- | /* Type-specific accents */ | ||
.callout-tip { border-left-color: #4a90e2; } | |||
.callout-warning { border-left-color: #d9534f; } | |||
} | .callout-protip { border-left-color: #5cb85c; } | ||
.callout-note { border-left-color: #999; } | |||
.callout | /* Mobile */ | ||
@media (max-width: 600px) { | |||
.callout { | |||
padding: 0.75em; | |||
} | |||
.callout-body { | |||
margin-left: 1.2em; | |||
} | |||
} | } | ||