Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
fix: match to new CSS styles of web app for buttons
Browse files Browse the repository at this point in the history
fixes #95
  • Loading branch information
Mardaneus86 committed Dec 8, 2017
1 parent a51cf1a commit c6a3260
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 1 addition & 3 deletions app/club/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ class ClubInfo extends BaseScript {
setTimeout(() => {
if ($('.MyClubItemsSearchHeader').find('#download-club-info').length === 0) {
$('.MyClubItemsSearchHeader').append(`<span id="download-club-info">
<div role="button" class="btn btn-raised mini">
<span class="btn-text">Download player list</span><span class="btn-subtext invisible"></span>
</div>
<button class="standard mini">Download player list</button>
</span>`);
$('#download-club-info').click(async () => {
if (this._running) { return; }
Expand Down
7 changes: 4 additions & 3 deletions app/club/style/club-info.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#download-club-info {
.btn:before {
background-image: none;
width: 0;
button {
height: 2em;
line-height: 2em;
padding: 0 30px;
}

position: absolute;
Expand Down
4 changes: 2 additions & 2 deletions app/settings/html/index/settings.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<button class="futsettings-toggle btn btn-raised call-to-action">
<button class="futsettings-toggle standard mini call-to-action">
<span class="btn-text"></span>
</button>

<div class="futsettings">
<h1>FUT Tampermonkey settings</h1>

<!-- settings are injected here automatically -->
</div>
</div>
4 changes: 2 additions & 2 deletions app/settings/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.futsettings-toggle {
position: absolute;
position: absolute !important;
bottom: 20px;
right: 20px;
z-index: 999;
Expand Down Expand Up @@ -49,4 +49,4 @@
}
}
}
}
}
3 changes: 1 addition & 2 deletions app/transferlist/min-bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class MinBin extends BaseScript {
$(mutation.target).find('.DetailPanel ul').prepend(`<button id="searchMinBin" data-resource-id="${selectedItem.resourceId}" class="list"><span class="btn-text">Search minimum BIN ${price}</span><span class="btn-subtext"></span></button>`);

$('#searchMinBin').bind('click', async () => {
let btn = $('#searchMinBin');
const btn = $('#searchMinBin');
btn.find('.btn-text').html('Searching minimum BIN...');
const settings = this.getSettings();
const minimumBin = await new TransferMarket().searchMinBuy(selectedItem, parseInt(settings['mean-count'], 10));
Expand All @@ -85,7 +85,6 @@ class MinBin extends BaseScript {

selectedItem = this._getSelectedItem();

//btn = $('#searchMinBin');
if (btn.data('resource-id') === selectedItem.resourceId) {
btn.find('.btn-text').html(`Search minimum BIN (${minimumBin})`);

Expand Down

0 comments on commit c6a3260

Please sign in to comment.