mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
badge colours
This commit is contained in:
70
dist/css/ionic.css
vendored
70
dist/css/ionic.css
vendored
@@ -3779,52 +3779,52 @@ button.item-button-right:after {
|
||||
* --------------------------------------------------
|
||||
*/
|
||||
.badge {
|
||||
background-color: transparent;
|
||||
color: #aaaaaa;
|
||||
display: inline-block;
|
||||
min-width: 10px;
|
||||
padding: 3px 8px;
|
||||
font-size: 14px;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
line-height: 16px;
|
||||
min-width: 10px;
|
||||
border-radius: 10px;
|
||||
vertical-align: baseline;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
background-color: #f8f8f8;
|
||||
border-radius: 10px; }
|
||||
white-space: nowrap;
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
line-height: 16px; }
|
||||
.badge:empty {
|
||||
display: none; }
|
||||
.badge.badge-light {
|
||||
background-color: white;
|
||||
color: #444444; }
|
||||
.badge.badge-stable {
|
||||
background-color: #f8f8f8;
|
||||
color: #444444; }
|
||||
.badge.badge-positive {
|
||||
background-color: #4a87ee;
|
||||
color: white; }
|
||||
.badge.badge-calm {
|
||||
background-color: #43cee6;
|
||||
color: white; }
|
||||
.badge.badge-assertive {
|
||||
background-color: #ef4e3a;
|
||||
color: white; }
|
||||
.badge.badge-balanced {
|
||||
background-color: #66cc33;
|
||||
color: white; }
|
||||
.badge.badge-energized {
|
||||
background-color: #f0b840;
|
||||
color: white; }
|
||||
.badge.badge-royal {
|
||||
background-color: #8a6de9;
|
||||
color: white; }
|
||||
.badge.badge-dark {
|
||||
background-color: #444444;
|
||||
color: white; }
|
||||
|
||||
.button .badge {
|
||||
position: relative;
|
||||
top: -1px; }
|
||||
|
||||
.badge-light {
|
||||
background-color: white; }
|
||||
|
||||
.badge-stable {
|
||||
background-color: #f8f8f8; }
|
||||
|
||||
.badge-positive {
|
||||
background-color: #4a87ee; }
|
||||
|
||||
.badge-calm {
|
||||
background-color: #43cee6; }
|
||||
|
||||
.badge-assertive {
|
||||
background-color: #ef4e3a; }
|
||||
|
||||
.badge-balanced {
|
||||
background-color: #66cc33; }
|
||||
|
||||
.badge-energized {
|
||||
background-color: #f0b840; }
|
||||
|
||||
.badge-royal {
|
||||
background-color: #8a6de9; }
|
||||
|
||||
.badge-dark {
|
||||
background-color: #444444; }
|
||||
|
||||
/**
|
||||
* Slide Box
|
||||
* --------------------------------------------------
|
||||
|
||||
@@ -5,22 +5,49 @@
|
||||
*/
|
||||
|
||||
.badge {
|
||||
@include badge-style($badge-default-bg, $badge-default-text);
|
||||
display: inline-block;
|
||||
min-width: 10px;
|
||||
padding: 3px 8px;
|
||||
font-size: $badge-font-size;
|
||||
font-weight: $badge-font-weight;
|
||||
color: $badge-color;
|
||||
line-height: $badge-line-height;
|
||||
vertical-align: baseline;
|
||||
white-space: nowrap;
|
||||
text-align: center;
|
||||
background-color: $badge-bg;
|
||||
min-width: 10px;
|
||||
border-radius: $badge-border-radius;
|
||||
vertical-align: baseline;
|
||||
text-align: center;
|
||||
white-space: nowrap;
|
||||
font-weight: $badge-font-weight;
|
||||
font-size: $badge-font-size;
|
||||
line-height: $badge-line-height;
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&.badge-light {
|
||||
@include badge-style($badge-light-bg, $badge-light-text);
|
||||
}
|
||||
&.badge-stable {
|
||||
@include badge-style($badge-stable-bg, $badge-stable-text);
|
||||
}
|
||||
&.badge-positive {
|
||||
@include badge-style($badge-positive-bg, $badge-positive-text);
|
||||
}
|
||||
&.badge-calm {
|
||||
@include badge-style($badge-calm-bg, $badge-calm-text);
|
||||
}
|
||||
&.badge-assertive {
|
||||
@include badge-style($badge-assertive-bg, $badge-assertive-text);
|
||||
}
|
||||
&.badge-balanced {
|
||||
@include badge-style($badge-balanced-bg, $badge-balanced-text);
|
||||
}
|
||||
&.badge-energized {
|
||||
@include badge-style($badge-energized-bg, $badge-energized-text);
|
||||
}
|
||||
&.badge-royal {
|
||||
@include badge-style($badge-royal-bg, $badge-royal-text);
|
||||
}
|
||||
&.badge-dark {
|
||||
@include badge-style($badge-dark-bg, $badge-dark-text);
|
||||
}
|
||||
}
|
||||
|
||||
// Quick fix for labels/badges in buttons
|
||||
@@ -28,31 +55,3 @@
|
||||
position: relative;
|
||||
top: -1px;
|
||||
}
|
||||
|
||||
.badge-light {
|
||||
background-color: $light;
|
||||
}
|
||||
.badge-stable {
|
||||
background-color: $stable;
|
||||
}
|
||||
.badge-positive {
|
||||
background-color: $positive;
|
||||
}
|
||||
.badge-calm {
|
||||
background-color: $calm;
|
||||
}
|
||||
.badge-assertive {
|
||||
background-color: $assertive;
|
||||
}
|
||||
.badge-balanced {
|
||||
background-color: $balanced;
|
||||
}
|
||||
.badge-energized {
|
||||
background-color: $energized;
|
||||
}
|
||||
.badge-royal {
|
||||
background-color: $royal;
|
||||
}
|
||||
.badge-dark {
|
||||
background-color: $dark;
|
||||
}
|
||||
|
||||
@@ -91,6 +91,15 @@
|
||||
}
|
||||
|
||||
|
||||
// Badge Mixins
|
||||
// --------------------------------------------------
|
||||
|
||||
@mixin badge-style($bg-color, $color) {
|
||||
background-color: $bg-color;
|
||||
color: $color;
|
||||
}
|
||||
|
||||
|
||||
// Utility Mixins
|
||||
// --------------------------------------------------
|
||||
|
||||
|
||||
@@ -488,17 +488,40 @@ $sheet-border-radius-bottom: 0px 0px 3px 3px !default;
|
||||
// Badges
|
||||
// -------------------------
|
||||
|
||||
$badge-color: $light !default;
|
||||
$badge-link-hover-color: $light !default;
|
||||
$badge-bg: $stable !default;
|
||||
$badge-font-size: 14px !default;
|
||||
$badge-line-height: 16px !default;
|
||||
$badge-font-weight: bold !default;
|
||||
$badge-border-radius: 10px !default;
|
||||
|
||||
$badge-active-color: $link-color !default;
|
||||
$badge-active-bg: $light !default;
|
||||
$badge-light-bg: $button-light-bg;
|
||||
$badge-light-text: $button-light-text;
|
||||
|
||||
$badge-font-size: 14px !default;
|
||||
$badge-line-height: 16px !default;
|
||||
$badge-font-weight: bold !default;
|
||||
$badge-border-radius: 10px !default;
|
||||
$badge-stable-bg: $button-stable-bg;
|
||||
$badge-stable-text: $button-stable-text;
|
||||
|
||||
$badge-positive-bg: $button-positive-bg;
|
||||
$badge-positive-text: $button-positive-text;
|
||||
|
||||
$badge-calm-bg: $button-calm-bg;
|
||||
$badge-calm-text: $button-calm-text;
|
||||
|
||||
$badge-balanced-bg: $button-balanced-bg;
|
||||
$badge-balanced-text: $button-balanced-text;
|
||||
|
||||
$badge-assertive-bg: $button-assertive-bg;
|
||||
$badge-assertive-text: $button-assertive-text;
|
||||
|
||||
$badge-energized-bg: $button-energized-bg;
|
||||
$badge-energized-text: $button-energized-text;
|
||||
|
||||
$badge-royal-bg: $button-royal-bg;
|
||||
$badge-royal-text: $button-royal-text;
|
||||
|
||||
$badge-dark-bg: $button-dark-bg;
|
||||
$badge-dark-text: $button-dark-text;
|
||||
|
||||
$badge-default-bg: transparent !default;
|
||||
$badge-default-text: #AAAAAA !default;
|
||||
|
||||
|
||||
// Z-Indexes
|
||||
|
||||
@@ -48,28 +48,28 @@
|
||||
</div>
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<i class="icon ion-email ion-secondary"></i>
|
||||
<i class="icon ion-email"></i>
|
||||
Check mail
|
||||
<span class="badge badge-info">5</span>
|
||||
<span class="badge">5</span>
|
||||
</a>
|
||||
|
||||
<a href="#" class="item item-icon-left item-button-right">
|
||||
<i class="icon ion-chatbubble-working ion-primary"></i>
|
||||
Call Ma
|
||||
<button class="button button-success">
|
||||
<button class="button button-positive">
|
||||
<i class="icon ion-ios7-telephone"></i>
|
||||
</button>
|
||||
</a>
|
||||
|
||||
<a href="#" class="item item-button-left">
|
||||
<button class="button button-success">
|
||||
<button class="button button-positive">
|
||||
<i class="icon ion-ios7-telephone"></i>
|
||||
</button>
|
||||
Me Button
|
||||
</a>
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<i class="icon ion-mic-a ion-info"></i>
|
||||
<i class="icon ion-mic-a positive"></i>
|
||||
Record album
|
||||
<span class="item-note">
|
||||
Grammy
|
||||
@@ -77,7 +77,7 @@
|
||||
</a>
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<i class="icon ion-flask ion-success"></i>
|
||||
<i class="icon ion-flask calm"></i>
|
||||
Breaking Bad
|
||||
<span class="item-note">
|
||||
Blue, yellow, pink
|
||||
@@ -89,7 +89,7 @@
|
||||
</div>
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<i class="icon ion-game-controller-b ion-warning"></i>
|
||||
<i class="icon ion-game-controller-b energized"></i>
|
||||
Games
|
||||
<span class="item-note">
|
||||
Super Mario
|
||||
@@ -97,7 +97,7 @@
|
||||
</a>
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<i class="icon ion-music-note ion-danger"></i>
|
||||
<i class="icon ion-music-note assertive"></i>
|
||||
Music
|
||||
<span class="item-note">
|
||||
JT
|
||||
@@ -105,7 +105,7 @@
|
||||
</a>
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<i class="icon ion-bag ion-dark"></i>
|
||||
<i class="icon ion-bag"></i>
|
||||
Shopping
|
||||
<span class="item-note">
|
||||
Bag
|
||||
@@ -113,9 +113,9 @@
|
||||
</a>
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<i class="icon ion-person-stalker ion-warning fill-icon"></i>
|
||||
<i class="icon ion-person-stalker energized fill-icon"></i>
|
||||
Friends
|
||||
<span class="badge badge-danger">0</span>
|
||||
<span class="badge badge-assertive">0</span>
|
||||
</a>
|
||||
|
||||
</div>
|
||||
@@ -170,9 +170,15 @@
|
||||
<a href="#" class="item item-complex">
|
||||
<div class="item-content slide-left">
|
||||
Multiple Badges
|
||||
<span class="badge">62</span>
|
||||
<span class="badge">4</span>
|
||||
<span class="badge">143</span>
|
||||
<span class="badge badge-light">1</span>
|
||||
<span class="badge badge-stable">2</span>
|
||||
<span class="badge badge-positive">3</span>
|
||||
<span class="badge badge-calm">4</span>
|
||||
<span class="badge badge-balanced">7</span>
|
||||
<span class="badge badge-assertive">5</span>
|
||||
<span class="badge badge-energized">6</span>
|
||||
<span class="badge badge-royal">8</span>
|
||||
<span class="badge badge-dark">9</span>
|
||||
</div>
|
||||
<div class="item-options">
|
||||
<button class="button">Button</button>
|
||||
@@ -252,12 +258,12 @@
|
||||
</div>
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<i class="icon ion-heart brand-danger"></i>
|
||||
<i class="icon ion-heart brand-assertive"></i>
|
||||
Madison, WI
|
||||
</a>
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<i class="icon ion-image brand-warning"></i>
|
||||
<i class="icon ion-image brand-energized"></i>
|
||||
Driving Directions
|
||||
</a>
|
||||
|
||||
@@ -273,7 +279,7 @@
|
||||
|
||||
<a href="#" class="item item-complex item-icon-left item-icon-right item-slider">
|
||||
<div class="item-content">
|
||||
<i class="icon ion-heart brand-danger fill-icon"></i>
|
||||
<i class="icon ion-heart brand-assertive fill-icon"></i>
|
||||
Madison, WI
|
||||
<i class="icon ion-chevron-right"></i>
|
||||
</div>
|
||||
@@ -281,7 +287,7 @@
|
||||
|
||||
<a href="#" class="item item-complex item-icon-left item-icon-right item-slider">
|
||||
<div class="item-content slide-left">
|
||||
<i class="icon ion-image brand-warning fill-icon"></i>
|
||||
<i class="icon ion-image brand-energized fill-icon"></i>
|
||||
Driving Directions
|
||||
<i class="icon ion-chevron-right"></i>
|
||||
</div>
|
||||
@@ -308,14 +314,14 @@
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<div class="item-content">
|
||||
<i class="icon ion-heart brand-danger fill-icon"></i>
|
||||
<i class="icon ion-heart brand-assertive fill-icon"></i>
|
||||
Icon is filled!!
|
||||
</div>
|
||||
</a>
|
||||
|
||||
<a href="#" class="item item-icon-left">
|
||||
<div class="item-content">
|
||||
<i class="icon ion-image brand-warning fill-icon"></i>
|
||||
<i class="icon ion-image brand-energized fill-icon"></i>
|
||||
.fill-icon
|
||||
</div>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user