Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Stylesheet change for images!

  • Loading branch information...
commit 775e2cf171cc5d9be44ced3e76b9a95d5262fe9b 1 parent e96b726
@xanmanning xanmanning authored
Showing with 3 additions and 1 deletion.
  1. +1 −1  git.php
  2. +2 −0  gitstyle.css
View
2  git.php
@@ -341,7 +341,7 @@ function html_blob($proj, $blob) {
echo $out;
} elseif($ext == "image") {
//echo "image";
- echo "<img src=\"" . sanitized_url() . "dl=image&p=" . $proj . "&b=" . $blob . "&n=" . $name . "\" />";
+ echo "<img src=\"" . sanitized_url() . "dl=image&p=" . $proj . "&b=" . $blob . "&n=" . $name . "\" id=\"image_blob\" />";
} else {
//echo "highlight";
$result = 0;
View
2  gitstyle.css
@@ -25,6 +25,8 @@ div#git-help > table td { padding: 5px 5px 5px 12px; }
div#git-description > table td { padding: 5px 5px 5px 12px; }
div#git-description > table { margin-top: 15px; }
div.gitbrowse > table td { padding: 5px 5px 5px 25px; }
+img#image_blob { max-width: 600px; height: auto; }
+img#image_blob { max-height: 600px; width: auto; }
tr:hover { background-color: #FFFFE1; }
div.gitbrowse a.blob { text-decoration: none; }
div.gitcode { padding: 10px; }
Please sign in to comment.
Something went wrong with that request. Please try again.