Card

An all-around flexible and composable component


The card component comprises several elements that you can mix and match:

  • hx-card: the main container
    • hx-card-header: a horizontal bar with a shadow
      • hx-card-header-title: a left-aligned bold text
      • hx-card-header-icon: a placeholder for an icon
    • hx-card-image: a fullwidth container for a reponsive image
    • hx-card-content: a multi-purpose container for any other element
    • hx-card-footer: a horizontal list of controls
      • hx-card-footer-item: a repeatable list item

Default card

      
<div class="hx-columns">
  <div class="hx-column is-one-third is-offset-one-third">
    <div class="hx-card">
      <div class="hx-card-content">
        <div>
          <div><strong class="h4">Choi</strong></div>
          <div>Ella</div>
          <br>
          <i class="hx-icon icon-clock-outline is-small"></i> <small>11:09 PM - 1 Jan 2016</small>
        </div>
      </div>
    </div>
  </div>
</div>
          
    
Choi
Ella

11:09 PM - 1 Jan 2016

Border highlighted card

      
<div class="hx-columns">
  <div class="hx-column">
    <p>Add <code>is-border-highlighted</code> to the card for border highlighted card.</p>
    <p>You can also add modifiers for different colour border.</p>
    <ul>
      <li><code>is-info</code></li>
      <li><code>is-success</code></li>
      <li><code>is-caution</code></li>
      <li><code>is-warning</code></li>
      <li><code>is-danger</code></li>
    </ul>
  </div>
  <div class="hx-column">
    <div class="hx-columns">
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-info">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-success">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-warning">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-caution">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-danger">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
          
    

Add is-border-highlighted to the card for border highlighted card.

You can also add modifiers for different colour border.

  • is-info
  • is-success
  • is-caution
  • is-warning
  • is-danger
Choi
Ella

11:09 PM - 1 Jan 2016
Choi
Ella

11:09 PM - 1 Jan 2016
Choi
Ella

11:09 PM - 1 Jan 2016
Choi
Ella

11:09 PM - 1 Jan 2016
Choi
Ella

11:09 PM - 1 Jan 2016

Border sizes

      
<div class="hx-columns">
  <div class="hx-column">
    <p>You can add modifiers for different border sizes.</p>
    <ul>
      <li><code>is-small</code></li>
      <li><code>is-medium</code></li>
      <li><code>is-large</code></li>
    </ul>
  </div>
  <div class="hx-column">
    <div class="hx-columns">
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-small">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-medium">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-large">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
          
    

You can add modifiers for different border sizes.

  • is-small
  • is-medium
  • is-large
Choi
Ella

11:09 PM - 1 Jan 2016
Choi
Ella

11:09 PM - 1 Jan 2016
Choi
Ella

11:09 PM - 1 Jan 2016

States

      
<div class="hx-columns">
  <div class="hx-column">
    <p>You can add modifiers for different border states.</p>
    <ul>
      <li><code>is-hovered</code></li>
      <li><code>is-focused</code></li>
      <li><code>is-active</code></li>
    </ul>
  </div>
  <div class="hx-column">
    <div class="hx-columns">
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-hovered">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-focused">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-active">
          <div class="hx-card-content">
            <div class="">
              <div><strong>Choi</strong></div>
              <div>Ella</div>
              <br>
              <small>11:09 PM - 1 Jan 2016</small>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
          
    

You can add modifiers for different border states.

  • is-hovered
  • is-focused
  • is-active
Choi
Ella

11:09 PM - 1 Jan 2016
Choi
Ella

11:09 PM - 1 Jan 2016
Choi
Ella

11:09 PM - 1 Jan 2016

Using HxUI grid

      
<div class="hx-columns">
  <div class="hx-column">
    <p>You can create complex layouts using HxUI Grid and Form in Card.</p>
  </div>
  <div class="hx-column is-two-thirds">
    <div class="hx-columns">
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-warning">
          <div class="hx-card-content">
            <div class="hx-columns">
              <div class="hx-column">
                  <p>
                    <strong>09:37</strong> <a href="#">@Liz</a>: Please call James Meadows asap re: his test result. 2nd time he has called.
                  </p>
              </div>
            </div>
              <div class="hx-input-control is-warning">
                <input class="hx-input" type="text" placeholder="Enter your notes">
                <label class="hx-label">Add Notes</label>
              </div>
              <a class="hx-button is-warning is-fullwidth">
                <span class="hx-icon-control"><i class="icon icon-plus-empty"></i></span>
                <span>Add</span>
              </a>
          </div>
        </div>
      </div>
      <div class="hx-column is-half">
        <div class="hx-card is-border-highlighted is-info">
          <div class="hx-card-content has-padding-small">
            <div class="hx-columns">
              <div class="hx-column is-2">
                <div class="hx-card-icon">
                  <i class="hx-icon icon-calendar-outline is-large"></i>
                </div>
              </div>
              <div class="hx-column"><p>Lunch/catch-up on patient notes</p></div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
          
    

You can create complex layouts using HxUI Grid and Form in Card.

09:37 @Liz: Please call James Meadows asap re: his test result. 2nd time he has called.

Add

Lunch/catch-up on patient notes