amazeui学習ノート--css(共通コンポーネント1)--小さなバッジBadge

12953 ワード

amazeui学習ノート--css(共通コンポーネント1)--小さなバッジBadge


一、まとめ


1、am-badge:am-badgeを追加して小バッジオブジェクト<span class="am-badge am-badge-primary">2span>を宣言する
2、badge位置:badgeはspanまたはaラベルの<a class="am-badge am-badge-primary">Freea>に置くことができる
3、フィレットスタイルまたは楕円スタイル:am-radiusとam-round
4、小バッジサイズ:小バッジサイズは中のフォントのサイズを変えることで実現できる:<span class="am-badge am-badge-secondary am-text-sm">smallspan> 

二、バッジBadge


Badge


目次

  • デフォルトスタイル
  • フィレットスタイル
  • 楕円形
  • サイズ
  • .am-badge classを     に します.

    スタイル


     Copy
    1 2 3 4 5 6 AllmobilizeFree Secondary Success Warning Danger
    <span class="am-badge">1span> <span class="am-badge am-badge-primary">2span> <span class="am-badge am-badge-secondary">3span> <span class="am-badge am-badge-success">4span> <span class="am-badge am-badge-warning">5span> <span class="am-badge am-badge-danger">6span> <span class="am-badge am-badge-success">Allmobilizespan> <br> <a class="am-badge am-badge-primary">Freea> <a class="am-badge am-badge-secondary">Secondarya> <a class="am-badge am-badge-success">Successa> <a class="am-badge am-badge-warning">Warninga> <a class="am-badge am-badge-danger">Dangera>

    フィレットスタイル

    .am-radius classをデフォルトスタイルに します.
     Copy
    1 2 3 4 5 6 AllmobilizeFree Secondary Success Warning Danger
    <span class="am-badge am-radius">1span> <span class="am-badge am-badge-primary am-radius">2span> <span class="am-badge am-badge-secondary am-radius">3span> <span class="am-badge am-badge-success am-radius">4span> <span class="am-badge am-badge-warning am-radius">5span> <span class="am-badge am-badge-danger am-radius">6span> <span class="am-badge am-badge-success am-radius">Allmobilizespan> <br> <a class="am-badge am-badge-primary am-radius">Freea> <a class="am-badge am-badge-secondary am-radius">Secondarya> <a class="am-badge am-badge-success am-radius">Successa> <a class="am-badge am-badge-warning am-radius">Warninga> <a class="am-badge am-badge-danger am-radius">Dangera>

    スタイル

    .am-round classをデフォルトスタイルに します.
     Copy
    1 2 3 4 5 6 AllmobilizeFree Secondary Success Warning Danger
    <span class="am-badge am-round">1span> <span class="am-badge am-badge-primary am-round">2span> <span class="am-badge am-badge-secondary am-round">3span> <span class="am-badge am-badge-success am-round">4span> <span class="am-badge am-badge-warning am-round">5span> <span class="am-badge am-badge-danger am-round">6span> <span class="am-badge am-badge-success am-round">Allmobilizespan> <br> <a class="am-badge am-badge-primary am-round">Freea> <a class="am-badge am-badge-secondary am-round">Secondarya> <a class="am-badge am-badge-success am-round">Successa> <a class="am-badge am-badge-warning am-round">Warninga> <a class="am-badge am-badge-danger am-round">Dangera>

    サイズ


    クラスの classと み わせて、バッジの きさを します.
     Copy
    default small normal large x large
    <span class="am-badge am-badge-primary">defaultspan> <span class="am-badge am-badge-secondary am-text-sm">smallspan> <span class="am-badge am-badge-success am-text-default">normalspan> <span class="am-badge am-badge-warning am-text-lg">largespan> <span class="am-badge am-badge-danger am-text-xl">x largespan>