Skip to content

Instantly share code, notes, and snippets.

@lukaskollmer
Created December 31, 2015 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaskollmer/ec6d0c8427b9ec651195 to your computer and use it in GitHub Desktop.
Save lukaskollmer/ec6d0c8427b9ec651195 to your computer and use it in GitHub Desktop.
dotjs configuration for daringfireball to make the website nicer
$('body').css({
'background-color' : 'white',
'font-family' : 'Avenir-Roman',
'line-height' : '200%'
});
$('div').css({
'color' : 'black',
'font-size' : '110%'
});
$('a').css({
'font-family' : 'inherit',
'text-decoration' : 'none',
'color' : 'blue',
'background-color' : 'white',
'border-style' : 'none none none none'
});
$('div[id^=Box]').css({
'text-align' : 'justify'
});
$('div[id^=Main]').css({
'width' : '600'
});
$('a').on({
mouseenter: function() {
$(this).css({
'text-decoration' : 'underline'
});
},
mouseleave: function() {
$(this).css({
'text-decoration' : 'none'
});
}
});
$('linkedlist').css({
'color' : 'black'
});
$('p').css({
'color' : 'black',
'font-family' : 'inherit',
'font-size' : '110%',
'line-height' : '175%'
});
$('strong').css({
'font-family' : 'inherit'
});
// THE BANNER IMAGE
var alternativeImageHTML = '<a href="/" title="Daring Fireball: Home" style="text-decoration: none; color: blue; border-style: none; background-color: white;"><img src="https://dl.dropboxusercontent.com/s/apez8thkhypfd07/daringfireball_logo_dark.png" alt="Daring Fireball" height="56"></a>'
document.getElementById('Banner').innerHTML = alternativeImageHTML;
$('head').append('<style>#Banner img:hover { background-color: lightgray;}</style>');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment