Skip to content

Commit

Permalink
Merge pull request #20 from GainTime/2.1.1
Browse files Browse the repository at this point in the history
2.1.1
  • Loading branch information
JP Rodrigues authored Apr 30, 2017
2 parents 01747f7 + 74dccb1 commit e125c0d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 12 deletions.
8 changes: 5 additions & 3 deletions build/js/gainTime.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
function makeA(a) {
a.addEventListener("click", function(e) {
var d = a.href.split("/");
var f = d[d.length - 1];
if (f.charAt(0) == '#') {
var file = d[d.length - 1];
f = file.split("#")[1];

if (f != undefined) {
e.preventDefault();
f = f.replace(/\#/g,"");
var target = document.getElementById(f);
Expand Down Expand Up @@ -58,7 +60,7 @@ function animate(elem, style, unit, from, to, time, prop) {
function menuToggle(a) {
var b = a.nextElementSibling;
a.addEventListener("click", function(c) {
c.stopPropagation(), a.checked = !a.checked, a.checked ? b.style.maxWidth = "400px" : b.style.removeProperty("max-width")
c.stopPropagation(), !b.style.maxWidth ? b.style.maxWidth = "400px" : b.style.removeProperty("max-width")
})
}

Expand Down
11 changes: 7 additions & 4 deletions build/sass/components/_dropdowns.sass
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,21 @@
margin: 15px 0
&.btn
&::after
right: -10px
bottom: +5px
right: -5px
& > *
display: inline-block
vertical-align: middle
&::after
content: ""
content: ""
display: inline-block
vertical-align: middle
padding: 0
padding: 3px
position: relative
border-bottom: 2px solid
border-left: 2px solid
margin: 5px 0px 8px 3px
+transform(rotate(-45deg))

a
text-decoration: none

Expand Down
19 changes: 14 additions & 5 deletions build/sass/layouts/_header.sass
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
top: 100%
+transition()

[class^=dropdown] ul
width: 100%

&:after
clear: both
content: ""
Expand Down Expand Up @@ -45,10 +42,22 @@
& > img, nav, ul, li
height: 100%

[class^=dropdown]
margin: 0 1px
%adjust-btn
margin: 0 1px!important
height: 100%

.drop
&up, &down
&-right, &-left
padding: 10px 8px
@extend %adjust-btn
ul
width: 100%

.btn
@extend %adjust-btn
padding: 6px 18px

nav
float: right
text-align: center
Expand Down

0 comments on commit e125c0d

Please sign in to comment.