Skip to content

Commit

Permalink
Creating changes to have correct coloring for tv.
Browse files Browse the repository at this point in the history
  • Loading branch information
renemadsen committed Mar 29, 2024
1 parent 7dfca21 commit bad96af
Show file tree
Hide file tree
Showing 5 changed files with 136 additions and 68 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ database/owlcms.mv.db
/logs/
/node_modules/
/.metadata/
/.moquette_uuid
/fly.toml
/.moquette_uuid
/fly.toml
.idea
mqttData
26 changes: 14 additions & 12 deletions owlcms/frontend/components/CurrentAthlete.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,20 @@ class CurrentAthlete extends LitElement {
</div>
<div class="attemptBar" style="${this.attemptBarStyles()}">
<div class="startNumber" style="${this.startNumberStyles()}"><span>${this.startNumber}</span> </div>
<div class="fullName ellipsis" style="${this.fullNameStyles()}" .innerHTML="${this.fullName}"></div>
<div class="clubName ellipsis" style="${this.teamNameStyles()}"><div class="clubNameEllipsis">${this.teamName}</div></div>
<div class="attempt" style="${this.attemptStyles()}"><span .innerHTML="${this.attempt}"></span></div>
<div class="weight" style="${this.weightStyles()}">
<span >${this.weight}<span style="font-size: 75%" >&nbsp;${this.t?.KgSymbol}</span></span>
</div>
<div class="timer athleteTimer" style="${this.athleteTimerStyles()}">
<timer-element id="timer"></timer-element>
</div>
<div class="timer breakTime" style="${this.breakTimerStyles()}">
<timer-element id="breakTimer"></timer-element>
<div class="bg">
<div class="startNumber" style="${this.startNumberStyles()}"><span>${this.startNumber}</span> </div>
<div class="fullName ellipsis" style="${this.fullNameStyles()}" .innerHTML="${this.fullName}"></div>
<div class="clubName ellipsis" style="${this.teamNameStyles()}"><div class="clubNameEllipsis">${this.teamName}</div></div>
<div class="attempt" style="${this.attemptStyles()}"><span .innerHTML="${this.attempt}"></span></div>
<div class="weight" style="${this.weightStyles()}">
<span >${this.weight}<span style="font-size: 75%" >&nbsp;${this.t?.KgSymbol}</span></span>
</div>
<div class="timer athleteTimer" style="${this.athleteTimerStyles()}">
<timer-element id="timer"></timer-element>
</div>
<div class="timer breakTime" style="${this.breakTimerStyles()}">
<timer-element id="breakTimer"></timer-element>
</div>
</div>
<div class="decisionBox" style="${this.decisionStyles()}">
<decision-element id="decisions" style="padding:1ex"></decision-element>
Expand Down
16 changes: 8 additions & 8 deletions shared/src/main/resources/css/grid/currentathlete.css
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ div > div.attemptBar > div.attempts > table > tr > td.totalRank {
justify-items: center;
}

.attemptBar .startNumber {
.attemptBar .bg .startNumber {
align-self: center;
}

.attemptBar .startNumber span {
.attemptBar .bg .startNumber span {
font-size: 70%;
font-weight: bold;
border-width: 0.2ex;
Expand All @@ -85,36 +85,36 @@ div > div.attemptBar > div.attempts > table > tr > td.totalRank {
grid-row: 1/1;
}

.attemptBar .fullName {
.attemptBar .bg .fullName {
font-size: 110%;
justify-self: left;
grid-column: 2/3;
}

.attemptBar .club {
.attemptBar .bg .club {
width: var(--club-width);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
grid-area: 3/4;
}

.attemptBar .attempt {
.attemptBar .bg .attempt {
grid-column: 4/5;
}

.attemptBar .weight {
.attemptBar .bg .weight {
color: var(--athleteAttemptWeightColor);
grid-column: 5/6
}

.attemptBar .timer {
.attemptBar .bg .timer {
font-weight: bold;
grid-column: 6/7;
grid-row: 1/2;
}

.attemptBar .decisionBox {
.attemptBar .bg .decisionBox {
width: 100%;
height: 100%;
background-color: var(--videoHeaderBackgroundColor);
Expand Down
18 changes: 9 additions & 9 deletions shared/src/main/resources/css/nogrid/currentathlete.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ div > div.attemptBar > div.attempts > table > tr > td.totalRank {
overflow: hidden;
}

.attemptBar {
.attemptBar .bg {
display: grid;
font-weight: bold;
font-size: var(--attemptBarFontSize);
Expand All @@ -67,11 +67,11 @@ div > div.attemptBar > div.attempts > table > tr > td.totalRank {
justify-items: center;
}

.attemptBar .startNumber {
.attemptBar .bg .startNumber {
align-self: center;
}

.attemptBar .startNumber span {
.attemptBar .bg .startNumber span {
font-size: 70%;
font-weight: bold;
border-width: 0.2ex;
Expand All @@ -85,36 +85,36 @@ div > div.attemptBar > div.attempts > table > tr > td.totalRank {
grid-row: 1/1;
}

.attemptBar .fullName {
.attemptBar .bg .fullName {
font-size: 110%;
justify-self: left;
grid-column: 2/3;
}

.attemptBar .club {
.attemptBar .bg .club {
width: var(--club-width);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
grid-area: 3/4;
}

.attemptBar .attempt {
.attemptBar .bg .attempt {
grid-column: 4/5;
}

.attemptBar .weight {
.attemptBar .bg .weight {
color: var(--athleteAttemptWeightColor);
grid-column: 5/6
}

.attemptBar .timer {
.attemptBar .bg .timer {
font-weight: bold;
grid-column: 6/7;
grid-row: 1/2;
}

.attemptBar .decisionBox {
.attemptBar .bg .decisionBox {
width: 100%;
height: 100%;
background-color: var(--videoHeaderBackgroundColor);
Expand Down
Loading

0 comments on commit bad96af

Please sign in to comment.