Skip to content

Commit 01e1dfe

Browse files
committed
edit docs button on large devices
1 parent 526601b commit 01e1dfe

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

_includes/docs.html

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
<br />
22
<br />
33
<section id="{{ include.id }}">
4-
<h2>{{ include.title }}</h2>
5-
<div>{{ include.content }}</div>
6-
<br>
7-
<a class="button" href="{{ include.editPath }}/{{ include.file }}">
4+
<a class="button edit-docs" href="{{ include.editPath }}/{{ include.file }}">
85
<i class="fa fa-pencil fa-fw"></i>
9-
<span class="network-name">
10-
Edit {{ include.title }} Docs
11-
</span>
6+
<span class="network-name">Edit</span>
127
</a>
8+
<h2>{{ include.title }}</h2>
9+
<div>{{ include.content }}</div>
1310
</section>

_sass/_custom.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,14 @@
66
.fa-2x:hover {
77
opacity: 0.85;
88
}
9+
10+
.edit-docs {
11+
float: right;
12+
}
13+
14+
/* Portrait */
15+
@media (max-width: 850px) {
16+
.edit-docs {
17+
display: none;
18+
}
19+
}

0 commit comments

Comments
 (0)