refactor(css) mv style from js

This commit is contained in:
coderaiser 2013-12-24 10:42:41 +00:00
parent 48106b93d4
commit 11860f300a
2 changed files with 9 additions and 20 deletions

View file

@ -21,9 +21,14 @@
src: local('Droid Sans Mono'), local('DroidSansMono'), url('//themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff') format('woff');
}
html {
height: 100%;
}
body {
font:16px "Droid Sans Mono";
background-color:white;
height: 95%;
}
.fm, #left>li, #right>li, .path, .fm-header,
@ -183,6 +188,7 @@ body {
border: 1.5px solid;
border-color: rgb(49, 123, 249);
border-color: rgba(49, 123, 249, .40);
height: 90%;
}
.selected-panel {
@ -192,6 +198,7 @@ body {
.keyspanel {
text-align: center;
height: 10%;
}
.name {
@ -219,6 +226,7 @@ body {
margin: 0;
list-style-type: none;
cursor: default;
height: 95%;
}
a {

View file

@ -30,7 +30,7 @@
<button id=contact class=cmd-button>contact</button>
</div>
<script>
(function() {
!(function() {
'use strict';
var script,
@ -45,7 +45,6 @@
url = getJoinURL(files);
window.addEventListener('load', createScript);
setHeight();
function createScript() {
script = document.createElement('script');
@ -69,24 +68,6 @@
CloudCmd.init();
script.removeEventListener('load', scriptLoad);
}
function setHeight() {
var style, height;
/* устанавливаем размер высоты таблицы файлов
* исходя из размеров разрешения экрана
*/
height = screen.height;
height -= (height / 2.5);
style = document.createElement('style');
style.innerText = '.files {' +
'height:' + height +'px;' +
'}';
document.head.appendChild(style);
}
})();
</script>
</body>