Migration datamodels !

This commit is contained in:
2026-01-10 16:05:56 +01:00
parent 627ccc707b
commit 438caf3b1c
3946 changed files with 318813 additions and 3453 deletions

1201
less/actor-styles.less Normal file

File diff suppressed because it is too large Load Diff

859
less/chat-styles.less Normal file
View File

@@ -0,0 +1,859 @@
/* ============================================ */
/* WASTELAND CHAT MESSAGE STYLES */
/* Post-Apocalyptic Theme */
/* ============================================ */
.wasteland-chat-result {
background: linear-gradient(135deg, rgba(50, 40, 30, 0.95) 0%, rgba(30, 25, 20, 0.95) 100%);
border: 2px solid #8b7355;
border-radius: 2px;
overflow: hidden;
font-family: "Charlemagne", serif;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
position: relative;
// Effet de texture sale/usée
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0, 0, 0, 0.03) 2px,
rgba(0, 0, 0, 0.03) 4px
);
pointer-events: none;
opacity: 0.5;
}
.chat-result-header {
background: linear-gradient(135deg, #3d2f1f 0%, #2a1f15 100%);
border-bottom: 2px solid #8b7355;
padding: 0.5rem;
display: flex;
align-items: center;
gap: 0.625rem;
position: relative;
box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4);
// Effet rouille sur le bord
&::after {
content: "";
position: absolute;
bottom: -2px;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg,
transparent 0%,
#6a0606 20%,
#8b7355 40%,
#6a0606 60%,
transparent 100%
);
}
.actor-icon {
width: 48px;
height: 48px;
border-radius: 2px;
border: 2px solid #8b7355;
object-fit: cover;
flex-shrink: 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
filter: contrast(1.1) saturate(0.9);
}
.header-info {
flex: 1;
.actor-name {
margin: 0;
color: #e8dcc4;
font-size: 1.1rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
font-family: "Charlemagne", serif;
letter-spacing: 0.5px;
}
.action-title {
color: #c9a86a;
font-size: 0.9rem;
margin-top: 0.125rem;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
font-style: italic;
i {
margin-right: 0.25rem;
color: #8b7355;
}
}
}
}
.result-main {
background: linear-gradient(180deg, rgba(230, 220, 200, 0.9) 0%, rgba(210, 200, 180, 0.9) 100%);
padding: 0.25rem 0.5rem;
border-bottom: 1px solid rgba(139, 115, 85, 0.5);
position: relative;
&.damage {
background: linear-gradient(180deg, rgba(200, 180, 160, 0.95) 0%, rgba(180, 160, 140, 0.95) 100%);
}
.result-display {
display: flex;
justify-content: space-around;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.1875rem;
.dice-result,
.total-result,
.difficulty {
text-align: center;
flex: 1;
background: linear-gradient(180deg, rgba(50, 40, 30, 0.7) 0%, rgba(40, 30, 20, 0.8) 100%);
padding: 0.25rem 0.375rem;
border-radius: 2px;
border: 2px solid #8b7355;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
i {
color: #c9a86a;
font-size: 1rem;
display: block;
margin-bottom: 0.125rem;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
span {
display: block;
font-weight: bold;
}
.dice-value,
.total-value,
.difficulty-value {
font-size: 1.5rem;
color: #e8dcc4;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
font-weight: bold;
line-height: 1.2;
}
.total-label,
.difficulty-label {
font-size: 0.75rem;
color: #c9a86a;
text-transform: uppercase;
font-weight: bold;
line-height: 1.1;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
}
}
.damage-display {
.damage-total {
text-align: center;
background: linear-gradient(180deg, rgba(60, 50, 40, 0.8) 0%, rgba(50, 40, 30, 0.9) 100%);
padding: 0.5rem;
border-radius: 2px;
border: 2px solid #8b7355;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 4px rgba(0, 0, 0, 0.4);
i {
color: #c9a86a;
font-size: 1.2rem;
display: block;
margin-bottom: 0.25rem;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.damage-label {
display: block;
font-size: 0.85rem;
color: #c9a86a;
text-transform: uppercase;
font-weight: bold;
margin-bottom: 0.25rem;
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.damage-value {
display: block;
font-size: 2rem;
color: #e8dcc4;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(200, 0, 0, 0.3);
font-weight: bold;
line-height: 1.2;
}
}
}
.result-badge-container {
display: flex;
justify-content: center;
margin-top: 0.25rem;
.result-badge {
padding: 0.25rem 0.75rem;
border-radius: 2px;
font-weight: bold;
font-size: 0.9rem;
text-transform: uppercase;
text-align: center;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
border: 1px solid rgba(0, 0, 0, 0.4);
i {
margin-right: 0.375rem;
}
&.heroique {
background: linear-gradient(135deg, #c9a86a 0%, #8b7355 100%);
color: #1a1a1a;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
border-color: #8b7355;
}
&.success {
background: linear-gradient(135deg, #6b8e23 0%, #4a6017 100%);
color: #e8dcc4;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
border-color: #4a6017;
}
&.failure {
background: linear-gradient(135deg, #5a4a3a 0%, #3a2a1a 100%);
color: #c9a86a;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
border-color: #3a2a1a;
}
&.dramatique {
background: linear-gradient(135deg, #4a0404 0%, #2a0202 100%);
color: #e8dcc4;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
border-color: #6a0606;
}
}
}
}
.result-details {
padding: 0.5rem;
background: linear-gradient(180deg, rgba(70, 60, 50, 0.6) 0%, rgba(60, 50, 40, 0.7) 100%);
border-top: 1px solid rgba(139, 115, 85, 0.3);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
.details-section {
display: flex;
flex-direction: column;
gap: 0.1875rem;
.detail-row {
display: flex;
justify-content: space-between;
padding: 0.1875rem 0.375rem;
background: linear-gradient(90deg, rgba(230, 220, 200, 0.6) 0%, rgba(210, 200, 180, 0.5) 100%);
border-radius: 1px;
font-size: 0.85rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
border-left: 2px solid #8b7355;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
&.bonus {
background: linear-gradient(90deg, rgba(200, 220, 180, 0.7) 0%, rgba(180, 200, 160, 0.6) 100%);
border-left-color: #6b8e23;
}
&.malus {
background: linear-gradient(90deg, rgba(220, 180, 160, 0.7) 0%, rgba(200, 160, 140, 0.6) 100%);
border-left-color: #8b4513;
}
&.rune {
background: linear-gradient(90deg, rgba(190, 180, 210, 0.7) 0%, rgba(170, 160, 190, 0.6) 100%);
border-left-color: #6a5acd;
}
.detail-label {
color: #2a1f15;
font-weight: bold;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.detail-value {
color: #2a1f15;
font-weight: 500;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
}
}
}
.result-effects {
padding: 0.5rem;
background: linear-gradient(180deg, rgba(80, 70, 60, 0.5) 0%, rgba(70, 60, 50, 0.6) 100%);
border-top: 1px solid rgba(139, 115, 85, 0.4);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
.effect-success,
.effect-warning,
.effect-failure,
.effect-damage,
.effect-heroic {
padding: 0.3125rem 0.5rem;
margin-bottom: 0.3125rem;
background: linear-gradient(90deg, rgba(230, 220, 200, 0.8) 0%, rgba(210, 200, 180, 0.7) 100%);
border-radius: 1px;
border-left: 3px solid;
font-size: 0.85rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(0, 0, 0, 0.3);
i {
margin-right: 0.375rem;
}
&:last-child {
margin-bottom: 0;
}
}
.effect-success {
border-left-color: #6b8e23;
color: #2a1f15;
}
.effect-heroic {
border-left-color: #c9a86a;
color: #2a1f15;
font-weight: bold;
background: linear-gradient(90deg, rgba(201, 168, 106, 0.3) 0%, rgba(230, 220, 200, 0.8) 100%);
}
.effect-warning {
border-left-color: #d97706;
color: #2a1f15;
}
.effect-failure {
border-left-color: #8b4513;
color: #2a1f15;
}
.effect-damage {
border-left-color: #6a0606;
color: #2a1f15;
background: linear-gradient(90deg, rgba(200, 100, 100, 0.3) 0%, rgba(210, 200, 180, 0.7) 100%);
}
}
.damage-button-section {
padding: 0.5rem;
background: linear-gradient(180deg, rgba(100, 70, 60, 0.5) 0%, rgba(80, 60, 50, 0.6) 100%);
border-top: 1px solid rgba(139, 115, 85, 0.5);
.chat-card-button {
width: 100%;
padding: 0.5rem;
background: linear-gradient(to bottom, #6a0606 0%, #4a0404 100%);
border: 2px solid #8b7355;
border-radius: 2px;
color: #e8dcc4;
font-size: 0.9rem;
font-weight: bold;
font-family: "Charlemagne", serif;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
&:hover {
background: linear-gradient(to bottom, #8a0808 0%, #5a0505 100%);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
border-color: #c9a86a;
}
i {
margin-right: 0.5rem;
}
}
}
.predilection-reroll-section {
padding: 0.75rem;
background: linear-gradient(135deg, rgba(139, 115, 85, 0.3) 0%, rgba(100, 80, 60, 0.4) 100%);
border: 2px solid #8b7355;
border-radius: 2px;
margin: 0.5rem;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
// Cacher toute icône de dé qui pourrait apparaître par erreur
.fa-dice {
display: none;
}
.predilection-header {
display: flex;
align-items: center;
gap: 0.5rem;
margin-bottom: 0.75rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid rgba(139, 115, 85, 0.5);
i {
color: #c9a86a;
font-size: 1.1rem;
}
.predilection-title {
color: #e8dcc4;
font-weight: bold;
font-size: 1rem;
font-family: "Charlemagne", serif;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}
}
.predilection-results {
display: flex;
gap: 0.75rem;
margin-bottom: 0.75rem;
.predilection-roll {
flex: 1;
padding: 0.5rem;
background: linear-gradient(90deg, rgba(230, 220, 200, 0.4) 0%, rgba(210, 200, 180, 0.3) 100%);
border-radius: 2px;
border-left: 2px solid #8b7355;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
position: relative;
&.kept {
background: linear-gradient(90deg, rgba(200, 220, 180, 0.6) 0%, rgba(180, 200, 160, 0.5) 100%);
border-left-color: #6b8e23;
box-shadow: 0 0 8px rgba(107, 142, 35, 0.3);
}
.roll-label {
color: #2a1f15;
font-weight: bold;
font-size: 0.75rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.roll-value {
color: #2a1f15;
font-weight: 700;
font-size: 1rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
i.fa-check-circle {
color: #6b8e23;
font-size: 1.1rem;
margin-left: 0.25rem;
}
}
}
.predilection-kept {
padding: 0.5rem;
background: linear-gradient(90deg, rgba(200, 220, 180, 0.7) 0%, rgba(180, 200, 160, 0.6) 100%);
border: 1px solid #6b8e23;
border-radius: 2px;
text-align: center;
color: #2a1f15;
font-size: 0.95rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
i {
color: #6b8e23;
}
.kept-label {
font-weight: 600;
}
strong {
font-size: 1.1rem;
font-weight: 700;
}
}
}
.predilection-section {
padding: 0.5rem;
background: linear-gradient(180deg, rgba(100, 90, 70, 0.5) 0%, rgba(80, 70, 60, 0.6) 100%);
border-top: 1px solid rgba(139, 115, 85, 0.5);
.chat-card-button {
width: 100%;
padding: 0.5rem;
background: linear-gradient(to bottom, #5a4a3a 0%, #3a2a1a 100%);
border: 2px solid #8b7355;
border-radius: 2px;
color: #e8dcc4;
font-size: 0.9rem;
font-weight: bold;
font-family: "Charlemagne", serif;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
&:hover {
background: linear-gradient(to bottom, #6a5a4a 0%, #4a3a2a 100%);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
border-color: #c9a86a;
}
i {
margin-right: 0.5rem;
}
}
}
}
/* ============================================ */
/* WASTELAND ITEM CHAT POSTS */
/* ============================================ */
.wasteland-chat-item {
background: linear-gradient(135deg, rgba(50, 40, 30, 0.95) 0%, rgba(30, 25, 20, 0.95) 100%);
border: 2px solid #8b7355;
border-radius: 2px;
overflow: hidden;
font-family: "Charlemagne", serif;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
position: relative;
// Effet de texture sale/usée
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0, 0, 0, 0.03) 2px,
rgba(0, 0, 0, 0.03) 4px
);
pointer-events: none;
opacity: 0.5;
}
.chat-item-header {
background: linear-gradient(135deg, #3d2f1f 0%, #2a1f15 100%);
border-bottom: 2px solid #8b7355;
padding: 0.5rem;
display: flex;
align-items: center;
gap: 0.625rem;
position: relative;
box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.4);
// Effet rouille sur le bord
&::after {
content: "";
position: absolute;
bottom: -2px;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg,
transparent 0%,
#6a0606 20%,
#8b7355 40%,
#6a0606 60%,
transparent 100%
);
}
.item-icon {
width: 48px;
height: 48px;
border-radius: 2px;
border: 2px solid #8b7355;
object-fit: cover;
flex-shrink: 0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
filter: contrast(1.1) saturate(0.9);
}
.header-info {
flex: 1;
.item-name {
margin: 0;
color: #e8dcc4;
font-size: 1.1rem;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
font-weight: bold;
letter-spacing: 0.5px;
}
.item-type {
margin-top: 0.25rem;
color: #c9a86a;
font-size: 0.85rem;
display: flex;
align-items: center;
gap: 0.375rem;
text-transform: capitalize;
i {
color: #8b7355;
font-size: 0.9rem;
}
}
}
}
.chat-item-body {
padding: 0.75rem;
position: relative;
z-index: 1;
.item-description {
color: #e8dcc4;
font-size: 0.9rem;
line-height: 1.5;
margin-bottom: 0.75rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
p {
margin: 0.5rem 0;
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 0;
}
}
}
.item-properties {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 0.5rem;
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid rgba(139, 115, 85, 0.3);
.property {
background: linear-gradient(90deg, rgba(230, 220, 200, 0.6) 0%, rgba(210, 200, 180, 0.5) 100%);
padding: 0.375rem 0.5rem;
border-radius: 1px;
border-left: 2px solid #8b7355;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
.property-label {
color: #2a1f15;
font-weight: bold;
font-size: 0.85rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.property-value {
color: #2a1f15;
font-weight: 600;
font-size: 0.9rem;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
}
}
}
}
/* ============================================ */
/* WASTELAND WELCOME MESSAGE */
/* ============================================ */
.wasteland-welcome-message {
background: linear-gradient(135deg, rgba(61, 47, 31, 0.15) 0%, rgba(42, 31, 21, 0.2) 100%);
border: 2px solid #6a0606;
border-radius: 8px;
padding: 0;
margin: 8px 0;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
inset 0 1px 0 rgba(201, 168, 106, 0.1);
font-family: "Charlemagne", serif;
.welcome-header {
background: linear-gradient(135deg, #6a0606 0%, #4a0404 100%);
padding: 10px;
text-align: center;
border-bottom: 2px solid #c9a86a;
position: relative;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
.welcome-icon {
font-size: 1.8rem;
color: #c9a86a;
margin-bottom: 4px;
text-shadow: 0 0 10px rgba(201, 168, 106, 0.5);
animation: pulse 2s ease-in-out infinite;
}
.welcome-title {
margin: 4px 0 2px 0;
font-size: 1.3rem;
font-weight: bold;
color: #e8dcc4;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
font-family: "Charlemagne", serif;
letter-spacing: 0.5px;
}
.welcome-subtitle {
font-size: 0.9rem;
color: #c9a86a;
font-style: italic;
margin-top: 2px;
line-height: 1.2;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
}
.welcome-content {
padding: 12px;
background: linear-gradient(180deg, rgba(230, 220, 200, 0.9) 0%, rgba(210, 200, 180, 0.85) 100%);
.welcome-section {
display: flex;
gap: 10px;
margin-bottom: 10px;
padding: 8px;
background: rgba(255, 255, 255, 0.5);
border-radius: 4px;
border: 1px solid #c9a86a;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
&:last-child {
margin-bottom: 0;
}
.section-icon {
flex-shrink: 0;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #6a0606 0%, #4a0404 100%);
color: #c9a86a;
border-radius: 50%;
font-size: 1rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
i {
line-height: 1;
}
}
.section-text {
flex: 1;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
strong {
display: block;
color: #3d2f1f;
margin-bottom: 4px;
font-size: 0.95rem;
font-weight: 700;
}
p {
margin: 0;
line-height: 1.4;
color: #2a1f15;
font-size: 0.9rem;
}
.welcome-link {
display: inline-block;
margin-top: 4px;
color: #6a0606;
font-weight: 600;
text-decoration: none;
transition: all 0.2s ease;
font-size: 0.9rem;
i {
margin-right: 4px;
}
&:hover {
color: #8b0606;
text-shadow: 0 0 4px rgba(106, 6, 6, 0.3);
}
}
}
}
}
.welcome-footer {
background: linear-gradient(135deg, #4a0404 0%, #6a0606 100%);
padding: 8px;
text-align: center;
color: #c9a86a;
font-style: italic;
font-size: 0.95rem;
border-top: 1px solid #8b7355;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
font-family: "Charlemagne", serif;
i {
margin: 0 8px;
opacity: 0.7;
font-size: 0.85rem;
}
span {
vertical-align: middle;
}
}
@keyframes pulse {
0%, 100% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.05);
opacity: 0.9;
}
}
}

569
less/item-styles.less Normal file
View File

@@ -0,0 +1,569 @@
/* ==================== Item Sheet Styles ==================== */
/* Item header with image and name */
.fvtt-wasteland.item {
/* Background pour toute la fiche d'item */
background: url("../assets/ui/pc_sheet_bg.webp") repeat;
display: flex;
flex-direction: column;
height: 100%;
padding: 0;
margin: 0;
/* AppV2 - Remove window content padding */
.window-content {
padding: 0;
margin: 0;
}
/* AppV2 - Main section structure */
section {
background: url("../assets/ui/pc_sheet_bg.webp") repeat-y;
color: black;
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
padding: 0;
margin: 0;
}
/* AppV2 Item Sheets - Disabled inputs readability */
input:disabled,
select:disabled {
color: #000000;
opacity: 0.8;
background-color: rgba(255, 255, 255, 0.5);
}
/* Inputs and selects styling */
input[type="text"],
input[type="number"],
select {
color: #000000;
background-color: rgba(255, 255, 255, 0.7);
border: 1px solid #999999;
margin: 0;
padding: 2px 4px;
font-family: "Charlemagne", serif;
font-size: 0.85rem;
}
textarea {
margin: 0;
padding: 2px 4px;
}
input[type="checkbox"] {
width: auto;
height: auto;
margin: 0 4px;
align-self: center;
}
.header {
flex: 0 0 auto;
border-bottom: 1px solid #999;
margin: 0;
}
.sheet-header {
display: flex;
flex-direction: row;
align-items: center;
gap: 1rem;
padding: 0.5rem;
background: url("../assets/ui/pc_sheet_bg.webp") repeat;
flex: 0 0 auto;
}
.item-sheet-img {
flex: 0 0 100px;
height: 100px;
border: 2px solid #999;
border-radius: 4px;
cursor: pointer;
img {
width: 100%;
height: 100%;
object-fit: cover;
}
}
.item-sheet-title {
flex: 1;
display: flex;
flex-direction: column;
gap: 0.25rem;
h1 {
margin: 0;
padding: 0;
font-size: 1.5rem;
border-bottom: none;
input {
background: none;
border: none;
font-size: 1.5rem;
font-family: "Charlemagne", serif;
font-weight: bold;
}
}
.item-subtitle {
font-size: 0.9rem;
color: #666;
font-style: italic;
}
}
/* Navigation tabs - Modern style */
nav.tabs {
display: flex;
border-bottom: 2px solid #403f3e;
margin: 0;
padding: 4px 8px;
background: linear-gradient(to bottom, #2a2520 0%, #1a1510 100%);
flex: 0 0 auto;
gap: 4px;
a.item {
padding: 8px 16px;
color: rgba(218, 218, 218, 0.85);
text-decoration: none;
border: 1px solid transparent;
border-radius: 6px 6px 0 0;
font-family: "Charlemagne", serif;
font-size: 0.9rem;
font-weight: normal;
transition: all 0.3s ease;
background: rgba(64, 63, 62, 0.3);
min-width: 80px;
text-align: center;
i {
display: none; // Hide icons for cleaner look
}
&:hover {
background: rgba(74, 4, 4, 0.4);
color: #f5f5f5;
border-color: rgba(218, 218, 218, 0.2);
}
&.active {
background: linear-gradient(to bottom, #4a0404 0%, #3a0303 100%);
border: 1px solid transparent;
color: #f5f5f5;
font-weight: bold;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
}
}
/* Tab content */
.tab {
display: none;
padding: 8px 12px;
overflow-y: auto;
flex: 1 1 auto;
&.active {
display: block;
}
}
/* Sheet body - scrollable content */
.sheet-body {
flex: 1;
overflow-y: auto;
overflow-x: hidden;
padding: 1rem;
&[data-tab] {
display: none;
&.active {
display: block;
}
}
/* Dans l'onglet details, les form-group sont horizontaux par défaut */
&[data-tab="details"] {
.form-group {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.75rem;
label {
font-weight: bold;
font-size: 0.9rem;
color: #464331;
flex: 0 0 auto;
min-width: 160px;
margin: 0;
}
input[type="text"],
input[type="number"],
select,
textarea {
flex: 1;
}
input[type="checkbox"] {
flex: 0 0 auto;
margin-right: 0.5rem;
}
/* Checkbox avec label après (pas avant) */
&:has(input[type="checkbox"]:first-child) {
label {
min-width: auto;
flex: 1;
order: 2;
}
input[type="checkbox"] {
order: 1;
}
}
/* Exception: quand le label contient lui-même le checkbox */
label:has(input[type="checkbox"]) {
min-width: auto;
flex: 1;
display: flex;
align-items: center;
gap: 0.5rem;
}
}
/* Pour les sections avec grilles, garder le comportement vertical */
.grid .form-group {
flex-direction: column;
align-items: flex-start;
gap: 0.25rem;
label {
min-width: auto;
}
}
}
}
/* Form groups - comportement par défaut pour autres onglets */
.form-group {
display: flex;
flex-direction: column;
gap: 0.25rem;
margin-bottom: 0.5rem;
label {
font-weight: bold;
font-size: 0.9rem;
color: #464331;
}
&.horizontal {
flex-direction: row;
align-items: center;
gap: 0.5rem;
label {
flex: 0 0 auto;
min-width: 100px;
}
input, select, textarea {
flex: 1;
}
}
}
/* Grid layouts */
.grid {
display: grid;
gap: 0.5rem;
margin: 0.5rem 0;
&.grid-2col {
grid-template-columns: repeat(2, 1fr);
}
&.grid-3col {
grid-template-columns: repeat(3, 1fr);
}
&.grid-4col {
grid-template-columns: repeat(4, 1fr);
}
}
/* Editor content */
.editor-content {
min-height: 200px;
border: 1px solid #999;
padding: 0.5rem;
background: rgba(255, 255, 255, 0.9);
border-radius: 4px;
}
/* Actions buttons */
.item-actions {
display: flex;
gap: 0.5rem;
margin-top: 1rem;
padding-top: 0.5rem;
border-top: 1px solid #999;
button {
flex: 1;
padding: 0.5rem 1rem;
background: rgba(74, 4, 4, 0.8);
color: white;
border: 1px solid #000;
border-radius: 4px;
cursor: pointer;
font-family: "Charlemagne", serif;
font-size: 0.9rem;
transition: all 0.2s;
&:hover {
background: rgba(74, 4, 4, 1);
box-shadow: 0 0 8px rgba(74, 4, 4, 0.6);
}
&:disabled {
opacity: 0.5;
cursor: not-allowed;
}
}
}
/* Rollable elements */
.rollable {
cursor: pointer;
&:hover {
color: #ff6600;
text-shadow: 0 0 8px rgba(255, 102, 0, 0.8);
}
}
/* Item-specific sections */
.item-details {
display: flex;
flex-direction: column;
gap: 1rem;
.detail-section {
padding: 0.5rem;
background: rgba(255, 255, 255, 0.3);
border: 1px solid #999;
border-radius: 4px;
h3 {
margin: 0 0 0.5rem 0;
padding-bottom: 0.25rem;
border-bottom: 1px solid #999;
font-size: 1.1rem;
color: #2a1510;
font-family: "Charlemagne", serif;
font-weight: bold;
}
}
}
}
/* Specific item type styles */
.fvtt-wasteland.item {
&.arme-content,
&.bouclier-content {
.weapon-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem;
.stat-box {
padding: 0.5rem;
background: rgba(255, 255, 255, 0.5);
border: 1px solid #999;
border-radius: 4px;
text-align: center;
.stat-label {
font-size: 0.8rem;
color: #666;
margin-bottom: 0.25rem;
}
.stat-value {
font-size: 1.2rem;
font-weight: bold;
}
}
}
}
&.competence-content {
.predilections-container {
margin-top: 0.5rem;
.no-predilections {
text-align: center;
font-style: italic;
color: #999;
padding: 1rem;
margin: 0;
}
}
.predilections-list {
list-style: none;
padding: 0;
margin: 0 0 0.75rem 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
.predilection-item {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem;
background: rgba(42, 37, 32, 0.3);
border: 1px solid rgba(106, 6, 6, 0.3);
border-radius: 4px;
transition: background 0.2s;
&:hover {
background: rgba(42, 37, 32, 0.5);
border-color: rgba(106, 6, 6, 0.5);
}
.predilection-main {
flex: 1;
.predilection-name {
width: 100%;
padding: 0.375rem 0.5rem;
border: 1px solid rgba(0, 0, 0, 0.3);
border-radius: 3px;
background: rgba(255, 255, 255, 0.9);
font-family: inherit;
&::placeholder {
color: #999;
font-style: italic;
}
&:focus {
outline: none;
border-color: #6a0606;
box-shadow: 0 0 0 2px rgba(106, 6, 6, 0.2);
}
}
}
.predilection-controls {
display: flex;
align-items: center;
gap: 0.75rem;
flex-shrink: 0;
.predilection-used {
display: flex;
align-items: center;
gap: 0.375rem;
cursor: pointer;
user-select: none;
white-space: nowrap;
input[type="checkbox"] {
width: 16px;
height: 16px;
cursor: pointer;
}
span {
font-size: 0.9rem;
color: rgba(218, 218, 218, 0.85);
}
&:hover span {
color: rgba(218, 218, 218, 1);
}
}
.predilection-delete {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
background: rgba(106, 6, 6, 0.6);
border: 1px solid rgba(106, 6, 6, 0.8);
border-radius: 3px;
cursor: pointer;
transition: all 0.2s;
i {
color: rgba(255, 255, 255, 0.9);
font-size: 0.875rem;
}
&:hover {
background: rgba(106, 6, 6, 0.9);
border-color: #6a0606;
transform: scale(1.05);
i {
color: #fff;
}
}
}
}
}
}
.add-predilection-btn {
width: 100%;
padding: 0.5rem 1rem;
background: linear-gradient(to bottom, #4a0404 0%, #3a0303 100%);
border: 1px solid #6a0606;
border-radius: 4px;
color: rgba(218, 218, 218, 0.95);
font-family: "Charlemagne", serif;
font-size: 0.9rem;
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
i {
font-size: 0.875rem;
}
&:hover {
background: linear-gradient(to bottom, #5a0505 0%, #4a0404 100%);
border-color: #8a0808;
color: #fff;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
&:active {
transform: translateY(0);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
}
}
}

View File

@@ -0,0 +1,311 @@
/* ============================================ */
/* WASTELAND ROLL DIALOG STYLES */
/* ============================================ */
.wasteland-roll-dialog {
background: url("../assets/ui/pc_sheet_bg.webp") repeat;
.window-content {
background: transparent;
}
.dialog-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem;
background: linear-gradient(to bottom, #4a0404 0%, #3a0303 100%);
border-bottom: 2px solid #6a0606;
margin: -0.5rem -0.5rem 0.5rem -0.5rem;
.actor-icon {
width: 48px;
height: 48px;
border: 2px solid #6a0606;
border-radius: 4px;
object-fit: cover;
}
.dialog-title {
flex: 1;
color: #f5f5f5;
h3 {
margin: 0 0 0.15rem 0;
font-size: 1rem;
font-family: "Charlemagne", serif;
font-weight: bold;
text-transform: uppercase;
}
.competence-name {
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.9);
font-style: italic;
.attribut-info {
color: rgba(255, 255, 255, 0.7);
font-size: 0.8rem;
}
}
}
}
.dialog-content {
padding: 0 0.5rem 0.5rem 0.5rem;
.form-group {
margin-bottom: 0.4rem;
label {
display: block;
margin-bottom: 0.2rem;
font-weight: bold;
font-size: 0.85rem;
color: #2a1510;
font-family: "Charlemagne", serif;
}
select,
input[type="number"] {
width: 100%;
background: rgba(255, 255, 255, 0.5);
border: 1px solid #6a0606;
border-radius: 3px;
padding: 0.3rem 0.4rem;
font-size: 0.85rem;
color: #1a1510;
&:hover {
background: rgba(255, 255, 255, 0.6);
}
&:focus {
outline: none;
background: rgba(255, 255, 255, 0.7);
border-color: #aa0a0a;
box-shadow: 0 0 4px rgba(170, 10, 10, 0.3);
}
&:disabled {
opacity: 0.6;
cursor: not-allowed;
}
}
}
.modifiers-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.4rem;
margin-bottom: 0.4rem;
}
.attributes-section {
background: rgba(106, 6, 6, 0.1);
border: 1px solid #6a0606;
border-radius: 4px;
padding: 0.5rem;
margin-bottom: 0.5rem;
label {
color: #6a0606;
}
}
.special-option {
margin-top: 0.5rem;
padding: 0.5rem;
background: rgba(106, 6, 6, 0.05);
border: 2px solid #6a0606;
border-radius: 4px;
.checkbox-label {
display: flex;
align-items: center;
gap: 0.4rem;
margin: 0;
cursor: pointer;
&.highlight {
span {
font-weight: bold;
color: #6a0606;
font-family: "Charlemagne", serif;
font-size: 0.85rem;
}
}
input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
accent-color: #6a0606;
}
span {
flex: 1;
font-size: 0.85rem;
color: #2a1510;
}
}
}
/* Weapon Section */
.weapon-section {
background: rgba(139, 101, 8, 0.1);
padding: 0.5rem;
border-radius: 4px;
border: 1px solid rgba(139, 101, 8, 0.4);
margin-bottom: 0.5rem;
.weapon-info {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.4rem 0.5rem;
background: rgba(139, 101, 8, 0.15);
border-radius: 3px;
margin-bottom: 0.5rem;
.weapon-label {
font-weight: bold;
font-size: 0.9rem;
color: #2a1510;
font-family: "Charlemagne", serif;
}
.weapon-bonus {
font-size: 0.85rem;
color: #8b0000;
font-weight: bold;
}
}
.defense-info {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.4rem 0.5rem;
background: rgba(0, 100, 0, 0.1);
border-radius: 3px;
margin-bottom: 0.5rem;
.defense-label {
font-size: 0.85rem;
color: #2a1510;
font-weight: bold;
}
.defense-value {
font-size: 1rem;
color: #006400;
font-weight: bold;
}
}
}
/* Combat Modifiers */
.combat-modifiers,
.ranged-combat-section {
background: rgba(139, 69, 19, 0.1);
padding: 0.5rem;
border-radius: 4px;
border: 1px solid rgba(139, 69, 19, 0.4);
margin-bottom: 0.5rem;
h4 {
margin: 0 0 0.5rem 0;
color: #2a1510;
font-size: 0.9rem;
font-weight: bold;
font-family: "Charlemagne", serif;
text-transform: uppercase;
text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
}
.checkbox-label {
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.4rem;
cursor: pointer;
border-radius: 3px;
margin-bottom: 0.3rem;
transition: background 0.2s ease;
&:hover {
background: rgba(255, 255, 255, 0.2);
}
input[type="checkbox"] {
width: auto;
margin: 0;
cursor: pointer;
accent-color: #8b4513;
}
span {
color: #2a1510;
font-size: 0.85rem;
user-select: none;
}
}
.info-message {
padding: 0.4rem 0.6rem;
background: rgba(201, 168, 106, 0.2);
border-left: 3px solid rgba(201, 168, 106, 0.8);
border-radius: 3px;
font-size: 0.85rem;
color: #2a1510;
margin-bottom: 0.5rem;
font-style: italic;
}
}
.modifiers-columns {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.3rem 0.6rem;
}
}
// Styles pour les boutons du dialog
.dialog-buttons {
display: flex;
gap: 0.4rem;
padding: 0.5rem;
border-top: 1px solid #6a0606;
margin: 0.5rem -0.5rem -0.5rem -0.5rem;
background: rgba(255, 255, 255, 0.1);
button {
flex: 1;
padding: 0.5rem 0.75rem;
background: linear-gradient(to bottom, #4a0404 0%, #3a0303 100%);
border: 1px solid #6a0606;
border-radius: 3px;
color: #f5f5f5;
font-size: 0.85rem;
font-weight: bold;
font-family: "Charlemagne", serif;
cursor: pointer;
transition: all 0.2s ease;
&:hover {
background: linear-gradient(to bottom, #5a0505 0%, #4a0404 100%);
box-shadow: 0 0 6px rgba(106, 6, 6, 0.6);
}
&.default {
border-width: 2px;
border-color: #aa0a0a;
}
i {
margin-right: 0.4rem;
}
}
}
}

1365
less/simple-converted.less Normal file

File diff suppressed because it is too large Load Diff

8
less/wasteland.less Normal file
View File

@@ -0,0 +1,8 @@
// Main LESS file for Wasteland system
// Importing base styles and component-specific styles
@import "simple-converted";
@import "item-styles";
@import "actor-styles";
@import "roll-dialog-styles";
@import "chat-styles";