Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 47b6dc2

Browse files
author
Jacob Müller
committed
fix(footer): Improve styleguide trigger positioning
1 parent 1673197 commit 47b6dc2

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

public/_includes/_footer.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@ else
5353

5454
footer(class="background-steel")
5555
small.text-caption Powered by Google ©2010-2016. Code licensed under an <a href="/license" class="text-snow">MIT-style License</a>. Documentation licensed under <a class="text-snow" href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
56-
a(aria-label="View Style Guide" href=styleguide title="Style Guide" class="styleguide-trigger text-snow" md-button)
56+
a(aria-label="View Style Guide" href=styleguide title="Style Guide" class="styleguide-trigger text-snow")
5757
span.icon-favorite

public/resources/css/module/_footer.scss

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,17 @@
9292
position: relative;
9393

9494
.styleguide-trigger {
95-
position: absolute;
96-
top: $unit * 2;
97-
right: $unit * 2;
98-
font-size: 14px;
99-
line-height: 20px;
100-
padding: 0px $unit;
10195
opacity: .24;
96+
float: right;
97+
98+
@media handheld and (max-width: $phone-breakpoint),
99+
screen and (max-device-width: $phone-breakpoint),
100+
screen and (max-width: $tablet-breakpoint) {
101+
display: block;
102+
margin-top: 8px;
103+
font-size: 18px;
104+
float: none;
105+
}
102106
}
103107
}
104-
}
108+
}

0 commit comments

Comments
 (0)