img: Add a margin around images displayed by this directive.
Particularly important for floating images, which could before be placed uncomfortably close to text.master
parent
527c169ab2
commit
f6db10df21
|
@ -156,6 +156,13 @@ sub preprocess (@) {
|
|||
$imgurl="$config{url}/$imglink";
|
||||
}
|
||||
|
||||
if (exists $params{class}) {
|
||||
$params{class}.=" img";
|
||||
}
|
||||
else {
|
||||
$params{class}="img";
|
||||
}
|
||||
|
||||
my $attrs='';
|
||||
foreach my $attr (qw{alt title class id hspace vspace}) {
|
||||
if (exists $params{$attr}) {
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
ikiwiki (3.20100705) UNRELEASED; urgency=low
|
||||
|
||||
* img: Add a margin around images displayed by this directive.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Mon, 05 Jul 2010 13:59:42 -0400
|
||||
|
||||
ikiwiki (3.20100704) unstable; urgency=low
|
||||
|
||||
* Changes to avoid display of ugly google openids, by displaying
|
||||
|
|
|
@ -91,6 +91,10 @@ nav {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
img.img {
|
||||
margin: 0.5ex;
|
||||
}
|
||||
|
||||
.align-left {
|
||||
float:left;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue