Skip to content

Commit

Permalink
Revert "permits WC images to get floated to left or right"
Browse files Browse the repository at this point in the history
This reverts commit a4848c9.
  • Loading branch information
Joseph Reagle committed Sep 18, 2012
1 parent a4848c9 commit 7f40342
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions class.dzslides
Original file line number Diff line number Diff line change
Expand Up @@ -186,16 +186,14 @@ $endfor$

/* An image in a multi-element slide are floated to either side for variety */
section:nth-child(odd) > a:not(:only-child) > img,
section:nth-child(odd) > p:not(:only-child) > img,
section:nth-child(odd) > p:not(:only-child) > a:only-child > img:only-child {
section:nth-child(odd) > p:not(:only-child) > img {
float: right;
padding: 0px 5px 0px 5px;
max-width: 400px; max-height: 300px;
/* border: 2px solid green; */
}
section:nth-child(even) > a:not(:only-child) > img,
section:nth-child(even) > p:not(:only-child) > img,
section:nth-child(odd) > p:not(:only-child) > a:only-child > img:only-child {
section:nth-child(even) > p:not(:only-child) > img {
float: left;
margin: 0px 40px 10px 0px;
padding: 0px 5px 0px 5px;
Expand Down
6 changes: 2 additions & 4 deletions template.html
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,14 @@ <h1>End!</h1>

/* An image in a multi-element slide are floated to either side for variety */
section:nth-child(odd) > a:not(:only-child) > img,
section:nth-child(odd) > p:not(:only-child) > img,
section:nth-child(odd) > p:not(:only-child) > a:only-child > img:only-child {
section:nth-child(odd) > p:not(:only-child) > img {
float: right;
padding: 0px 5px 0px 5px;
max-width: 400px; max-height: 300px;
/* border: 2px solid green; */
}
section:nth-child(even) > a:not(:only-child) > img,
section:nth-child(even) > p:not(:only-child) > img,
section:nth-child(odd) > p:not(:only-child) > a:only-child > img:only-child {
section:nth-child(even) > p:not(:only-child) > img {
float: left;
margin: 0px 40px 10px 0px;
padding: 0px 5px 0px 5px;
Expand Down

0 comments on commit 7f40342

Please sign in to comment.