Skip to content

Commit 3c932f9

Browse files
committed
minor style changes for gradient edit button in configuration panel
1 parent a280145 commit 3c932f9

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2921,7 +2921,7 @@ function populateEnabledGradients() {
29212921
elEnabledGradients.innerHTML +=
29222922
`<label>
29232923
<input type="checkbox" class="enabledGradient" data-grad="${key}" ${gradients[ key ].disabled ? '' : 'checked'}>
2924-
${gradients[ key ].name}<a href="#" data-grad="${key}" class="grad-edit-link">Edit</a>
2924+
${gradients[ key ].name}<a href="#" data-grad="${key}" class="grad-edit-link" title="edit"></a>
29252925
</label>`;
29262926
});
29272927

src/styles.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,19 +1665,25 @@ button.grad-add-stop:hover {
16651665
display: block;
16661666
}
16671667
.grad-edit-link {
1668-
background: var(--accent-color);
1668+
background: #aaa;
16691669
border-radius: 4px;
16701670
color: #fff;
16711671
display: none;
1672-
font-size: .9em;
1673-
padding: .7em 1.4em;
1672+
font-family: var(--icon-font);
1673+
font-size: 24px;
1674+
padding: .2em .6em;
16741675
position: absolute;
16751676
right: 0;
16761677
text-decoration: none;
1677-
text-transform: uppercase;
16781678
top: 50%;
16791679
transform: translateY(-50%);
16801680
}
1681+
.grad-edit-link:before {
1682+
content: 'edit';
1683+
}
1684+
.grad-edit-link:hover {
1685+
background: var(--accent-color);
1686+
}
16811687

16821688
/**
16831689
* Warp Tunnel effect

0 commit comments

Comments
 (0)