mirror of
https://github.com/fnsign/embedded-omnisearch.git
synced 2026-07-22 06:58:08 +00:00
244 lines
4.5 KiB
CSS
244 lines
4.5 KiB
CSS
/* === Embedded Omnisearch – Plugin Styles === */
|
||
|
||
.eo-hidden {
|
||
display: none !important;
|
||
}
|
||
|
||
/* --- Wrapper --- */
|
||
.eo-wrap {
|
||
margin: 16px 0 10px;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
font-family: var(--font-interface);
|
||
}
|
||
|
||
/* --- Input --- */
|
||
.eo-input-wrap {
|
||
position: relative;
|
||
}
|
||
|
||
.eo-wrap input.omnisearch-input-field {
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
padding: 10px 44px 10px 12px;
|
||
border: 0;
|
||
border-radius: 6px;
|
||
background: var(--background-secondary);
|
||
color: var(--text-normal);
|
||
font-size: 0.8rem;
|
||
font-style: italic;
|
||
outline: none;
|
||
box-shadow: inset 0 0 0 1px var(--background-modifier-border);
|
||
}
|
||
|
||
.eo-wrap input.omnisearch-input-field.has-value {
|
||
font-style: normal;
|
||
}
|
||
|
||
.eo-wrap input.omnisearch-input-field:focus,
|
||
.eo-wrap input.omnisearch-input-field.has-value {
|
||
box-shadow: inset 0 0 0 3px var(--background-modifier-border-hover) !important;
|
||
}
|
||
|
||
.eo-wrap input.omnisearch-input-field::selection {
|
||
background: var(--text-selection);
|
||
}
|
||
|
||
/* --- Clear button --- */
|
||
.eo-clear {
|
||
position: absolute;
|
||
right: 10px;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
width: 20px;
|
||
height: 20px;
|
||
border-radius: 999px;
|
||
border: none;
|
||
background: transparent;
|
||
color: var(--text-muted);
|
||
cursor: pointer;
|
||
z-index: 10;
|
||
font-size: 12px;
|
||
line-height: 20px;
|
||
padding: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: opacity 0.15s;
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.eo-clear.is-visible {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.eo-clear:hover {
|
||
color: var(--text-normal);
|
||
background: transparent;
|
||
box-shadow: none;
|
||
}
|
||
|
||
/* --- Status --- */
|
||
.eo-status {
|
||
margin: 6px 0 0;
|
||
font-size: 0.85em;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* --- Results --- */
|
||
.eo-results {
|
||
margin-top: 8px;
|
||
width: 100%;
|
||
}
|
||
|
||
/* --- Results Table --- */
|
||
.eo-results-table {
|
||
width: 100%;
|
||
table-layout: fixed;
|
||
border-collapse: collapse;
|
||
border-spacing: 0;
|
||
margin: 0;
|
||
border: 0;
|
||
background: transparent;
|
||
}
|
||
|
||
.eo-results-table,
|
||
.eo-results-table thead,
|
||
.eo-results-table tbody,
|
||
.eo-results-table tr,
|
||
.eo-results-table th,
|
||
.eo-results-table td,
|
||
.eo-results-table colgroup,
|
||
.eo-results-table col {
|
||
border: 0 !important;
|
||
box-shadow: none !important;
|
||
background: transparent;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.eo-col-file {
|
||
width: 24%;
|
||
}
|
||
|
||
.eo-col-score {
|
||
width: 8%;
|
||
}
|
||
|
||
.eo-col-preview {
|
||
width: 68%;
|
||
}
|
||
|
||
.eo-results-head-cell,
|
||
.eo-results-cell {
|
||
padding: 8px 10px;
|
||
vertical-align: top;
|
||
}
|
||
|
||
.eo-results-head-cell {
|
||
padding-top: 6px;
|
||
padding-bottom: 8px;
|
||
text-align: left;
|
||
font-size: 0.85em;
|
||
font-weight: 600;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.eo-results-row:hover,
|
||
.eo-results-row:hover .eo-results-cell {
|
||
background: var(--background-secondary);
|
||
}
|
||
|
||
.eo-results-file,
|
||
.eo-results-preview {
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.eo-results-link {
|
||
font-weight: 600;
|
||
text-decoration: none;
|
||
color: var(--text-normal);
|
||
}
|
||
|
||
.eo-results-link:hover {
|
||
text-decoration: underline;
|
||
color: var(--text-accent);
|
||
}
|
||
|
||
.eo-results-score,
|
||
.eo-results-head-score {
|
||
text-align: left;
|
||
color: var(--text-muted);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.eo-results-score {
|
||
font-size: 0.85em;
|
||
}
|
||
|
||
.eo-results-preview {
|
||
font-size: 0.9em;
|
||
line-height: 1.5;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
/* --- Pagination --- */
|
||
.eo-page-bar {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
gap: 12px;
|
||
margin: 8px 0 0;
|
||
}
|
||
|
||
.eo-page-btn {
|
||
padding: 6px 16px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
background: var(--background-secondary);
|
||
color: var(--text-normal);
|
||
cursor: pointer;
|
||
font-size: 1em;
|
||
transition: border-color 0.15s;
|
||
}
|
||
|
||
.eo-page-btn:hover:not(:disabled) {
|
||
border-color: var(--background-modifier-border-hover);
|
||
}
|
||
|
||
.eo-page-btn:disabled {
|
||
opacity: 0.35;
|
||
cursor: default;
|
||
}
|
||
|
||
.eo-page-info {
|
||
font-size: 0.85em;
|
||
color: var(--text-muted);
|
||
min-width: 80px;
|
||
text-align: center;
|
||
}
|
||
|
||
/* --- Popover --- */
|
||
.eo-popover {
|
||
position: fixed;
|
||
padding: 4px 10px;
|
||
background: var(--background-secondary);
|
||
color: var(--text-muted);
|
||
border: 1px solid var(--background-modifier-border);
|
||
border-radius: 4px;
|
||
font-size: 0.8em;
|
||
pointer-events: none;
|
||
z-index: 9999;
|
||
max-width: 500px;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.omnisearch-highlight {
|
||
background-color: var(--eo-highlight-color, rgba(204,163,0,0.35));
|
||
color: var(--text-normal);
|
||
padding: 0 0.15em;
|
||
border-radius: 3px;
|
||
}
|