]> git.sesse.net Git - ultimatescore/commitdiff
Move to Trøndisk again; this time using SASS to switch.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 11 Oct 2019 19:40:55 +0000 (21:40 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 11 Oct 2019 19:40:55 +0000 (21:40 +0200)
15 files changed:
generic/box-bg.png [moved from box-bg.png with 100% similarity]
generic/foul.png [moved from foul.png with 100% similarity]
generic/foul.svg [moved from foul.svg with 100% similarity]
generic/lowerthird-bg.png [moved from lowerthird-bg.png with 100% similarity]
generic/lowerthird-bg2.png [moved from lowerthird-bg2.png with 100% similarity]
generic/out.png [moved from out.png with 100% similarity]
generic/out.svg [moved from out.svg with 100% similarity]
generic/pick.png [moved from pick.png with 100% similarity]
generic/pick.svg [moved from pick.svg with 100% similarity]
generic/stall.png [moved from stall.png with 100% similarity]
generic/stall.svg [moved from stall.svg with 100% similarity]
generic/travel.png [moved from travel.png with 100% similarity]
generic/travel.svg [moved from travel.svg with 100% similarity]
score.html
score.scss [moved from score.css with 72% similarity]

similarity index 100%
rename from box-bg.png
rename to generic/box-bg.png
similarity index 100%
rename from foul.png
rename to generic/foul.png
similarity index 100%
rename from foul.svg
rename to generic/foul.svg
similarity index 100%
rename from lowerthird-bg.png
rename to generic/lowerthird-bg.png
similarity index 100%
rename from out.png
rename to generic/out.png
similarity index 100%
rename from out.svg
rename to generic/out.svg
similarity index 100%
rename from pick.png
rename to generic/pick.png
similarity index 100%
rename from pick.svg
rename to generic/pick.svg
similarity index 100%
rename from stall.png
rename to generic/stall.png
similarity index 100%
rename from stall.svg
rename to generic/stall.svg
similarity index 100%
rename from travel.png
rename to generic/travel.png
similarity index 100%
rename from travel.svg
rename to generic/travel.svg
index 08873cb89a4b1a85b2395e8b068db62bd7dd46f8..70d5889fd0af592128638770bd6abd8fab83942f 100644 (file)
@@ -4,6 +4,7 @@
    <meta http-equiv="content-type" value="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <link href="fonts/exo.css" rel="stylesheet">
+   <link href="fonts/lato.css" rel="stylesheet">
    <link href="score.css" rel="stylesheet">
   </head>
   <body>
similarity index 72%
rename from score.css
rename to score.scss
index a5b5d5b84c22b7b69fa3495de08761f2cfb2c5bb..f2d77d8e85f481a22459193a353da63256e7305f 100644 (file)
--- a/score.css
@@ -1,3 +1,5 @@
+$trondisk: true;
+
 * {
   box-sizing: border-box;
 }
@@ -14,12 +16,21 @@ body {
   transform-origin: top left; */
 }
 body {
-  font-family: 'Exo', sans-serif;
-  color: #222;
+  @if $trondisk {
+    font-family: 'Lato', sans-serif;
+    color: white;
+
+    /* Needs to be adjusted per-font! 2px/4px is a good choice for Exo. */
+    --main-padding-top-adjust: 4px;
+    --main-padding-top-large-adjust: 0px;
+  } @else {
+    font-family: 'Exo', sans-serif;
+    color: #222;
 
-  /* Needs to be adjusted per-font! 2px/4px is a good choice for Exo. */
-  --main-padding-top-adjust: 2px;
-  --main-padding-top-large-adjust: 4px;
+    /* Needs to be adjusted per-font! 2px/4px is a good choice for Exo. */
+    --main-padding-top-adjust: 2px;
+    --main-padding-top-large-adjust: 4px;
+  }
 }
 
 #entire-bug {
@@ -35,11 +46,19 @@ body {
   top: 10px;
   border-collapse: collapse;
   white-space: nowrap;
-  border: 1px solid #ccc;
+  @if $trondisk {
+    border: 1px solid black;
+  } @else {
+    border: 1px solid #ccc;
+  }
   z-index: 1;
 }
 .scorebug td {
-  border: 1px solid #ccc;
+  @if $trondisk {
+    border: 1px solid #000;
+  } @else {
+    border: 1px solid #ccc;
+  }
 }
 .scorebug2 {
   /*top: 52px; */
@@ -59,35 +78,59 @@ body {
 }
 .team1color {
   background-color: red;
-  background-image: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0.05) 3px, rgba(255,255,255,0));
+  @if $trondisk {
+    background-image: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0.05) 3px, rgba(0,0,0,0));
+  } @else {
+    background-image: linear-gradient(to right, rgba(255,255,255,0.2), rgba(255,255,255,0.05) 3px, rgba(255,255,255,0));
+  }
 }
 .team2color {
   background-color: green;
-  background-image: linear-gradient(to left, rgba(255,255,255,0.2), rgba(255,255,255,0.05) 3px, rgba(255,255,255,0));
+  @if $trondisk {
+    background-image: linear-gradient(to left, rgba(0,0,0,0.2), rgba(0,0,0,0.05) 3px, rgba(0,0,0,0));
+  } @else {
+    background-image: linear-gradient(to left, rgba(255,255,255,0.2), rgba(255,255,255,0.05) 3px, rgba(255,255,255,0));
+  }
 }
 .team1, .team2 {
   font-weight: bold;
   width: 100px;
   text-align: center;
   height: 35px;
-  background: linear-gradient(to bottom, #fff, #eee);
+  @if $trondisk {
+    background: linear-gradient(to bottom, #00a, #008);
+  } @else {
+    background: linear-gradient(to bottom, #fff, #eee);
+  }
   padding-top: var(--main-padding-top-adjust);
 }
 #score2_team1, #score2_team2 {
-  background: linear-gradient(to bottom, #fff8, #eee8);
+  @if $trondisk {
+    background: linear-gradient(to bottom, #00a8, #0088);
+  } @else {
+    background: linear-gradient(to bottom, #fff8, #eee8);
+  }
 }
 #score2_team1, #score2_team2, #score2_score {
   height: 30px;
 }
 .score {
   text-align: center;
-  background: linear-gradient(to bottom, #fff, #eee);
+  @if $trondisk {
+    background: linear-gradient(to bottom, #00c, #00a);
+  } @else {
+    background: linear-gradient(to bottom, #fff, #eee);
+  }
   width: 110px;
   height: 35px;
   padding-top: var(--main-padding-top-adjust);
 }
 #score2_score {
-  background: linear-gradient(to bottom, #fff8, #eee8);
+  @if $trondisk {
+    background: linear-gradient(to bottom, #00c8, #00a8);
+  } @else {
+    background: linear-gradient(to bottom, #fff8, #eee8);
+  }
 }
 
 /* Clock, to the right of score */
@@ -98,18 +141,31 @@ body {
   top: 10px;
   border-collapse: collapse;
   white-space: nowrap;
-  border: 1px solid #ccc;
+  @if $trondisk {
+    border: 1px solid black;
+  } @else {
+    border: 1px solid #ccc;
+  }
 }
 .clock {
-  border: 1px solid #ccc;
-  background: linear-gradient(to bottom, #fff, #eee);
+  @if $trondisk {
+    border: 1px solid #000;
+    background: linear-gradient(to bottom, #00a, #008);
+  } @else {
+    border: 1px solid #ccc;
+    background: linear-gradient(to bottom, #fff, #eee);
+  }
   text-align: center;
   height: 35px;
   padding-top: var(--main-padding-top-adjust);
   width: 90px;
 }
 #clock2 {
-  background: linear-gradient(to bottom, #fff8, #eee8);
+  @if $trondisk {
+    background: linear-gradient(to bottom, #00a8, #0088);
+  } @else {
+    background: linear-gradient(to bottom, #fff8, #eee8);
+  }
   height: 30px;
 }
 .clockbug-hidden {
@@ -131,11 +187,20 @@ body {
   top: 52px;
   border-collapse: collapse;
   white-space: nowrap;
-  border: 1px solid #ccc;
+  @if $trondisk {
+    border: 1px solid black;
+  } @else {
+    border: 1px solid #ccc;
+  }
 }
 .comment {
-  border: 1px solid #ccc;
-  background: linear-gradient(to bottom, #fff, #eee);
+  @if $trondisk {
+    border: 1px solid #000;
+    background: linear-gradient(to bottom, #00a, #008);
+  } @else {
+    border: 1px solid #ccc;
+    background: linear-gradient(to bottom, #fff, #eee);
+  }
   text-align: center;
   height: 30px;
   width: 334px;
@@ -160,12 +225,17 @@ body {
   top: 520px;
   border-collapse: collapse;
   white-space: nowrap;
-  border: 1px solid #ccc;
+  @if $trondisk {
+    border: 2px solid #ccc;
+    background-image: url(trondisk/lowerthird-bg.png);
+  } @else {
+    border: 1px solid #ccc;
+    background-image: url(generic/lowerthird-bg.png);
+  }
   height: 118px;
   font-weight: bold;
   width: 1050px;
   /*background: linear-gradient(to right, #ccc, #fff 15px); */
-  background-image: url(lowerthird-bg.png);
   color: black;
   /* padding-top: 20px; */
   display: flex;
@@ -208,11 +278,16 @@ body {
   width: 600px;
   border-collapse: collapse;
   white-space: nowrap;
-  border: 1px solid #6ad;
+  @if $trondisk {
+    border: 1px solid black;
+    background-image: url(trondisk/lowerthird-bg2.png);
+  } @else {
+    border: 1px solid #6ad;
+    background-image: url(generic/lowerthird-bg2.png);
+  }
   /*display: flex;
   align-items: center; */
   /*background: linear-gradient(to right, #44c, #33a 15px); */
-  background-image: url(lowerthird-bg2.png);
   display: flex;
   align-items: center;
 }
@@ -334,7 +409,11 @@ body {
 }
 #carousel tr {
   /* background: rgba(0, 0, 170, 0.8); */
-  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
+  @if $trondisk {
+    background: linear-gradient(to bottom, rgba(0, 0, 170, 0.9), rgba(0, 0, 130, 0.9));
+  } @else {
+    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
+  }
   /* -webkit-animation: fade-in calc(counter(rowNumber) * 1.0)s ease; */
   -webkit-animation: fade-in calc(counter-value(rowNumber) * 1.0s) ease;
 }
@@ -446,11 +525,19 @@ body {
 @-webkit-keyframes scale-in {
   0% {
     width: 1050px;
-    border: 1px solid #ccc;
+    @if $trondisk {
+      border: 2px solid #ccc;
+    } @else {
+      border: 1px solid #ccc; 
+    }
   }
   100% {
     width: 0px;
-    border: 1px solid #ccc;
+    @if $trondisk {
+      border: 2px solid #ccc;
+    } @else {
+      border: 1px solid #ccc; 
+    }
   }
 }
 @-webkit-keyframes scale-in-no-border {
@@ -471,7 +558,11 @@ body {
   }
   20% {
     width: 0px;
-    border: 1px solid #6ad;
+    @if $trondisk {
+      border: 1px solid black;
+    } @else {
+      border: 1px solid #6ad;
+    }
   }
   100% {
     width: 600px;
@@ -480,7 +571,11 @@ body {
 @-webkit-keyframes scale-in-small {
   0% {
     width: 600px;
-    border: 1px solid #6ad;
+    @if $trondisk {
+      border: 1px solid black;
+    } @else {
+      border: 1px solid #6ad;
+    }
   }
   80% {
     width: 0px;