Created
July 24, 2017 10:13
-
-
Save adamdawkins/65f869f9fce7358eaca63cd08794ccb7 to your computer and use it in GitHub Desktop.
Trello focus: something to paste into the console to hide all lists except the 'now' list.
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
function focus(label = 'Now') { | |
$(`[aria-label="${label}"]`).parent().parent().parent().attr('id', 'focus'); | |
$('.list-wrapper:not(#focus)').hide(); | |
$('#header').hide() | |
$('.board-header').hide(); | |
$('body').css({background: '#fff', fontSize: '18px'}); | |
$('.list').css({background: '#fff', maxWidth: '100%'}); | |
$('.list').css({background: '#fff', maxWidth: '100%'}); | |
$('.list-card').css({maxWidth: '100%', overflow: 'auto', opacity: .5, border: 'none' }); | |
$('.list-card:first-child').css({ fontSize: '45px', marginBottom: '70vh', marginTop: '10vh', opacity: 1 }); | |
$('.list-card-title').css({overflow: 'auto', lineHeight: 1.4}); | |
$('.list-card-details').css({overflow: 'auto', lineHeight: 1}); | |
$('.list-wrapper').css({width: '80vw', marginLeft: '10vw'}); | |
} | |
focus(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment