This commit is contained in:
2026-02-26 15:27:38 +01:00
parent 0cb41dd004
commit 59fe453297
4 changed files with 35 additions and 16 deletions

View File

@@ -8,6 +8,10 @@
<base href="/"/>
<title>RpgRoller</title>
<link rel="stylesheet" href="/styles.css"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700&family=Nunito:wght@400;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap" rel="stylesheet">
<HeadOutlet @rendermode="InteractiveServer"/>
</head>
<body>

View File

@@ -56,7 +56,7 @@
title="Edit character"
disabled="@(IsMutating || IsCreatingCampaign || !CanEditCharacter(character))"
@onclick="() => EditCharacterRequested.InvokeAsync(character)">
<span aria-hidden="true">✎</span>
<span aria-hidden="true" class="emoji">✏️</span>
<span class="sr-only">Edit @character.Name</span>
</button>
</li>

View File

@@ -38,7 +38,7 @@
title="Edit character"
disabled="@(IsMutating || !CanEditCharacter(SelectedCharacter))"
@onclick="() => EditCharacterRequested.InvokeAsync(SelectedCharacter)">
<span aria-hidden="true">✎</span>
<span aria-hidden="true" class="emoji">✏️</span>
<span class="sr-only">Edit character</span>
</button>
<h3 class="skills-heading">@SelectedCharacter.Name <span
@@ -73,7 +73,7 @@
title="Edit skill group"
disabled="@(IsMutating || !CanEditCharacter(SelectedCharacter))"
@onclick="() => OpenEditSkillGroupModal(group)">
<span aria-hidden="true">✎</span>
<span aria-hidden="true" class="emoji">✏️</span>
<span class="sr-only">Edit @group.Name</span>
</button>
<button
@@ -82,7 +82,7 @@
title="Delete skill group"
disabled="@(IsMutating || !CanEditCharacter(SelectedCharacter))"
@onclick="() => DeleteSkillGroupAsync(group.Id)">
<span aria-hidden="true">✕</span>
<span aria-hidden="true" class="emoji">🗑️</span>
<span class="sr-only">Delete @group.Name</span>
</button>
</div>
@@ -106,7 +106,7 @@
title="Edit skill"
disabled="@(IsMutating || !CanEditSkill(skill))"
@onclick="() => OpenEditSkillModal(skill)">
<span aria-hidden="true">✎</span>
<span aria-hidden="true" class="emoji">✏️</span>
<span class="sr-only">Edit @skill.Name</span>
</button>
<button
@@ -115,7 +115,7 @@
title="Roll skill"
disabled="@(IsMutating)"
@onclick="() => RollSkillAsync(skill.Id)">
<span aria-hidden="true">⚄</span>
<span aria-hidden="true" class="emoji">🎲</span>
<span class="sr-only">Roll @skill.Name</span>
</button>
<button
@@ -124,7 +124,7 @@
title="Delete skill"
disabled="@(IsMutating || !CanEditSkill(skill))"
@onclick="() => DeleteSkillAsync(skill.Id)">
<span aria-hidden="true">✕</span>
<span aria-hidden="true" class="emoji">🗑️</span>
<span class="sr-only">Delete @skill.Name</span>
</button>
</div>
@@ -164,7 +164,7 @@
title="Edit skill"
disabled="@(IsMutating || !CanEditSkill(skill))"
@onclick="() => OpenEditSkillModal(skill)">
<span aria-hidden="true">✎</span>
<span aria-hidden="true" class="emoji">✏️</span>
<span class="sr-only">Edit @skill.Name</span>
</button>
<button
@@ -173,7 +173,7 @@
title="Roll skill"
disabled="@(IsMutating)"
@onclick="() => RollSkillAsync(skill.Id)">
<span aria-hidden="true">⚄</span>
<span aria-hidden="true" class="emoji">🎲</span>
<span class="sr-only">Roll @skill.Name</span>
</button>
<button
@@ -182,7 +182,7 @@
title="Delete skill"
disabled="@(IsMutating || !CanEditSkill(skill))"
@onclick="() => DeleteSkillAsync(skill.Id)">
<span aria-hidden="true">✕</span>
<span aria-hidden="true" class="emoji">🗑️</span>
<span class="sr-only">Delete @skill.Name</span>
</button>
</div>

View File

@@ -1,6 +1,7 @@
:root {
--bg-top: #f7f0d8;
--bg-bottom: #ecdfc4;
--button-hover: #dccfb4;
--card: #fffaf0;
--card-border: #c3b28b;
--text: #2b2418;
@@ -30,14 +31,24 @@ body {
background: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.32), transparent 45%),
linear-gradient(165deg, var(--bg-top), var(--bg-bottom));
color: var(--text);
font-family: "Trebuchet MS", "Lucida Sans Unicode", "Segoe UI", sans-serif;
font-family:
"Baloo 2",
"Nunito",
"Segoe UI",
system-ui,
-apple-system,
sans-serif;
line-height: 1.4;
}
.emoji {
font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
text-shadow: 0 0 1px black;
}
h1,
h2,
h3 {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
letter-spacing: 0.02em;
}
@@ -354,9 +365,9 @@ select:focus-visible {
}
.skill-details {
display: grid;
gap: 0.1rem;
min-width: 0;
align-content: center;
}
.skill-details span {
@@ -380,7 +391,12 @@ select:focus-visible {
border-radius: 999px;
background: transparent;
color: var(--text);
border-color: #decbb7;
}
.chip-button:hover {
border-color: #8e7b57;
background: var(--button-hover);
}
.create-skill-item {
@@ -506,12 +522,12 @@ select:focus-visible {
justify-content: center;
width: 2.1rem;
height: 2.1rem;
padding-top: 4px;
border: 2px solid #2a2418;
border-radius: 0.45rem;
background: #ffffff;
color: #1f1a13;
font-size: 1.45rem;
font-weight: 700;
font-size: 2rem;
line-height: 1;
}
@@ -539,7 +555,6 @@ select:focus-visible {
background: #fde0dd;
color: #7f5f55;
border-style: dashed;
text-decoration: line-through;
}
.empty,