fix dark mode link color
This commit is contained in:
@@ -17,6 +17,7 @@ function setTheme () {
|
||||
$( '.nav-subitem' ).css( 'background-color', 'rgb(18, 18, 99)' );
|
||||
$( '.navitem' ).css( 'background-color', 'rgb(12, 12, 60)' );
|
||||
$( '.nav-container' ).css( 'background-color', 'rgb(0, 0, 100)' );
|
||||
$( '.docs-link' ).css( 'color', 'white' );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,16 +42,18 @@ function setPreferredTheme ( userTheme ) {
|
||||
function toggleDarkMode () {
|
||||
if ( theme == 'light' ) {
|
||||
$( '.content' ).animate( { 'background-color': 'rgb(46, 46, 46)' } );
|
||||
$( '.content' ).animate( { 'color': 'white' } );
|
||||
$( '.docs-link' ).animate( { 'color': 'white' } );
|
||||
$( '.top-container' ).animate( { 'background-color': 'rgb(100, 100, 100)' } );
|
||||
$( '.nav-subitem' ).animate( { 'background-color': 'rgb(18, 18, 99)' } );
|
||||
$( '.navitem' ).animate( { 'background-color': 'rgb(12, 12, 60)' } );
|
||||
$( '.nav-container' ).animate( { 'background-color': 'rgb(0, 0, 100)' } );
|
||||
$( '.content' ).animate( { 'color': 'white' } );
|
||||
document.getElementById( 'darkToggle' ).innerHTML = '☼';
|
||||
setPreferredTheme( 'dark' );
|
||||
} else {
|
||||
$( '.content' ).animate( { 'background-color': 'white' } );
|
||||
$( '.content' ).animate( { 'color': 'black' } );
|
||||
$( '.docs-link' ).animate( { 'color': 'blue' } );
|
||||
$( '.nav-subitem' ).animate( { 'background-color': 'rgb(27, 27, 165)' } );
|
||||
$( '.navitem' ).animate( { 'background-color': 'rgb(22, 22, 117)' } );
|
||||
$( '.nav-container' ).animate( { 'background-color': 'blue' } );
|
||||
|
||||
Reference in New Issue
Block a user