Skip to content

Instantly share code, notes, and snippets.

@s-hiroshi
Last active March 31, 2016 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s-hiroshi/504e3b0e2740b4085b03698bcc430f53 to your computer and use it in GitHub Desktop.
Save s-hiroshi/504e3b0e2740b4085b03698bcc430f53 to your computer and use it in GitHub Desktop.
WordPress投稿エディタでアップロードする画像の必須スタイルのCSSサンプルです。
/* -------------------------------------------------------------------
# WordPress required image style
------------------------------------------------------------------- */
/*
## image align
margin is set by $font-size base
*/
.aligncenter {
display: block;
margin: 0.5rem auto 2rem;
}
.alignright {
display: block;
float: right;
margin: 0.5rem 0 2rem 2rem;
}
.alignleft {
display: block;
float: left;
margin: 0.5rem 2rem 2rem 0;
}
.wp-caption {
margin-bottom: 2rem;
max-width: 100%;
}
.wp-caption-text {
margin: 0.5rem 0 !important;
padding: $font-size/4 !important;
font-size: 0.875rem;
line-height: 1.375rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment