Content
A single class to handle WYSIWYG generated content, where only HTML tags are available
When you can't use the CSS classes you want, or when you just want to directly use HTML tags, use content as container. It can handle almost any HTML tag:
<p>paragraphs<ul><ol><dl>lists<h1>to<h6>headings<blockquote>quotes<em>and<strong><sup>and<sub><table><tr><th><td>tables
This content class can be used in any context where you just want to (or can only) write some text. For example, it's used for the paragraph you're currently reading.
Ordered lists <ol> support different types of items markers. To modify them, use either:
- the corresponding HTML attribute value
-
one of the following CSS modifier classes:
is-lower-alpha,is-lower-roman,is-upper-alphaoris-upper-roman
Sizes: You can use the is-small, is-medium and is-large modifiers to change the font size.
- Coffee
- Tea
- Milk
- Coffee
- Tea
- Milk
- Coffee
- Tea
- Milk
- Coffee
- Tea
- Milk
- Coffee
- Tea
- Milk
<div class="content">
<ol type="1">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol type="A">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol type="a">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol type="I">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol type="i">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</div>
- Coffee
- Tea
- Milk
- Coffee
- Tea
- Milk
- Coffee
- Tea
- Milk
- Coffee
- Tea
- Milk
<div class="content">
<ol class="is-lower-alpha">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol class="is-lower-roman">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol class="is-upper-alpha">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
<ol class="is-upper-roman">
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
</div>
Size
You can use the is-small, is-medium and is-large modifiers to change the font size.
Variables #
You can use these variables to customize, Simply set one or multiple of these variables before importing Buval. Learn how.
Name | Type | Default |
|---|---|---|
$content-heading-color | color | $text-strong |
$content-heading-weight | font-weight | $weight-semibold |
$content-heading-line-height | unitless | 1.125 |
$content-blockquote-background-color | color | $background |
$content-blockquote-border-left | size | 5px solid $border |
$content-blockquote-padding | size | 1.25em 1.5em |
$content-pre-padding | size | 1.25em 1.5em |
$content-table-cell-border | size | 1px solid $border |
$content-table-cell-border-width | size | 0 0 1px |
$content-table-cell-padding | size | 0.5em 0.75em |
$content-table-cell-heading-color | color | $text-strong |
$content-table-head-cell-border-width | size | 0 0 2px |
$content-table-head-cell-color | color | $text-strong |
$content-table-foot-cell-border-width | size | 2px 0 0 |
$content-table-foot-cell-color | color | $text-strong |