Skip to content

Commit

Permalink
Use background-image on edit pencil so that it can be embedded in CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny2github committed Jan 4, 2021
1 parent 9d11cde commit c570dfc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 1 addition & 3 deletions ScratchWikiSkinTemplate.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,7 @@ public function execute() {
</form>
</li>
<li class="link right content-actions">
<a class="dropdown-toggle" href="?action=edit">
<img src="<?=$wgStylePath?>/ScratchWikiSkin2/resources/Edit-pencil.png" width="25" height="25" />
</a>
<a class="dropdown-toggle" href="?action=edit"></a>
<ul class="dropdown">
<?php foreach ($this->data['content_actions'] as $key => $tab) { ?>
<?=$this->makeListItem($key, $tab)?>
Expand Down
9 changes: 7 additions & 2 deletions resources/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,13 @@ dl dt {

#navigation ul>li.content-actions>a.dropdown-toggle {
height: 25px;
width: auto;
width: 25px;
padding: 12.5px;
/* @embed */
background-image: url('../Edit-pencil.png');
background-size: 25px 25px;
background-position: center;
background-repeat: no-repeat;
}

#lastmod {
Expand Down Expand Up @@ -890,4 +895,4 @@ dl dt {

#mw-input-wpscratchwikiskin-header-color {
font-family: monospace;
}
}

0 comments on commit c570dfc

Please sign in to comment.