aboutsummaryrefslogtreecommitdiffstats
path: root/code/ui/phase/PhaseTimer.razor
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2023-07-31 14:50:32 +0100
committerLeonardo Bishop <me@leonardobishop.com>2023-07-31 14:50:32 +0100
commitf10546a60fce9439c3f3e6e726b11c2deb7cbdb2 (patch)
tree258370e3e7d29d8652945860fa86825c68cd5c8a /code/ui/phase/PhaseTimer.razor
parent5b3a48aa5f72806c8d9aa9d4747f159b64c6b0be (diff)
Tweak UI elements
Diffstat (limited to 'code/ui/phase/PhaseTimer.razor')
-rw-r--r--code/ui/phase/PhaseTimer.razor18
1 files changed, 8 insertions, 10 deletions
diff --git a/code/ui/phase/PhaseTimer.razor b/code/ui/phase/PhaseTimer.razor
index 9293976..73f44e2 100644
--- a/code/ui/phase/PhaseTimer.razor
+++ b/code/ui/phase/PhaseTimer.razor
@@ -16,26 +16,24 @@ phasetimer {
align-items: center;
}
.box {
- background-color: rgba(0, 0, 0, 0.20);
- backdrop-filter-blur: 8px;
- padding: 5px;
color: white;
font-weight: 700;
- font-size: 30px;
+ font-size: 25px;
font-family: "Roboto";
+ text-shadow: 1px 1px 0 0 rgba(0,0,0,0.75);
}
</style>
@if (HasTime())
{
-<div class="box">
+<smallbox class="box">
@GetTime()
-</div>
+</smallbox>
} else
{
-<div class="box">
+<smallbox class="box">
@GetPhase()
-</div>
+</smallbox>
}
@code
@@ -54,8 +52,8 @@ phasetimer {
return MurderGame.Instance.CurrentPhase.Title;
}
- protected override int BuildHash()
+ protected override int BuildHash()
{
- return HashCode.Combine(MurderGame.Instance.CurrentPhase.TimeLeft.GetHashCode(), MurderGame.Instance.CurrentPhase.Title.GetHashCode());
+ return HashCode.Combine(MurderGame.Instance.CurrentPhase.TimeLeft.GetHashCode(), MurderGame.Instance.CurrentPhase.Title.GetHashCode());
}
}