X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=score.css;h=5d032e8d5d5fda1bec835fa0b44d62fc6ca24bf3;hb=b9b7d06d27ca25abb92dd59efb7ae65096c7cd85;hp=5e353eeba9f8d1a5dac06a6542a620638993e6a8;hpb=20549a78e9eff4c94fb1b5c3229eaa5acfea0788;p=ultimatescore diff --git a/score.css b/score.css index 5e353ee..5d032e8 100644 --- a/score.css +++ b/score.css @@ -1,21 +1,21 @@ * { - -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; } /* Score */ @@ -26,51 +26,56 @@ body { top: 10px; border-collapse: collapse; white-space: nowrap; - border: 3px solid black; + border: 1px solid #ccc; z-index: 1; } .scorebug td { - border: 3px solid #008; + border: 1px solid #ccc; } .team1color, .team2color { - width: 15px; + width: 12px; margin: 5px; } .team1color { - background: red; + 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)); } .team2color { - background: green; + 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)); } .team1, .team2 { font-weight: bold; width: 100px; text-align: center; height: 35px; - background: #00a; + background: linear-gradient(to bottom, #fff, #eee); + padding-top: 2px; /* needs to be adjusted per-font! */ } .score { text-align: center; - background: #00c; + background: linear-gradient(to bottom, #fff, #eee); width: 110px; height: 35px; + padding-top: 2px; /* needs to be adjusted per-font! */ } /* Clock, to the right of score */ .clockbug { position: fixed; font-size: 25px; - left: 360px; + left: 352px; top: 10px; border-collapse: collapse; white-space: nowrap; - border: 3px solid black; + border: 1px solid #ccc; } .clock { - border: 3px solid #008; - background: #00a; + border: 1px solid #ccc; + background: linear-gradient(to bottom, #fff, #eee); text-align: center; - height: 35px; + height: 36px; + padding-top: 2px; width: 90px; } .clockbug-hidden { @@ -92,14 +97,14 @@ body { top: 52px; border-collapse: collapse; white-space: nowrap; - border: 3px solid black; + border: 1px solid #ccc; } .comment { - border: 3px solid #008; - background: #00a; + border: 1px solid #ccc; + background: linear-gradient(to bottom, #fff, #eee); text-align: center; height: 30px; - width: 340px; + width: 334px; } .commentbug-hidden { @@ -121,7 +126,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; @@ -129,6 +134,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; @@ -144,6 +152,7 @@ body { .lowerthird-headline-content { padding-left: 20px; position: absolute; + padding-top: 4px; /* needs to be adjusted per-font! */ } .lowerthird-headline-content-hidden { clip: rect(0px,0px,200px,0px); @@ -154,21 +163,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); @@ -180,10 +192,12 @@ body { -webkit-animation: scale-in-small 1.6s ease; width: 0px; border-left: 0px; + -webkit-animation-fill-mode: both; } .lowerthird-subheading-content { position: absolute; padding-left: 20px; + padding-top: 2px; /* needs to be adjusted per-font! */ } .lowerthird-subheading-content-hidden { width: 0px; @@ -196,8 +210,49 @@ body { -webkit-animation: wipe-in 2.2s ease; clip: rect(0px,0px,200px,0px); } +.lowerthird-picture { + position: fixed; + left: 1085px; + top: 490px; + white-space: nowrap; + border: 0px; + height: 170px; + width: 170px; + color: black; +} +.lowerthird-picture img { + height: 170px; + width: 170px; +} +.lowerthird-picture-hidden { + width: 0px; + border-left: 0px; + border-right: 0px; +} +.lowerthird-picture-animate-in { + -webkit-animation: scale-out 1.0s; +} +.lowerthird-picture-animate-out { + -webkit-animation: scale-in-no-border 1.0s; +} +.lowerthird-picture-content { + padding-left: 0px; + position: absolute; +} +.lowerthird-picture-content-hidden { + clip: rect(0px,0px,200px,0px); +} +.lowerthird-picture-content-animate-in { + -webkit-animation: wipe-out 2.0s ease; + -webkit-animation-delay: 0.3s; + -webkit-animation-fill-mode: both; +} +.lowerthird-picture-content-animate-out { + -webkit-animation: wipe-in 2.0s ease; + 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; @@ -209,11 +264,11 @@ body { #carousel { z-index: 3; position: fixed; - top: 250px; - font-size: 50px; + font-size: 45px; /* background: rgba(0, 0, 170, 0.8); */ background: transparent; - top: 20px; + top: 10px; + bottom: auto; left: 50px; right: 50px; width: 1180px; @@ -230,7 +285,7 @@ body { #carousel thead th { text-transform: none; text-align: center; - font-size: 50px; + font-size: 45px; -webkit-animation: fade-in 1.0s ease; -webkit-animation-delay: 0.0s; -webkit-animation-fill-mode: both; @@ -240,9 +295,12 @@ body { -webkit-animation-delay: 0.25s; -webkit-animation-fill-mode: both; } +#carousel tr.subfooter th { + font-size: 25px; +} #carousel tr { /* background: rgba(0, 0, 170, 0.8); */ - background: linear-gradient(to bottom, rgba(0, 0, 170, 0.8), rgba(0, 0, 130, 0.8)); + 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; } @@ -266,6 +324,39 @@ body { #carousel td.team { width: auto; } + +/* schedule */ +#carousel td.matchup { + padding-left: 0.7em; + width: auto; +} +#carousel td.group { + text-transform: none; +} +#carousel .streamtime { + text-align: center; + text-transform: none; +} + +/* roster */ +#carousel .playerpadding { + font-size: 25px; + background: rgba(0,0,0,0); +} +#carousel th.playernum, #carousel .playername { + font-size: 35px; +} +#carousel th.playernum { + text-align: center; + padding-right: 8px; + padding-left: 0px; margin-left: 0px; + width: 80px; +} +#carousel .playername { + text-transform: none; + width: auto; +} + .nplayed, .gd, .pts { text-align: center; } @@ -321,11 +412,19 @@ body { @-webkit-keyframes scale-in { 0% { width: 1050px; - border: 2px solid #ccc; + border: 1px solid #ccc; + } + 100% { + width: 0px; + border: 1px solid #ccc; + } +} +@-webkit-keyframes scale-in-no-border { + 0% { + width: 1050px; } 100% { width: 0px; - border: 2px solid #ccc; } } @-webkit-keyframes scale-out-small { @@ -338,20 +437,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; @@ -385,9 +484,17 @@ body { } @-webkit-keyframes fade-in { 0% { - opacity: 0.0001; + opacity: 0; } 100% { opacity: 1; } } +@-webkit-keyframes fade-out { + 0% { + opacity: 1; + } + 100% { + opacity: 0; + } +}