Skip to content

Commit

Permalink
Merge pull request #564 from jgeewax/permalink
Browse files Browse the repository at this point in the history
Fix #555 - Permalinks have larger click target.
  • Loading branch information
stephenplusplus committed May 8, 2015
2 parents 825772a + cb8317c commit 9de5d35
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 4 additions & 2 deletions docs/site/components/docs/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ <h2 ng-if="method.name[0].toUpperCase() === method.name[0]">
ng-if="method.name[0].toUpperCase() !== method.name[0]">
<a
class="permalink"
ng-href="{{activeUrl + '?method=' + method.name}}">#</a>
{{method.name}}
ng-href="{{activeUrl + '?method=' + method.name}}">
<span>#</span>
{{method.name}}
</a>
<span class="view-code-link" docs-code-link></span>
</h3>
<p ng-if="method.description" ng-bind-html="method.description"></p>
Expand Down
11 changes: 4 additions & 7 deletions docs/site/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -719,21 +719,18 @@ ul {
}

.permalink {
display: none;
position: absolute;
padding: 0 7px;
left: -24px;
text-decoration: none;
color: #2b70e2;
}

.permalink:hover {
color: #4285f4;
display: block;
}

.method-heading:hover .permalink {
display: block;
.permalink span {
position: absolute;
padding: 0 7px;
left: -24px;
}

.sub-heading {
Expand Down

0 comments on commit 9de5d35

Please sign in to comment.