Skip to content

Commit

Permalink
Add content image to illustrate the modals better
Browse files Browse the repository at this point in the history
  • Loading branch information
drublic committed May 4, 2013
1 parent 56d967f commit 40c8462
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
5 changes: 4 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ <h1>CSS Modal</h1>
<section class="on-github">
<p>
<a href="https://github.com/drublic/css-modal"><i class="icon-github">GitHub</i></a>
This project is <a href="https://github.com/drublic/css-modal">on GitHub</a>. Go fork it.</p>
This project is <a href="https://github.com/drublic/css-modal">on GitHub</a>. Go fork it.
</p>
</section>

<img src="site/img/artwork.jpg" alt="" class="artwork">

<!-- Content Area -->
<div class="main" role="main">

Expand Down
11 changes: 10 additions & 1 deletion site/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,15 @@ code {
color: #fff;
}

.artwork {
max-width: 100%;
}
@media screen and (max-width: 30em) {
.artwork {
display: none;
}
}

.main {
max-width: 50em;
margin: 0 auto;
Expand Down Expand Up @@ -629,7 +638,7 @@ code {

.features {
overflow: hidden;
margin: 1.5em -0.7em;
margin: 1em -0.7em 1.4em;
}
.features > div {
-webkit-box-sizing: border-box;
Expand Down
Binary file added site/img/artwork.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 10 additions & 1 deletion site/scss/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ code {
}
}

// The artwork above the content
.artwork {
max-width: 100%;

@media screen and (max-width: 30em) {
display: none;
}
}

// Content
.main {
max-width: 50em;
Expand Down Expand Up @@ -174,7 +183,7 @@ code {
// Show features
.features {
overflow: hidden;
margin: 1.5em -.7em;
margin: 1em -.7em 1.4em;

> div {
@include x-box-sizing;
Expand Down

0 comments on commit 40c8462

Please sign in to comment.