Browse Source

fixing up the android theme a tad

pull/253/head
connors 11 years ago
parent
commit
9f3680c4b9
  1. 130
      dist/android-theme.css
  2. 133
      docs-assets/css/docs.css
  3. 8
      lib/sass/docs.scss
  4. 134
      lib/sass/theme-android.scss
  5. 1
      lib/sass/theme-ios.scss

130
dist/android-theme.css vendored

@ -11,57 +11,74 @@
@import url(http://fonts.googleapis.com/css?family=Roboto:400,700,500); @import url(http://fonts.googleapis.com/css?family=Roboto:400,700,500);
body { body {
font-family: "Roboto", sans-serif; font-family: "Roboto", sans-serif;
font-size: 17px; font-size: 18px;
line-height: 21px; line-height: 22px;
color: #222222;
} }
.content { .content {
background: #dddddd; background-color: #f2f2f2;
background: -moz-linear-gradient(top, #dddddd 0%, #f7f7f7 100%); }
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dddddd), color-stop(100%, #f7f7f7));
background: -webkit-linear-gradient(top, #dddddd 0%, #f7f7f7 100%); .bar-nav ~ .content {
background: -o-linear-gradient(top, #dddddd 0%, #f7f7f7 100%); padding-top: 50px;
background: -ms-linear-gradient(top, #dddddd 0%, #f7f7f7 100%); }
background: linear-gradient(to bottom, #dddddd 0%, #f7f7f7 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$color-form', endColorstr='$color-to',GradientType=0 ); .bar-tab ~ .content {
padding-bottom: 50px;
}
.bar-header-secondary ~ .content {
padding-top: 100px;
} }
.bar { .bar {
height: 50px; height: 50px;
background-color: #dddddd; background-color: #dddddd;
border-bottom: 1px solid #565656; border-bottom: 1px solid #b1b1b1;
box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, 0.07);
} }
.bar.bar-header-secondary { .bar.bar-header-secondary {
top: 51px; top: 51px;
} }
.bar-tab { .bar-tab {
height: 70px; height: 50px;
border-top: 1px solid #565656; border-top: 1px solid #b1b1b1;
border-bottom: 0; border-bottom: 0;
box-shadow: inset 0 2px 0 #d2d2d2, 0 -3px 3px rgba(0, 0, 0, 0.07);
} }
.title { .title {
position: static; position: static;
padding-left: 10px; padding-left: 10px;
line-height: 50px; line-height: 50px;
color: #9a9a9a;
text-align: left; text-align: left;
} }
.popover .bar-nav { .popover .bar-nav {
border-bottom: 1px solid #565656; border-bottom: 1px solid #b1b1b1;
}
.card {
border-color: #d9d9d9;
border-radius: 2px;
} }
.table-view .table-view-cell { .table-view .table-view-cell {
border-bottom: 1px solid #565656; border-bottom: 1px solid #d9d9d9;
} }
.table-view .table-view-cell:last-child { .table-view .table-view-cell:last-child {
background-image: none; background-image: none;
} }
.table-view .table-view-divider { .table-view .table-view-divider {
padding-top: 25px;
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
border-top: 0; border-top: 0;
border-bottom: 0; border-bottom: 2px solid #a9a9a9;
background-color: transparent;
} }
.popover .table-view { .popover .table-view {
@ -110,10 +127,12 @@ textarea,
.input-group { .input-group {
padding: 0; padding: 0;
border: 0;
} }
.input-group input { .input-group input {
border: 0; border: 0;
border-bottom: 1px solid #d9d9d9;
} }
.input-group input:last-child { .input-group input:last-child {
@ -121,23 +140,26 @@ textarea,
} }
.input-row { .input-row {
border-bottom: 0; border-bottom: 1px solid #d9d9d9;
} }
.input-row:last-child,
.input-row label + input { .input-row label + input {
background-image: none; background-image: none;
border-bottom: 0;
} }
.btn { .btn {
border: 1px solid #565656; color: #222222;
color: #9a9a9a; background-color: #cecece;
background-color: #dddddd; border: 0;
border-radius: 3px; border-radius: 2px;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.25);
} }
.btn:active, .btn.active { .btn:active, .btn.active {
color: #fff; color: #222222;
background-color: #9a9a9a; border: 0;
background-color: #999999;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
} }
.bar .btn { .bar .btn {
@ -155,58 +177,86 @@ textarea,
.btn-primary { .btn-primary {
color: #fff; color: #fff;
border: 1px solid #33b5e5; border: 0;
background-color: #33b5e5; background-color: #33b5e5;
} }
.btn-primary:active, .btn-primary.active { .btn-primary:active, .btn-primary.active {
border: 1px solid #1a9bcb; color: #fff;
border: 0;
background-color: #1a9bcb; background-color: #1a9bcb;
} }
.btn-positive { .btn-positive {
color: #fff; color: #fff;
border: 1px solid #99cc00; border: 0;
background-color: #99cc00; background-color: #99cc00;
} }
.btn-positive:active, .btn-positive.active { .btn-positive:active, .btn-positive.active {
border: 1px solid #739900; color: #fff;
border: 0;
background-color: #739900; background-color: #739900;
} }
.btn-negative { .btn-negative {
color: #fff; color: #fff;
border: 1px solid #ff4444; border: 0;
background-color: #ff4444; background-color: #ff4444;
} }
.btn-negative:active, .btn-negative.active { .btn-negative:active, .btn-negative.active {
border: 1px solid #ff1111; color: #fff;
border: 0;
background-color: #ff1111; background-color: #ff1111;
} }
.btn-outlined { .btn-outlined {
border: 1px solid #999999;
background-color: transparent; background-color: transparent;
box-shadow: none;
} }
.btn-outlined.btn-primary { .btn-outlined.btn-primary {
border: 1px solid #33b5e5;
color: #33b5e5; color: #33b5e5;
} }
.btn-outlined.btn-primary:active {
border: 1px solid #33b5e5;
background-color: #33b5e5;
}
.btn-outlined.btn-positive { .btn-outlined.btn-positive {
border: 1px solid #99cc00;
color: #99cc00; color: #99cc00;
} }
.btn-outlined.btn-positive:active {
border: 1px solid #99cc00;
background-color: #99cc00;
}
.btn-outlined.btn-negative { .btn-outlined.btn-negative {
border: 1px solid #ff4444;
color: #ff4444; color: #ff4444;
} }
.btn-outlined.btn-negative:active {
border: 1px solid #ff4444;
background-color: #ff4444;
}
.btn-outlined:active {
border: 1px solid #999999;
background-color: #999999;
box-shadow: none;
}
.btn-outlined.btn-primary:active, .btn-outlined.btn-positive:active, .btn-outlined.btn-negative:active { .btn-outlined.btn-primary:active, .btn-outlined.btn-positive:active, .btn-outlined.btn-negative:active {
color: #fff; color: #fff;
box-shadow: none;
} }
.btn-link { .btn-link {
color: #33b5e5; color: #33b5e5;
background-color: transparent; background-color: transparent;
border: none; border: none;
box-shadow: none;
} }
.btn-link:active, .btn-link.active { .btn-link:active, .btn-link.active {
color: #1a9bcb; color: #1a9bcb;
background-color: transparent; background-color: transparent;
box-shadow: none;
} }
.bar-nav .btn-link { .bar-nav .btn-link {
@ -218,7 +268,8 @@ textarea,
} }
.badge.badge-inverted { .badge.badge-inverted {
color: #9a9a9a; color: #999999;
background-color: transparent;
} }
.badge-primary { .badge-primary {
@ -227,6 +278,7 @@ textarea,
} }
.badge-primary.badge-inverted { .badge-primary.badge-inverted {
color: #33b5e5; color: #33b5e5;
background-color: transparent;
} }
.badge-positive { .badge-positive {
@ -235,6 +287,7 @@ textarea,
} }
.badge-positive.badge-inverted { .badge-positive.badge-inverted {
color: #99cc00; color: #99cc00;
background-color: transparent;
} }
.badge-negative { .badge-negative {
@ -243,6 +296,17 @@ textarea,
} }
.badge-negative.badge-inverted { .badge-negative.badge-inverted {
color: #ff4444; color: #ff4444;
background-color: transparent;
}
.btn .badge {
background-color: rgba(0, 0, 0, 0.15);
}
.btn .badge.badge-inverted {
background-color: transparent;
}
.btn:active .badge {
color: #fff;
} }
.segmented-control { .segmented-control {
@ -270,7 +334,7 @@ textarea,
} }
.toggle .toggle-handle { .toggle .toggle-handle {
border: 1px solid #565656; border: 1px solid #b1b1b1;
} }
.toggle:active .toggle-handle { .toggle:active .toggle-handle {
width: 35px; width: 35px;

133
docs-assets/css/docs.css

@ -1200,51 +1200,64 @@ hr {
} }
.platform-android body { .platform-android body {
font-family: "Roboto", sans-serif; font-family: "Roboto", sans-serif;
font-size: 17px; font-size: 18px;
line-height: 21px; line-height: 22px;
color: #222222;
} }
.platform-android .content { .platform-android .content {
background: #dddddd; background-color: #f2f2f2;
background: -moz-linear-gradient(top, #dddddd 0%, #f7f7f7 100%); }
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #dddddd), color-stop(100%, #f7f7f7)); .platform-android .bar-nav ~ .content {
background: -webkit-linear-gradient(top, #dddddd 0%, #f7f7f7 100%); padding-top: 50px;
background: -o-linear-gradient(top, #dddddd 0%, #f7f7f7 100%); }
background: -ms-linear-gradient(top, #dddddd 0%, #f7f7f7 100%); .platform-android .bar-tab ~ .content {
background: linear-gradient(to bottom, #dddddd 0%, #f7f7f7 100%); padding-bottom: 50px;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='$color-form', endColorstr='$color-to',GradientType=0 ); }
.platform-android .bar-header-secondary ~ .content {
padding-top: 100px;
} }
.platform-android .bar { .platform-android .bar {
height: 50px; height: 50px;
background-color: #dddddd; background-color: #dddddd;
border-bottom: 1px solid #565656; border-bottom: 1px solid #b1b1b1;
box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0, 0, 0, 0.07);
} }
.platform-android .bar.bar-header-secondary { .platform-android .bar.bar-header-secondary {
top: 51px; top: 51px;
} }
.platform-android .bar-tab { .platform-android .bar-tab {
height: 70px; height: 50px;
border-top: 1px solid #565656; border-top: 1px solid #b1b1b1;
border-bottom: 0; border-bottom: 0;
box-shadow: inset 0 2px 0 #d2d2d2, 0 -3px 3px rgba(0, 0, 0, 0.07);
} }
.platform-android .title { .platform-android .title {
position: static; position: static;
padding-left: 10px; padding-left: 10px;
line-height: 50px; line-height: 50px;
color: #9a9a9a;
text-align: left; text-align: left;
} }
.platform-android .popover .bar-nav { .platform-android .popover .bar-nav {
border-bottom: 1px solid #565656; border-bottom: 1px solid #b1b1b1;
}
.platform-android .card {
border-color: #d9d9d9;
border-radius: 2px;
} }
.platform-android .table-view .table-view-cell { .platform-android .table-view .table-view-cell {
border-bottom: 1px solid #565656; border-bottom: 1px solid #d9d9d9;
} }
.platform-android .table-view .table-view-cell:last-child { .platform-android .table-view .table-view-cell:last-child {
background-image: none; background-image: none;
} }
.platform-android .table-view .table-view-divider { .platform-android .table-view .table-view-divider {
padding-top: 25px;
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
border-top: 0; border-top: 0;
border-bottom: 0; border-bottom: 2px solid #a9a9a9;
background-color: transparent;
} }
.platform-android .popover .table-view { .platform-android .popover .table-view {
border-radius: 12px; border-radius: 12px;
@ -1287,29 +1300,34 @@ hr {
} }
.platform-android .input-group { .platform-android .input-group {
padding: 0; padding: 0;
border: 0;
} }
.platform-android .input-group input { .platform-android .input-group input {
border: 0; border: 0;
border-bottom: 1px solid #d9d9d9;
} }
.platform-android .input-group input:last-child { .platform-android .input-group input:last-child {
background-image: none; background-image: none;
} }
.platform-android .input-row { .platform-android .input-row {
border-bottom: 0; border-bottom: 1px solid #d9d9d9;
} }
.platform-android .input-row:last-child,
.platform-android .input-row label + input { .platform-android .input-row label + input {
background-image: none; background-image: none;
border-bottom: 0;
} }
.platform-android .btn { .platform-android .btn {
border: 1px solid #565656; color: #222222;
color: #9a9a9a; background-color: #cecece;
background-color: #dddddd; border: 0;
border-radius: 3px; border-radius: 2px;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 1px rgba(0, 0, 0, 0.25);
} }
.platform-android .btn:active, .platform-android .btn.active { .platform-android .btn:active, .platform-android .btn.active {
color: #fff; color: #222222;
background-color: #9a9a9a; border: 0;
background-color: #999999;
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
} }
.platform-android .bar .btn { .platform-android .bar .btn {
padding-top: 9px; padding-top: 9px;
@ -1325,54 +1343,82 @@ hr {
} }
.platform-android .btn-primary { .platform-android .btn-primary {
color: #fff; color: #fff;
border: 1px solid #33b5e5; border: 0;
background-color: #33b5e5; background-color: #33b5e5;
} }
.platform-android .btn-primary:active, .platform-android .btn-primary.active { .platform-android .btn-primary:active, .platform-android .btn-primary.active {
border: 1px solid #1a9bcb; color: #fff;
border: 0;
background-color: #1a9bcb; background-color: #1a9bcb;
} }
.platform-android .btn-positive { .platform-android .btn-positive {
color: #fff; color: #fff;
border: 1px solid #99cc00; border: 0;
background-color: #99cc00; background-color: #99cc00;
} }
.platform-android .btn-positive:active, .platform-android .btn-positive.active { .platform-android .btn-positive:active, .platform-android .btn-positive.active {
border: 1px solid #739900; color: #fff;
border: 0;
background-color: #739900; background-color: #739900;
} }
.platform-android .btn-negative { .platform-android .btn-negative {
color: #fff; color: #fff;
border: 1px solid #ff4444; border: 0;
background-color: #ff4444; background-color: #ff4444;
} }
.platform-android .btn-negative:active, .platform-android .btn-negative.active { .platform-android .btn-negative:active, .platform-android .btn-negative.active {
border: 1px solid #ff1111; color: #fff;
border: 0;
background-color: #ff1111; background-color: #ff1111;
} }
.platform-android .btn-outlined { .platform-android .btn-outlined {
border: 1px solid #999999;
background-color: transparent; background-color: transparent;
box-shadow: none;
} }
.platform-android .btn-outlined.btn-primary { .platform-android .btn-outlined.btn-primary {
border: 1px solid #33b5e5;
color: #33b5e5; color: #33b5e5;
} }
.platform-android .btn-outlined.btn-primary:active {
border: 1px solid #33b5e5;
background-color: #33b5e5;
}
.platform-android .btn-outlined.btn-positive { .platform-android .btn-outlined.btn-positive {
border: 1px solid #99cc00;
color: #99cc00; color: #99cc00;
} }
.platform-android .btn-outlined.btn-positive:active {
border: 1px solid #99cc00;
background-color: #99cc00;
}
.platform-android .btn-outlined.btn-negative { .platform-android .btn-outlined.btn-negative {
border: 1px solid #ff4444;
color: #ff4444; color: #ff4444;
} }
.platform-android .btn-outlined.btn-negative:active {
border: 1px solid #ff4444;
background-color: #ff4444;
}
.platform-android .btn-outlined:active {
border: 1px solid #999999;
background-color: #999999;
box-shadow: none;
}
.platform-android .btn-outlined.btn-primary:active, .platform-android .btn-outlined.btn-positive:active, .platform-android .btn-outlined.btn-negative:active { .platform-android .btn-outlined.btn-primary:active, .platform-android .btn-outlined.btn-positive:active, .platform-android .btn-outlined.btn-negative:active {
color: #fff; color: #fff;
box-shadow: none;
} }
.platform-android .btn-link { .platform-android .btn-link {
color: #33b5e5; color: #33b5e5;
background-color: transparent; background-color: transparent;
border: none; border: none;
box-shadow: none;
} }
.platform-android .btn-link:active, .platform-android .btn-link.active { .platform-android .btn-link:active, .platform-android .btn-link.active {
color: #1a9bcb; color: #1a9bcb;
background-color: transparent; background-color: transparent;
box-shadow: none;
} }
.platform-android .bar-nav .btn-link { .platform-android .bar-nav .btn-link {
color: #33b5e5; color: #33b5e5;
@ -1382,7 +1428,8 @@ hr {
opacity: .6; opacity: .6;
} }
.platform-android .badge.badge-inverted { .platform-android .badge.badge-inverted {
color: #9a9a9a; color: #999999;
background-color: transparent;
} }
.platform-android .badge-primary { .platform-android .badge-primary {
color: #fff; color: #fff;
@ -1390,6 +1437,7 @@ hr {
} }
.platform-android .badge-primary.badge-inverted { .platform-android .badge-primary.badge-inverted {
color: #33b5e5; color: #33b5e5;
background-color: transparent;
} }
.platform-android .badge-positive { .platform-android .badge-positive {
color: #fff; color: #fff;
@ -1397,6 +1445,7 @@ hr {
} }
.platform-android .badge-positive.badge-inverted { .platform-android .badge-positive.badge-inverted {
color: #99cc00; color: #99cc00;
background-color: transparent;
} }
.platform-android .badge-negative { .platform-android .badge-negative {
color: #fff; color: #fff;
@ -1404,6 +1453,16 @@ hr {
} }
.platform-android .badge-negative.badge-inverted { .platform-android .badge-negative.badge-inverted {
color: #ff4444; color: #ff4444;
background-color: transparent;
}
.platform-android .btn .badge {
background-color: rgba(0, 0, 0, 0.15);
}
.platform-android .btn .badge.badge-inverted {
background-color: transparent;
}
.platform-android .btn:active .badge {
color: #fff;
} }
.platform-android .segmented-control { .platform-android .segmented-control {
background-color: transparent; background-color: transparent;
@ -1428,7 +1487,7 @@ hr {
border-bottom: 15px solid #dddddd; border-bottom: 15px solid #dddddd;
} }
.platform-android .toggle .toggle-handle { .platform-android .toggle .toggle-handle {
border: 1px solid #565656; border: 1px solid #b1b1b1;
} }
.platform-android .toggle:active .toggle-handle { .platform-android .toggle:active .toggle-handle {
width: 35px; width: 35px;
@ -1445,8 +1504,16 @@ hr {
background-image: url("../img/android.png"); background-image: url("../img/android.png");
} }
.platform-android .device .device-content { .platform-android .device .device-content {
font-size: 18px;
line-height: 22px;
background-color: #f2f2f2; background-color: #f2f2f2;
} }
.platform-android .device .content {
top: 50px;
}
.platform-android .bar ~ .content {
padding: 0;
}
@-webkit-keyframes fadeOverlay { @-webkit-keyframes fadeOverlay {
from { from {

8
lib/sass/docs.scss

@ -778,8 +778,16 @@ hr {
background-image: url("../img/android.png"); background-image: url("../img/android.png");
.device-content { .device-content {
font-size: 18px;
line-height: 22px;
background-color: #f2f2f2; background-color: #f2f2f2;
} }
.content {
top: 50px;
}
}
.bar ~ .content {
padding: 0;
} }
} }

134
lib/sass/theme-android.scss

@ -14,28 +14,29 @@
// Type (Change to Roboto) // Type (Change to Roboto)
$font-family-default: 'Roboto', sans-serif; $font-family-default: 'Roboto', sans-serif;
$font-size-default: 17px; $font-size-default: 18px;
$font-weight: 500; $font-weight: 500;
$font-weight-light: 400; $font-weight-light: 400;
$line-height-default: 21px; $line-height-default: 22px;
// Colors // Colors
// Main theme colors // Main theme colors
$primary-color: #33b5e5; $primary-color: #33b5e5;
$chrome-color: #dddddd; $chrome-color: #dddddd;
$text-color: #222;
// Action colors // Action colors
$default-color: #9a9a9a; $default-color: #999;
$positive-color: #99cc00; $positive-color: #99cc00;
$negative-color: #ff4444; $negative-color: #ff4444;
// Bars // Bars
$bar-base-height: 50px; $bar-base-height: 50px;
$bar-tab-height: 70px; $bar-tab-height: 50px;
// Borders // Borders
$border-default: 1px solid #565656; $border-default: 1px solid #b1b1b1;
$border-radius: 0; $border-radius: 2px;
// Base // Base
@ -45,10 +46,23 @@ body {
font-family: $font-family-default; font-family: $font-family-default;
font-size: $font-size-default; font-size: $font-size-default;
line-height: $line-height-default; line-height: $line-height-default;
color: $text-color;
} }
.content { .content {
@include gradient($chrome-color,lighten($chrome-color, 10%)); background-color: #f2f2f2;
}
// Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
// Note: For these to work, content must come after both bars in the markup
.bar-nav ~ .content {
padding-top: $bar-base-height;
}
.bar-tab ~ .content {
padding-bottom: $bar-tab-height;
}
.bar-header-secondary ~ .content {
padding-top: $bar-base-height*2;
} }
// Bars // Bars
@ -58,6 +72,7 @@ body {
height: $bar-base-height; height: $bar-base-height;
background-color: $chrome-color; background-color: $chrome-color;
border-bottom: $border-default; border-bottom: $border-default;
box-shadow: inset 0 -2px 0 #d2d2d2, 0 3px 3px rgba(0,0,0,.07);
// Modifier class to dock any bar below .bar-nav // Modifier class to dock any bar below .bar-nav
&.bar-header-secondary { &.bar-header-secondary {
@ -68,13 +83,13 @@ body {
height: $bar-tab-height; height: $bar-tab-height;
border-top: $border-default; border-top: $border-default;
border-bottom: 0; border-bottom: 0;
box-shadow: inset 0 2px 0 #d2d2d2, 0 -3px 3px rgba(0,0,0,.07);
} }
// Left aligned text in the .bar-nav // Left aligned text in the .bar-nav
.title { .title {
position: static; position: static;
padding-left: 10px; padding-left: 10px;
line-height: $bar-base-height; line-height: $bar-base-height;
color: $default-color;
text-align: left; text-align: left;
} }
@ -86,13 +101,21 @@ body {
border-bottom: $border-default; border-bottom: $border-default;
} }
//
// Cards
// --------------------------------------------------
.card {
border-color: #d9d9d9;
border-radius: $border-radius;
}
// Table views // Table views
// -------------------------------------------------- // --------------------------------------------------
.table-view { .table-view {
.table-view-cell { .table-view-cell {
border-bottom: $border-default; border-bottom: 1px solid #d9d9d9;
// Remove the border from the last table view item // Remove the border from the last table view item
&:last-child { &:last-child {
@ -102,8 +125,13 @@ body {
// Table view dividers // Table view dividers
.table-view-divider { .table-view-divider {
padding-top: 25px;
font-size: 12px;
font-weight: bold;
text-transform: uppercase;
border-top: 0; border-top: 0;
border-bottom: 0; border-bottom: 2px solid #a9a9a9;
background-color: transparent;
} }
} }
@ -157,9 +185,11 @@ textarea,
// ------------------------------------------------------------------- // -------------------------------------------------------------------
.input-group { .input-group {
padding: 0; padding: 0;
border: 0;
} }
.input-group input { .input-group input {
border: 0; border: 0;
border-bottom: 1px solid #d9d9d9;
} }
// Remove bottom border on last input to avoid double bottom border // Remove bottom border on last input to avoid double bottom border
.input-group input:last-child { .input-group input:last-child {
@ -171,12 +201,12 @@ textarea,
// To use labels with input groups, wrap a label and an input in an .input-row // To use labels with input groups, wrap a label and an input in an .input-row
.input-row { .input-row {
border-bottom: 0; border-bottom: 1px solid #d9d9d9;
} }
// Remove bottom border on last input-row to avoid double bottom border // Remove bottom border on last input-row to avoid double bottom border
.input-row:last-child,
.input-row label + input { .input-row label + input {
background-image: none; background-image: none;
border-bottom: 0;
} }
@ -184,16 +214,19 @@ textarea,
// -------------------------------------------------- // --------------------------------------------------
.btn { .btn {
border: $border-default; color: $text-color;
color: $default-color; background-color: #cecece;
background-color: $chrome-color; border: 0;
border-radius: 3px; border-radius: $border-radius;
box-shadow: inset 0 -1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 1px rgba(0,0,0,.25);
// Active & filled button styles // Active & filled button styles
&:active, &:active,
&.active { &.active {
color: #fff; color: $text-color;
border: 0;
background-color: $default-color; background-color: $default-color;
box-shadow: inset 0 -1px 0 rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.2);
} }
} }
.bar { .bar {
@ -220,12 +253,13 @@ textarea,
// Primary button (Default color is blue) // Primary button (Default color is blue)
.btn-primary { .btn-primary {
color: #fff; color: #fff;
border: 1px solid $primary-color; border: 0;
background-color: $primary-color; background-color: $primary-color;
&:active, &:active,
&.active { &.active {
border: 1px solid darken($primary-color, 10%); color: #fff;
border: 0;
background-color: darken($primary-color, 10%); background-color: darken($primary-color, 10%);
} }
} }
@ -233,12 +267,13 @@ textarea,
// Positive button (Default color is green) // Positive button (Default color is green)
.btn-positive { .btn-positive {
color: #fff; color: #fff;
border: 1px solid $positive-color; border: 0;
background-color: $positive-color; background-color: $positive-color;
&:active, &:active,
&.active { &.active {
border: 1px solid darken($positive-color, 10%); color: #fff;
border: 0;
background-color: darken($positive-color, 10%); background-color: darken($positive-color, 10%);
} }
} }
@ -246,34 +281,61 @@ textarea,
// Negative button (Default color is red) // Negative button (Default color is red)
.btn-negative { .btn-negative {
color: #fff; color: #fff;
border: 1px solid $negative-color; border: 0;
background-color: $negative-color; background-color: $negative-color;
&:active, &:active,
&.active { &.active {
border: 1px solid darken($negative-color, 10%); color: #fff;
border: 0;
background-color: darken($negative-color, 10%); background-color: darken($negative-color, 10%);
} }
} }
// Outlined buttons // Outlined buttons
.btn-outlined { .btn-outlined {
border: 1px solid $default-color;
background-color: transparent; background-color: transparent;
box-shadow: none;
&.btn-primary { &.btn-primary {
border: 1px solid $primary-color;
color: $primary-color; color: $primary-color;
&:active {
border: 1px solid $primary-color;
background-color: $primary-color;
}
} }
&.btn-positive { &.btn-positive {
border: 1px solid $positive-color;
color: $positive-color; color: $positive-color;
&:active {
border: 1px solid $positive-color;
background-color: $positive-color;
}
} }
&.btn-negative { &.btn-negative {
border: 1px solid $negative-color;
color: $negative-color; color: $negative-color;
&:active {
border: 1px solid $negative-color;
background-color: $negative-color;
}
} }
// Active states // Active states
&:active {
border: 1px solid $default-color;
background-color: $default-color;
box-shadow: none;
}
&.btn-primary:active, &.btn-primary:active,
&.btn-positive:active, &.btn-positive:active,
&.btn-negative:active { &.btn-negative:active {
color: #fff; color: #fff;
box-shadow: none;
} }
} }
@ -282,11 +344,13 @@ textarea,
color: $primary-color; color: $primary-color;
background-color: transparent; background-color: transparent;
border: none; border: none;
box-shadow: none;
&:active, &:active,
&.active { &.active {
color: darken($primary-color, 10%); color: darken($primary-color, 10%);
background-color: transparent; background-color: transparent;
box-shadow: none;
} }
} }
@ -312,6 +376,7 @@ textarea,
.badge { .badge {
&.badge-inverted { &.badge-inverted {
color: $default-color; color: $default-color;
background-color: transparent;
} }
} }
@ -326,6 +391,7 @@ textarea,
&.badge-inverted { &.badge-inverted {
color: $primary-color; color: $primary-color;
background-color: transparent;
} }
} }
@ -336,6 +402,7 @@ textarea,
&.badge-inverted { &.badge-inverted {
color: $positive-color; color: $positive-color;
background-color: transparent;
} }
} }
@ -346,6 +413,23 @@ textarea,
&.badge-inverted { &.badge-inverted {
color: $negative-color; color: $negative-color;
background-color: transparent;
}
}
// Badges in buttons
.btn {
.badge {
background-color: rgba(0,0,0,.15);
&.badge-inverted {
background-color: transparent;
}
}
// Active states
&:active .badge {
color: #fff;
} }
} }
@ -388,10 +472,6 @@ textarea,
} }
//
// Modal styles
// --------------------------------------------------
// //
// Toggles styles // Toggles styles
// -------------------------------------------------- // --------------------------------------------------

1
lib/sass/theme-ios.scss

@ -39,7 +39,6 @@ a {
} }
// Bars // Bars
// -------------------------------------------------- // --------------------------------------------------

Loading…
Cancel
Save