Browse Source

style

master
TooMuchRAM 3 years ago
parent
commit
d7d8aa2265
  1. 2
      .idea/.gitignore
  2. 6
      .idea/vcs.xml
  3. 3
      script.ts
  4. 4
      style.css

2
.idea/.gitignore

@ -0,0 +1,2 @@
# Default ignored files
/workspace.xml

6
.idea/vcs.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>

3
script.ts

@ -56,10 +56,9 @@ class CountdownBuilder {
function setStyleOptions(weeks: number) {
if (weeks < 1) {
document.querySelector("body").style.backgroundImage = "url('bg.jpg')";
document.querySelector("p").style.color = "black";
let spans = document.querySelectorAll("span");
for (let i = 0; i < spans.length; i++) {
spans[i].style.color = "#222222";
spans[i].style.color = "#dddddd";
}
}
}

4
style.css

@ -1,4 +1,4 @@
@import url('https://fonts.googleapis.com/css?family=B612+Mono&display=swap');
@import url('https://toomuchram.net/fonts/helveticaneue.css');
body {
margin: auto;
@ -7,7 +7,7 @@ body {
flex-direction: column;
justify-content: center;
background-color: black;
font-family: 'B612 Mono', monospace;
font-family: 'HelveticaNeue Heavy', monospace;
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Do not repeat the image */
background-size: cover; /* Resize the background image to cover the entire container */

Loading…
Cancel
Save