Start trying to do overlay in CSS only

This commit is contained in:
Neale Pickett 2014-02-15 16:47:39 -07:00
parent c404968c6c
commit 2d13a91e62
3 changed files with 75 additions and 176 deletions

View File

@ -1,14 +1,14 @@
{ {
"appName": { "appName": {
"message": "Devel Roller Derby Scoreboard", "message": "Woozle Overlay Roller Derby Scoreboard",
"description": "Application name" "description": "Application name"
}, },
"appShortName": { "appShortName": {
"message": "Devel Scoreboard", "message": "Overlay Scoreboard",
"description": "Short application name" "description": "Short application name"
}, },
"appDesc": { "appDesc": {
"message": "Roller Derby Scoreboard for WFTDA, USARS, RDCL, MADE, and JRDA", "message": "Overlay Roller Derby Scoreboard for WFTDA, USARS, RDCL, MADE, and JRDA",
"description": "Application description for app store listing" "description": "Application description for app store listing"
}, },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -1,242 +1,141 @@
@font-face { @font-face {
font-family: 'Ubuntu'; font-family: Ubuntu;
src: url('Ubuntu-Medium.ttf'); src: url('Ubuntu-Medium.ttf');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
} }
@font-face { @font-face {
font-family: 'Ubuntu'; font-family: Ubuntu;
src: url('Ubuntu-Bold.ttf'); src: url('Ubuntu-Bold.ttf');
font-weight: bold; font-weight: bold;
font-style: normal; font-style: normal;
} }
body { body {
background: url(bg.jpg) #222; background: #000;
background-size: 100% auto; font-family: Ubuntu;
font-size: 160px; font-size: 160px;
color: #eee; color: white;
margin: 0; margin: 0;
} }
input {
font: inherit;
}
input[readonly] {
color: inherit;
background: inherit;
border: inherit;
}
#scoreboard { #scoreboard {
cursor: default; cursor: default;
font-family: Ubuntu, sans-serif;
} }
#scoreboard p {
margin: 0;
input {
border: 0px;
font: inherit;
background: transparent;
color: inherit;
width: 3em;
display: inline;
} }
#scoreboard *[id] {
cursor: pointer; .kitty, .img {
user-select: none; position: absolute;
left: -10000px;
} }
.team { .team {
width: 2em;
height: 100%;
text-align: center;
position: absolute; position: absolute;
top: 0; left: 0;
height: 1.3em;
width: 10em;
border-radius: 0.2em;
}
.team * {
position: relative;
top: -0.3em;
font-size: 145%;
font-weight: bold;
} }
#team-a { #team-a {
left: 0; top: 0;
} background: #6c6;
#team-b {
right: 0;
} }
#clocks { #team-b {
text-align: center; top: 50%;
background: #c44;
} }
.name { .name {
display: none; width: 3.5em;
text-align: right;
} }
.logo {
text-align: center; .score {
display: inline-block;
width: 2em;
text-align: right;
} }
.logo img {
max-width: 1.8em; .jammer {
max-height: 2em; color: #888;
display: none; opacity: 0.3;
} }
.logo input { .jammer.lead {
top: 30%; color: yellow;
font-size: 10pt; opacity: inherit;
vertical-align: top;
max-height: 15pt;
border: none;
}
.setup {
background: rgba(0, 255,0, 0.3);
} }
.timeouts { .timeouts {
position: absolute; margin-top: 4.8em;
font-size: 50%; font-size: 20%;
bottom: 1em;
color: #0f0;
}
#timeouts-a {
left: 0em;
}
#timeouts-b {
right: 0em;
} }
/* Jammer indicators */
#jammer-a, #jammer-b { #clocks * {
font-family: monospace;
position: absolute; position: absolute;
bottom: 0em; right: 0.1em;
color: #444; text-align: right;
}
#jammer-a.lead, #jammer-b.lead, #jamtext, #periodtext {
color: yellow;
}
#jammer-a {
left: 0.5em;
}
#jammer-b {
right: 0.5em;
} }
#jam, #period {
text-align: center;
font-weight: bold;
background: #000;
border-radius: 15px;
}
#period { #period {
position: absolute; top: -0.2em;
top: 0;
left: 50%;
width: 3.4em;
margin-left: -1.7em;
} }
#jam { #jam {
position: absolute; bottom: -0.2em;
bottom: 0em;
left: 50%;
width: 3.5em;
margin-left: -1.75em;
}
#jamtext, #periodtext, #preset {
text-align: center;
font-family: Ubuntu, sans-serif;
font-size: 75%;
padding: 0.2em;
position: absolute;
left: 50%;
width: 5em;
margin-left: -2.7em;
z-index: -1;
}
#periodtext {
top: 1.4em;
}
#preset {
top: 40%;
} }
#jamtext { #jamtext {
bottom: 1.4em; color: #cc0;
bottom: 0.1em;
right: 3em;
} }
#advert { #periodtext {
margin-top: 2.2em; color: #cc0;
max-height: 1em; top: 1.25em;
max-width: 5em; font-size: 80%;
} }
.score { #preset {
position: absolute; top: 1em;
font-size: 1.2em; right: 3em;
top: 50%;
margin-top: -0.6em;
}
#score-a {
left: 0em;
}
#score-b {
right: 0em;
} }
#jamno { #close {
color: #0f0; visibility: hidden;
position: absolute;
font-size: 50%;
bottom: 2.2em;
right: 25%;
} }
/* #notice {
* States timers can be in
*/
#jam.paused, #period.paused {
color: #aaf;
}
#jam.lowtime, #period.lowtime {
background: #f24;
}
#jam.timeout {
background: #044;
}
#jam.lineup {
background: #060;
}
#close, #prefs {
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; left: 0;
height: 16px;
width: 16px;
opacity: 0.5;
}
#prefs {
top: inherit;
bottom: 0;
}
/*
* Notices
*/
#notice {
display: none;
position: absolute;
bottom: 1.3em;
left: 50%;
width: 4em;
height: 3em;
margin-left: -2em;
text-align: center;
} }
#notice img { #notice img {
height: 100%; max-height: 3em;
} }