Skip to content

Commit

Permalink
Adding $base-button-gradient and nixing unused images.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkaneda committed Jan 16, 2012
1 parent afa4097 commit db3e635
Show file tree
Hide file tree
Showing 37 changed files with 148 additions and 141 deletions.
126 changes: 65 additions & 61 deletions themes/css/apple.css

Large diffs are not rendered by default.

132 changes: 68 additions & 64 deletions themes/css/jqtouch.css

Large diffs are not rendered by default.

Binary file removed themes/img/apple/activeButton.png
Binary file not shown.
Binary file removed themes/img/apple/backButton.png
Binary file not shown.
Binary file removed themes/img/apple/cancel.png
Binary file not shown.
Binary file removed themes/img/apple/chevron.png
Binary file not shown.
Binary file removed themes/img/apple/grayButton.png
Binary file not shown.
Binary file removed themes/img/apple/greenButton.png
Binary file not shown.
Binary file removed themes/img/apple/listArrowSel.png
Binary file not shown.
Binary file removed themes/img/apple/listGroup.png
Binary file not shown.
Binary file removed themes/img/apple/pinstripes.png
Binary file not shown.
Binary file removed themes/img/apple/redButton.png
Binary file not shown.
Binary file removed themes/img/apple/selection.png
Binary file not shown.
Binary file removed themes/img/apple/thumb.png
Binary file not shown.
Binary file removed themes/img/apple/toggle.png
Binary file not shown.
Binary file removed themes/img/apple/toggleOn.png
Binary file not shown.
Binary file removed themes/img/apple/toolButton.png
Binary file not shown.
Binary file removed themes/img/apple/toolbar.png
Binary file not shown.
Binary file removed themes/img/apple/whiteButton.png
Binary file not shown.
Binary file removed themes/img/jqt/activeButton.png
Binary file not shown.
Binary file removed themes/img/jqt/back_button.png
Binary file not shown.
Binary file removed themes/img/jqt/back_button_clicked.png
Binary file not shown.
Binary file removed themes/img/jqt/blueButton.png
Binary file not shown.
Binary file removed themes/img/jqt/button.png
Binary file not shown.
Binary file removed themes/img/jqt/button_clicked.png
Binary file not shown.
Binary file removed themes/img/jqt/chevron.png
Binary file not shown.
Binary file removed themes/img/jqt/chevron_circle.png
Binary file not shown.
Binary file removed themes/img/jqt/grayButton.png
Diff not rendered.
Binary file removed themes/img/jqt/greenButton.png
Diff not rendered.
Binary file removed themes/img/jqt/redButton.png
Diff not rendered.
Binary file removed themes/img/jqt/rowhead.png
Diff not rendered.
Binary file removed themes/img/jqt/toggle.png
Diff not rendered.
Binary file removed themes/img/jqt/toggleOn.png
Diff not rendered.
Binary file removed themes/img/jqt/toolbar.png
Diff not rendered.
Binary file removed themes/img/jqt/whiteButton.png
Diff not rendered.
2 changes: 2 additions & 0 deletions themes/scss/include/_core.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ $toolbar-button-color: darken($toolbar-background-color, 15%) !default;
$toolbar-button-active-color: darken($toolbar-button-color, 5%) !default;
$base-font-family: "Helvetica Neue", Helvetica;

$base-button-gradient: glossy !default;

// Optimization variables
$include-metal-lists: true !default;
$include-plastic-lists: true !default;
Expand Down
29 changes: 13 additions & 16 deletions themes/scss/include/_skeleton.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ body {
border: 1px solid darken($toolbar-button-color, 20);
@include border-radius(5px);

@include background-gradient($toolbar-button-color, glossy);
@include background-gradient($toolbar-button-color, $base-button-gradient);

&.active {
border-color: darken($toolbar-button-active-color, 20);
@include background-gradient($toolbar-button-active-color, glossy);
@include background-gradient($toolbar-button-active-color, $base-button-gradient);
@include color-by-background($toolbar-button-active-color);
}
}
Expand All @@ -130,9 +130,8 @@ body {
// combining the mask and rotate properties.
@include transform(rotate(45deg) translate3d(.2px,0,0)); // Just be glad you didn't have to find it.
@include transform-origin(0,0);
@include background-image(
glossy-gradient($toolbar-button-color, top left)
);
@include background-gradient($toolbar-button-color, $base-button-gradient, top left);

background-size: 100% 98%;
@include border-radius(0 0 0 2px);

Expand All @@ -156,9 +155,7 @@ body {
}
&.active {
&:after {
@include background-image(
glossy-gradient($toolbar-button-active-color, left top)
);
@include background-gradient($toolbar-button-active-color, $base-button-gradient, left top);
}
&:before {
background-color: darken($toolbar-button-active-color, 20);
Expand All @@ -167,7 +164,7 @@ body {
}

.blueButton {
@include background-image(#2F7CE3, glossy);
@include background-image(#2F7CE3, $base-button-gradient);
@include color-by-background(#2F7CE3);
}
.whiteButton, .grayButton, .redButton, .blueButton, .greenButton {
Expand All @@ -187,32 +184,32 @@ body {

&.active, &:active {
$active-color: darken($highlight-color, 10);
@include background-gradient($active-color, glossy);
@include background-gradient($active-color, $base-button-gradient);
@include color-by-background($active-color);
}
}
.whiteButton {
@include background-gradient(#eee, glossy);
@include background-gradient(#eee, $base-button-gradient);
@include color-by-background(#eee);
}
.grayButton {
@include background-gradient(#444, glossy);
@include background-gradient(#444, $base-button-gradient);
@include color-by-background(#444);
}

.redButton {
@include background-gradient(#D83B38, glossy);
@include background-gradient(#D83B38, $base-button-gradient);
@include color-by-background(#D83B38);

&.active, &:active {
$active-color: darken(#D83B38, 8);
@include background-gradient($active-color, glossy);
@include background-gradient($active-color, $base-button-gradient);
@include color-by-background($active-color);
}
}

.greenButton {
@include background-gradient($highlight-color, glossy);
@include background-gradient($highlight-color, $base-button-gradient);
@include color-by-background($highlight-color);
}

Expand Down Expand Up @@ -386,7 +383,7 @@ body {
right: 6px;
margin-top: -$chevron-size/2;
@include circle($chevron-size);
@include background-gradient($highlight-color, glossy);
@include background-gradient($highlight-color, $base-button-gradient);
border: 2px solid #fff;
@include box-shadow(0 1px 2px rgba(#000, .3));
-webkit-box-sizing: border-box;
Expand Down

0 comments on commit db3e635

Please sign in to comment.