Skip to content

Commit

Permalink
Update image_view_fullscreen.pt for mobile friendliness
Browse files Browse the repository at this point in the history
see plone/Products.CMFPlone#407

Google complains loudly about this template, and will deduct mobile karma points.

Also, using a different `viewport` meta directive than sunburst's default, for better accessibility.
See: plone/Products.CMFPlone#389
  • Loading branch information
fulv committed Mar 28, 2015
1 parent 6da9864 commit 4eff2ea
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -7,6 +7,7 @@
i18n:domain="plone">
<head>
<metal:block tal:define="dummy python:request.RESPONSE.setHeader('Content-Type', 'text/html;;charset=utf-8')" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title tal:content="context/Title">Title</title>
<style type="text/css" media="screen">
body {
Expand All @@ -17,6 +18,11 @@
padding:0;
margin:0;
}
@media screen and (max-width: 768px) {
body {
font-size: 100%;
}
}
a {
color: #08c;
text-decoration: none;
Expand All @@ -32,6 +38,7 @@
border: 0;
display:block;
margin:0 auto;
max-width: 100%; height: auto;
}
</style>
</head>
Expand Down

0 comments on commit 4eff2ea

Please sign in to comment.