Skip to content

Commit

Permalink
remove unused styles
Browse files Browse the repository at this point in the history
  • Loading branch information
GregoryPotdevin committed Aug 18, 2016
1 parent 8090a6c commit ac5bd46
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 51 deletions.
15 changes: 13 additions & 2 deletions examples/dist/app.js

Large diffs are not rendered by default.

18 changes: 1 addition & 17 deletions examples/dist/bundle.js

Large diffs are not rendered by default.

16 changes: 0 additions & 16 deletions examples/dist/standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -2274,22 +2274,6 @@ var _Arrow = require('./Arrow');
var _Arrow2 = _interopRequireDefault(_Arrow);

var classes = _aphroditeNoImportant.StyleSheet.create({
thumbnail: {
display: 'inline-block',
margin: 2,
overflow: 'hidden',
borderRadius: 2,
cursor: 'pointer',
width: _theme2['default'].thumbnails.size,
height: _theme2['default'].thumbnails.size,
backgroundPosition: 'center',
backgroundSize: 'cover',
boxShadow: 'inset 0 0 0 1px hsla(0,0%,100%,.2)'
},
active: {
boxShadow: 'inset 0 0 0 2px #fff'
},

paginatedThumbnails: {
position: 'absolute',
bottom: 0,
Expand Down
3 changes: 3 additions & 0 deletions examples/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ render(
<h3>Paginated version</h3>
<p style={{ marginBottom: 40 }}>The <code>thumbnails</code> prop can actually take a component as value<br /><code>{"thumbnails={Lightbox.Lightbox.PaginatedThumbnails}"}</code></p>
<Gallery images={IMAGE_MAP} thumbnails={Lightbox.PaginatedThumbnails} />
<p style={{ marginBottom: 20 }}>Note : PaginatedThumbnails has an offset prop to change the number of thumbnails to show around the current one.<br />
<code>{"<Lightbox thumbnails={(props) => <PaginatedThumbnails {...props} offset={5} />} />"}</code>
</p>
</div>,
document.getElementById('example')
);
16 changes: 0 additions & 16 deletions src/PaginatedThumbnails.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,6 @@ import { Thumbnail } from './Thumbnails'
import Arrow from './Arrow'

const classes = StyleSheet.create({
thumbnail: {
display: 'inline-block',
margin: 2,
overflow: 'hidden',
borderRadius: 2,
cursor: 'pointer',
width: theme.thumbnails.size,
height: theme.thumbnails.size,
backgroundPosition: 'center',
backgroundSize: 'cover',
boxShadow: 'inset 0 0 0 1px hsla(0,0%,100%,.2)'
},
active: {
boxShadow: 'inset 0 0 0 2px #fff'
},

paginatedThumbnails: {
position: 'absolute',
bottom: 0,
Expand Down

0 comments on commit ac5bd46

Please sign in to comment.