First row of tests and fixes
This commit is contained in:
@@ -28,6 +28,34 @@
|
||||
color: @color-text;
|
||||
background: @color-bg;
|
||||
|
||||
// --------------------------------------------------------
|
||||
// Global form field overrides (light theme)
|
||||
// --------------------------------------------------------
|
||||
input[type="text"],
|
||||
input[type="number"],
|
||||
input[type="search"],
|
||||
input:not([type]),
|
||||
select,
|
||||
textarea {
|
||||
background: white;
|
||||
color: @color-text;
|
||||
border: 1px solid @color-border;
|
||||
border-radius: 3px;
|
||||
|
||||
&:focus {
|
||||
border-color: @color-primary;
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 2px fade(@color-primary, 20%);
|
||||
}
|
||||
|
||||
&:disabled,
|
||||
&[disabled] {
|
||||
background: lighten(@color-border, 15%);
|
||||
color: @color-text-light;
|
||||
cursor: default;
|
||||
}
|
||||
}
|
||||
|
||||
.window-header {
|
||||
background: @color-primary;
|
||||
color: white;
|
||||
@@ -98,16 +126,24 @@
|
||||
.attributes-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 0.5rem 0;
|
||||
margin: 0.3rem 0;
|
||||
font-size: 0.85rem;
|
||||
|
||||
// Col widths: name | boost | mod | dc | bonus
|
||||
th:nth-child(1), td:nth-child(1) { width: 30%; }
|
||||
th:nth-child(2), td:nth-child(2) { width: 20%; }
|
||||
th:nth-child(3), td:nth-child(3) { width: 15%; }
|
||||
th:nth-child(4), td:nth-child(4) { width: 15%; }
|
||||
th:nth-child(5), td:nth-child(5) { width: 20%; }
|
||||
|
||||
thead tr {
|
||||
background: @color-primary;
|
||||
color: white;
|
||||
|
||||
th {
|
||||
padding: 0.4rem 0.5rem;
|
||||
padding: 0.25rem 0.4rem;
|
||||
text-align: center;
|
||||
font-size: 0.8rem;
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
@@ -118,19 +154,37 @@
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 0.35rem 0.5rem;
|
||||
padding: 0.2rem 0.4rem;
|
||||
text-align: center;
|
||||
border-bottom: 1px solid @color-border;
|
||||
|
||||
select {
|
||||
width: auto;
|
||||
min-width: 55px;
|
||||
padding: 0.1rem 0.25rem;
|
||||
font-size: 0.82rem;
|
||||
background: white;
|
||||
color: @color-text;
|
||||
border: 1px solid @color-border;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 50px;
|
||||
width: 48px;
|
||||
text-align: center;
|
||||
padding: 0.1rem 0.2rem;
|
||||
font-size: 0.82rem;
|
||||
background: white;
|
||||
color: @color-text;
|
||||
border: 1px solid @color-border;
|
||||
border-radius: 3px;
|
||||
}
|
||||
}
|
||||
|
||||
.attr-label {
|
||||
text-align: left;
|
||||
font-weight: bold;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.rollable {
|
||||
@@ -313,8 +367,240 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// --------------------------------------------------------
|
||||
// Creature Sheet - Eureka Rubric
|
||||
// Character Sheet Header
|
||||
// --------------------------------------------------------
|
||||
.character-content {
|
||||
.actor-header {
|
||||
display: grid;
|
||||
grid-template-columns: 80px 1fr auto auto;
|
||||
gap: 0.5rem 0.75rem;
|
||||
align-items: center;
|
||||
padding: 0.5rem 0.75rem;
|
||||
|
||||
.actor-img {
|
||||
grid-row: 1 / 3;
|
||||
align-self: start;
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
}
|
||||
|
||||
.actor-identity {
|
||||
grid-column: 2;
|
||||
grid-row: 1 / 3;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
justify-content: center;
|
||||
|
||||
.actor-name {
|
||||
font-size: 1.3rem;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.actor-details {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.3rem 1rem;
|
||||
align-items: center;
|
||||
|
||||
.detail-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
|
||||
label {
|
||||
font-size: 0.72rem;
|
||||
text-transform: uppercase;
|
||||
color: @color-text-light;
|
||||
white-space: nowrap;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
select, input[type="number"] {
|
||||
width: 64px;
|
||||
padding: 0.15rem 0.25rem;
|
||||
font-size: 0.9rem;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.actor-stats {
|
||||
grid-column: 3;
|
||||
grid-row: 1 / 3;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
justify-content: center;
|
||||
|
||||
.resource-block {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
> label {
|
||||
font-size: 0.7rem;
|
||||
text-transform: uppercase;
|
||||
color: @color-text-light;
|
||||
font-weight: 600;
|
||||
min-width: 70px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.resource-values {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.2rem;
|
||||
|
||||
input {
|
||||
width: 42px;
|
||||
text-align: center;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
}
|
||||
|
||||
.resource-temp {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
|
||||
label {
|
||||
font-size: 0.65rem;
|
||||
text-transform: uppercase;
|
||||
color: @color-text-light;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 38px;
|
||||
text-align: center;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
}
|
||||
|
||||
.resource-stepper {
|
||||
margin-left: 0.2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sheet-controls {
|
||||
grid-column: 4;
|
||||
grid-row: 1 / 3;
|
||||
align-self: center;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// --------------------------------------------------------
|
||||
// Creature Sheet Header (compact)
|
||||
// --------------------------------------------------------
|
||||
.creature-content {
|
||||
.actor-header {
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.actor-img {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
}
|
||||
|
||||
.actor-identity {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
}
|
||||
|
||||
.actor-details {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5rem 1rem;
|
||||
align-items: center;
|
||||
|
||||
.detail-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
|
||||
label {
|
||||
font-size: 0.75rem;
|
||||
text-transform: uppercase;
|
||||
color: @color-text-light;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 42px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
span {
|
||||
color: @color-text-light;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Eureka tab — large textareas
|
||||
.eureka-rubric {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
padding: 0.25rem 0;
|
||||
|
||||
.eureka-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
|
||||
label {
|
||||
font-weight: bold;
|
||||
font-size: 0.85rem;
|
||||
color: darken(@color-accent, 20%);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
resize: vertical;
|
||||
border: 1px solid @color-border;
|
||||
border-radius: 4px;
|
||||
padding: 0.4rem 0.5rem;
|
||||
font-family: @font-body;
|
||||
font-size: 0.9rem;
|
||||
background: white;
|
||||
color: @color-text;
|
||||
line-height: 1.4;
|
||||
|
||||
&:focus {
|
||||
border-color: @color-primary;
|
||||
outline: none;
|
||||
box-shadow: 0 0 0 2px fadeout(@color-primary, 75%);
|
||||
}
|
||||
|
||||
&::placeholder {
|
||||
color: @color-text-light;
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.eureka-columns {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// --------------------------------------------------------
|
||||
// Creature Sheet - Eureka Rubric (legacy / fieldset version)
|
||||
// --------------------------------------------------------
|
||||
.eureka-rubric {
|
||||
background: lighten(@color-accent, 45%);
|
||||
|
||||
Reference in New Issue
Block a user