Files
fvtt-yggdrasill/less/yggdrasill-chat-viking.less

535 lines
12 KiB
Plaintext

/* ========================================
CHAT MESSAGE STYLES - Viking Theme
======================================== */
.ygg-chat-card {
font-family: "Vinque", serif;
background: linear-gradient(135deg, rgba(245, 235, 220, 0.95) 0%, rgba(230, 220, 205, 0.95) 100%);
border: 3px solid #4a0404;
border-radius: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(218, 165, 32, 0.1);
overflow: hidden;
margin: 0.3rem 0;
/* Header Section */
.ygg-chat-header {
background: linear-gradient(135deg, #4a0404 0%, #6b0505 100%);
color: #f5ead3;
padding: 0.5rem 0.75rem;
display: flex;
align-items: center;
gap: 0.5rem;
border-bottom: 2px solid #daa520;
.header-decorative-border {
flex: 1;
height: 2px;
background: linear-gradient(90deg, transparent 0%, #daa520 50%, transparent 100%);
}
.actor-portrait {
width: 40px;
height: 40px;
border-radius: 50%;
border: 2px solid #daa520;
box-shadow: 0 0 8px rgba(218, 165, 32, 0.5);
object-fit: cover;
}
.header-content {
flex-shrink: 0;
text-align: center;
}
.actor-name {
margin: 0;
font-family: "CaslonAntique", serif;
font-size: 1.1rem;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
color: #f5ead3;
}
.roll-type {
font-size: 0.75rem;
font-weight: normal;
opacity: 0.9;
margin-top: -0.1rem;
i {
margin-right: 0.2rem;
}
}
}
/* Roll Description */
.ygg-roll-description {
padding: 0.5rem 0.75rem;
background: rgba(255, 255, 255, 0.4);
border-bottom: 1px solid rgba(74, 4, 4, 0.2);
font-size: 0.9rem;
strong {
color: #4a0404;
font-size: 1rem;
}
.dice-formula,
.skill-level,
.carac-detail,
.skill-detail {
color: #555;
font-size: 0.8rem;
}
}
/* Dice Section */
.ygg-dice-section {
padding: 0.5rem 0.75rem;
background: rgba(255, 250, 240, 0.6);
border-bottom: 1px solid rgba(74, 4, 4, 0.2);
.dice-results,
.furor-results {
margin-bottom: 0.4rem;
&:last-child {
margin-bottom: 0;
}
label {
display: block;
font-weight: bold;
color: #4a0404;
margin-bottom: 0.3rem;
font-size: 0.85rem;
i {
margin-right: 0.25rem;
}
}
}
.dice-list {
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
}
.die-result {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 32px;
height: 32px;
padding: 0 0.4rem;
background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
border: 2px solid #8b4513;
border-radius: 5px;
font-weight: bold;
font-size: 1rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.5);
&.high {
background: linear-gradient(135deg, #90ee90 0%, #7ad87a 100%);
border-color: #228b22;
color: #004d00;
}
&.low {
background: linear-gradient(135deg, #ffcccb 0%, #ffb3b3 100%);
border-color: #8b0000;
color: #4d0000;
}
&.furor {
background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
border-color: #8b0000;
color: #fff;
text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
}
}
/* Calculation Breakdown */
.ygg-calculation {
padding: 0.5rem 0.75rem;
background: rgba(255, 255, 255, 0.3);
border-bottom: 1px solid rgba(74, 4, 4, 0.2);
.calc-row {
display: flex;
justify-content: space-between;
padding: 0.2rem 0;
border-bottom: 1px dashed rgba(74, 4, 4, 0.15);
font-size: 0.85rem;
&:last-child {
border-bottom: none;
}
&.furor-row .calc-label i {
color: #ff4500;
}
}
.calc-label {
font-weight: 600;
color: #4a0404;
}
.calc-value {
font-weight: bold;
font-family: "MedievalSharp", serif;
&.negative {
color: #8b0000;
}
&.positive {
color: #228b22;
}
}
}
/* Final Result */
.ygg-result {
padding: 0.75rem;
background: linear-gradient(135deg, rgba(240, 230, 210, 0.8) 0%, rgba(230, 220, 200, 0.8) 100%);
border-top: 3px double #4a0404;
&.critical-success {
background: linear-gradient(135deg, rgba(144, 238, 144, 0.3) 0%, rgba(122, 216, 122, 0.3) 100%);
border-top-color: #228b22;
}
&.critical-failure {
background: linear-gradient(135deg, rgba(255, 99, 71, 0.3) 0%, rgba(220, 20, 60, 0.3) 100%);
border-top-color: #8b0000;
}
&.success {
background: linear-gradient(135deg, rgba(173, 216, 230, 0.2) 0%, rgba(135, 206, 235, 0.2) 100%);
}
.result-total {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.4rem;
padding-bottom: 0.4rem;
border-bottom: 2px solid rgba(74, 4, 4, 0.3);
.result-label {
font-size: 1.1rem;
font-weight: bold;
color: #4a0404;
font-family: "CaslonAntique", serif;
}
.result-value {
font-size: 1.7rem;
font-weight: bold;
font-family: "MedievalSharp", serif;
color: #4a0404;
text-shadow: 2px 2px 4px rgba(218, 165, 32, 0.3);
}
}
.result-vs {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
font-size: 0.85rem;
.vs-label {
color: #666;
}
.vs-value {
font-weight: bold;
color: #4a0404;
}
}
.result-status {
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.5rem;
background: rgba(255, 255, 255, 0.5);
border-radius: 5px;
border: 2px solid rgba(74, 4, 4, 0.2);
.status-icon {
width: 28px;
height: 28px;
flex-shrink: 0;
font-size: 24px;
}
.status-text {
font-size: 1rem;
font-weight: bold;
font-family: "CaslonAntique", serif;
&.critical {
color: #228b22;
text-shadow: 0 0 8px rgba(34, 139, 34, 0.5);
}
&.success {
color: #4682b4;
}
&.failure {
color: #8b0000;
}
}
}
}
/* Damage Section */
.ygg-damage {
padding: 0.5rem 0.75rem;
background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(178, 34, 34, 0.1) 100%);
border-top: 2px solid #8b0000;
.damage-header {
display: flex;
align-items: center;
gap: 0.4rem;
margin-bottom: 0.4rem;
i {
color: #8b0000;
font-size: 1.1rem;
}
.damage-label {
font-weight: bold;
font-size: 0.9rem;
color: #4a0404;
}
}
.damage-value {
font-size: 1.5rem;
font-weight: bold;
color: #8b0000;
font-family: "MedievalSharp", serif;
text-shadow: 2px 2px 4px rgba(139, 0, 0, 0.2);
margin-bottom: 0.2rem;
}
.damage-detail {
font-size: 0.75rem;
color: #666;
font-style: italic;
}
.damage-note {
margin-top: 0.4rem;
padding: 0.3rem;
background: rgba(255, 255, 255, 0.6);
border-left: 3px solid #daa520;
font-size: 0.8rem;
color: #4a0404;
}
}
/* Weapon Details */
.ygg-weapon-details {
padding: 0.5rem 0.75rem;
background: linear-gradient(135deg, rgba(139, 69, 19, 0.08) 0%, rgba(160, 82, 45, 0.08) 100%);
border-top: 2px solid #8b4513;
.weapon-header {
display: flex;
align-items: center;
gap: 0.4rem;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid rgba(139, 69, 19, 0.3);
&.collapsible {
cursor: pointer;
user-select: none;
transition: background 0.2s ease;
margin: -0.5rem -0.75rem 0;
padding: 0.5rem 0.75rem 0.4rem;
border-bottom: none;
&:hover {
background: rgba(139, 69, 19, 0.1);
}
.toggle-icon {
margin-left: auto;
transition: transform 0.3s ease;
font-size: 0.8rem;
}
&.expanded .toggle-icon {
transform: rotate(180deg);
}
}
i {
color: #8b4513;
font-size: 1.1rem;
}
span {
font-weight: bold;
font-size: 0.9rem;
color: #4a0404;
font-family: "CaslonAntique", serif;
}
}
.weapon-content {
max-height: 500px;
overflow: hidden;
transition: max-height 0.3s ease, opacity 0.3s ease;
opacity: 1;
&.collapsed {
max-height: 0;
opacity: 0;
}
}
.weapon-properties {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.3rem 0.5rem;
}
.weapon-property {
display: flex;
gap: 0.4rem;
font-size: 0.85rem;
.property-label {
font-weight: 600;
color: #4a0404;
white-space: nowrap;
}
.property-value {
color: #555;
}
}
.weapon-description {
margin-top: 0.5rem;
padding: 0.5rem;
background: rgba(255, 255, 255, 0.6);
border-radius: 5px;
border-left: 3px solid #8b4513;
font-size: 0.85rem;
line-height: 1.4;
color: #333;
}
}
/* Magic Details */
.ygg-magic-details {
padding: 0.5rem 0.75rem;
background: linear-gradient(135deg, rgba(138, 43, 226, 0.08) 0%, rgba(148, 0, 211, 0.08) 100%);
border-top: 2px solid #8a2be2;
.magic-header {
display: flex;
align-items: center;
gap: 0.4rem;
margin-bottom: 0.5rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid rgba(138, 43, 226, 0.3);
&.collapsible {
cursor: pointer;
user-select: none;
transition: background 0.2s ease;
margin: -0.5rem -0.75rem 0;
padding: 0.5rem 0.75rem 0.4rem;
border-bottom: none;
&:hover {
background: rgba(138, 43, 226, 0.1);
}
.toggle-icon {
margin-left: auto;
transition: transform 0.3s ease;
font-size: 0.8rem;
}
&.expanded .toggle-icon {
transform: rotate(180deg);
}
}
i {
color: #8a2be2;
font-size: 1.1rem;
}
span {
font-weight: bold;
font-size: 0.9rem;
color: #4a0404;
font-family: "CaslonAntique", serif;
}
}
.magic-content {
max-height: 500px;
overflow: hidden;
transition: max-height 0.3s ease, opacity 0.3s ease;
opacity: 1;
&.collapsed {
max-height: 0;
opacity: 0;
}
}
.magic-property {
display: flex;
gap: 0.4rem;
margin-bottom: 0.3rem;
font-size: 0.85rem;
.property-label {
font-weight: 600;
color: #4a0404;
min-width: 110px;
}
.property-value {
color: #555;
}
}
.rune-details {
background: rgba(255, 255, 255, 0.4);
padding: 0.4rem;
border-radius: 4px;
margin-top: 0.4rem;
}
.magic-description {
margin-top: 0.5rem;
padding: 0.5rem;
background: rgba(255, 255, 255, 0.6);
border-radius: 5px;
border-left: 3px solid #8a2be2;
font-size: 0.85rem;
line-height: 1.4;
color: #333;
}
}
}