reifat_daily-notes-sorter/styles.css
2026-02-18 10:21:02 +01:00

94 lines
2.3 KiB
CSS

.dns-setting-item {
position: relative; /* Child elements are now positioned relative to this container */
width: 100%; /* Ensure the container takes the required width */
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
border-radius: 5px;
}
.dns-suggestions-list {
position: absolute; /* Positioned relative to dns-setting-item */
top: 100%; /* Starts immediately below the input field */
left: 0; /* Aligned to the left edge of the parent */
width: 100%; /* Matches the width of the input field */
background-color: var(--background-primary);
border: 1px solid var(--background-modifier-border);
max-height: 400px; /* Maximum height to prevent overflow beyond the screen */
z-index: 1000;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
border-radius: 5px;
/* Size adjusts to content automatically */
height: var(--suggestions-list-height, auto);
overflow-y: var(--suggestions-list-overflow, auto);
min-height: 0;
}
.dns-suggestion-item {
padding: 10px;
cursor: pointer;
color: var(--text-normal);
font-size: 0.9em;
border-bottom: 1px solid var(--background-modifier-border);
}
.dns-suggestion-item:hover {
background-color: var(--background-modifier-hover);
}
.dns-suggestion-item:last-child {
border-bottom: none;
}
.dns-suggestion-more {
font-style: italic;
opacity: 0.7;
}
.dns-suggestions-list.dns-no-scroll {
overflow-y: hidden;
}
.dns-hidden {
display: none;
}
/* Validation styles */
.dns-setting-item input.dns-input-error {
border: 2px solid var(--text-error);
background-color: var(--background-modifier-error);
}
.dns-setting-item input.dns-input-valid {
border: 2px solid var(--text-success);
}
.dns-apply-button-container {
display: flex;
justify-content: flex-end;
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid var(--background-modifier-border);
}
.dns-apply-button {
padding: 8px 20px;
background-color: var(--interactive-accent);
color: var(--text-on-accent);
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
}
.dns-apply-button:hover {
background-color: var(--interactive-accent-hover);
}
.dns-apply-button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* File Explorer sort button styles */
.dns-file-explorer-sort-button svg {
color: var(--sort-button-icon-color, #fff);
}