Browse Source

fix all the badges

pull/245/head
connors 11 years ago
parent
commit
ce96e6e378
  1. 23
      dist/ios-theme.css
  2. 11
      dist/ratchet.css
  3. 8
      index.html
  4. 15
      lib/sass/buttons.scss
  5. 4
      lib/sass/table-views.scss
  6. 22
      lib/sass/theme-ios.scss

23
dist/ios-theme.css vendored

@ -206,36 +206,33 @@ textarea,
opacity: .6; opacity: .6;
} }
[class*="badge"] { [class*="badge"].badge-inverted {
color: #929292;
}
[class*="badge"].badge-filled {
color: #929292; color: #929292;
} }
.badge-primary { .badge-primary {
color: #007aff;
}
.badge-primary.badge-filled {
color: #fff; color: #fff;
background-color: #007aff; background-color: #007aff;
} }
.badge-primary.badge-inverted {
color: #007aff;
}
.badge-positive { .badge-positive {
color: #4cd964;
}
.badge-positive.badge-filled {
color: #fff; color: #fff;
background-color: #4cd964; background-color: #4cd964;
} }
.badge-positive.badge-inverted {
color: #4cd964;
}
.badge-negative { .badge-negative {
color: #dd524d;
}
.badge-negative.badge-filled {
color: #fff; color: #fff;
background-color: #dd524d; background-color: #dd524d;
} }
.badge-negative.badge-inverted {
color: #dd524d;
}
.segmented-controller { .segmented-controller {
background-color: transparent; background-color: transparent;

11
dist/ratchet.css vendored

@ -463,9 +463,11 @@ strong {
.table-view .chevron { .table-view .chevron {
margin-top: -10px; margin-top: -10px;
} }
.table-view [class*="badge"] {
margin-top: -9px;
}
.table-view .chevron + [class*="badge"] { .table-view .chevron + [class*="badge"] {
right: 30px; right: 30px;
margin-top: -9px;
} }
.table-view [class*="button"] { .table-view [class*="button"] {
left: auto; left: auto;
@ -746,10 +748,15 @@ input[type="button"] {
.popover .button-block { .popover .button-block {
margin-bottom: 5px; margin-bottom: 5px;
} }
.popover .button-block:last-child { .popover .button-block:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.popover .bar-nav .button-link.pull-left {
margin-left: 5px;
}
.popover .bar-nav .button-link.pull-right {
margin-right: 5px;
}
.chevron { .chevron {
display: block; display: block;

8
index.html

@ -872,9 +872,9 @@ document
<div class="component-example"> <div class="component-example">
<div id="myPopover" class="popover"> <div id="myPopover" class="popover">
<header class="bar-nav"> <header class="bar-nav">
<a class="button pull-left"> <a class="button-link pull-left">
Left Left
</a><a class="button pull-right"> </a><a class="button-link pull-right">
Right Right
</a> </a>
<h3 class="title">Popover title</h3> <h3 class="title">Popover title</h3>
@ -895,10 +895,10 @@ document
{% highlight html %} {% highlight html %}
<div id="popover" class="popover"> <div id="popover" class="popover">
<header class="bar-nav"> <header class="bar-nav">
<a class="button pull-left"> <a class="button-link pull-left">
Left Left
</a> </a>
<a class="button pull-right"> <a class="button-link pull-right">
Right Right
</a> </a>
<h3 class="title">Popover title</h3> <h3 class="title">Popover title</h3>

15
lib/sass/buttons.scss

@ -180,11 +180,22 @@ input[type="button"] {
// -------------------------------------------------- // --------------------------------------------------
// Positioning and giving darker border to look sharp against dark popover // Positioning and giving darker border to look sharp against dark popover
.popover .button-block { .popover {
.button-block {
margin-bottom: 5px; margin-bottom: 5px;
} }
// Remove extra margin on bottom of last button // Remove extra margin on bottom of last button
.popover .button-block:last-child { .button-block:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
// Line the button text up with content's text
.bar-nav .button-link {
&.pull-left {
margin-left: 5px;
}
&.pull-right {
margin-right: 5px;
}
}
}

4
lib/sass/table-views.scss

@ -97,11 +97,13 @@
.chevron { .chevron {
margin-top: -10px; // Half height of chevron margin-top: -10px; // Half height of chevron
} }
[class*="badge"] {
margin-top: -9px; // Aligned just right
}
// Push badge over if there's a sibling chevron // Push badge over if there's a sibling chevron
.chevron + [class*="badge"] { .chevron + [class*="badge"] {
right: 30px; right: 30px;
margin-top: -9px;
} }
// Position buttons vertically centered on the right in table view items // Position buttons vertically centered on the right in table view items

22
lib/sass/theme-ios.scss

@ -287,9 +287,7 @@ textarea,
// -------------------------------------------------- // --------------------------------------------------
[class*="badge"] { [class*="badge"] {
color: $default-color; &.badge-inverted {
&.badge-filled {
color: $default-color; color: $default-color;
} }
} }
@ -300,31 +298,31 @@ textarea,
// Main badge // Main badge
.badge-primary { .badge-primary {
color: $primary-color;
&.badge-filled {
color: #fff; color: #fff;
background-color: $primary-color; background-color: $primary-color;
&.badge-inverted {
color: $primary-color;
} }
} }
// Positive badge // Positive badge
.badge-positive { .badge-positive {
color: $positive-color;
&.badge-filled {
color: #fff; color: #fff;
background-color: $positive-color; background-color: $positive-color;
&.badge-inverted {
color: $positive-color;
} }
} }
// Negative badge // Negative badge
.badge-negative { .badge-negative {
color: $negative-color;
&.badge-filled {
color: #fff; color: #fff;
background-color: $negative-color; background-color: $negative-color;
&.badge-inverted {
color: $negative-color;
} }
} }

Loading…
Cancel
Save