Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Hide window controls for browser/embedded mode

  • Loading branch information...
commit ff5427138007713f02fc047eb1d4c0263d6c6a11 1 parent 5e5b331
Per Thulin authored
Showing with 6 additions and 1 deletion.
  1. +3 −0  main.css
  2. +2 −0  make.py
  3. +1 −1  template.html
3  main.css
View
@@ -181,6 +181,9 @@ body {
margin-right: 3px;
cursor: default;
}
+body.hide-window-controls #top .controls div {
+ display: none;
+}
#top .controls div {
margin-right: 3px;
vertical-align: top;
2  make.py
View
@@ -21,11 +21,13 @@
'chrome': {
'template_args': {
'storageScript': 'platforms/chrome/storage.js',
+ 'bodyClassNames': '',
}
},
'browser': {
'template_args': {
'storageScript': 'platforms/browser/storage.js',
+ 'bodyClassNames': 'hide-window-controls',
}
},
}
2  template.html
View
@@ -33,7 +33,7 @@
<script src="html.js" type="text/javascript" charset="utf-8"></script>
<script src="main.js" type="text/javascript" charset="utf-8"></script>
</head>
- <body>
+ <body class="$bodyClassNames">
<div class="blocker command-line">
</div>
<div class="blocker settings">
Please sign in to comment.
Something went wrong with that request. Please try again.