Skip to content

Instantly share code, notes, and snippets.

@nehalist
Created July 16, 2015 10:04
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 nehalist/92e7ecda068dc72fc2bb to your computer and use it in GitHub Desktop.
Save nehalist/92e7ecda068dc72fc2bb to your computer and use it in GitHub Desktop.
/*!
Theme Name: Boilerplate
Theme URI: http://nehalist.io
Version: 1.0.0
Text Domain: boilerplate
Author: Kevin Hirczy
Author URI: http://nehalist.io
Description: ...
Tags:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
/*
|----------------------------------------------------------
| Images
|----------------------------------------------------------
|
| from https://codex.wordpress.org/Styling_Images_in_Posts_and_Pages
|
*/
img { max-width: 100%; height: auto; }
img.alignright { float:right; margin:0 0 1em 1em; }
img.alignleft { float:left; margin:0 1em 1em 0; }
img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
a img.alignright { float:right; margin:0 0 1em 1em; }
a img.alignleft { float:left; margin:0 1em 1em 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
/*
|----------------------------------------------------------
| Image Captions
|----------------------------------------------------------
*/
.wp-caption-text {
color: #999;
font-size: 12px;
}
.wp-caption.alignright {
float: right;
}
.wp-caption.alignleft {
float: left;
}
.wp-caption .wp-caption-text {
text-align: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment