Iteam cleanup + less migration
This commit is contained in:
135
less/actor-sheet.less
Normal file
135
less/actor-sheet.less
Normal file
@@ -0,0 +1,135 @@
|
||||
// ============================================================
|
||||
// ACTOR SHEET — Character layout, attributes, resources, etc.
|
||||
// ============================================================
|
||||
|
||||
.oathhammer {
|
||||
|
||||
.actor-img {
|
||||
height: @portrait-height;
|
||||
width: auto;
|
||||
border: 2px solid @color-blue;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.character-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
|
||||
.character-pc {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.character-left {
|
||||
min-width: @left-panel-width;
|
||||
max-width: @left-panel-width;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.character-portrait {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.character-resource {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-bottom: 2px;
|
||||
|
||||
input {
|
||||
min-width: 2.5rem;
|
||||
max-width: 2.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.resource-label {
|
||||
min-width: 3.5rem;
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-xs;
|
||||
}
|
||||
|
||||
.character-right {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.character-name {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
|
||||
input { flex: 1; }
|
||||
}
|
||||
}
|
||||
|
||||
// Attributes grid
|
||||
.attributes-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(6, 1fr);
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.attribute-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
|
||||
label {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-sm;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 2.5rem;
|
||||
text-align: center;
|
||||
font-size: @font-size-lg;
|
||||
}
|
||||
}
|
||||
|
||||
// Currency bar
|
||||
.currency-bar {
|
||||
margin-top: 4px;
|
||||
|
||||
.currency-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
flex: 1;
|
||||
|
||||
input {
|
||||
width: 4rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Biodata
|
||||
.biodata-col {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
// Defense display
|
||||
.defense-display {
|
||||
min-width: 3rem;
|
||||
max-width: 3rem;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
100
less/base.less
Normal file
100
less/base.less
Normal file
@@ -0,0 +1,100 @@
|
||||
// ============================================================
|
||||
// BASE — Fonts, :root CSS vars, global form elements
|
||||
// ============================================================
|
||||
|
||||
@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: @font-primary;
|
||||
--oh-font-secondary: @font-secondary;
|
||||
--oh-font-body: @font-body;
|
||||
--oh-font-size: @font-size-base;
|
||||
--oh-color-blue: @color-blue;
|
||||
--oh-color-olive: @color-olive;
|
||||
--oh-color-gold: @color-gold;
|
||||
--oh-color-dark: @color-dark;
|
||||
--oh-color-paper: @color-paper;
|
||||
--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: @font-primary;
|
||||
font-size: @font-size-base;
|
||||
.sheet-background();
|
||||
}
|
||||
|
||||
// Shared actor content base
|
||||
.oathhammer .character-content,
|
||||
.oathhammer .npc-content {
|
||||
font-family: @font-primary;
|
||||
font-size: @font-size-base;
|
||||
color: var(--color-dark-1);
|
||||
.sheet-background();
|
||||
overflow: auto;
|
||||
|
||||
nav.tabs [data-tab] {
|
||||
color: @color-olive;
|
||||
&.active { color: @color-blue; }
|
||||
}
|
||||
|
||||
input:disabled,
|
||||
select:disabled {
|
||||
background-color: @color-disabled-bg;
|
||||
border-color: transparent;
|
||||
color: var(--color-dark-3);
|
||||
}
|
||||
|
||||
input,
|
||||
select {
|
||||
height: 1.5rem;
|
||||
background-color: @color-input-bg;
|
||||
border-color: @color-blue;
|
||||
color: @color-dark;
|
||||
}
|
||||
|
||||
input[name="name"] {
|
||||
height: 2.5rem;
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-xl;
|
||||
font-weight: bold;
|
||||
border: none;
|
||||
border-bottom: 2px solid @color-blue;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin-bottom: 4px;
|
||||
border-radius: 4px;
|
||||
border-color: @color-olive;
|
||||
}
|
||||
|
||||
legend {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-lg;
|
||||
font-weight: bold;
|
||||
letter-spacing: 1px;
|
||||
color: @color-blue;
|
||||
}
|
||||
|
||||
label {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-base;
|
||||
color: @color-dark;
|
||||
}
|
||||
}
|
||||
|
||||
// Shared tab padding
|
||||
.oathhammer .tab {
|
||||
padding: 4px;
|
||||
}
|
||||
10
less/fvtt-oath-hammer.less
Normal file
10
less/fvtt-oath-hammer.less
Normal file
@@ -0,0 +1,10 @@
|
||||
// ============================================================
|
||||
// OATH HAMMER — Main LESS entry point
|
||||
// ============================================================
|
||||
|
||||
@import "variables";
|
||||
@import "base";
|
||||
@import "actor-sheet";
|
||||
@import "npc-sheet";
|
||||
@import "item-list";
|
||||
@import "item-sheets";
|
||||
67
less/item-list.less
Normal file
67
less/item-list.less
Normal file
@@ -0,0 +1,67 @@
|
||||
// ============================================================
|
||||
// ITEM LIST — Used in actor sheet tabs (weapons, spells, etc.)
|
||||
// ============================================================
|
||||
|
||||
.oathhammer {
|
||||
|
||||
.item-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.item-entry {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 3px 4px;
|
||||
border-bottom: 1px solid @color-olive-faint;
|
||||
|
||||
&:hover { background-color: @color-blue-hover; }
|
||||
|
||||
.item-img {
|
||||
height: @item-img-size;
|
||||
width: @item-img-size;
|
||||
border: 1px solid @color-olive;
|
||||
border-radius: 2px;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.item-name {
|
||||
flex: 1;
|
||||
font-family: @font-body;
|
||||
font-size: @font-size-base;
|
||||
}
|
||||
|
||||
.item-detail {
|
||||
font-size: @font-size-xs;
|
||||
color: @color-olive;
|
||||
min-width: 4rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.item-type {
|
||||
font-size: @font-size-sm;
|
||||
color: @color-blue;
|
||||
min-width: 6rem;
|
||||
}
|
||||
|
||||
a {
|
||||
.transition-opacity();
|
||||
&:hover { color: @color-blue; }
|
||||
}
|
||||
}
|
||||
|
||||
.no-items {
|
||||
color: var(--color-dark-5);
|
||||
font-style: italic;
|
||||
font-size: @font-size-xs;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.create-btn {
|
||||
margin-left: 6px;
|
||||
color: @color-blue;
|
||||
.transition-opacity();
|
||||
}
|
||||
}
|
||||
74
less/item-sheets.less
Normal file
74
less/item-sheets.less
Normal file
@@ -0,0 +1,74 @@
|
||||
// ============================================================
|
||||
// ITEM SHEETS — Shared item sheet layout (all item types)
|
||||
// ============================================================
|
||||
|
||||
.oathhammer .item-sheet-common {
|
||||
overflow: auto;
|
||||
font-family: @font-primary;
|
||||
font-size: @font-size-base;
|
||||
.sheet-background();
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 8px;
|
||||
padding-bottom: 4px;
|
||||
border-bottom: 2px solid @color-blue;
|
||||
}
|
||||
|
||||
.item-img {
|
||||
height: @item-sheet-img;
|
||||
width: @item-sheet-img;
|
||||
border: 2px solid @color-olive;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-bottom: 2px;
|
||||
|
||||
label {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-base;
|
||||
min-width: @label-min-width;
|
||||
max-width: @label-min-width;
|
||||
}
|
||||
|
||||
select,
|
||||
input {
|
||||
text-align: left;
|
||||
min-width: @input-min-width;
|
||||
max-width: @input-max-width;
|
||||
}
|
||||
}
|
||||
|
||||
.align-top {
|
||||
align-self: flex-start;
|
||||
padding: 0.2rem;
|
||||
min-width: 260px;
|
||||
}
|
||||
|
||||
.shift-right {
|
||||
margin-left: 2rem;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
margin-top: 6px;
|
||||
border-color: @color-olive;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
legend {
|
||||
font-family: @font-secondary;
|
||||
font-size: @font-size-lg;
|
||||
font-weight: bold;
|
||||
color: @color-blue;
|
||||
}
|
||||
}
|
||||
22
less/npc-sheet.less
Normal file
22
less/npc-sheet.less
Normal file
@@ -0,0 +1,22 @@
|
||||
// ============================================================
|
||||
// NPC SHEET — NPC-specific layout
|
||||
// ============================================================
|
||||
|
||||
.oathhammer .npc-main {
|
||||
|
||||
.npc-left {
|
||||
min-width: @npc-left-width;
|
||||
max-width: @npc-left-width;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.npc-right {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
}
|
||||
51
less/variables.less
Normal file
51
less/variables.less
Normal file
@@ -0,0 +1,51 @@
|
||||
// ============================================================
|
||||
// VARIABLES — Oath Hammer LESS
|
||||
// ============================================================
|
||||
|
||||
// Fonts
|
||||
@font-primary: "Sherwood", "Palatino Linotype", serif;
|
||||
@font-secondary: "BlueDragon", "Palatino Linotype", serif;
|
||||
@font-body: "Calibri", "Segoe UI", sans-serif;
|
||||
@font-size-base: 0.82rem;
|
||||
|
||||
// Colors
|
||||
@color-blue: #1a4a7a;
|
||||
@color-olive: #5a5a2a;
|
||||
@color-gold: #c8a84b;
|
||||
@color-dark: #2a1a0a;
|
||||
@color-paper: #f5ead0;
|
||||
|
||||
// Derived
|
||||
@color-olive-faint: rgba(90, 90, 42, 0.2);
|
||||
@color-blue-hover: rgba(26, 74, 122, 0.08);
|
||||
@color-input-bg: rgba(255, 255, 255, 0.3);
|
||||
@color-disabled-bg: rgba(0, 0, 0, 0.08);
|
||||
|
||||
// Layout
|
||||
@portrait-height: 150px;
|
||||
@left-panel-width: 180px;
|
||||
@npc-left-width: 160px;
|
||||
@item-img-size: 24px;
|
||||
@item-sheet-img: 52px;
|
||||
@label-min-width: 9rem;
|
||||
@input-min-width: 10rem;
|
||||
@input-max-width: 12rem;
|
||||
|
||||
// Fonts sizes
|
||||
@font-size-sm: calc(@font-size-base * 0.85);
|
||||
@font-size-xs: calc(@font-size-base * 0.9);
|
||||
@font-size-lg: calc(@font-size-base * 1.1);
|
||||
@font-size-xl: calc(@font-size-base * 1.2);
|
||||
|
||||
// Mixins
|
||||
.sheet-background() {
|
||||
background-image: var(--oh-background-image);
|
||||
background-repeat: no-repeat;
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
|
||||
.transition-opacity() {
|
||||
opacity: 0.6;
|
||||
transition: opacity 0.2s;
|
||||
&:hover { opacity: 1; }
|
||||
}
|
||||
Reference in New Issue
Block a user