feat: json format, et al.

This commit is contained in:
Subarashimo
2025-12-03 14:55:30 +01:00
parent 56349f30e6
commit 0f7fdfcef1
28 changed files with 5692 additions and 237 deletions
+756
View File
@@ -6637,3 +6637,759 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
font-size: clamp(14px, 3vw, 18px) !important;
}
}
/* ============================================
SKILLS SECTION STYLES
============================================ */
.rpg-skills-container {
display: flex;
flex-direction: column;
width: 100%;
gap: 1rem;
padding: 0.5rem;
font-size: 0.9rem;
box-sizing: border-box;
}
.rpg-skills-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 1rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--SmartThemeBorderColor);
}
.rpg-skills-header h4 {
margin: 0;
font-size: 1.1rem;
color: var(--SmartThemeBodyColor);
}
.rpg-skills-header-actions {
display: flex;
align-items: center;
gap: 0.75rem;
}
.rpg-skills-section {
margin-top: 0.75rem;
}
.rpg-skills-section-title {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0 0 0.5rem 0;
font-size: 0.95rem;
color: var(--SmartThemeBodyColor);
}
.rpg-skills-section-title i {
font-size: 0.85rem;
opacity: 0.7;
}
.rpg-skills-count {
font-size: 0.8rem;
opacity: 0.6;
}
.rpg-skills-list {
min-height: 2rem;
padding: 0.5rem;
}
/* Skills List View */
.rpg-skills-list-view {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.rpg-skill-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.75rem 1rem;
background: transparent;
border: 2px solid var(--SmartThemeBorderColor);
border-radius: 0.25rem;
color: var(--SmartThemeBodyColor);
font-size: 0.95rem;
transition: all 0.2s ease;
}
.rpg-skill-row.rpg-skill-active {
border-color: var(--rpg-highlight);
}
.rpg-skill-row.rpg-skill-inactive {
opacity: 0.6;
border-style: dashed;
}
.rpg-skill-row:hover {
background: rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.1);
}
.rpg-skill-row .rpg-skill-name {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Skills Grid View */
.rpg-skills-grid-view {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 0.75rem;
}
.rpg-skill-card {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1rem 0.75rem;
background: transparent;
border: 2px solid var(--SmartThemeBorderColor);
border-radius: 0.25rem;
color: var(--SmartThemeBodyColor);
font-size: 0.9rem;
transition: all 0.2s ease;
min-height: 80px;
}
.rpg-skill-card.rpg-skill-active {
border-color: var(--rpg-highlight);
}
.rpg-skill-card.rpg-skill-inactive {
opacity: 0.6;
border-style: dashed;
}
.rpg-skill-card:hover {
background: rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.1);
}
.rpg-skill-card .rpg-skill-header {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
gap: 0.5rem;
}
.rpg-skill-card .rpg-skill-name {
text-align: center;
word-wrap: break-word;
overflow-wrap: break-word;
hyphens: auto;
max-width: 100%;
}
/* Skill Toggle Button */
.rpg-skill-toggle {
background: transparent;
border: none;
padding: 0.3rem;
cursor: pointer;
color: var(--SmartThemeFastUISliderColColor);
transition: all 0.2s ease;
font-size: 1rem;
}
.rpg-skill-toggle:hover {
color: var(--rpg-highlight);
transform: scale(1.1);
}
.rpg-skill-active .rpg-skill-toggle {
color: var(--rpg-highlight);
}
/* Skill Linked Badge */
.rpg-skill-linked-badge {
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.2rem 0.5rem;
font-size: 0.75rem;
background: rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.2);
border: 1px solid var(--rpg-highlight);
border-radius: 0.25rem;
color: var(--rpg-highlight);
}
.rpg-skill-linked-badge i {
font-size: 0.7rem;
}
/* Skills Empty State */
.rpg-skills-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2rem;
text-align: center;
color: var(--SmartThemeBodyColor);
opacity: 0.7;
}
.rpg-skills-empty i {
font-size: 2rem;
margin-bottom: 1rem;
opacity: 0.5;
}
.rpg-skills-empty p {
margin: 0 0 0.5rem 0;
font-size: 1rem;
}
.rpg-skills-empty small {
font-size: 0.85rem;
opacity: 0.8;
}
/* ============================================
SKILLS CATEGORY STYLES (like Inventory)
============================================ */
.rpg-skill-category {
width: 100%;
margin-bottom: 1rem;
border: 1px solid var(--SmartThemeBorderColor);
border-radius: 0.5rem;
overflow: hidden;
box-sizing: border-box;
}
.rpg-skill-category-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
background: var(--SmartThemeBlurTintColor);
border-bottom: 1px solid var(--SmartThemeBorderColor);
}
.rpg-skill-category-title {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0;
font-size: 0.95rem;
font-weight: 600;
color: var(--SmartThemeBodyColor);
}
.rpg-skill-category-title i {
color: var(--rpg-highlight);
font-size: 0.85rem;
}
.rpg-skill-category-count {
font-size: 0.8rem;
font-weight: normal;
opacity: 0.6;
}
.rpg-skill-category-actions {
display: flex;
align-items: center;
gap: 0.5rem;
}
.rpg-skill-add-btn {
display: flex;
align-items: center;
gap: 0.3rem;
padding: 0.4rem 0.75rem;
background: transparent;
border: 1px solid var(--rpg-highlight);
border-radius: 0.25rem;
color: var(--rpg-highlight);
font-size: 0.8rem;
cursor: pointer;
transition: all 0.2s ease;
}
.rpg-skill-add-btn:hover {
background: var(--rpg-highlight);
color: white;
}
.rpg-skill-category-content {
padding: 0.75rem;
}
.rpg-skill-items-empty {
padding: 1rem;
text-align: center;
color: var(--SmartThemeBodyColor);
opacity: 0.6;
font-style: italic;
}
/* ============================================
SKILL-ITEM LINKING STYLES
============================================ */
/* Skill link badge (shows linked item name in skills section) */
.rpg-skill-link-badge {
display: inline-flex;
align-items: center;
gap: 0.3rem;
padding: 0.2rem 0.5rem;
font-size: 0.75rem;
background: rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.15);
border: 1px solid rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.3);
border-radius: 0.25rem;
color: var(--rpg-highlight);
cursor: pointer;
transition: all 0.2s ease;
margin-left: 0.5rem;
}
.rpg-skill-link-badge:hover {
background: rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.25);
border-color: var(--rpg-highlight);
}
.rpg-skill-link-badge i {
font-size: 0.7rem;
}
.rpg-link-item-name {
max-width: 70px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Link button (on skills without a link) */
.rpg-skill-link-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
background: transparent;
border: 1px dashed var(--SmartThemeBorderColor);
border-radius: 0.25rem;
color: var(--SmartThemeFastUISliderColColor);
cursor: pointer;
transition: all 0.2s ease;
opacity: 0.5;
margin-left: 0.5rem;
}
.rpg-skill-link-btn:hover {
opacity: 1;
border-style: solid;
border-color: var(--rpg-highlight);
color: var(--rpg-highlight);
}
/* Unlink button */
.rpg-skill-unlink-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
background: transparent;
border: none;
color: var(--SmartThemeFastUISliderColColor);
cursor: pointer;
transition: all 0.2s ease;
opacity: 0.5;
margin-left: 0.25rem;
}
.rpg-skill-unlink-btn:hover {
opacity: 1;
color: #e94560;
}
/* Skill link indicator on inventory items */
.rpg-item-skill-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
background: rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.15);
border: 1px solid rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.3);
border-radius: 50%;
color: var(--rpg-highlight);
cursor: pointer;
transition: all 0.2s ease;
margin-left: 0.5rem;
flex-shrink: 0;
}
.rpg-item-skill-link:hover {
background: rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.3);
transform: scale(1.1);
}
.rpg-item-skill-link i {
font-size: 0.7rem;
}
/* Items/abilities with links get a subtle highlight */
.rpg-has-skill-link,
.rpg-has-link {
border-left: 2px solid var(--rpg-highlight) !important;
}
/* Link dropdown for selecting items */
.rpg-link-dropdown {
min-width: 200px;
max-width: 300px;
max-height: 300px;
background: var(--SmartThemeBlurTintColor);
border: 1px solid var(--SmartThemeBorderColor);
border-radius: 0.5rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
overflow: hidden;
}
.rpg-link-dropdown-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1rem;
background: rgba(0, 0, 0, 0.2);
border-bottom: 1px solid var(--SmartThemeBorderColor);
font-weight: 600;
font-size: 0.85rem;
}
.rpg-link-dropdown-close {
background: transparent;
border: none;
color: var(--SmartThemeBodyColor);
cursor: pointer;
padding: 0.25rem;
opacity: 0.6;
transition: opacity 0.2s ease;
}
.rpg-link-dropdown-close:hover {
opacity: 1;
}
.rpg-link-dropdown-list {
max-height: 220px;
overflow-y: auto;
}
.rpg-link-dropdown-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.6rem 1rem;
cursor: pointer;
transition: background 0.2s ease;
font-size: 0.85rem;
}
.rpg-link-dropdown-item:hover {
background: rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.15);
}
.rpg-link-dropdown-item i {
color: var(--rpg-highlight);
opacity: 0.7;
}
/* Highlight animation for items */
@keyframes rpg-highlight-pulse {
0%, 100% {
box-shadow: 0 0 0 0 rgba(233, 69, 96, 0);
background: rgba(233, 69, 96, 0.05);
}
50% {
box-shadow: 0 0 8px 2px rgba(233, 69, 96, 0.3);
background: rgba(233, 69, 96, 0.12);
}
}
.rpg-highlight-item {
animation: rpg-highlight-pulse 1.2s ease-in-out 2 !important;
border-left: 3px solid #e94560 !important;
position: relative;
}
/* Card actions container for grid view */
.rpg-card-actions {
position: absolute;
top: 0.25rem;
right: 0.25rem;
display: flex;
gap: 0.25rem;
}
/* ============================================
STRUCTURED INVENTORY ITEMS (name + description)
============================================ */
.rpg-inventory-container.rpg-structured .rpg-item-row {
flex-direction: column;
align-items: stretch;
gap: 0.25rem;
padding: 0.75rem;
}
.rpg-inventory-container.rpg-structured .rpg-item-row .rpg-item-info {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
}
.rpg-inventory-container.rpg-structured .rpg-item-row .rpg-item-name {
font-weight: 600;
flex-shrink: 0;
}
.rpg-inventory-container.rpg-structured .rpg-item-description {
font-size: 0.85em;
color: var(--SmartThemeBodyColor);
opacity: 0.7;
font-style: italic;
width: 100%;
min-height: 1.2em;
}
.rpg-inventory-container.rpg-structured .rpg-item-description:empty::before {
content: "No description";
opacity: 0.4;
}
.rpg-inventory-container.rpg-structured .rpg-item-card {
flex-direction: column;
padding: 0.75rem;
gap: 0.5rem;
}
.rpg-inventory-container.rpg-structured .rpg-item-card .rpg-item-content {
display: flex;
flex-direction: column;
gap: 0.25rem;
text-align: center;
}
.rpg-inventory-container.rpg-structured .rpg-item-card .rpg-item-name {
font-weight: 600;
}
.rpg-inventory-container.rpg-structured .rpg-item-card .rpg-item-description {
font-size: 0.8em;
opacity: 0.7;
font-style: italic;
}
/* Grants skill badge */
.rpg-item-grants-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
background: rgba(var(--rpg-highlight-rgb, 233, 69, 96), 0.2);
border-radius: 50%;
color: var(--rpg-highlight);
font-size: 0.65rem;
margin-left: 0.25rem;
cursor: help;
}
/* Storage location styling */
.rpg-storage-location {
margin-bottom: 1rem;
border: 1px solid var(--SmartThemeBorderColor);
border-radius: 0.5rem;
overflow: hidden;
}
.rpg-location-header {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 0.75rem;
background: var(--SmartThemeBlurTintColor);
border-bottom: 1px solid var(--SmartThemeBorderColor);
}
.rpg-location-name {
font-weight: 600;
}
.rpg-location-count {
font-size: 0.85em;
opacity: 0.6;
}
/* ============================================
STRUCTURED SKILLS (name + description)
============================================ */
.rpg-item-row.rpg-structured {
flex-direction: row;
align-items: flex-start;
gap: 0.5rem;
}
/* Skill ability row layout */
.rpg-item-row.rpg-structured {
flex-direction: column;
align-items: stretch;
gap: 0.25rem;
}
.rpg-skill-ability-row {
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
}
.rpg-skill-ability-row .rpg-item-name {
flex: 1 1 auto;
font-weight: 600;
min-width: 60px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Link badge should shrink before the skill name */
.rpg-skill-ability-row .rpg-skill-link-badge {
flex-shrink: 1;
margin-left: 0;
}
.rpg-skill-ability-desc-row {
width: 100%;
padding-left: 0.25rem;
}
.rpg-skill-ability-desc-row .rpg-item-description {
display: block;
width: 100%;
font-size: 0.85em;
color: var(--SmartThemeBodyColor);
opacity: 0.7;
font-style: italic;
min-height: 1.2em;
}
.rpg-skill-ability-desc-row .rpg-item-description:empty::before {
content: "Add description...";
opacity: 0.4;
}
.rpg-item-card.rpg-structured .rpg-skill-ability-desc-row {
text-align: center;
}
.rpg-item-card.rpg-structured .rpg-item-description {
font-size: 0.8em;
opacity: 0.7;
}
/* Inventory item row layout with descriptions */
.rpg-item-row {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0.25rem;
}
.rpg-item-main-row {
display: flex;
align-items: center;
gap: 0.5rem;
width: 100%;
}
.rpg-item-main-row .rpg-item-name {
flex: 1;
min-width: 0;
}
.rpg-item-desc-row {
width: 100%;
padding-left: 0.25rem;
}
.rpg-item-desc-row .rpg-item-description {
display: block;
width: 100%;
font-size: 0.85em;
color: var(--SmartThemeBodyColor);
opacity: 0.7;
font-style: italic;
min-height: 1.2em;
}
.rpg-item-desc-row .rpg-item-description:empty::before {
content: "Add description...";
opacity: 0.4;
}
.rpg-item-card .rpg-item-desc-row {
text-align: center;
font-style: italic;
}
/* ============================================
STRUCTURED QUESTS (name + description)
============================================ */
.rpg-quest-item.rpg-structured {
flex-direction: row;
align-items: flex-start;
}
.rpg-quest-info {
display: flex;
flex-direction: column;
flex: 1;
min-width: 0;
gap: 0.25rem;
}
.rpg-quest-info .rpg-quest-title {
font-weight: 600;
}
.rpg-quest-description {
font-size: 0.85em;
color: var(--SmartThemeBodyColor);
opacity: 0.7;
font-style: italic;
min-height: 1.2em;
}
.rpg-quest-description:empty::before {
content: "Add description...";
opacity: 0.4;
}
.rpg-quest-description.rpg-editable {
cursor: text;
}