Skip to content

Commit 3aca4c0

Browse files
committed
fix edit button style
1 parent 2870b09 commit 3aca4c0

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/_includes/sidebar/edit-tools.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div>
2-
<a href="https://github.com/segmentio/segment-docs/edit/master/src/{{ page.path }}" class="button button-hollow button-hollow--small button-hollow--gray button--xsmall flex" target="_blank">
2+
<a href="https://github.com/segmentio/segment-docs/edit/master/src/{{ page.path }}" class="button edit flex" target="_blank">
33
<span class="button__icon">{% include icons/symbols/edit.svg %}</span>
44

55
<span class="button__text">Edit this page</span>
66
</a>
77

8-
<a href="https://github.com/segmentio/segment-docs/issues/new?body=File:%20[{{ page.path }}](https://segment.com/docs/)" class="button button-hollow button-hollow--small button-hollow--gray button--xsmall" target="_blank">
8+
<a href="https://github.com/segmentio/segment-docs/issues/new?body=File:%20[{{ page.path }}](https://segment.com/docs/)" class="button edit" target="_blank">
99
<span class="button__icon">{% include icons/symbols/plus.svg %}</span>
1010

1111
<span class="button__text">Request docs change</span>

src/_sass/components/_button.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
border-radius: 4px;
1010
cursor: pointer;
1111

12-
@include breakpoint(medium up) {
12+
@include breakpoint(medium up) {
1313
padding: 8px 16px;
1414
}
1515

@@ -23,8 +23,8 @@
2323

2424
&__icon {
2525
vertical-align: middle;
26-
27-
& > svg {
26+
27+
&>svg {
2828
max-width: 12px;
2929
max-height: 12px;
3030
}
@@ -34,3 +34,9 @@
3434
width: 100%;
3535
}
3636
}
37+
38+
.edit {
39+
padding: 8px 0px;
40+
text-align: left;
41+
color: #8f95b2;
42+
}

0 commit comments

Comments
 (0)