From acdffe696cf29f51c659a18eeca304512ff47048 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 17 Feb 2013 22:20:49 -0800 Subject: Bring back the label, make it scale somewhat with the font-size of the parent using percentages and ems --- docs/assets/css/bootstrap.css | 52 ++++++++++++++++++++++++++++ docs/components.html | 79 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 131 insertions(+) (limited to 'docs') diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index db65570fc..cb8482a9f 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -4263,6 +4263,58 @@ a.thumbnail:focus { list-style: none; } +.label { + padding: .25em .6em; + font-size: 75%; + font-weight: 500; + line-height: 1; + color: #fff; + text-align: center; + white-space: nowrap; + vertical-align: middle; + background-color: #999999; + border-radius: .25em; +} + +a.label:hover, +a.label:focus { + color: #fff; + text-decoration: none; + cursor: pointer; +} + +.label-danger { + background-color: #d9534f; +} + +.label-danger[href] { + background-color: #c9302c; +} + +.label-warning { + background-color: #f0ad4e; +} + +.label-warning[href] { + background-color: #ec971f; +} + +.label-success { + background-color: #5cb85c; +} + +.label-success[href] { + background-color: #449d44; +} + +.label-info { + background-color: #5bc0de; +} + +.label-info[href] { + background-color: #31b0d5; +} + .badge { display: inline-block; min-width: 10px; diff --git a/docs/components.html b/docs/components.html index 53b4a7e08..f1b45159b 100644 --- a/docs/components.html +++ b/docs/components.html @@ -28,6 +28,7 @@ title: Components
  • Navbar
  • Breadcrumbs
  • Pagination
  • +
  • Labels
  • Badges
  • Typography
  • Thumbnails
  • @@ -1274,6 +1275,84 @@ title: Components + +
    + +

    + +

    Example

    +
    +

    Example heading New

    +

    Example heading New

    +

    Example heading New

    +

    Example heading New

    +
    Example heading New
    +
    Example heading New
    +
    +{% highlight html linenos %} +

    Example heading New

    +{% endhighlight %} + +

    Available variations

    +

    Add any of the below mentioned modifier classes to change the appearance of a label.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    LabelsMarkup
    + Default + + <span class="label">Default</span> +
    + Success + + <span class="label label-success">Success</span> +
    + Warning + + <span class="label label-warning">Warning</span> +
    + Danger + + <span class="label label-danger">Danger</span> +
    + Info + + <span class="label label-info">Info</span> +
    + +
    + + +
    -- cgit v1.2.3