X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=score.css;h=a5b5d5b84c22b7b69fa3495de08761f2cfb2c5bb;hb=19c3289f1aa2a338f16efca9bb608e85a430a417;hp=664562e43972656bdbd6232cbe928f886701998a;hpb=52065441bb38f886238a5c50e3fdfe6f7d545f1e;p=ultimatescore diff --git a/score.css b/score.css index 664562e..a5b5d5b 100644 --- a/score.css +++ b/score.css @@ -1,21 +1,30 @@ * { - -webkit-box-sizing: border-box; - Box-Sizing: border-box; - -webkit-backface-visibility: hidden; - -webkit-transition: translate3d(0,0,0); + box-sizing: border-box; } -html, body { +body { width: 1280px; height: 720px; margin: 0; padding: 0; background: transparent; overflow: hidden; - -webkit-font-smoothing: antialiased !important; + + /* 720p -> 1080p */ + /* transform: scale(1.5); + transform-origin: top left; */ } body { - font-family: 'Lato', sans-serif; - color: white; + 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; +} + +#entire-bug { + transform: scale(0.8); + transform-origin: top left; } /* Score */ @@ -26,11 +35,23 @@ body { top: 10px; border-collapse: collapse; white-space: nowrap; - border: 1px solid black; + border: 1px solid #ccc; z-index: 1; } .scorebug td { - border: 1px solid #000; + border: 1px solid #ccc; +} +.scorebug2 { + /*top: 52px; */ + /* left: 22px; */ + left: 1275px; + top: 13px; + font-size: 20px; +} +#clockbug2 { + left: 1360px; + top: 13px; + font-size: 20px; } .team1color, .team2color { width: 12px; @@ -38,43 +59,59 @@ body { } .team1color { background-color: red; - background-image: linear-gradient(to right, rgba(0,0,0,0.2), rgba(0,0,0,0.05) 3px, rgba(0,0,0,0)); + 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(0,0,0,0.2), rgba(0,0,0,0.05) 3px, rgba(0,0,0,0)); + 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, #00a, #008); + 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); +} +#score2_team1, #score2_team2, #score2_score { + height: 30px; } .score { text-align: center; - background: linear-gradient(to bottom, #00c, #00a); + 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); } /* Clock, to the right of score */ -.clockbug { +.clockbug, .clockbug2 { position: fixed; font-size: 25px; left: 352px; top: 10px; border-collapse: collapse; white-space: nowrap; - border: 1px solid black; + border: 1px solid #ccc; } .clock { - border: 1px solid #000; - background: linear-gradient(to bottom, #00a, #008); + 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); + height: 30px; +} .clockbug-hidden { -webkit-transform:translateX(-200%); } @@ -94,11 +131,11 @@ body { top: 52px; border-collapse: collapse; white-space: nowrap; - border: 1px solid black; + border: 1px solid #ccc; } .comment { - border: 1px solid #000; - background: linear-gradient(to bottom, #00a, #008); + border: 1px solid #ccc; + background: linear-gradient(to bottom, #fff, #eee); text-align: center; height: 30px; width: 334px; @@ -123,7 +160,7 @@ body { top: 520px; border-collapse: collapse; white-space: nowrap; - border: 2px solid #ccc; + border: 1px solid #ccc; height: 118px; font-weight: bold; width: 1050px; @@ -131,6 +168,9 @@ body { background-image: url(lowerthird-bg.png); color: black; /* padding-top: 20px; */ + display: flex; + align-items: center; + vertical-align: middle; } .lowerthird-headline-hidden { width: 0px; @@ -146,6 +186,7 @@ body { .lowerthird-headline-content { padding-left: 20px; position: absolute; + padding-top: var(--main-padding-top-large-adjust); } .lowerthird-headline-content-hidden { clip: rect(0px,0px,200px,0px); @@ -156,21 +197,24 @@ body { .lowerthird-headline-content-animate-out { -webkit-animation: wipe-in 2.0s ease; clip: rect(0px,0px,200px,0px); + -webkit-animation-fill-mode: both; } .lowerthird-subheading { position: fixed; font-size: 24px; left: 40px; - top: 637px; + top: 638px; height: 40px; - width: 500px; + width: 600px; border-collapse: collapse; white-space: nowrap; - border: 1px solid black; + border: 1px solid #6ad; /*display: flex; align-items: center; */ /*background: linear-gradient(to right, #44c, #33a 15px); */ background-image: url(lowerthird-bg2.png); + display: flex; + align-items: center; } .lowerthird-subheading-hidden { clip: rect(0px,0px,200px,0px); @@ -187,6 +231,7 @@ body { .lowerthird-subheading-content { position: absolute; padding-left: 20px; + padding-top: var(--main-padding-top-adjust); } .lowerthird-subheading-content-hidden { width: 0px; @@ -209,6 +254,10 @@ body { width: 170px; color: black; } +.lowerthird-picture img { + height: 170px; + width: 170px; +} .lowerthird-picture-hidden { width: 0px; border-left: 0px; @@ -237,7 +286,7 @@ body { clip: rect(0px,0px,200px,0px); } -/* these are hidden when actually run in casparcg */ +/* these are hidden when actually run in Nageru */ #area { position: fixed; left: 0px; @@ -285,7 +334,7 @@ body { } #carousel tr { /* background: rgba(0, 0, 170, 0.8); */ - background: linear-gradient(to bottom, rgba(0, 0, 170, 0.9), rgba(0, 0, 130, 0.9)); + 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; } @@ -397,11 +446,11 @@ body { @-webkit-keyframes scale-in { 0% { width: 1050px; - border: 2px solid #ccc; + border: 1px solid #ccc; } 100% { width: 0px; - border: 2px solid #ccc; + border: 1px solid #ccc; } } @-webkit-keyframes scale-in-no-border { @@ -422,20 +471,20 @@ body { } 20% { width: 0px; - border: 1px solid black; + border: 1px solid #6ad; } 100% { - width: 500px; + width: 600px; } } @-webkit-keyframes scale-in-small { 0% { - width: 500px; - border: 1px solid black; + width: 600px; + border: 1px solid #6ad; } 80% { width: 0px; - border: 1px solid black; + border: 1px solid #6ad; } 80.01% { border: 0px;