We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e656467 commit 82f13acCopy full SHA for 82f13ac
longest_streak/longest_streak.css
@@ -1,8 +1,14 @@
1
+:root {
2
+ --lines: 10;
3
+ --font-size-vh: calc(100vh / ((var(--lines) + 8) * 1.3));
4
+ --font-size-vw: 1.6vw;
5
+}
6
+
7
body {
8
background-color: black;
9
margin: 0;
10
font-family: 'Droid Sans Mono', monospace;
- font-size: min(1.6vw, 0.7vh);
11
+ font-size: min(var(--font-size-vh), var(--font-size-vw));
12
color: white;
13
}
14
longest_streak/longest_streak.js
@@ -69,6 +69,9 @@ function createContent() {
69
70
71
while (hasStreak);
72
73
+ const root = document.documentElement;
74
+ root.style.setProperty('--lines', price/1000);
75
76
77
function formatDays(longest) {
0 commit comments