Skip to content

Commit

Permalink
got rid of flex boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Chong committed Apr 9, 2016
1 parent b80fbdf commit 509c01f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 32 deletions.
48 changes: 23 additions & 25 deletions _layouts/sublime.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,33 @@

<body>
<div class="row expanded">
<nav id="treeMenu" class="shrink columns show-for-large">
<div style="position:fixed">
<h1>Brandon Chong</h1>
<ul id="collections" class="treeview">
<a href="{{site.url}}">
<li>Portfolio</li>
</a>
{% for collection in site.collections %}
<li>
{{collection.label}}
{% if collection.docs.length != 0 %}
<ul>
{% for doc in collection.docs %}
<a href="{{doc.permalink}}">
<li>{{doc.title}}</li>
</a>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</div>
<nav id="treeMenu" class="large-2 columns show-for-large" >
<h1>Brandon Chong</h1>
<ul id="collections" class="treeview">
<a href="{{site.url}}">
<li>Portfolio</li>
</a>
{% for collection in site.collections %}
<li>
{{collection.label}}
{% if collection.docs.length != 0 %}
<ul>
{% for doc in collection.docs %}
<a href="{{doc.permalink}}">
<li>{{doc.title}}</li>
</a>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
<main class="columns">
<main class="large-7 large-centered columns">
{{content}}
{% include footer.html %}
</main>
<aside id="minimap" class="shrink columns show-for-large" >
<aside id="minimap" class="large-2 columns show-for-large" >
</aside>
</div>
<!-- <script>$(document).foundation()</script> -->
Expand Down
4 changes: 2 additions & 2 deletions _sass/_sublime.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ body {
#treeMenu {
background-color: $monokai-gray-light;
color: $monokai-black;
// position:fixed;
// height:100%;
position:fixed;
height:100%;
}

h2,h3,h4,h5,h6 {
Expand Down
2 changes: 1 addition & 1 deletion css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"sublime"
;
html {
@include foundation-everything(true);
@include foundation-everything(false);
}
7 changes: 5 additions & 2 deletions js/sublime.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,13 @@
ddtreemenu.createTree("collections", false)
ddtreemenu.flatten('collections', 'expand')
$("#collections").css("padding-left", "5%")
$("#treeMenu").width($("#collections").width() * 1.2)
// $("#treeMenu").width($("#collections").width() * 1.2)
})();

// Sets up the mini map
(function () {
$('main').minimap()
// Only add minimap is needed
if ($("body").height() > $(window).height()) {
$('main').minimap()
}
})();
4 changes: 2 additions & 2 deletions libs/minimap/minimap.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ SOFTWARE.
cssRegion[settings.position] = offsetLeftRight + 'px';
region.css(cssRegion);

// Hack to make foundation grid responsive
$("#minimap").width(region.width() * 1.5)
// // Hack to make foundation grid responsive
// $("#minimap").width(region.width() * 1.5)
settings.onPreviewChange(miniElement, s);
};

Expand Down

0 comments on commit 509c01f

Please sign in to comment.