-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from salcido/compact-artist-pages
Compact Artist Pages
- Loading branch information
Showing
17 changed files
with
186 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Smaller padding on facets | ||
div[class*="creditsFacetsContainer_"], | ||
div[class*="facetsContainer_"] { | ||
button[class*="facets_"] { | ||
p[class*="facet"] { | ||
padding: 10px 8px 10px 32px !important; | ||
} | ||
p[class*="subFacets_"] { | ||
padding-bottom: 0 !important; | ||
} | ||
} | ||
|
||
// Smaller font sizes on facets | ||
button[class*="superFacets_"] { | ||
p:first-of-type { | ||
font-size: 16px !important; | ||
} | ||
} | ||
button[class*="facets_"] { | ||
p[class*="facet_"] { | ||
font-size: 14px !important; | ||
} | ||
} | ||
} | ||
|
||
|
||
// Smaller images / padding on release rows | ||
table[class*="releases_"] { | ||
tr[class*="textWithCoversRow_"] { | ||
td { | ||
padding: .25em !important; | ||
} | ||
img, | ||
div[class*="fallback_"] { | ||
width: 50px !important; | ||
height: 50px !important; | ||
} | ||
} | ||
tr[class*="textOnlyRow_"] { | ||
td { | ||
padding: .25em !important; | ||
} | ||
|
||
button[class*="versionsButton_"] { | ||
margin-top: 4px !important; | ||
margin-bottom: 4px !important; | ||
} | ||
} | ||
} | ||
|
||
div[class*="releasesGrid_"] { | ||
tr[class*="textWithCoversRow_"] { | ||
grid-template-columns: 70px 2fr 1fr 1fr .7fr .3fr .5fr .5fr !important; | ||
|
||
button[class*="versionsButton_"] { | ||
margin-top: 4px !important; | ||
margin-bottom: 4px !important; | ||
} | ||
} | ||
div[class*="textWithCovers_"] { | ||
gap: 4px !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* | ||
* Discogs Enhancer | ||
* | ||
* @author: Matthew Salcido | ||
* @website: http://www.msalcido.com | ||
* @github: https://github.com/salcido | ||
* | ||
*/ | ||
|
||
(function () { | ||
|
||
let link = document.getElementById('compactArtistCss'); | ||
|
||
if ( link ) { link.disabled = !link.disabled; } | ||
}()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Compact Artist Pages | ||
*/ | ||
|
||
import { applySave, getTabId } from '../utils'; | ||
|
||
// ======================================================== | ||
// toggleCompactArtist | ||
// ======================================================== | ||
/** | ||
* Toggles the compact artist css on the Artist page | ||
* @method toggleCompactArtist | ||
* @param {Object} event [The event object] | ||
* @return {undefined} | ||
*/ | ||
export async function toggleCompactArtist(event) { | ||
|
||
let tabId = await getTabId(); | ||
|
||
chrome.scripting.executeScript({ | ||
target: {tabId: tabId}, | ||
files: ['js/extension/features/toggle-compact-artist.js'] | ||
}, () => { applySave(null, event); }); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters