Revert "All the features"

This commit is contained in:
Spicy Marinara
2025-12-05 22:43:56 +01:00
committed by GitHub
parent 275179fa7f
commit bfb63a34cd
35 changed files with 1389 additions and 5894 deletions
+48 -854
View File
@@ -1224,10 +1224,10 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
min-width: 0;
/* Allow wrapping for long day names */
word-wrap: break-word;
overflow-wrap: break-word;
}
.rpg-calendar-year {
@@ -1255,6 +1255,8 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
line-height: 1.1;
word-wrap: break-word;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.rpg-weather-forecast.rpg-editable {
@@ -1833,11 +1835,31 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
border: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.2s ease;
width: 100%; /* Ensure cards take full width */
max-height: clamp(200px, 18vh, 250px);
box-sizing: border-box; /* Include padding and border in width calculation */
flex-shrink: 0; /* Prevent cards from shrinking */
overflow: visible;
overflow: auto;
scrollbar-width: thin;
scrollbar-color: var(--rpg-border) transparent;
}
.rpg-character-card::-webkit-scrollbar {
width: 4px;
height: 4px;
}
.rpg-character-card::-webkit-scrollbar-track {
background: transparent;
}
.rpg-character-card::-webkit-scrollbar-thumb {
background: var(--rpg-border);
border-radius: 2px;
}
.rpg-character-card::-webkit-scrollbar-thumb:hover {
background: var(--rpg-highlight);
}
.rpg-character-card:hover {
background: rgba(0, 0, 0, 0.4);
@@ -1883,17 +1905,37 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
display: flex;
flex-direction: column;
gap: 0;
overflow: visible;
overflow: hidden;
}
.rpg-character-info {
display: flex;
flex-direction: column;
gap: clamp(3px, 0.5vh, 5px);
overflow: visible;
overflow-y: auto;
overflow-x: hidden;
flex: 1;
min-height: 0;
scrollbar-width: thin;
scrollbar-color: var(--rpg-border) transparent;
}
.rpg-character-info::-webkit-scrollbar {
width: 4px;
}
.rpg-character-info::-webkit-scrollbar-track {
background: transparent;
}
.rpg-character-info::-webkit-scrollbar-thumb {
background: var(--rpg-border);
border-radius: 2px;
}
.rpg-character-info::-webkit-scrollbar-thumb:hover {
background: var(--rpg-highlight);
}
/* Character header with emoji and name */
.rpg-character-header {
@@ -1917,38 +1959,6 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
white-space: nowrap; /* Prevent name from wrapping */
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
min-width: 0;
}
/* Character remove button */
.rpg-character-remove {
flex-shrink: 0;
background: rgba(255, 0, 0, 0.2);
border: 1px solid rgba(255, 0, 0, 0.4);
border-radius: 50%;
width: clamp(18px, 2.5vh, 22px);
height: clamp(18px, 2.5vh, 22px);
display: flex;
align-items: center;
justify-content: center;
font-size: clamp(14px, 2vw, 18px);
color: var(--rpg-highlight);
cursor: pointer;
transition: all 0.2s ease;
padding: 0;
line-height: 1;
margin-left: auto;
}
.rpg-character-remove:hover {
background: rgba(255, 0, 0, 0.4);
border-color: rgba(255, 0, 0, 0.6);
transform: scale(1.1);
}
.rpg-character-remove:active {
transform: scale(0.95);
}
/* Character traits/status line and custom fields */
@@ -2063,14 +2073,6 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
outline: 1px solid var(--rpg-highlight);
}
/* Show full content on hover for text fields (not badges/icons) */
.rpg-editable:not(.rpg-relationship-badge):not(.rpg-character-emoji):hover {
overflow: visible !important;
text-overflow: clip !important;
white-space: normal !important;
word-break: break-word;
}
.rpg-editable:focus,
.rpg-editable-stat:focus,
.rpg-editable-stat-name:focus {
@@ -2079,14 +2081,6 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
box-shadow: 0 0 8px var(--rpg-highlight);
}
/* Show full content when focused for text fields (not badges/icons) */
.rpg-editable:not(.rpg-relationship-badge):not(.rpg-character-emoji):focus {
overflow: visible !important;
text-overflow: clip !important;
white-space: normal !important;
word-break: break-word;
}
/* Edit button container and styling */
.rpg-edit-button-container {
display: flex;
@@ -3688,7 +3682,6 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
display: flex;
flex-direction: column;
gap: 0.5em;
margin-top: 0.5em;
margin-bottom: 1em;
}
@@ -3718,7 +3711,6 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
.rpg-stat-remove,
.rpg-attr-remove,
.rpg-skill-remove,
.rpg-remove-relationship {
flex-shrink: 0;
padding: 0.375em 0.625em;
@@ -3730,48 +3722,6 @@ body:has(.rpg-panel.rpg-position-left) #sheld {
transition: opacity 0.2s;
}
/* Skills list spacing */
#rpg-editor-skills-list {
margin-top: 0.3em;
}
/* Items with description field (stats, attrs, skills) */
.rpg-editor-item-with-desc,
.rpg-editor-skill-item {
flex-wrap: wrap;
}
.rpg-skill-name,
.rpg-stat-desc,
.rpg-attr-desc {
flex: 1;
min-width: 120px;
padding: 0.375em 0.5em;
background: var(--rpg-bg);
border: 1px solid var(--rpg-border);
border-radius: 0.25em;
color: var(--rpg-text);
font-size: 0.95em;
}
.rpg-skill-desc,
.rpg-stat-desc,
.rpg-attr-desc {
flex: 2;
min-width: 180px;
padding: 0.375em 0.5em;
background: var(--rpg-bg);
border: 1px solid var(--rpg-border);
border-radius: 0.25em;
color: var(--rpg-text);
font-size: 0.9em;
font-style: italic;
}
.rpg-skill-toggle {
flex-shrink: 0;
}
.rpg-stat-remove:hover,
.rpg-attr-remove:hover,
.rpg-remove-relationship:hover {
@@ -6687,759 +6637,3 @@ 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;
}