Browse Source

Merge pull request #361 from twbs/device-sprite

Use a sprite for device images
pull/337/merge
Mark Otto 11 years ago
parent
commit
317e70b00a
  1. 9
      docs/assets/css/docs.css
  2. BIN
      docs/assets/img/android.png
  3. BIN
      docs/assets/img/device-sprite.png
  4. BIN
      docs/assets/img/iphone5c.png
  5. BIN
      docs/assets/img/iphone5s.png
  6. 9
      sass/docs.scss

9
docs/assets/css/docs.css

@ -924,9 +924,10 @@ code {
height: 813px;
margin-left: -20px;
font-family: "Helvetica Neue", sans-serif;
background-image: url("../img/iphone5c.png");
background-size: 100%;
background-image: url("../img/device-sprite.png");
background-size: 300%;
background-repeat: no-repeat;
background-position-x: 0;
-webkit-transition: background-image 0.1s linear;
-moz-transition: background-image 0.1s linear;
transition: background-image 0.1s linear;
@ -1587,7 +1588,7 @@ hr {
transform: translate3d(-20%, 0, 0);
}
.platform-ios .device {
background-image: url("../img/iphone5s.png");
background-position-x: -395px;
}
.platform-ios .device .device-content {
background-color: #efeff4;
@ -2108,7 +2109,7 @@ hr {
}
.platform-android .device {
font-family: 'Roboto', sans-serif;
background-image: url("../img/android.png");
background-position-x: -790px;
}
.platform-android .device .device-content {
font-size: 18px;

BIN
docs/assets/img/android.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 86 KiB

BIN
docs/assets/img/device-sprite.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

BIN
docs/assets/img/iphone5c.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

BIN
docs/assets/img/iphone5s.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

9
sass/docs.scss

@ -962,9 +962,10 @@ code {
height: 813px;
margin-left: -20px;
font-family: "Helvetica Neue", sans-serif;
background-image: url("../img/iphone5c.png");
background-size: 100%;
background-image: url("../img/device-sprite.png");
background-size: 300%;
background-repeat: no-repeat;
background-position-x: 0;
@include transition(background-image .1s linear);
&.device-fixed {
@ -1138,7 +1139,7 @@ hr {
@import "theme-ios.scss";
.device {
background-image: url("../img/iphone5s.png");
background-position-x: -395px;
.device-content {
background-color: #efeff4;
@ -1150,7 +1151,7 @@ hr {
.device {
font-family: 'Roboto', sans-serif;
background-image: url("../img/android.png");
background-position-x: -790px;
.device-content {
font-size: 18px;

Loading…
Cancel
Save