Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Sidebar bug fix - see release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven committed May 13, 2016
1 parent 5c4fe1c commit 954929f
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 6 deletions.
17 changes: 13 additions & 4 deletions Jolt/css/sidebar.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* --------------------------------------------------------
Jolt Topbar CSS File
Version: 1.1.0
Version: 1.2.1
Author: Steven Morrison
Website: jolt.zaffri.com
Expand Down Expand Up @@ -36,11 +36,19 @@
color: #fff;
}

#side-bar, #side-body {
#side-bar {
float: left;
}

#side-body {
float: right;
width: calc(100% - 330px); /* Full width */
}

#side-bar {
position: fixed;
top: 0;
left: 0;
width: 330px;
background: #070c10;
color: #a3a8a9;
Expand All @@ -54,8 +62,6 @@

@media (max-width: 950px) {
#side-bar {
position: fixed;
top: 0;
left: -330px;
-webkit-transition: left 1s ease-in;
-moz-transition: left 1s ease-in;
Expand All @@ -67,6 +73,9 @@
z-index: 9999;
left: 10px;
}
#side-body {
width: 100%;
}
}

#mobile-checkbox {
Expand Down
2 changes: 1 addition & 1 deletion Jolt/css/sidebar.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions Release-notes.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@

---- Jolt 1.2.1 ----

Fix: Sidebar now fixed position when body > viewport height.

--------------------


---- Jolt 1.2.0 ----

Update: Sidebar componenet created - topbar alternative menu.
Expand Down
9 changes: 8 additions & 1 deletion demos/demo-sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

<link rel="stylesheet" type="text/css" href="../jolt/css/global.min.css" />
<link rel="stylesheet" type="text/css" href="../jolt/css/sidebar.min.css" />

<!-- Styles for demo only -->
<style>
#side-body {
height: 2000px;
}
</style>

</head>
<body>
Expand Down Expand Up @@ -34,7 +41,7 @@ <h4>MENU</h4>
<!-- Sidebody -->
<section id="side-body">


test

</section>
<!-- End of Sidebody -->
Expand Down

0 comments on commit 954929f

Please sign in to comment.