Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce responsibilities since responsiveness is not the package's con…
…cern
- Loading branch information
Stephen Lake
committed
Apr 9, 2019
1 parent
f55eebc
commit d16785f
Showing
13 changed files
with
37 additions
and
162 deletions.
There are no files selected for viewing
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,5 @@ | ||
.content { | ||
margin-left: auto; | ||
} | ||
|
||
.w-sidebar { | ||
z-index: 50; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
overflow: hidden; | ||
} | ||
|
||
@media (max-width: 992px) { | ||
.w-sidebar { | ||
z-index: 50; | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
} | ||
|
||
.w-sidebar.collapsed, .h-header.collapsed { | ||
left: -14rem; | ||
-webkit-transition: left 0.20s; | ||
-moz-transition: left 0.20s linear; | ||
-o-transition: left 0.20s linear; | ||
transition: left 0.20s linear; | ||
} | ||
|
||
.w-sidebar, .h-header { | ||
-webkit-transition: left 0.20s linear; | ||
-moz-transition: left 0.20s linear; | ||
-o-transition: left 0.20s linear; | ||
transition: left 0.20s linear; | ||
} | ||
|
||
.content .h-header.collapsed { | ||
left: 0; | ||
} | ||
|
||
.content { | ||
width: 100%; | ||
max-width: 100%; | ||
} | ||
|
||
.h-header i.fa.collapsed, .h-header i.fa.expanded { | ||
display: block; | ||
padding-right: 20px; | ||
} | ||
overflow: hidden; | ||
} |
0
resources/css/perfect-scrollbar.css → resources/css/perfectscrollbar.css
100644 → 100755
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
function calibrateWidths() { | ||
const sidebar = document.querySelector('.w-sidebar') | ||
const contentHeader = document.querySelector('.content .h-header') | ||
const content = document.querySelector('.content') | ||
|
||
sidebar.style = 'height: 100%' | ||
contentHeader.style.marginLeft = 0 | ||
contentHeader.style.width = '100%' | ||
content.style.marginLeft = `${sidebar.offsetWidth}px` | ||
content.style.width = '100%' | ||
content.style.maxWidth = '100%' | ||
|
||
document | ||
.querySelector('meta[name=viewport]') | ||
.setAttribute('content', 'width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0') | ||
} | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
calibrateWidths() | ||
}, false); | ||
|
||
window.onresize = function(event) { | ||
calibrateWidths() | ||
}; |
This file was deleted.
Oops, something went wrong.
9 changes: 4 additions & 5 deletions
9
resources/js/perfect-scrollbar.min.js → resources/js/perfectscrollbar.js
100644 → 100755
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters