Remove split.js from the agent.

This commit is contained in:
Arpad Csanyi
2016-02-16 23:24:14 +01:00
parent d4172951d3
commit 7e22531ccd
3 changed files with 9 additions and 47 deletions

47
app.css
View File

@@ -1,44 +1,9 @@
/* * * * * * * * * * *
* Split js theming. *
* * * * * * * * * * */
html, body {
height: 100%;
}
body {
/* padding: 8px; */
margin: 0;
/*background-color: #F6F6F6;*/
box-sizing: border-box;
}
.split {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
overflow-y: auto;
overflow-x: hidden;
}
.content {
border: 1px solid #C0C0C0;
box-shadow: inset 0 1px 2px #e4e4e4;
background-color: #fff;
}
.gutter {
#sidebar-menu {
background-color: #eee;
background-repeat: no-repeat;
background-position: 50%;
}
.gutter.gutter-horizontal {
cursor: col-resize;
background-image: url('./images/grips/vertical.png');
}
.gutter.gutter-vertical {
cursor: row-resize;
background-image: url('./images/grips/horizontal.png');
}
.split.split-horizontal, .gutter.gutter-horizontal {
position: fixed;
overflow-y: scroll;
width: 250px;
height: 100%;
float: left;
}
#sidebar-menu ul {
@@ -50,6 +15,10 @@ body {
padding: 0;
}
#main-content {
margin-left: 250px;
}
.pane-title {
margin-bottom: 1em;
}

View File

@@ -12,7 +12,7 @@
</head>
<body>
<div id="sidebar-menu" class="split split-horizontal" style=""></div>
<div id="main-content" class="split split-horizontal container" style="">
<div id="main-content" class="split split-horizontal container-fluid" style="">
<div class="keymap keymap--qwerty">
<div class="row">
<h1 class="col-xs-12 pane-title">
@@ -55,7 +55,6 @@
<script type="text/javascript" src="./bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" src="bower_components/handlebars/handlebars.js"></script>
<script type="text/javascript" src="./bower_components/Split.js/split.js"></script>
<script type="text/javascript" src="bower_components/owl.carousel/dist/owl.carousel.js"></script>
<script type="text/javascript" src="./app.js"></script>

6
app.js
View File

@@ -1,10 +1,4 @@
$(function() {
Split(["#sidebar-menu", "#main-content"], {
gutterSize: 8,
sizes: [5, 95],
minSize: 250
});
// Handlebars template for Sidebar menu.
var sidebarMenuSource = $('#sidebar-menu--source').html();
var sidebarMenuTemplate = Handlebars.compile(sidebarMenuSource);