Created
December 31, 2015 13:14
-
-
Save lukaskollmer/ec6d0c8427b9ec651195 to your computer and use it in GitHub Desktop.
dotjs configuration for daringfireball to make the website nicer
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
$('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