Browse Source

Merge pull request #333 from twbs/img-dimensions

Add image dimensions.
pull/346/merge
XhmikosR 11 years ago
parent
commit
312dd79824
  1. 1
      docs/assets/css/docs.css
  2. 6
      docs/examples.html
  3. 6
      docs/examples/app-movies/css/app.css
  4. 6
      docs/examples/app-movies/index.html
  5. 1
      sass/docs.scss

1
docs/assets/css/docs.css

@ -441,6 +441,7 @@ body {
.docs-example-group .example-wrap img { .docs-example-group .example-wrap img {
display: block; display: block;
width: 100%; width: 100%;
height: auto;
} }
code { code {

6
docs/examples.html

@ -26,19 +26,19 @@ title: Examples · Ratchet
<div class="docs-example-group"> <div class="docs-example-group">
<div class="example-wrap"> <div class="example-wrap">
<a class="example" href="../examples/app-movies" data-ignore="push"> <a class="example" href="../examples/app-movies" data-ignore="push">
<img src="../assets/img/example.png" alt="Movie finder app example"> <img src="../assets/img/example.png" alt="Movie finder app example" width="640" height="480">
</a> </a>
<h5>Movie finder</h5> <h5>Movie finder</h5>
</div> </div>
<div class="example-wrap"> <div class="example-wrap">
<a class="example" href="../examples/app-ios-mail" data-ignore="push"> <a class="example" href="../examples/app-ios-mail" data-ignore="push">
<img src="../assets/img/example-ios.png" alt="iOS mail app example"> <img src="../assets/img/example-ios.png" alt="iOS mail app example" width="640" height="480">
</a> </a>
<h5>iOS mail app</h5> <h5>iOS mail app</h5>
</div> </div>
<div class="example-wrap"> <div class="example-wrap">
<a class="example" href="../examples/app-android-notes" data-ignore="push"> <a class="example" href="../examples/app-android-notes" data-ignore="push">
<img src="../assets/img/example-android.png" alt="Android notes app example"> <img src="../assets/img/example-android.png" alt="Android notes app example" width="640" height="480">
</a> </a>
<h5>Android notes app</h5> <h5>Android notes app</h5>
</div> </div>

6
docs/examples/app-movies/css/app.css

@ -1,6 +1,8 @@
.slider, .slider {
.slider img {
margin-bottom: 0; margin-bottom: 0;
}
.slider img {
width: auto;
height: 150px; height: 150px;
} }
.content-padded { .content-padded {

6
docs/examples/app-movies/index.html

@ -28,13 +28,13 @@
<div class="slider"> <div class="slider">
<div class="slide-group"> <div class="slide-group">
<div class="slide"> <div class="slide">
<img src="img/argo.png" alt="Argo"> <img src="img/argo.png" alt="Argo" width="640" height="300">
</div> </div>
<div class="slide"> <div class="slide">
<img src="img/skyfall.png" alt="Skyfall"> <img src="img/skyfall.png" alt="Skyfall" width="640" height="300">
</div> </div>
<div class="slide"> <div class="slide">
<img src="img/ralph.png" alt="Wreck-It Ralph"> <img src="img/ralph.png" alt="Wreck-It Ralph" width="640" height="300">
</div> </div>
</div> </div>
</div> </div>

1
sass/docs.scss

@ -437,6 +437,7 @@ body {
img { img {
display: block; display: block;
width: 100%; width: 100%;
height: auto;
} }
} }
} }

Loading…
Cancel
Save