diff options
author | Jonas Smedegaard <dr@jones.dk> | 2014-05-01 22:38:40 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2014-05-01 22:38:40 +0200 |
commit | 1fda68141f313c3f4ce934941aa662ad91347e8d (patch) | |
tree | c4c75c627e817bdfaa1fc9b9ab78f01344039edb /local.scss | |
parent | 4f3acebd06521068c861192121098e2e8a0b3357 (diff) |
Image styling.
Diffstat (limited to 'local.scss')
-rw-r--r-- | local.scss | 56 |
1 files changed, 55 insertions, 1 deletions
@@ -102,9 +102,63 @@ a { padding: 0; } +// full width, alone (obviously) #content img { + margin: 0 0 1em; + width: 100%; + height: auto; +} + +// half width, left side +#content img.left { float: left; - margin: 0 25px 25px 0px; + margin: 0 0 1em 0; + width: 49%; + height: auto; +} + +// half width, right side +#content img.right { + float: right; + margin: 0 0 1em 0; + width: 49%; + height: auto; +} + +// half width, alone +#content img.tall { + margin: 0 50% 1em 0; + width: 50%; + height: auto; +} + +// less than half width, alone +#content img.verytall { + margin: 0 60% 1em 0; + width: 40%; + height: auto; +} + +// less than half width, two aside (but not text) +#content img.tiny { + margin: 0 1em 1em 0; + width: 40%; + height: auto; +} + +// varying width, text aside +#content img.aside { + float: left; + margin: 0 1em 1em 0; + width: inherit; + height: inherit; +} + +// varying width, alone +#content img.logo { + margin: 0 1em 1em 0; + width: inherit; + height: inherit; } .inlinepage { |