Making images embedded in READMEs into block elements.
[gitweb-sgk] / static / gitweb.css
index 48cf972..44ce42b 100644 (file)
@@ -398,6 +398,8 @@ th .header {
 .readme tt, .readme code, .readme kbd, .readme samp {
   font-family: monospace;
   background-color: #eaeaea;
 .readme tt, .readme code, .readme kbd, .readme samp {
   font-family: monospace;
   background-color: #eaeaea;
+  white-space: pre-wrap;
+  word-break: keep-all;
 }
 
 .readme blockquote {
 }
 
 .readme blockquote {
@@ -407,6 +409,9 @@ th .header {
 .readme img {
   max-width: 100%;
   max-height: auto;
 .readme img {
   max-width: 100%;
   max-height: auto;
+  display: block;
+  margin-left: auto;
+  margin-right: auto;
 }
 
 .projects_list,
 }
 
 .projects_list,