Files
RpgRoller/RpgRoller/wwwroot/styles.css

740 lines
12 KiB
CSS

:root {
--bg-top: #f7f0d8;
--bg-bottom: #ecdfc4;
--card: #fffaf0;
--card-border: #c3b28b;
--text: #2b2418;
--muted: #6a5b3f;
--accent: #385f3d;
--accent-2: #9a402b;
--warn: #b4681b;
--danger: #8f2323;
--focus: #1d3f72;
--public: #2d6645;
--private-self: #4f3a8f;
--private-gm: #915119;
}
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
min-height: 100%;
height: 100%;
}
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;
line-height: 1.4;
}
h1,
h2,
h3 {
font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
letter-spacing: 0.02em;
}
.rr-app {
max-width: 78rem;
margin: 0 auto;
padding: 1rem 1rem 4.5rem;
}
.rr-app.app-play {
height: 100dvh;
overflow: hidden;
padding-bottom: 1rem;
}
.loading-shell,
.auth-shell {
display: grid;
gap: 1rem;
max-width: 70rem;
margin: 0 auto;
}
.auth-subtitle {
margin-top: 0;
color: var(--muted);
}
.workspace-shell {
display: grid;
gap: 1rem;
}
.app-play .workspace-shell {
height: 100%;
min-height: 0;
grid-template-rows: auto auto minmax(0, 1fr);
}
.workspace-header {
position: sticky;
top: 0;
z-index: 10;
display: flex;
background: linear-gradient(120deg, #f1e4c9, #efe0bf);
border: 1px solid var(--card-border);
border-radius: 0.8rem;
padding: 0.5rem 0.7rem;
backdrop-filter: blur(6px);
}
.header-row {
display: flex;
align-items: center;
gap: 0.6rem;
width: 100%;
flex-wrap: wrap;
}
.header-row h1 {
margin: 0;
font-size: 1.15rem;
}
.header-identity,
.header-campaign {
margin: 0;
white-space: nowrap;
}
.header-campaign {
color: var(--muted);
}
.switch-group,
.header-actions,
.inline-actions {
display: flex;
gap: 0.45rem;
flex-wrap: wrap;
}
.card {
background: color-mix(in srgb, var(--card) 94%, #ffffff 6%);
border: 1px solid var(--card-border);
border-radius: 0.8rem;
padding: 0.7rem;
display: grid;
gap: 0.75rem;
}
.auth-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.form-grid {
display: grid;
gap: 0.35rem;
}
label {
font-weight: 600;
}
input,
select,
button {
font: inherit;
border-radius: 0.45rem;
border: 1px solid #8e7b57;
padding: 0.55rem 0.65rem;
}
input,
select {
background: #fffdf5;
color: var(--text);
}
button {
background: linear-gradient(180deg, var(--accent), #2f4f34);
color: #f8f7ef;
border-color: transparent;
cursor: pointer;
}
button.ghost {
background: transparent;
color: var(--text);
border-color: #8e7b57;
}
button.switch {
background: transparent;
color: var(--text);
border-color: #8e7b57;
}
button.switch.active {
background: var(--accent-2);
border-color: var(--accent-2);
color: #fff9ef;
}
button:disabled {
opacity: 0.55;
cursor: not-allowed;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
outline: 3px solid var(--focus);
outline-offset: 2px;
}
.status-message,
.form-error,
.field-error {
margin: 0;
}
.status-message {
font-weight: 700;
}
.status-message.success {
color: var(--public);
}
.status-message.error,
.form-error,
.field-error {
color: var(--danger);
}
.section-head {
display: flex;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
gap: 0.75rem;
}
.play-screen {
display: grid;
grid-template-columns: minmax(0, 2fr) minmax(19rem, 1fr);
gap: 1rem;
min-height: 0;
}
.app-play .play-screen {
height: 100%;
}
.app-play .play-screen > * {
min-height: 0;
}
.management-screen {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.character-picker {
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
}
.icon-tab {
display: grid;
place-items: center;
gap: 0.2rem;
min-width: 4.8rem;
padding: 0.45rem;
background: transparent;
color: var(--text);
border-color: #8e7b57;
}
.icon-tab.active {
background: linear-gradient(145deg, #e9d4a4, #d7b672);
border-color: #9e7328;
}
.icon-tab-glyph {
width: 2rem;
height: 2rem;
display: grid;
place-items: center;
border-radius: 50%;
border: 1px solid #8e7b57;
font-weight: 700;
}
.icon-tab-text {
font-size: 0.82rem;
}
.skills-section,
.last-roll {
border: 1px dashed #a89066;
border-radius: 0.65rem;
padding: 0.55rem;
display: grid;
gap: 0.45rem;
}
.app-play .character-panel {
overflow-y: auto;
overscroll-behavior: contain;
}
.log-panel {
min-height: 0;
}
.app-play .log-panel {
overflow-y: auto;
overscroll-behavior: contain;
}
.skill-list {
display: grid;
gap: 0.35rem;
}
.skill-item {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.6rem;
background: #f6ebd3;
color: var(--text);
border: 1px solid #b39f79;
border-radius: 0.5rem;
padding: 0.45rem 0.55rem;
}
.skill-details {
display: grid;
gap: 0.1rem;
min-width: 0;
}
.skill-details span {
color: var(--muted);
font-size: 0.88rem;
}
.skill-chip-actions {
display: flex;
align-items: center;
gap: 0.35rem;
}
.chip-button {
min-width: 2rem;
height: 2rem;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border-radius: 999px;
background: transparent;
color: var(--text);
border-color: #8e7b57;
}
.create-skill-item {
grid-template-columns: auto 1fr;
align-items: center;
justify-items: start;
background: #f9f2e2;
}
.skill-create-icon {
width: 1.45rem;
height: 1.45rem;
border: 1px solid #8e7b57;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 700;
}
.skills-heading {
margin: 0;
font-size: 1rem;
}
.chip-toolbar {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}
.visibility-control {
font-size: 0.85rem;
color: var(--muted);
}
.chip-toolbar select {
width: auto;
padding: 0.2rem 0.35rem;
}
.header-menu-wrap {
position: relative;
}
.menu-toggle {
background: transparent;
color: var(--text);
border-color: #8e7b57;
display: inline-flex;
gap: 0.4rem;
align-items: center;
}
.menu-toggle-label {
font-size: 0.9rem;
}
.screen-menu {
position: absolute;
right: 0;
top: calc(100% + 0.3rem);
z-index: 40;
min-width: 14.5rem;
padding: 0.35rem;
background: #fff8ea;
border: 1px solid var(--card-border);
border-radius: 0.55rem;
display: grid;
gap: 0.3rem;
box-shadow: 0 8px 16px rgba(34, 24, 9, 0.2);
}
.menu-item {
width: 100%;
text-align: left;
background: transparent;
color: var(--text);
border-color: #8e7b57;
}
.menu-item.active {
background: #ecd8ae;
border-color: #9a7f43;
}
.logout-link {
color: var(--accent-2);
font-weight: 700;
text-decoration: underline;
text-underline-offset: 2px;
}
.logout-link:hover {
color: #6b2419;
}
.logout-link:focus-visible {
outline: 3px solid var(--focus);
outline-offset: 2px;
}
.roll-total {
font-size: 1.8rem;
font-weight: 800;
margin: 0;
}
.roll-total.inline {
font-size: 1.2rem;
}
.roll-dice-strip {
display: flex;
flex-wrap: wrap;
gap: 0.35rem;
}
.die-chip {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.1rem;
height: 2.1rem;
border: 2px solid #2a2418;
border-radius: 0.45rem;
background: #ffffff;
color: #1f1a13;
font-size: 1.45rem;
font-weight: 700;
line-height: 1;
}
.die-chip.wild {
border-width: 3px;
border-color: #c79913;
}
.die-chip.crit {
background: #d8ffc2;
color: #18490f;
}
.die-chip.fumble {
background: #ffb5a8;
color: #661110;
}
.die-chip.added {
background: #dbffdf;
color: #206029;
}
.die-chip.removed {
background: #fde0dd;
color: #7f5f55;
border-style: dashed;
text-decoration: line-through;
}
.empty,
.muted {
color: var(--muted);
}
.log-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 0.5rem;
}
.log-entry {
border: 1px solid #b8a37b;
border-radius: 0.55rem;
padding: 0.5rem;
background: #f8f0de;
}
.log-entry.private-self {
border-color: #6252a8;
background: #ece7ff;
}
.log-entry.private-gm {
border-color: #9a5f1e;
background: #fff1db;
}
.log-meta {
display: flex;
justify-content: space-between;
gap: 0.5rem;
align-items: center;
}
.badge {
display: inline-flex;
border-radius: 999px;
font-size: 0.78rem;
padding: 0.18rem 0.45rem;
border: 1px solid transparent;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.badge.active {
border-color: #8f5f12;
background: #f6d28d;
color: #5d3808;
}
.badge.public {
background: #e1f2e3;
color: var(--public);
}
.badge.private-self {
background: #e8ddfb;
color: var(--private-self);
}
.badge.private-gm {
background: #f9e2be;
color: var(--private-gm);
}
.badge.private-generic {
background: #f4e8d4;
color: #6f5832;
}
.connection {
font-weight: 700;
margin: 0;
}
.connection.ok {
color: var(--public);
}
.connection.warn {
color: var(--warn);
}
.connection.offline {
color: var(--danger);
}
.skeleton-stack {
display: grid;
gap: 0.4rem;
}
.skeleton-line {
height: 0.85rem;
border-radius: 0.4rem;
background: linear-gradient(90deg, #dfd2b7, #efe3c9, #dfd2b7);
background-size: 220% 100%;
animation: shimmer 1.1s linear infinite;
}
.skeleton-line.short {
width: 65%;
}
.health-banner {
border: 1px solid #b77a29;
background: #fff2db;
border-radius: 0.75rem;
padding: 0.75rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.management-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 0.45rem;
}
.management-list li {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
border: 1px solid #b8a37b;
border-radius: 0.55rem;
padding: 0.5rem;
}
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(35, 25, 9, 0.55);
display: grid;
place-items: center;
z-index: 20;
padding: 1rem;
}
.modal-card {
width: min(32rem, 100%);
background: var(--card);
border: 1px solid var(--card-border);
border-radius: 0.85rem;
padding: 0.9rem;
display: grid;
gap: 0.65rem;
}
.mobile-bottom-nav {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 30;
padding: 0.55rem;
display: none;
gap: 0.45rem;
background: rgba(241, 228, 201, 0.96);
border-top: 1px solid var(--card-border);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
@keyframes shimmer {
from {
background-position: 220% 0;
}
to {
background-position: -220% 0;
}
}
@media (max-width: 1023px) {
.workspace-header {
position: static;
}
.play-screen {
grid-template-columns: 1fr;
}
.play-screen.mobile-log .character-panel {
display: none;
}
.play-screen.mobile-character .log-panel {
display: none;
}
.management-screen {
grid-template-columns: 1fr;
}
.auth-grid {
grid-template-columns: 1fr;
}
.header-row h1,
.header-identity,
.header-campaign {
white-space: normal;
}
.mobile-bottom-nav {
display: flex;
}
.rr-app.app-play {
padding-bottom: 4.25rem;
}
}