Commit cbcb1b1a authored by Bryan Tong's avatar Bryan Tong

Merge branch 'KadoWebWIP' into 'master'

Kado web wip

See merge request !49
parents 297ba7b5 600af79a
......@@ -64,3 +64,97 @@ blockquote>p { max-width: 100% !important;}
#copyright>.license { padding-bottom: 5px; }
#copyright>.conduct, #copyright>.license { font-size: 0.8em; }
#copyright>.license { color: #999; }
.wrapper {
}
.k-sidebar {
display: flex;
width: 100%;
align-items: stretch;
}
#sidebar {
width: 250px;
position: absolute;
padding: 0 2px 5px 15px;
height: 100vh;
z-index: 999;
background: #F1EDF3;
color: #7B79F9;
min-width: 250px;
max-width: 250px;
min-height: 100vh;
transition: all 0.3s;
}
#sidebar.active {
margin-left: -250px;
}
a[data-toggle="collapse"] {
position: relative;
}
.dropdown-toggle::after {
display: block;
position: absolute;
top: 50%;
right: 20px;
transform: translateY(-50%);
}
body {
font-family: 'Poppins', sans-serif;
background: #fafafa;
}
/*p {
font-family: 'Poppins', sans-serif;
font-size: 1.1em;
font-weight: 300;
line-height: 1.7em;
color:#7B79F9;
}*/
a, a:hover, a:focus {
color: inherit;
text-decoration: none;
transition: all 0.3s;
}
#sidebar .sidebar-header {
padding: 20px;
background: #F1EDF3;
}
#sidebar ul.components {
padding: 20px 0;
}
#sidebar ul p {
color: #7B79F9;
padding: 10px;
}
#sidebar ul li a {
padding: 10px;
font-size: 1.1em;
display: block;
}
#sidebar ul li a:hover {
color: #7B79F9;
background: #fff;
}
#sidebar ul li.active > a, a[aria-expanded="true"] {
color: #7B79F9;
background: #F1EDF3;
}
ul ul a {
font-size: 0.9em !important;
padding-left: 30px !important;
background: #F1EDF3;
}
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<!-- jQuery CDN - Slim version (=without AJAX) -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<!-- Popper.JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js" integrity="sha384-cs/chFZiN24E4KMATLdqdvsezGxaGsi4hLGOzlXwp5UZB1LY//20VyM2taTB4QvJ" crossorigin="anonymous"></script>
<!-- Bootstrap JS -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js" integrity="sha384-uefMccjFJAIv6A+rW+L4AHf99KvxDjWSu1z9VI8SKNVmz4sk7buKt/6v9KI65qnm" crossorigin="anonymous"></script>
<!-- jQuery Custom Scroller CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.concat.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@9.18.1/styles/darkula.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" integrity="sha384-9gVQ4dYFwwWSjIDZnLEWnxCjeSWFphJiwGPXr1jddIhOegiu1FwO5qRGvFXOdJZ4" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="style2.css"> -->
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/solid.js" integrity="sha384-tzzSw1/Vo+0N5UhStP3bvwWPq+uvzCMfrN1fEFe+xBmv1C/AtVX5K0uZtmcHitFZ" crossorigin="anonymous"></script>
<script defer src="https://use.fontawesome.com/releases/v5.0.13/js/fontawesome.js" integrity="sha384-6OIrr52G08NpOFSZdxxz1xdNSndlD4vdcf/q2myIUVO0VsqaGHJsB0RaBE01VTOY" crossorigin="anonymous"></script>
<!-- Scrollbar Custom CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/malihu-custom-scrollbar-plugin/3.1.5/jquery.mCustomScrollbar.min.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta charset="UTF-8">
<meta name="description" content="Kado is a collection of JavaScript libraries written against Node.js">
<meta name="keywords" content="ES6, Alternative to Express, JavaScript FrameWork, JavaScript, Route, Test,">
<meta name="author" content="Kado">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link type="text/css" rel="stylesheet" href="/css/style.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/highlight.js@9.18.1/styles/darkula.css">
{{#_pageTitle}}
{{#_pageTitle}}
<title>{{_pageTitle}} - {{_appTitle}}</title>
{{/_pageTitle}}
{{^_pageTitle}}
......
<!--<div class="wrapper">
<nav id="sidebar">
<ul class="list-unstyled components">
<li class="active">
<a href="#homeSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">Home</a>
<ul class="collapse list-unstyled" id="homeSubmenu">
<li><a href="/download/">Download</a></li>
<li><a href="/info/changelog/">Changelog</a></li>
<li><a href="/guide/introduction/">Introduction</a></li>
<li><a href="/info/about-us/">About Us</a></li>
<li><a href="/info/why-kado/">Why Kado</a></li>
<li><a href="/guide/quick-start">Quick Start</a></li>
</ul>
<a href="/download/">Download</a>
<a href="/info/changelog/">Changelog</a>
<a href="/guide/introduction/">Introduction</a>
<a href="/info/about-us/">About Us</a>
<a href="/info/why-kado/">Why Kado</a>
<a href="/guide/quick-start">Quick Start</a>
<br>
<h4>Documentation</h4>
<div>
<label style="text-indent: 10px;" for="versionSelect">Version:</label>
<form action="/setDocVersion" method="get" class="form-inline" id="versionForm">
<select name="version" id="versionSelect">
{{#docVersionSelectList}}
<option value="{{version}}" {{#selected}}selected="selected"{{/selected}}>{{version}}</option>
{{/docVersionSelectList}}
</select>
</form>
<script>
const selector = document.getElementById('versionSelect')
const form = document.getElementById('versionForm')
selector.addEventListener('change', () => { form.submit() })
</script>
</div>
</li>
<li>
<a href="#">About</a>
</li>
<br>
<h4>Articles</h4>
<li>
<a href="#pageSubmenu" data-toggle="collapse" aria-expanded="false" class="dropdown-toggle">Pages</a>
<ul class="collapse list-unstyled" id="pageSubmenu">
<li>
<a href="/download/">Download</a>
</li>
<li>
<a href="#">Page 2</a>
</li>
<li>
<a href="#">Page 3</a>
</li>
</ul>
</li>
<li>
<a href="#">Portfolio</a>
</li>
<li>
<a href="#">Contact</a>
</li>
</ul>
</nav>
<div id="content">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
</div>
</nav>
</div>
</div>
<button type="button" id="sidebarCollapse" class="btn btn-info">
<i class="fas fa-align-left"></i>
<span>Toggle Sidebar</span>
</button>
<div class="container-fluid">
<div class="sidebar-header">
<h3 style="background-color: white;"><span style="color: #7E5CFA;">{}</span><span style="color: black;">K</span><span style="color: #7E5CFA">ado</span></h3>
</div>
<button type="button" id="sidebarCollapse" class="btn btn-info">
<i class="fas fa-align-left"></i>
<span>Toggle Sidebar</span>
</button>
</div>
</nav>
</div>
</div> -->
<div id="sidebar">
<ul class="list-simple">
<li><a href="/">Home</a></li>
......@@ -25,4 +115,53 @@
</script>
</div>
{{>api}}
</div>
</div> -->
<script>
$(document).ready(function () {
$("#sidebar").mCustomScrollbar({
theme: "minimal"
});
$('#sidebarCollapse').on('click', function () {
$('#sidebar').toggleClass('active');
});
});
$(document).ready(function () {
$("#sidebar").mCustomScrollbar({
theme: "minimal"
});
$('#sidebarCollapse').on('click', function () {
// open or close navbar
$('#sidebar').toggleClass('active');
// close dropdowns
$('.collapse.in').toggleClass('in');
// and also adjust aria-expanded attributes we use for the open/closed arrows
// in our CSS
$('a[aria-expanded=true]').attr('aria-expanded', 'false');
});
});
</script>
<script>
$(document).ready(function () {
$("#sidebar").mCustomScrollbar({
theme: "minimal"
});
$('#sidebarCollapse').on('click', function () {
// open or close navbar
$('#sidebar').toggleClass('active');
// close dropdowns
$('.collapse.in').toggleClass('in');
// and also adjust aria-expanded attributes we use for the open/closed arrows
// in our CSS
$('a[aria-expanded=true]').attr('aria-expanded', 'false');
});
});
</script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment