consolidated even more css styling

This commit is contained in:
2025-12-30 21:42:39 +01:00
parent 095631dd29
commit 97752905da
5 changed files with 627 additions and 654 deletions
+622
View File
@@ -3136,4 +3136,626 @@ a,
.simple-input-section .form-group {
margin-bottom: 0;
}
/* ========================================
AUDIT LOG VIEW STYLES
======================================== */
.audit-log-view {
padding: 20px;
background: #f8f9fa;
border-radius: 8px;
margin-top: 20px;
}
.audit-log-view h4 {
color: #333;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #007bff;
}
.filter-controls {
display: flex;
flex-wrap: wrap;
gap: 15px;
align-items: center;
margin-bottom: 20px;
padding: 15px;
background: white;
border-radius: 6px;
border: 1px solid #e9ecef;
}
.filter-group {
display: flex;
align-items: center;
gap: 10px;
}
.date-range-group {
display: flex;
align-items: center;
gap: 10px;
margin-left: 10px;
}
.filter-select, .date-input {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
}
.btn-refresh {
padding: 8px 16px;
background: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
gap: 5px;
}
.btn-refresh:hover:not(:disabled) {
background: #0056b3;
}
.stats-section {
margin-bottom: 25px;
padding: 15px;
background: white;
border-radius: 6px;
border: 1px solid #e9ecef;
}
.stats-section h5 {
margin-bottom: 15px;
color: #555;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.stat-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background: #f8f9fa;
border-radius: 4px;
}
.stat-label {
font-weight: 500;
color: #666;
}
.stat-value {
font-weight: bold;
font-size: 1.1em;
}
.stat-value.positive {
color: #28a745;
}
.stat-value.negative {
color: #dc3545;
}
.audit-entries {
background: white;
border-radius: 6px;
border: 1px solid #e9ecef;
}
.loading, .no-entries {
padding: 40px;
text-align: center;
color: #666;
font-style: italic;
}
.audit-entry {
padding: 15px;
border-bottom: 1px solid #e9ecef;
transition: background-color 0.2s;
}
.audit-entry:last-child {
border-bottom: none;
}
.audit-entry:hover {
background-color: #f8f9fa;
}
.audit-entry.positive-change {
border-left: 4px solid #28a745;
}
.audit-entry.negative-change {
border-left: 4px solid #dc3545;
}
.entry-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.entry-field {
display: flex;
align-items: center;
gap: 8px;
font-weight: bold;
}
.field-icon {
font-size: 1.2em;
}
.entry-timestamp {
color: #666;
font-size: 0.9em;
text-align: right;
display: flex;
flex-direction: column;
gap: 2px;
}
.timestamp-date {
font-weight: 500;
color: #555;
}
.timestamp-time {
font-size: 0.85em;
color: #888;
font-family: monospace;
}
.timestamp-relative {
font-size: 0.8em;
color: #999;
font-style: italic;
}
.entry-content {
margin-left: 20px;
}
.value-change {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
font-family: monospace;
font-size: 1.1em;
}
.old-value {
color: #666;
}
.arrow {
color: #007bff;
font-weight: bold;
}
.new-value {
font-weight: bold;
}
.difference {
font-weight: bold;
font-size: 0.9em;
}
.difference.positive {
color: #28a745;
}
.difference.negative {
color: #dc3545;
}
.entry-reason, .entry-notes {
display: flex;
gap: 8px;
margin-bottom: 5px;
font-size: 0.9em;
}
.reason-label, .notes-label {
font-weight: 500;
color: #666;
min-width: 50px;
}
.reason-value {
background: #e9ecef;
padding: 2px 8px;
border-radius: 12px;
font-size: 0.85em;
font-weight: 500;
}
.notes-value {
color: #555;
font-style: italic;
}
.date-group {
margin-bottom: 25px;
}
.date-group-header {
background: #007bff;
color: white;
padding: 8px 15px;
margin: 0 0 10px 0;
border-radius: 4px;
font-weight: 500;
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.checkbox-input {
margin-right: 8px;
}
/* ========================================
EQUIPMENT VIEW STYLES
======================================== */
.btn-add-equipment {
padding: 8px 16px;
background: #1da766;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
transition: background 0.2s ease;
}
.btn-add-equipment:hover {
background: #16a085;
}
.empty-state {
text-align: center;
color: #999;
font-style: italic;
padding: 2rem !important;
}
.btn-delete {
background: none;
border: none;
cursor: pointer;
font-size: 1.2rem;
padding: 4px 8px;
transition: transform 0.2s ease;
}
.btn-delete:hover {
transform: scale(1.2);
}
.equipment-list {
max-height: 300px;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 15px;
}
.equipment-item {
padding: 12px;
border-bottom: 1px solid #eee;
cursor: pointer;
transition: background 0.2s ease;
}
.equipment-item:hover {
background: #f5f5f5;
}
.equipment-item.selected {
background: #e8f5e9;
border-left: 3px solid #1da766;
}
.equipment-name {
font-weight: bold;
color: #333;
margin-bottom: 4px;
}
.equipment-details {
font-size: 0.9em;
color: #666;
}
.no-results {
text-align: center;
padding: 2rem;
color: #999;
font-style: italic;
}
.selected-equipment-details {
background: #f8f9fa;
padding: 15px;
border-radius: 4px;
margin-top: 15px;
}
.selected-equipment-details h4 {
margin-top: 0;
color: #1da766;
}
.selected-equipment-details p {
margin: 8px 0;
}
.btn-confirm {
padding: 8px 20px;
background: #1da766;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
transition: background 0.2s ease;
}
.btn-confirm:hover:not(:disabled) {
background: #16a085;
}
.btn-confirm:disabled {
background: #ccc;
cursor: not-allowed;
}
.btn-cancel {
padding: 8px 20px;
background: #6c757d;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.2s ease;
}
.btn-cancel:hover {
background: #5a6268;
}
/* ========================================
CHARACTER CREATION STYLES
======================================== */
.character-creation {
width: 100%;
max-width: none;
margin: 0;
padding: 10px;
}
.creation-content {
width: 100%;
background: white;
border-radius: 8px;
padding: 30px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
.creation-header {
margin-bottom: 30px;
}
.creation-header h1 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
.progress-indicator {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-bottom: 20px;
}
.step {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
border-radius: 8px;
transition: all 0.3s ease;
}
.step.active {
background-color: #e3f2fd;
border: 2px solid #2196f3;
}
.step.completed {
background-color: #e8f5e8;
border: 2px solid #4caf50;
}
.step-number {
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #ddd;
color: #666;
font-weight: bold;
margin-bottom: 5px;
}
.step.active .step-number {
background-color: #2196f3;
color: white;
}
.step.completed .step-number {
background-color: #4caf50;
color: white;
}
.step.clickable {
cursor: pointer;
transition: all 0.3s ease;
}
.step.clickable:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.step.completed:hover .step-number {
background-color: #45a049;
}
.step.active:hover .step-number {
background-color: #1976d2;
}
.step-title {
font-size: 12px;
color: #666;
text-align: center;
}
.session-info {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background-color: #f5f5f5;
border-radius: 4px;
font-size: 14px;
color: #666;
}
.delete-btn {
background-color: #f44336;
color: white;
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.delete-btn:hover {
background-color: #d32f2f;
}
/* ========================================
DATASHEET VIEW STYLES
======================================== */
.datasheet-container {
padding-top: 10px;
}
.character-overview {
margin-bottom: 30px;
margin-top: 0;
}
.character-image {
position: relative;
}
.character-image .image-upload-container {
position: absolute;
bottom: 10px;
right: 10px;
}
.character-info {
margin-top: 20px;
}
.info-section {
max-width: none;
white-space: normal;
line-height: 1.6;
}
.info-section p {
margin: 15px 0;
padding: 0;
}
.editable-value {
cursor: pointer;
padding: 2px 4px;
border-radius: 3px;
transition: background-color 0.2s;
}
.editable-value:hover {
background-color: rgba(0, 123, 255, 0.1);
}
.edit-input {
width: 60px;
padding: 2px 4px;
font-size: inherit;
font-weight: bold;
border: 2px solid var(--primary-color);
border-radius: 3px;
text-align: center;
}
.edit-input:focus {
outline: none;
border-color: #0056b3;
}
.editable-prop {
cursor: pointer;
padding: 1px 3px;
border-radius: 2px;
transition: background-color 0.2s;
display: inline-block;
min-width: 20px;
}
.editable-prop:hover {
background-color: rgba(0, 123, 255, 0.1);
}
.prop-input {
padding: 1px 4px;
font-size: inherit;
border: 1px solid var(--primary-color);
border-radius: 3px;
min-width: 60px;
}
.prop-input:focus {
outline: none;
border-color: #0056b3;
}
+1 -274
View File
@@ -432,278 +432,5 @@ export default {
</script>
<style>
/* All common styles moved to main.css */
/* AuditLogView specific styles */
.audit-log-view {
padding: 20px;
background: #f8f9fa;
border-radius: 8px;
margin-top: 20px;
}
.audit-log-view h4 {
color: #333;
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid #007bff;
}
.filter-controls {
display: flex;
flex-wrap: wrap;
gap: 15px;
align-items: center;
margin-bottom: 20px;
padding: 15px;
background: white;
border-radius: 6px;
border: 1px solid #e9ecef;
}
.filter-group {
display: flex;
align-items: center;
gap: 10px;
}
.date-range-group {
display: flex;
align-items: center;
gap: 10px;
margin-left: 10px;
}
.filter-select, .date-input {
padding: 8px 12px;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
}
.btn-refresh {
padding: 8px 16px;
background: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
gap: 5px;
}
.btn-refresh:hover:not(:disabled) {
background: #0056b3;
}
.stats-section {
margin-bottom: 25px;
padding: 15px;
background: white;
border-radius: 6px;
border: 1px solid #e9ecef;
}
.stats-section h5 {
margin-bottom: 15px;
color: #555;
}
.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 15px;
}
.stat-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px;
background: #f8f9fa;
border-radius: 4px;
}
.stat-label {
font-weight: 500;
color: #666;
}
.stat-value {
font-weight: bold;
font-size: 1.1em;
}
.stat-value.positive {
color: #28a745;
}
.stat-value.negative {
color: #dc3545;
}
.audit-entries {
background: white;
border-radius: 6px;
border: 1px solid #e9ecef;
}
.loading, .no-entries {
padding: 40px;
text-align: center;
color: #666;
font-style: italic;
}
.audit-entry {
padding: 15px;
border-bottom: 1px solid #e9ecef;
transition: background-color 0.2s;
}
.audit-entry:last-child {
border-bottom: none;
}
.audit-entry:hover {
background-color: #f8f9fa;
}
.audit-entry.positive-change {
border-left: 4px solid #28a745;
}
.audit-entry.negative-change {
border-left: 4px solid #dc3545;
}
.entry-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
}
.entry-field {
display: flex;
align-items: center;
gap: 8px;
font-weight: bold;
}
.field-icon {
font-size: 1.2em;
}
.entry-timestamp {
color: #666;
font-size: 0.9em;
text-align: right;
display: flex;
flex-direction: column;
gap: 2px;
}
.timestamp-date {
font-weight: 500;
color: #555;
}
.timestamp-time {
font-size: 0.85em;
color: #888;
font-family: monospace;
}
.timestamp-relative {
font-size: 0.8em;
color: #999;
font-style: italic;
}
.entry-content {
margin-left: 20px;
}
.value-change {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 8px;
font-family: monospace;
font-size: 1.1em;
}
.old-value {
color: #666;
}
.arrow {
color: #007bff;
font-weight: bold;
}
.new-value {
font-weight: bold;
}
.difference {
font-weight: bold;
font-size: 0.9em;
}
.difference.positive {
color: #28a745;
}
.difference.negative {
color: #dc3545;
}
.entry-reason, .entry-notes {
display: flex;
gap: 8px;
margin-bottom: 5px;
font-size: 0.9em;
}
.reason-label, .notes-label {
font-weight: 500;
color: #666;
min-width: 50px;
}
.reason-value {
background: #e9ecef;
padding: 2px 8px;
border-radius: 12px;
font-size: 0.85em;
font-weight: 500;
}
.notes-value {
color: #555;
font-style: italic;
}
.date-group {
margin-bottom: 25px;
}
.date-group-header {
background: #007bff;
color: white;
padding: 8px 15px;
margin: 0 0 10px 0;
border-radius: 4px;
font-weight: 500;
font-size: 0.9em;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.checkbox-input {
margin-right: 8px;
}
/* All styles moved to main.css */
</style>
+1 -129
View File
@@ -360,133 +360,5 @@ export default {
</script>
<style>
/* All common styles moved to main.css */
.character-creation {
width: 100%;
max-width: none;
margin: 0;
padding: 10px;
}
.creation-content {
width: 100%;
}
.creation-header {
margin-bottom: 30px;
}
.creation-header h1 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
.progress-indicator {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-bottom: 20px;
}
.step {
display: flex;
flex-direction: column;
align-items: center;
padding: 10px;
border-radius: 8px;
transition: all 0.3s ease;
}
.step.active {
background-color: #e3f2fd;
border: 2px solid #2196f3;
}
.step.completed {
background-color: #e8f5e8;
border: 2px solid #4caf50;
}
.step-number {
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #ddd;
color: #666;
font-weight: bold;
margin-bottom: 5px;
}
.step.active .step-number {
background-color: #2196f3;
color: white;
}
.step.completed .step-number {
background-color: #4caf50;
color: white;
}
.step.clickable {
cursor: pointer;
transition: all 0.3s ease;
}
.step.clickable:hover {
transform: translateY(-2px);
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.step.completed:hover .step-number {
background-color: #45a049;
}
.step.active:hover .step-number {
background-color: #1976d2;
}
.step-title {
font-size: 12px;
color: #666;
text-align: center;
}
.creation-content {
background: white;
border-radius: 8px;
padding: 30px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-bottom: 20px;
}
.session-info {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background-color: #f5f5f5;
border-radius: 4px;
font-size: 14px;
color: #666;
}
.delete-btn {
background-color: #f44336;
color: white;
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 14px;
}
.delete-btn:hover {
background-color: #d32f2f;
}
/* All styles moved to main.css */
</style>
+1 -88
View File
@@ -176,94 +176,7 @@
</template>
<style>
/* All common styles moved to main.css */
/* DatasheetView specific styles */
.datasheet-container {
padding-top: 10px;
}
.info-section {
max-width: none;
white-space: normal;
line-height: 1.6;
}
.info-section p {
margin: 15px 0;
padding: 0;
}
.character-overview {
margin-bottom: 30px;
margin-top: 0;
}
.character-image {
position: relative;
}
.character-image .image-upload-container {
position: absolute;
bottom: 10px;
right: 10px;
}
.character-info {
margin-top: 20px;
}
.editable-value {
cursor: pointer;
padding: 2px 4px;
border-radius: 3px;
transition: background-color 0.2s;
}
.editable-value:hover {
background-color: rgba(0, 123, 255, 0.1);
}
.edit-input {
width: 60px;
padding: 2px 4px;
font-size: inherit;
font-weight: bold;
border: 2px solid var(--primary-color);
border-radius: 3px;
text-align: center;
}
.edit-input:focus {
outline: none;
border-color: #0056b3;
}
.editable-prop {
cursor: pointer;
padding: 1px 3px;
border-radius: 2px;
transition: background-color 0.2s;
display: inline-block;
min-width: 20px;
}
.editable-prop:hover {
background-color: rgba(0, 123, 255, 0.1);
}
.prop-input {
padding: 1px 4px;
font-size: inherit;
border: 1px solid var(--primary-color);
border-radius: 3px;
min-width: 60px;
}
.prop-input:focus {
outline: none;
border-color: #0056b3;
}
/* All styles moved to main.css */
</style>
<script>
+2 -163
View File
@@ -120,172 +120,11 @@
</template>
<style>
/* All common styles moved to main.css */
.fullwidth-container {
padding: 1rem;
}
.header-section {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.btn-add-equipment {
padding: 8px 16px;
background: #1da766;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
transition: background 0.2s ease;
}
.btn-add-equipment:hover {
background: #16a085;
}
.cd-table {
width: 100%;
border-collapse: collapse;
}
.cd-table th,
.cd-table td {
padding: 8px;
text-align: left;
border-bottom: 1px solid #ddd;
}
/* All styles moved to main.css */
/* Equipment-specific table header color override */
.cd-table th {
background-color: #1da766;
color: white;
font-weight: bold;
}
.empty-state {
text-align: center;
color: #999;
font-style: italic;
padding: 2rem !important;
}
.action-cell {
text-align: center;
}
.btn-delete {
background: none;
border: none;
cursor: pointer;
font-size: 1.2rem;
padding: 4px 8px;
transition: transform 0.2s ease;
}
.btn-delete:hover {
transform: scale(1.2);
}
.loading {
text-align: center;
padding: 2rem;
color: #666;
}
.equipment-list {
max-height: 300px;
overflow-y: auto;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 15px;
}
.equipment-item {
padding: 12px;
border-bottom: 1px solid #eee;
cursor: pointer;
transition: background 0.2s ease;
}
.equipment-item:hover {
background: #f5f5f5;
}
.equipment-item.selected {
background: #e8f5e9;
border-left: 3px solid #1da766;
}
.equipment-name {
font-weight: bold;
color: #333;
margin-bottom: 4px;
}
.equipment-details {
font-size: 0.9em;
color: #666;
}
.no-results {
text-align: center;
padding: 2rem;
color: #999;
font-style: italic;
}
.selected-equipment-details {
background: #f8f9fa;
padding: 15px;
border-radius: 4px;
margin-top: 15px;
}
.selected-equipment-details h4 {
margin-top: 0;
color: #1da766;
}
.selected-equipment-details p {
margin: 8px 0;
}
.btn-confirm {
padding: 8px 20px;
background: #1da766;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
transition: background 0.2s ease;
}
.btn-confirm:hover:not(:disabled) {
background: #16a085;
}
.btn-confirm:disabled {
background: #ccc;
cursor: not-allowed;
}
.btn-cancel {
padding: 8px 20px;
background: #6c757d;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.2s ease;
}
.btn-cancel:hover {
background: #5a6268;
}
</style>