Files
fvtt-oath-hammer/css/fvtt-oath-hammer.css
2026-03-07 17:19:40 +01:00

431 lines
9.3 KiB
CSS

@font-face {
font-family: "Sherwood";
src: url("../assets/fonts/Sherwood.otf") format("opentype"),
url("../assets/fonts/SHERWOOD.TTF") format("truetype"),
url("../assets/fonts/Sherwood.woff") format("woff");
}
@font-face {
font-family: "BlueDragon";
src: url("../assets/fonts/Blue Dragon.ttf") format("truetype");
}
:root {
--oh-font-primary: "Sherwood", "Palatino Linotype", serif;
--oh-font-secondary: "BlueDragon", "Palatino Linotype", serif;
--oh-font-body: "Calibri", "Segoe UI", sans-serif;
--oh-font-size: 0.82rem;
--oh-color-blue: #1a4a7a;
--oh-color-olive: #5a5a2a;
--oh-color-gold: #c8a84b;
--oh-color-dark: #2a1a0a;
--oh-color-paper: #f5ead0;
--oh-background-image: url("../assets/ui/oath_hammer_paper.webp");
--oh-logo: url("../assets/logos/official_logo_01.webp");
}
/* ======================== */
/* GLOBAL DIALOG STYLING */
/* ======================== */
.application.dialog.oathhammer {
font-family: var(--oh-font-primary);
font-size: var(--oh-font-size);
background-image: var(--oh-background-image);
}
/* ======================== */
/* ACTOR SHEET CONTENT */
/* ======================== */
.oathhammer .character-content,
.oathhammer .npc-content {
font-family: var(--oh-font-primary);
font-size: var(--oh-font-size);
color: var(--color-dark-1);
background-image: var(--oh-background-image);
background-repeat: no-repeat;
background-size: 100% 100%;
overflow: auto;
}
.oathhammer .character-content nav.tabs [data-tab],
.oathhammer .npc-content nav.tabs [data-tab] {
color: var(--oh-color-olive);
}
.oathhammer .character-content nav.tabs [data-tab].active,
.oathhammer .npc-content nav.tabs [data-tab].active {
color: var(--oh-color-blue);
}
.oathhammer .character-content input:disabled,
.oathhammer .character-content select:disabled,
.oathhammer .npc-content input:disabled,
.oathhammer .npc-content select:disabled {
background-color: rgba(0, 0, 0, 0.08);
border-color: transparent;
color: var(--color-dark-3);
}
.oathhammer .character-content input,
.oathhammer .character-content select,
.oathhammer .npc-content input,
.oathhammer .npc-content select {
height: 1.5rem;
background-color: rgba(255, 255, 255, 0.3);
border-color: var(--oh-color-blue);
color: var(--oh-color-dark);
}
.oathhammer .character-content input[name="name"],
.oathhammer .npc-content input[name="name"] {
height: 2.5rem;
font-family: var(--oh-font-secondary);
font-size: 1.2rem;
font-weight: bold;
border: none;
border-bottom: 2px solid var(--oh-color-blue);
background: transparent;
}
.oathhammer .character-content fieldset,
.oathhammer .npc-content fieldset {
margin-bottom: 4px;
border-radius: 4px;
border-color: var(--oh-color-olive);
}
.oathhammer .character-content legend,
.oathhammer .npc-content legend {
font-family: var(--oh-font-secondary);
font-size: calc(var(--oh-font-size) * 1.2);
font-weight: bold;
letter-spacing: 1px;
color: var(--oh-color-blue);
}
.oathhammer .character-content label,
.oathhammer .npc-content label {
font-family: var(--oh-font-secondary);
font-size: var(--oh-font-size);
color: var(--oh-color-dark);
}
/* ======================== */
/* CHARACTER MAIN SECTION */
/* ======================== */
.oathhammer .character-main {
display: flex;
flex-direction: column;
gap: 4px;
}
.oathhammer .character-main .character-pc {
display: flex;
gap: 10px;
flex: 1;
}
.oathhammer .character-main .character-left {
min-width: 180px;
max-width: 180px;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.oathhammer .character-main .character-portrait {
display: flex;
justify-content: center;
}
.oathhammer .actor-img {
height: 150px;
width: auto;
border: 2px solid var(--oh-color-blue);
border-radius: 4px;
cursor: pointer;
object-fit: cover;
}
.oathhammer .character-main .character-resource {
display: flex;
align-items: center;
gap: 4px;
margin-bottom: 2px;
}
.oathhammer .character-main .resource-label {
min-width: 3.5rem;
font-family: var(--oh-font-secondary);
font-size: calc(var(--oh-font-size) * 0.9);
}
.oathhammer .character-main .character-resource input {
min-width: 2.5rem;
max-width: 2.5rem;
text-align: center;
}
.oathhammer .character-main .character-right {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
.oathhammer .character-main .character-name {
display: flex;
align-items: center;
gap: 4px;
}
.oathhammer .character-main .character-name input {
flex: 1;
}
/* ======================== */
/* ATTRIBUTES GRID */
/* ======================== */
.oathhammer .attributes-grid {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 4px;
}
.oathhammer .attribute-box {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.oathhammer .attribute-box label {
font-family: var(--oh-font-secondary);
font-size: calc(var(--oh-font-size) * 0.85);
text-align: center;
}
.oathhammer .attribute-box input {
width: 2.5rem;
text-align: center;
font-size: calc(var(--oh-font-size) * 1.1);
}
/* ======================== */
/* CURRENCY BAR */
/* ======================== */
.oathhammer .currency-bar {
margin-top: 4px;
}
.oathhammer .currency-bar .currency-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
flex: 1;
}
.oathhammer .currency-bar .currency-item input {
width: 4rem;
text-align: center;
}
/* ======================== */
/* ITEM LISTS */
/* ======================== */
.oathhammer .item-list {
list-style: none;
margin: 0;
padding: 0;
}
.oathhammer .item-entry {
display: flex;
align-items: center;
gap: 6px;
padding: 3px 4px;
border-bottom: 1px solid rgba(90, 90, 42, 0.2);
}
.oathhammer .item-entry:hover {
background-color: rgba(26, 74, 122, 0.08);
}
.oathhammer .item-entry .item-img {
height: 24px;
width: 24px;
border: 1px solid var(--oh-color-olive);
border-radius: 2px;
object-fit: cover;
}
.oathhammer .item-entry .item-name {
flex: 1;
font-family: var(--oh-font-body);
font-size: var(--oh-font-size);
}
.oathhammer .item-entry .item-detail {
font-size: calc(var(--oh-font-size) * 0.9);
color: var(--oh-color-olive);
min-width: 4rem;
text-align: center;
}
.oathhammer .item-entry .item-type {
font-size: calc(var(--oh-font-size) * 0.85);
color: var(--oh-color-blue);
min-width: 6rem;
}
.oathhammer .item-entry a {
opacity: 0.6;
transition: opacity 0.2s;
}
.oathhammer .item-entry a:hover {
opacity: 1;
color: var(--oh-color-blue);
}
.oathhammer .no-items {
color: var(--color-dark-5);
font-style: italic;
font-size: calc(var(--oh-font-size) * 0.9);
padding: 4px;
}
.oathhammer .create-btn {
margin-left: 6px;
color: var(--oh-color-blue);
opacity: 0.7;
transition: opacity 0.2s;
}
.oathhammer .create-btn:hover {
opacity: 1;
}
/* ======================== */
/* BIODATA */
/* ======================== */
.oathhammer .biodata-col {
flex: 1;
display: flex;
flex-direction: column;
gap: 2px;
}
/* ======================== */
/* ITEM SHEET COMMON */
/* ======================== */
.oathhammer .item-sheet-common {
overflow: auto;
font-family: var(--oh-font-primary);
font-size: var(--oh-font-size);
background-image: var(--oh-background-image);
background-repeat: no-repeat;
background-size: 100% 100%;
}
.oathhammer .item-sheet-common .header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
padding-bottom: 4px;
border-bottom: 2px solid var(--oh-color-blue);
}
.oathhammer .item-sheet-common .item-img {
height: 52px;
width: 52px;
border: 2px solid var(--oh-color-olive);
border-radius: 4px;
cursor: pointer;
object-fit: cover;
}
.oathhammer .item-sheet-common .form-group {
display: flex;
flex: 1;
flex-direction: row;
align-items: center;
gap: 4px;
margin-bottom: 2px;
}
.oathhammer .item-sheet-common .form-group label {
font-family: var(--oh-font-secondary);
font-size: var(--oh-font-size);
min-width: 9rem;
max-width: 9rem;
}
.oathhammer .item-sheet-common .form-group select,
.oathhammer .item-sheet-common .form-group input {
text-align: left;
min-width: 10rem;
max-width: 12rem;
}
.oathhammer .item-sheet-common .align-top {
align-self: flex-start;
padding: 0.2rem;
min-width: 260px;
}
.oathhammer .item-sheet-common .shift-right {
margin-left: 2rem;
}
.oathhammer .item-sheet-common fieldset {
margin-top: 6px;
border-color: var(--oh-color-olive);
border-radius: 4px;
}
.oathhammer .item-sheet-common legend {
font-family: var(--oh-font-secondary);
font-size: calc(var(--oh-font-size) * 1.1);
font-weight: bold;
color: var(--oh-color-blue);
}
/* ======================== */
/* NPC SHEET */
/* ======================== */
.oathhammer .npc-main .npc-left {
min-width: 160px;
max-width: 160px;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.oathhammer .npc-main .npc-right {
flex: 1;
display: flex;
flex-direction: column;
gap: 4px;
}
/* ======================== */
/* DEFENSE DISPLAY */
/* ======================== */
.oathhammer .defense-display {
min-width: 3rem;
max-width: 3rem;
text-align: center;
font-weight: bold;
}
/* ======================== */
/* TABS */
/* ======================== */
.oathhammer .tab {
padding: 4px;
}