From a18e0d360d255ce22555cdb62d4bc789366a4b29 Mon Sep 17 00:00:00 2001 From: matthew Date: Wed, 22 Nov 2023 14:11:55 +0000 Subject: Remove jQuery dependencies on cheatsheat --- cheatsheet/cheatsheet.html | 60 +++++++++++++++++++--------------------------- 1 file changed, 24 insertions(+), 36 deletions(-) (limited to 'cheatsheet') diff --git a/cheatsheet/cheatsheet.html b/cheatsheet/cheatsheet.html index 3aa3426..b090be6 100644 --- a/cheatsheet/cheatsheet.html +++ b/cheatsheet/cheatsheet.html @@ -19,8 +19,7 @@ - - + @@ -87,40 +86,29 @@ -- cgit v1.2.3 From 17a91f1da95b210d0f1f4988671e4d7d181f7b61 Mon Sep 17 00:00:00 2001 From: matthew Date: Wed, 22 Nov 2023 14:16:51 +0000 Subject: Added jump-to links --- cheatsheet/cheatsheet.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'cheatsheet') diff --git a/cheatsheet/cheatsheet.html b/cheatsheet/cheatsheet.html index b090be6..7e64e99 100644 --- a/cheatsheet/cheatsheet.html +++ b/cheatsheet/cheatsheet.html @@ -83,6 +83,8 @@ #downpdf{text-decoration: none;color:#aaaaaa;} #downpdf:hover{color:#444;} + + #fulldata p a {color:#0eefff; text-decoration: none;} @@ -56,6 +54,7 @@ #audio pre code{border:10px solid; border-color:#d3b157; background-color:#e5d7ae; } #structs pre code{border:10px solid; border-color:#d2c9c6; background-color:#f8f8ff;} #colors pre code{border:10px solid; border-color:#c6d2c6; background-color:#e9f1f2;} + #logo{width:128px; height:128px; float:left; position:relative; background-image:url(../common/img/raylib_logo.png);} #header{position:relative; height:110px; max-width: 1000px;} #title, #plinks, #version{position:relative; float:left; margin:0px; margin-left:10px; margin-top:10px;} @@ -86,6 +85,24 @@ #fulldata p a {color:#0eefff; text-decoration: none;} + /* for the tired programmers at night */ + .darkmode{background-color:#1e1e1e; color:#e1e1e1;} + .darkmode a{color:#e1e1e1;} + .darkmode #header{background-color:#1e1e1e; color:#e1e1e1;} + .darkmode #title{color:#e1e1e1;} + .darkmode #plinks{color:#e1e1e1;} + .darkmode #plinks a{color:#e1e1e1;} + .darkmode #plinks a:hover{color:#e1e1e1;} + .darkmode #version{color:#e1e1e1;} + .darkmode #pcore{color:#e1e1e1;} + .darkmode #pshapes{color:#e1e1e1;} + .darkmode #ptextures{color:#e1e1e1;} + .darkmode #ptext{color:#e1e1e1;} + .darkmode #pmodels{color:#e1e1e1;} + .darkmode #paudio{color:#e1e1e1;} + .darkmode #pstructs{color:#e1e1e1;} + .darkmode #pcolors{color:#e1e1e1;} + @media screen and (max-width: 1550px) { #fullgroup { grid-template-columns: auto; @@ -121,6 +138,10 @@ addModule('raylib_structs.c', '#structs pre code'); }); + function toggleDarkMode() { + document.body.classList.toggle("darkmode"); + } + -- cgit v1.2.3