Skip to content

Commit

Permalink
combine dark mode and light mode css
Browse files Browse the repository at this point in the history
fix kslambert#4
also contains kslambert#5
  • Loading branch information
arulagrawal committed Feb 25, 2023
1 parent ddae2b0 commit d60673a
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 326 deletions.
12 changes: 8 additions & 4 deletions content.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
/* This runs after a web page loads */
var getHeader = document.getElementsByTagName('head').item(0);
var header = document.getElementsByTagName('head').item(0);

// set the padding for the top bar
document.getElementById("hnmain").firstElementChild.firstElementChild.firstElementChild.setAttribute("style", "padding:16px");

//get font
var linkStyle = document.createElement("link");
var url = "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600;700&family=Press+Start+2P&display=swap";
linkStyle.href = url;
linkStyle.rel = 'stylesheet';
linkStyle.type = "text/css";
getHeader.appendChild(linkStyle);
linkStyle.type = "text/css";
header.appendChild(linkStyle);
283 changes: 0 additions & 283 deletions light-theme-style.css

This file was deleted.

Loading

0 comments on commit d60673a

Please sign in to comment.