Amaze UI 2.4

CSS

Basic CSS settings, fundamental HTML elements styled and grid system, .etc

Panel


Usually, panel is used to arrange content with title.

Default Style

The default .am-panel has basic shadow, padding and margin. Add .am-panel-default to have default border. The content should be placed in .am-panel-bd.

This is a basic panel.
<div class="am-panel am-panel-default">
    <div class="am-panel-bd">This is a basic panel.</div>
</div>

Panel with Title

Title can be put in .am-panel-hd, but we suggest to use h1 - h6 and add the .am-panel-title class.

Title
Content

Title

Content
<div class="am-panel am-panel-default">
  <div class="am-panel-hd">Title</div>
  <div class="am-panel-bd">
    Content
  </div>
</div>

<section class="am-panel am-panel-default">
  <header class="am-panel-hd">
    <h3 class="am-panel-title">Title</h3>
  </header>
  <div class="am-panel-bd">
    Content
  </div>
</section>

Color

Use following classes to set color of panel.

  • .am-panel-primary
  • .am-panel-secondary
  • .am-panel-success
  • .am-panel-warning
  • .am-panel-danger

Title

Content

Title

Content

Title

Content

Title

Content

Title

Content
<div class="am-panel am-panel-primary">...</div>
<div class="am-panel am-panel-secondary">...</div>
<div class="am-panel am-panel-success">...</div>
<div class="am-panel am-panel-warning">...</div>
<div class="am-panel am-panel-danger">...</div>

Use footer .am-panel-footer for secondary information. Footer won't inherite styles from .am-panel-primary - .am-panel-danger.

Title
Footer
<section class="am-panel am-panel-default">
  <main class="am-panel-bd">
    Title
  </main>
  <footer class="am-panel-footer">Footer</footer>
</section>

With Other Components

With Table

Use .am-table in .am-panel. (Not in .am-panel-bd)

Title

Other contents.
NameURLCreated Date
Amaze UIamazeui.org2014-01-01
Amaze UIamazeui.org2014-01-01
Amaze UIamazeui.org2014-01-01
<div class="am-panel am-panel-default">
  <div class="am-panel-hd">
    <h3 class="am-panel-title">Title</h3>
  </div>
  <div class="am-panel-bd">
    Other contents.
  </div>
  <table class="am-table">
    ...
  </table>
  <div class="am-panel-footer">...</div>
</div>

With List

Title

Other contents
  • Devouring Time,blunt thou the lion'paws,
  • And make the earth devour her own sweet brood;
  • Pluck the keen teeth from the fierce tiger's jaws,
  • And burn the long--liv'd phoenix in her blood;
<div class="am-panel am-panel-default">
  <div class="am-panel-hd">
    <h3 class="am-panel-title">Title</h3>
  </div>
  <div class="am-panel-bd">
    Other contents
  </div>

  <ul class="am-list am-list-static">
    <li>...</li>
  </ul>
  <div class="am-panel-footer">...</div>
</div>

With Group

Use panel in .am-panel-group.

Title
Content
Title
Content
Title
Content
侧栏导航
Amaze UI 微信
在微信上关注我们