mirror of
https://github.com/soundslikeinfo/obsidian-clipper-catalog.git
synced 2026-07-22 11:30:32 +00:00
395 lines
7.9 KiB
CSS
395 lines
7.9 KiB
CSS
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
/* Define keyframes for spin animation */
|
|
@keyframes spinner-rotate {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Text utilities */
|
|
.text-sm {
|
|
font-size: .75rem;
|
|
}
|
|
|
|
.clipper-catalog-plugin {
|
|
/* Add minimal reset only for our plugin elements */
|
|
& * {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Loading spinner styles */
|
|
.loading-spinner-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
animation: spinner-rotate 1s linear infinite;
|
|
}
|
|
|
|
/* Error states */
|
|
.error-text {
|
|
font-size: 0.75rem;
|
|
color: #ef4444;
|
|
}
|
|
|
|
.input-error {
|
|
border-color: #ef4444;
|
|
}
|
|
|
|
/* Settings styles */
|
|
&.clipper-catalog-settings {
|
|
.setting-item {
|
|
border-top: none;
|
|
padding: 18px 0;
|
|
}
|
|
|
|
.setting-item-name {
|
|
color: var(--text-normal);
|
|
font-size: 1em;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.setting-item-description {
|
|
color: var(--text-muted);
|
|
font-size: 0.85em;
|
|
line-height: 1.5;
|
|
max-width: 500px;
|
|
margin-right: 2em;
|
|
}
|
|
|
|
textarea,
|
|
input[type="text"],
|
|
input[type="password"],
|
|
select {
|
|
background-color: var(--background-modifier-form-field);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
padding: 6px 12px;
|
|
color: var(--text-normal);
|
|
transition: all 200ms ease-in-out;
|
|
}
|
|
|
|
textarea:focus,
|
|
input[type="text"]:focus,
|
|
input[type="password"]:focus,
|
|
select:focus {
|
|
border-color: var(--interactive-accent);
|
|
box-shadow: 0 0 0 2px var(--background-modifier-border-focus);
|
|
}
|
|
|
|
textarea {
|
|
min-height: 100px;
|
|
width: 100%;
|
|
resize: vertical;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="password"] {
|
|
height: 32px;
|
|
width: 100%;
|
|
max-width: 150px;
|
|
}
|
|
|
|
select {
|
|
height: 32px;
|
|
width: 100%;
|
|
max-width: 325px;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Container styles */
|
|
.clipper-catalog-advanced {
|
|
background-color: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.clipper-catalog-search {
|
|
background-color: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
/* Button styles */
|
|
.clipper-catalog-button {
|
|
background-color: var(--interactive-accent) !important;
|
|
color: var(--text-on-accent) !important;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.clipper-catalog-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.clipper-catalog-button:hover:not(:disabled) {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Directory chip styles */
|
|
.cc-bg-chip {
|
|
background-color: var(--background-modifier-form-field);
|
|
}
|
|
|
|
.cc-bg-chip-hover {
|
|
background-color: var(--background-secondary-alt);
|
|
}
|
|
|
|
.cc-text-close-icon {
|
|
color: var(--background-secondary);
|
|
}
|
|
|
|
/* For dark theme support */
|
|
.theme-dark .cc-text-close-icon {
|
|
color: var(--background-primary);
|
|
}
|
|
|
|
/* Table styles */
|
|
.clipper-catalog-header-row {
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.clipper-catalog-header-cell {
|
|
color: var(--text-normal);
|
|
|
|
&:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
}
|
|
|
|
.clipper-catalog-row {
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
|
|
&:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
}
|
|
|
|
|
|
/* Text and icon styles */
|
|
.clipper-catalog-input {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.clipper-catalog-icon,
|
|
.clipper-catalog-clear-btn,
|
|
.clipper-catalog-refresh,
|
|
.clipper-catalog-muted {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.clipper-catalog-title {
|
|
color: var(--text-normal);
|
|
.cc-font-bold {
|
|
font-weight: 600;
|
|
}
|
|
}
|
|
|
|
/* Checkbox styles */
|
|
.clipper-catalog-checkbox {
|
|
appearance: none;
|
|
-webkit-appearance: none;
|
|
background-color: var(--background-primary);
|
|
border: 1px solid var(--checkbox-border-color, var(--text-muted));
|
|
border-radius: 4px;
|
|
width: 18px;
|
|
height: 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.clipper-catalog-checkbox:checked {
|
|
background-color: var(--interactive-accent);
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
.clipper-catalog-checkbox:checked::before {
|
|
content: "";
|
|
width: 10px;
|
|
height: 10px;
|
|
background-color: var(--text-on-accent, white);
|
|
clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
|
|
}
|
|
|
|
/* Compatibility for themes */
|
|
/* Dark Theme */
|
|
.theme-dark{
|
|
input.clipper-catalog-checkbox[type=checkbox]:checked:after{
|
|
background-color: transparent;
|
|
}
|
|
}
|
|
|
|
/* Compatible checkbox enhancements */
|
|
.clipper-catalog-compatible-checkbox {
|
|
width: 16px;
|
|
height: 16px;
|
|
cursor: pointer;
|
|
border: 1px solid var(--checkbox-border-color);
|
|
border-radius: 3px;
|
|
background-color: var(--background-primary);
|
|
vertical-align: middle;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.clipper-catalog-compatible-checkbox:checked {
|
|
background-color: var(--interactive-accent);
|
|
border-color: var(--interactive-accent);
|
|
}
|
|
|
|
input.clipper-catalog-compatible-checkbox[type=checkbox]:checked {
|
|
/* --checkbox-color: var(--checkbox-color); */
|
|
background-color: var(--interactive-accent);
|
|
}
|
|
|
|
/* Tag styles */
|
|
.clipper-catalog-tag,
|
|
.clipper-catalog-frontmatter-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 8px;
|
|
margin: 2px;
|
|
border-radius: 9999px;
|
|
font-size: 0.75rem;
|
|
line-height: 1;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.clipper-catalog-tag {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.clipper-catalog-frontmatter-tag {
|
|
background-color: color-mix(in srgb, var(--interactive-accent) 15%, transparent);
|
|
color: var(--text-normal);
|
|
border: 1px solid var(--interactive-accent);
|
|
}
|
|
|
|
/* Tags container */
|
|
.cc-flex.cc-gap-1.cc-flex-wrap.cc-items-center {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
/* Remove the negative margin we added earlier */
|
|
.clipper-catalog-plugin .cc-flex.cc-gap-1.cc-flex-wrap {
|
|
margin: 0;
|
|
& > * {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
/* Tooltip styles */
|
|
[data-tooltip] {
|
|
position: relative;
|
|
|
|
&:hover::before {
|
|
content: attr(data-tooltip);
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
padding: 6px 8px;
|
|
background-color: var(--background-secondary-alt);
|
|
color: var(--text-muted);
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
border-radius: 3px;
|
|
margin-bottom: 6px;
|
|
z-index: 1000;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
|
opacity: 0.9;
|
|
}
|
|
}
|
|
|
|
/* Ensure tooltip appears above other content */
|
|
.cc-z-50 {
|
|
z-index: 50;
|
|
}
|
|
|
|
.clipper-catalog-help-icon {
|
|
position: relative;
|
|
color: var(--text-accent);
|
|
cursor: help;
|
|
opacity: 0.8;
|
|
top: 0;
|
|
transition: opacity 0.2s ease;
|
|
|
|
&:hover {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Link styles */
|
|
.clipper-catalog-link {
|
|
color: var(--text-accent);
|
|
font-size: 0.75rem;
|
|
padding: 0.25rem 0;
|
|
transition: opacity 0.2s ease;
|
|
|
|
&:hover {
|
|
opacity: 0.8;
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
/* Header help icon tooltip positioning */
|
|
.clipper-catalog-header-cell{
|
|
[data-tooltip] {
|
|
padding-left: 5px;
|
|
position: relative;
|
|
display: inline-flex;
|
|
}
|
|
|
|
[data-tooltip]:hover::before {
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
bottom: -5.3rem;
|
|
white-space: normal;
|
|
width: 200px;
|
|
max-width: 300px;
|
|
text-align: center;
|
|
line-height: 1.4;
|
|
font-size: 12px;
|
|
padding: 8px 12px;
|
|
background-color: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
z-index: 1001;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
}
|
|
|
|
.cc-narrow-view {
|
|
max-width: 100%;
|
|
overflow-x: auto;
|
|
|
|
.cc-narrow-view-hidden{
|
|
display: none;
|
|
}
|
|
|
|
.clipper-catalog-header-cell [data-tooltip]:hover::before {
|
|
transform: translateX(-50%);
|
|
width: 150px;
|
|
max-width: 150px;
|
|
font-size: 10px;
|
|
}
|
|
}
|