Created
August 25, 2015 15:53
-
-
Save renestalder/99be93eac4796152d8cf to your computer and use it in GitHub Desktop.
WordPress Gallery Default Style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gallery { | |
padding: 0; | |
list-style-type: none; | |
margin: 0 auto 18px; | |
} | |
.gallery .gallery-item { | |
float: left; | |
margin-top: 0; | |
text-align: center; | |
width: 33%; | |
} | |
.gallery-columns-2 .gallery-item { width: 50%; } | |
.gallery-columns-4 .gallery-item { width: 25%; } | |
.gallery img { | |
padding: 8px; | |
} | |
.gallery img:hover { | |
background: white; | |
} | |
.gallery-columns-2 .attachment-medium { | |
max-width: 92%; | |
height: auto; | |
} | |
.gallery-columns-4 .attachment-thumbnail { | |
max-width: 84%; | |
height: auto; | |
} | |
.gallery .gallery-caption { | |
color: #888; | |
font-size: 12px; | |
margin: 0 0 12px; | |
} | |
.gallery dl, .gallery dt { margin: 0; } | |
.gallery br+br { display: none; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment