Refactor: Further simplify CSS styling

- Remove unused action-button and content-type-buttons style blocks
- Remove unnecessary will-change properties (performance optimization)
- Simplify box-shadow: 0 0 0 0 transparent to box-shadow: none
- Remove empty style blocks with placeholder comments

Reduces CSS from 18,370 to 18,326 lines.
This commit is contained in:
callumalpass 2025-11-20 21:01:37 +11:00
parent 0f9ce902fd
commit 669da8e0b2
5 changed files with 5 additions and 49 deletions

View file

@ -82,14 +82,6 @@
opacity: 0.8;
}
.tasknotes-plugin .agenda-view__nav-button--prev {
/* Specific styling for previous button if needed */
}
.tasknotes-plugin .agenda-view__nav-button--next {
/* Specific styling for next button if needed */
}
/* Filter Bar Container */
.tasknotes-plugin .agenda-view__filter-container {
margin-bottom: var(--tn-spacing-md);

View file

@ -99,15 +99,6 @@
background: transparent;
}
.tasknotes-plugin .calendar-view__nav-button--prev,
.tasknotes-plugin .mini-calendar-view__nav-button--prev {
/* Specific styling for previous button if needed */
}
.tasknotes-plugin .calendar-view__nav-button--next,
.tasknotes-plugin .mini-calendar-view__nav-button--next {
/* Specific styling for next button if needed */
}
/* Use consistent button system */
.tasknotes-plugin .calendar-view__today-button,

View file

@ -1103,30 +1103,6 @@
gap: var(--size-4-2);
}
/* Use consistent button system */
.tasknotes-plugin .action-button {
/* Remove individual styles - use tn-btn classes */
}
.tasknotes-plugin .action-button .button-icon {
opacity: 0.7;
}
.tasknotes-plugin .content-type-buttons button {
/* Remove individual styles - use tn-btn classes */
}
.tasknotes-plugin .action-button.primary-button {
/* Remove individual styles - use tn-btn tn-btn--primary classes */
}
.tasknotes-plugin .action-button.secondary-button {
/* Remove individual styles - use tn-btn tn-btn--secondary classes */
}
.tasknotes-plugin .action-button.secondary-button:hover {
background: var(--background-modifier-hover);
}
.tasknotes-plugin .close-button-container {
display: flex;

View file

@ -24,7 +24,6 @@
/* Interactions & Accessibility - Simplified */
cursor: var(--cursor);
transition: background-color var(--tn-transition-fast);
will-change: background-color;
outline: none;
role: listitem;
tabindex: 0;
@ -285,7 +284,6 @@
border-radius: 0;
cursor: var(--cursor);
transition: background-color var(--tn-transition-fast);
will-change: background-color;
}
.tasknotes-plugin .tn-card:hover {

View file

@ -19,12 +19,11 @@
background-color: transparent;
border: none;
border-radius: var(--tn-radius-xs);
box-shadow: 0 0 0 0 transparent;
box-shadow: none;
/* Interactions & Accessibility - Smooth transitions */
cursor: var(--cursor);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
will-change: background-color, box-shadow, transform;
outline: none;
role: listitem;
tabindex: 0;
@ -266,7 +265,7 @@
align-self: center;
cursor: var(--cursor);
position: relative;
box-shadow: 0 0 0 0 transparent;
box-shadow: none;
}
.tasknotes-plugin .task-card__status-dot:hover {
@ -279,7 +278,7 @@
.tasknotes-plugin .task-card--completed > .task-card__main-row .task-card__status-dot {
background-color: var(--current-status-color, var(--tn-color-success));
border-color: var(--current-status-color, var(--tn-color-success));
box-shadow: 0 0 0 0 transparent;
box-shadow: none;
position: relative;
}
@ -299,7 +298,7 @@
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 transparent;
box-shadow: none;
}
}
@ -656,7 +655,7 @@
/* Enhanced priority dot hover for context menu */
.tasknotes-plugin .task-card__priority-dot {
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 0 0 0 transparent;
box-shadow: none;
}
.tasknotes-plugin .task-card__priority-dot:hover {