Skip to content

Instantly share code, notes, and snippets.

@fadlee
Created July 25, 2013 23:39
Show Gist options
  • Save fadlee/6084792 to your computer and use it in GitHub Desktop.
Save fadlee/6084792 to your computer and use it in GitHub Desktop.
Wordpress basic article style
.article
blockquote
font-style: italic
table
border: 1px solid #e7e7e7
text-align: left
width: 100%
margin: 0 -1px 24px 0
tr th, thead th
color: #888
font-size: 12px
font-weight: 700
line-height: 18px
padding: 9px 24px
tr td
border-top: 1px solid #e7e7e7
padding: 6px 24px
tr.odd td
background: #f2f7fc
.alignnone
margin: 5px 1em 1em 0
.aligncenter, div.aligncenter
display: block
margin: 5px auto 1em auto
.alignright
float: right
margin: 5px 0 1em 1em
.alignleft
float: left
margin: 5px 1em 1em 0
.aligncenter
display: block
margin: 5px auto 5px auto
.size-full
width: 100%
height: auto
margin: 0 0 1em 0
a img.alignright
float: right
margin: 5px 0 1em 1em
a img.alignnone
margin: 5px 1em 1em 0
a img.alignleft
float: left
margin: 5px 1em 1em 0
a img.aligncenter
display: block
margin-left: auto
margin-right: auto
.wp-caption
text-align: center
max-width: 100%
color: #aaa
&.alignnone
margin: 5px 1em 1em 0
&.alignleft
margin: 5px 1em 1em 0
&.alignright
margin: 5px 0 1em 1em
img
border: 0 none
height: auto
margin: 0
padding: 0
width: auto
p.wp-caption-text
font-size: 0.9em
line-height: 1.3em
margin: 3px 0 0
padding: 0 4px 5px
img
max-width: 100%
height: auto !important
iframe
max-width: 100%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment