forked from 20xd6/simple_blog
Update the pfp size CSS
Add a pfp-small class and adjust the pfp size to 50px by 50px.
This commit is contained in:
parent
a0e3de1200
commit
5cce4f0b0d
@ -45,7 +45,7 @@ if (file_exists($dir) && is_dir($dir) ) {
|
||||
$link_title = str_replace($_replace,'',$link_title);
|
||||
if (file_exists($file."/pfp.png")){
|
||||
$pfp_path = "$file/pfp.png";
|
||||
echo("<ul><li><img src=\"$pfp_path\" class=\"pfp\" name=\"$file pfp\"><a href='$file'> $link_title </a></li></ul>\n");//Output the result.
|
||||
echo("<ul><li><img src=\"$pfp_path\" class=\"pfp-small\" name=\"$file pfp\"><a href='$file'> $link_title </a></li></ul>\n");//Output the result.
|
||||
} else {
|
||||
echo("<ul><li><a href='$file'> $link_title </a></li></ul>\n");//Output the result.
|
||||
}
|
||||
|
@ -126,6 +126,14 @@ img.center_align{
|
||||
vertical-align:middle;
|
||||
}
|
||||
img.pfp {
|
||||
vertical-align: middle;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 25px;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
}
|
||||
img.pfp-small {
|
||||
vertical-align: middle;
|
||||
width: 25px;
|
||||
height: 25px;
|
||||
|
Loading…
x
Reference in New Issue
Block a user