More tests againts rolls
This commit is contained in:
@@ -126,8 +126,8 @@
|
||||
.attributes-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin: 0.3rem 0;
|
||||
font-size: 0.85rem;
|
||||
margin: 0.1rem 0;
|
||||
font-size: 0.8rem;
|
||||
|
||||
// Col widths: name | boost | mod | dc | bonus
|
||||
th:nth-child(1), td:nth-child(1) { width: 30%; }
|
||||
@@ -141,9 +141,9 @@
|
||||
color: white;
|
||||
|
||||
th {
|
||||
padding: 0.25rem 0.4rem;
|
||||
padding: 0.15rem 0.3rem;
|
||||
text-align: center;
|
||||
font-size: 0.75rem;
|
||||
font-size: 0.72rem;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
}
|
||||
@@ -154,15 +154,15 @@
|
||||
}
|
||||
|
||||
td {
|
||||
padding: 0.2rem 0.4rem;
|
||||
padding: 0.05rem 0.3rem;
|
||||
text-align: center;
|
||||
border-bottom: 1px solid @color-border;
|
||||
|
||||
select {
|
||||
width: auto;
|
||||
min-width: 55px;
|
||||
padding: 0.1rem 0.25rem;
|
||||
font-size: 0.82rem;
|
||||
min-width: 50px;
|
||||
padding: 0 0.2rem;
|
||||
font-size: 0.78rem;
|
||||
background: white;
|
||||
color: @color-text;
|
||||
border: 1px solid @color-border;
|
||||
@@ -170,10 +170,10 @@
|
||||
}
|
||||
|
||||
input {
|
||||
width: 48px;
|
||||
width: 44px;
|
||||
text-align: center;
|
||||
padding: 0.1rem 0.2rem;
|
||||
font-size: 0.82rem;
|
||||
padding: 0 0.2rem;
|
||||
font-size: 0.78rem;
|
||||
background: white;
|
||||
color: @color-text;
|
||||
border: 1px solid @color-border;
|
||||
@@ -372,6 +372,11 @@
|
||||
// Character Sheet Header
|
||||
// --------------------------------------------------------
|
||||
.character-content {
|
||||
fieldset {
|
||||
padding: 0.3rem 0.5rem;
|
||||
margin: 0.3rem 0;
|
||||
}
|
||||
|
||||
.actor-header {
|
||||
display: grid;
|
||||
grid-template-columns: 80px 1fr auto auto;
|
||||
@@ -631,18 +636,22 @@
|
||||
// Item Sheets
|
||||
// ============================================================
|
||||
|
||||
// ============================================================
|
||||
// Item Sheets
|
||||
// ============================================================
|
||||
|
||||
.awemmy.item {
|
||||
.item-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
padding: 0.5rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
background: lighten(@color-primary, 50%);
|
||||
border-bottom: 2px solid @color-border;
|
||||
|
||||
.item-img {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
object-fit: cover;
|
||||
border: 2px solid @color-border;
|
||||
border-radius: 4px;
|
||||
@@ -655,7 +664,7 @@
|
||||
|
||||
input[type="text"] {
|
||||
font-family: @font-heading;
|
||||
font-size: 1.2rem;
|
||||
font-size: 1.15rem;
|
||||
font-weight: bold;
|
||||
flex: 1;
|
||||
border: none;
|
||||
@@ -669,19 +678,149 @@
|
||||
}
|
||||
|
||||
.item-body {
|
||||
padding: 0.5rem;
|
||||
padding: 0.6rem 0.75rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.3rem;
|
||||
|
||||
// Single field row: label | input
|
||||
.form-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 0.4rem;
|
||||
min-height: 28px;
|
||||
|
||||
label {
|
||||
min-width: 120px;
|
||||
font-size: 0.85rem;
|
||||
width: 38%;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
color: @color-text-light;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
input, select {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Two fields side by side
|
||||
.form-row {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
|
||||
.form-group {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Charges: value / max inline
|
||||
.charges-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
|
||||
label {
|
||||
width: 38%;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
color: @color-text-light;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 48px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.separator {
|
||||
color: @color-text-light;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
// Tags (traits, specializations)
|
||||
.form-group-tags {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 0.5rem;
|
||||
|
||||
label {
|
||||
width: 38%;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
color: @color-text-light;
|
||||
text-transform: uppercase;
|
||||
padding-top: 0.25rem;
|
||||
}
|
||||
|
||||
.tags-list {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.3rem;
|
||||
align-items: center;
|
||||
|
||||
.tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.2rem;
|
||||
padding: 0.15rem 0.5rem;
|
||||
background: lighten(@color-primary, 48%);
|
||||
border: 1px solid @color-border;
|
||||
border-radius: 12px;
|
||||
font-size: 0.78rem;
|
||||
color: @color-text;
|
||||
|
||||
a {
|
||||
color: @color-text-light;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
line-height: 1;
|
||||
|
||||
&:hover {
|
||||
color: @color-secondary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.new-tag {
|
||||
width: 110px;
|
||||
font-size: 0.78rem;
|
||||
padding: 0.15rem 0.4rem;
|
||||
border-style: dashed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Divider between properties and description
|
||||
.section-divider {
|
||||
border: none;
|
||||
border-top: 1px solid @color-border;
|
||||
margin: 0.3rem 0;
|
||||
}
|
||||
|
||||
// Description fieldset
|
||||
fieldset {
|
||||
border: 1px solid @color-border;
|
||||
border-radius: 4px;
|
||||
padding: 0.4rem 0.6rem;
|
||||
margin-top: 0.3rem;
|
||||
|
||||
legend {
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
color: @color-text-light;
|
||||
text-transform: uppercase;
|
||||
padding: 0 0.3rem;
|
||||
}
|
||||
|
||||
.editor, .prosemirror, textarea {
|
||||
min-height: 100px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -739,3 +878,218 @@
|
||||
&.critical-failure { background: @color-critical-failure; color: white; }
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Roll Dialog
|
||||
// ============================================================
|
||||
|
||||
.awemmy.dialog {
|
||||
.awemmy-roll-dialog {
|
||||
padding: 0.5rem 0.25rem;
|
||||
|
||||
.roll-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
padding: 0.4rem 0.5rem;
|
||||
background: lighten(@color-primary, 50%);
|
||||
border-radius: 4px;
|
||||
margin-bottom: 0.5rem;
|
||||
border-left: 4px solid @color-primary;
|
||||
|
||||
.roll-attr-name {
|
||||
font-family: @font-heading;
|
||||
font-size: 1.05rem;
|
||||
font-weight: bold;
|
||||
color: @color-primary;
|
||||
}
|
||||
|
||||
.roll-formula-summary {
|
||||
font-size: 0.85rem;
|
||||
color: @color-text-light;
|
||||
|
||||
em {
|
||||
color: @color-secondary;
|
||||
font-style: normal;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dialog-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 0.35rem;
|
||||
|
||||
label {
|
||||
width: 42%;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 600;
|
||||
color: @color-text-light;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
input, select {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
background: white;
|
||||
color: @color-text;
|
||||
border: 1px solid @color-border;
|
||||
border-radius: 3px;
|
||||
padding: 0.2rem 0.35rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
}
|
||||
|
||||
.hint-row {
|
||||
justify-content: space-between;
|
||||
background: lighten(@color-border, 10%);
|
||||
border-radius: 3px;
|
||||
padding: 0.15rem 0.5rem;
|
||||
font-size: 0.8rem;
|
||||
|
||||
.hint-label { color: @color-text-light; font-weight: 600; text-transform: uppercase; }
|
||||
.hint-value { font-weight: bold;
|
||||
&.positive { color: @color-success; }
|
||||
&.negative { color: @color-failure; }
|
||||
}
|
||||
}
|
||||
|
||||
.formula-preview {
|
||||
background: lighten(@color-primary, 52%);
|
||||
border-radius: 3px;
|
||||
padding: 0.2rem 0.5rem;
|
||||
margin-top: 0.2rem;
|
||||
|
||||
.formula-label {
|
||||
width: 42%;
|
||||
flex-shrink: 0;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 600;
|
||||
color: @color-text-light;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.formula-text {
|
||||
font-family: monospace;
|
||||
font-size: 0.95rem;
|
||||
font-weight: bold;
|
||||
color: @color-primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Chat Message (updated)
|
||||
// ============================================================
|
||||
|
||||
.awemmy-chat {
|
||||
padding: 0.4rem;
|
||||
|
||||
.chat-roll-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
margin-bottom: 0.4rem;
|
||||
|
||||
.chat-actor-img {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid @color-border;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.chat-roll-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.1rem;
|
||||
}
|
||||
|
||||
.chat-actor-name {
|
||||
font-size: 0.75rem;
|
||||
color: @color-text-light;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.04em;
|
||||
}
|
||||
|
||||
.chat-roll-label {
|
||||
font-family: @font-heading;
|
||||
font-size: 0.95rem;
|
||||
font-weight: bold;
|
||||
color: @color-primary;
|
||||
}
|
||||
}
|
||||
|
||||
.roll-breakdown {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem;
|
||||
background: lighten(@color-primary, 50%);
|
||||
border-radius: 4px;
|
||||
margin: 0.35rem 0;
|
||||
font-size: 1rem;
|
||||
|
||||
.die-result {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
font-weight: bold;
|
||||
color: @color-text;
|
||||
|
||||
&.max { color: @color-critical-success; }
|
||||
&.min { color: @color-critical-failure; }
|
||||
|
||||
i { color: @color-primary; font-size: 1.1rem; }
|
||||
}
|
||||
|
||||
.roll-mod {
|
||||
color: @color-text-light;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.roll-equals {
|
||||
color: @color-text-light;
|
||||
}
|
||||
|
||||
.roll-total {
|
||||
font-family: @font-heading;
|
||||
font-size: 1.4rem;
|
||||
font-weight: bold;
|
||||
color: @color-primary;
|
||||
}
|
||||
|
||||
.roll-dc {
|
||||
font-size: 0.8rem;
|
||||
color: @color-text-light;
|
||||
border-left: 1px solid @color-border;
|
||||
padding-left: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.outcome-badge {
|
||||
text-align: center;
|
||||
padding: 0.25rem 0.75rem;
|
||||
border-radius: 12px;
|
||||
font-weight: bold;
|
||||
font-size: 0.88rem;
|
||||
|
||||
&.criticalSuccess { background: @color-critical-success; color: white; }
|
||||
&.success { background: @color-success; color: white; }
|
||||
&.failure { background: @color-failure; color: white; }
|
||||
&.criticalFailure { background: @color-critical-failure; color: white; }
|
||||
}
|
||||
|
||||
.private-result {
|
||||
text-align: center;
|
||||
color: @color-text-light;
|
||||
font-size: 0.85rem;
|
||||
padding: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user