Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ plate orange:nth-last-child(4)
.left-col {
width: calc(100% - 375px);
text-align: center;
transition: width .3s ease-in-out;
overflow-x: visible;
position: fixed;
top: 0;
Expand All @@ -948,6 +949,7 @@ plate orange:nth-last-child(4)

.right-col {
position: fixed;
transition: width .3s ease-in-out;
width: 375px;
right: 0;
/* overflow: auto;*/
Expand Down Expand Up @@ -1104,6 +1106,24 @@ plate orange:nth-last-child(4)
transform: rotate(-45deg);
}

.button-helper {
background: #2e2a23;
border-left: 3px solid #1B1813;
bottom: 0;
color: #1B1813;
font-size: 3em;
line-height: 1;
position: absolute;
text-align: center;
width: 100%;
}

.button-helper:hover {
background: #30291d;
color: #4e483c;
cursor: pointer;
}

.note {
padding: 20px;
width: 600px;
Expand Down Expand Up @@ -1327,7 +1347,7 @@ tag:after {
text-align: center;
text-decoration: none;
position: relative;
top: -20px;
top: -55px;
border: solid 2px rgba(255,255,255,.2);
box-sizing: border-box;
width: calc(100% - 40px);
Expand Down
23 changes: 23 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ <h2>Choose a level</h2>
<div class="level-menu-toggle"></div>
</div>

<div class="button-helper active">></div>

</div><!-- /right-col -->

<script>
Expand All @@ -181,6 +183,27 @@ <h2>Choose a level</h2>
} else {
var ga = false;
}

// Expandable side helper
$(".button-helper").click(function() {
var hDivs = $(".help-wrapper, .level-menu-toggle-wrapper, .level-menu");
var lCol = $(".left-col");
var rCol = $(".right-col");
var hButton = $(".button-helper");

if ( $(".button-helper.active").length == "1" ) {
rCol.css('width', '4%');
hDivs.hide();
lCol.css('width', '96%');
hButton.text('<');
} else {
rCol.css('width', '375px');
hDivs.show();
lCol.css('width', 'calc(100% - 375px)');
hButton.text('>');
}
hButton.toggleClass('active');
});
</script>

</body>
Expand Down