Improving the images
I have on site several kinds of images, but since I write my posts in Markdown, and I want to make use of its native features, the images created this way have no class. So I had to find a way to style these imgs.
First step, CSS:
img {
border-radius: 2px;
-webkit-box-shadow: #777 0 0 3px 1px;
-moz-box-shadow: #444 0 0 3px 1px; /* color, h-offset, v-offset, blur, spread */
box-shadow: #777 0 0 7px 0; /* inset is optional */
// This will center the images inside posts.
&:not([class]) {
margin: 0 auto;
display: table;
}
}But the problem here is with images that are wider than the article's width. Second step, jQuery:
