mirror of
https://github.com/obsqrbtz/goose-highlighter.git
synced 2026-04-08 20:19:06 +03:00
1426 lines
24 KiB
CSS
1426 lines
24 KiB
CSS
@import url('../shared/fonts.css');
|
|
@import url('../shared/colors.css');
|
|
@import url('../shared/ui-components.css');
|
|
|
|
/* Reset and Base Styles */
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
font-size: var(--text-base);
|
|
line-height: var(--leading-normal);
|
|
letter-spacing: var(--tracking-tight);
|
|
background: var(--bg-color);
|
|
color: var(--text-color);
|
|
width: 380px;
|
|
min-height: 500px;
|
|
max-height: 600px;
|
|
overflow: hidden;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Loading Overlay */
|
|
.loading-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: var(--bg-color);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
transition: opacity 0.2s ease-out;
|
|
}
|
|
|
|
.loading-overlay.hidden {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.loading-spinner {
|
|
width: 32px;
|
|
height: 32px;
|
|
border: 3px solid var(--input-border);
|
|
border-top-color: var(--accent);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
/* Main Container */
|
|
.popup-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
background: var(--bg-color);
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Header */
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 6px 12px;
|
|
border-bottom: 1px solid var(--input-border);
|
|
background: var(--bg-color);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.header-logo {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 8px;
|
|
background: var(--text-color);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 4px;
|
|
}
|
|
|
|
html.dark .header-logo,
|
|
body.dark .header-logo {
|
|
background: var(--highlight-tag);
|
|
}
|
|
|
|
.header-logo img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.header-title {
|
|
font-size: var(--text-base);
|
|
font-weight: 600;
|
|
letter-spacing: var(--tracking-tight);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-settings-btn,
|
|
.header-power-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
min-width: 28px;
|
|
min-height: 28px;
|
|
padding: 0;
|
|
line-height: 0;
|
|
}
|
|
|
|
.header-settings-btn {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.header-settings-btn i {
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Header power toggle (on/off) */
|
|
.header-power-toggle {
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.header-power-input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
margin: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.power-icon-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
line-height: 0;
|
|
color: var(--text-color);
|
|
opacity: 0.4;
|
|
transition: color 0.2s, opacity 0.2s;
|
|
}
|
|
|
|
.power-icon-wrapper i {
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 1em;
|
|
height: 1em;
|
|
line-height: 1;
|
|
/* Compensate for Font Awesome power-off glyph optical offset */
|
|
transform: translate(1px, 1px);
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.power-icon-wrapper:hover {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.header-power-toggle .header-power-input:checked ~ .power-icon-wrapper {
|
|
color: var(--accent);
|
|
opacity: 1;
|
|
}
|
|
|
|
.header-power-toggle .header-power-input:checked ~ .power-icon-wrapper:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Tabs */
|
|
.tabs {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 4px 6px;
|
|
border-bottom: 1px solid var(--input-border);
|
|
background: transparent;
|
|
flex-shrink: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.tab-button {
|
|
flex: 1 1 0;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
padding: 5px 4px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--tab-inactive-color);
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.tab-button:hover {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.tab-button.active {
|
|
background: var(--tab-active-bg);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.tab-button i {
|
|
font-size: 11px;
|
|
flex-shrink: 0;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.tab-button.active i {
|
|
opacity: 1;
|
|
}
|
|
|
|
.tab-button span {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* Tab Content */
|
|
.tab-content {
|
|
display: none;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.tab-inner {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 8px 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Lists Tab Styles */
|
|
.list-selector-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.list-selector-row {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.list-dropdown-wrapper {
|
|
flex: 1;
|
|
position: relative;
|
|
}
|
|
|
|
.list-dropdown-button {
|
|
width: 100%;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 10px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-size: var(--text-md);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.list-dropdown-button:hover {
|
|
background: var(--section-bg);
|
|
}
|
|
|
|
.list-dropdown-content {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.list-color-indicator {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.list-dropdown-text {
|
|
font-size: var(--text-base);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.list-dropdown-button i {
|
|
font-size: 16px;
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.list-dropdown-menu {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
margin-top: 4px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
|
|
z-index: 100;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.list-dropdown-menu.open {
|
|
display: block;
|
|
}
|
|
|
|
.list-dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.list-dropdown-item:hover {
|
|
background: var(--section-bg);
|
|
}
|
|
|
|
.list-dropdown-item.selected {
|
|
background: var(--section-bg);
|
|
}
|
|
|
|
.list-dropdown-item-check {
|
|
margin-left: auto;
|
|
color: var(--accent);
|
|
font-size: 16px;
|
|
}
|
|
|
|
.icon-button {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.icon-button:hover {
|
|
background: var(--section-bg);
|
|
}
|
|
|
|
.icon-button.danger:hover {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: var(--danger);
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
}
|
|
|
|
.icon-button i {
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.icon-button.danger i {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.icon-button.danger:hover i {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.manage-lists-btn {
|
|
width: 100%;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
font-size: var(--text-base);
|
|
font-weight: 500;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.manage-lists-btn:hover {
|
|
background: var(--section-bg);
|
|
}
|
|
|
|
.manage-lists-btn i {
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Color Pickers */
|
|
.color-pickers-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.color-picker-group {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.color-picker-group .color-picker-label {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.color-picker-label {
|
|
font-size: var(--text-xs);
|
|
font-weight: 500;
|
|
letter-spacing: var(--tracking-wide);
|
|
text-transform: uppercase;
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.color-picker-input-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.color-picker-swatch {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 5px;
|
|
border: 2px solid var(--input-border);
|
|
cursor: pointer;
|
|
background: transparent;
|
|
padding: 0;
|
|
}
|
|
|
|
.color-picker-swatch::-webkit-color-swatch-wrapper {
|
|
padding: 0;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.color-picker-swatch::-webkit-color-swatch {
|
|
border: none;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.color-picker-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 32px;
|
|
padding: 0 8px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
font-size: var(--text-sm);
|
|
font-family: var(--font-mono);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.color-picker-text:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* Preview */
|
|
.preview-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.preview-label {
|
|
font-size: var(--text-xs);
|
|
font-weight: 500;
|
|
letter-spacing: var(--tracking-wide);
|
|
text-transform: uppercase;
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.preview-box {
|
|
padding: 6px 10px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.preview-text {
|
|
font-size: var(--text-base);
|
|
color: var(--text-color);
|
|
line-height: var(--leading-relaxed);
|
|
}
|
|
|
|
.preview-highlight {
|
|
padding: 2px 4px;
|
|
border-radius: 3px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
/* Enable Toggle */
|
|
.enable-toggle-section {
|
|
padding: 6px 10px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.enable-toggle-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.enable-toggle-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.enable-toggle-title {
|
|
font-size: var(--text-base);
|
|
font-weight: 500;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.enable-toggle-subtitle {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Apply Button */
|
|
.apply-button {
|
|
width: 100%;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
background: var(--accent);
|
|
color: var(--accent-text);
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: var(--text-base);
|
|
font-weight: 600;
|
|
letter-spacing: var(--tracking-tight);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.apply-button:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.apply-button i {
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Words Tab Styles */
|
|
.add-words-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.section-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: var(--text-xs);
|
|
font-weight: 600;
|
|
letter-spacing: var(--tracking-wide);
|
|
text-transform: uppercase;
|
|
color: var(--text-color);
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.section-label i {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.word-count-badge {
|
|
color: var(--accent);
|
|
opacity: 1;
|
|
}
|
|
|
|
.add-words-textarea {
|
|
min-height: 56px;
|
|
padding: 6px 8px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
font-size: var(--text-md);
|
|
color: var(--text-color);
|
|
font-family: var(--font-sans);
|
|
resize: none;
|
|
line-height: var(--leading-relaxed);
|
|
}
|
|
|
|
.add-words-textarea::placeholder {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.add-words-textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.add-words-button {
|
|
width: 100%;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--accent);
|
|
color: var(--accent-text);
|
|
border: none;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: var(--text-md);
|
|
font-weight: 600;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.add-words-button:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.add-words-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Word List Section */
|
|
.word-list-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.word-list-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.word-actions-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.word-action-btn {
|
|
height: 26px;
|
|
padding: 0 8px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: var(--text-sm);
|
|
font-weight: 500;
|
|
color: var(--text-color);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.word-action-btn:hover {
|
|
background: var(--section-bg);
|
|
}
|
|
|
|
.word-action-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.word-action-btn.danger {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border-color: rgba(239, 68, 68, 0.3);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.word-action-btn.danger:hover {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
/* Word Search */
|
|
.word-search-wrapper {
|
|
position: relative;
|
|
}
|
|
|
|
.word-search-input {
|
|
width: 100%;
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
font-size: var(--text-md);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.word-search-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
/* Word List Container */
|
|
.word-list-container {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
max-height: 200px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.word-list-empty {
|
|
padding: 16px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.word-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border-bottom: 1px solid var(--input-border);
|
|
}
|
|
|
|
.word-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.word-item:hover {
|
|
background: var(--highlight-tag);
|
|
}
|
|
|
|
.word-item.selected {
|
|
background: var(--section-bg);
|
|
border-left: 3px solid var(--accent);
|
|
padding-left: 9px;
|
|
}
|
|
|
|
.word-item-text {
|
|
flex: 1;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
min-width: 0;
|
|
}
|
|
|
|
.word-item-edit-input {
|
|
flex: 1;
|
|
height: 28px;
|
|
padding: 0 8px;
|
|
background: var(--bg-color);
|
|
border: 1px solid var(--accent);
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.word-item-edit-input:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.word-item-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.word-item-icon-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.word-item-icon-btn:hover {
|
|
opacity: 1;
|
|
background: var(--highlight-tag);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.word-item-icon-btn i {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.word-item-color-picker {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--input-border);
|
|
cursor: pointer;
|
|
background: transparent;
|
|
padding: 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.word-item-color-picker::-webkit-color-swatch-wrapper {
|
|
padding: 0;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.word-item-color-picker::-webkit-color-swatch {
|
|
border: none;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.word-item-color-picker:hover {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.word-list-hint {
|
|
font-size: 12px;
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.empty-state p {
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Page Highlights Tab */
|
|
.page-highlights-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.page-highlights-info-card {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 10px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.page-highlights-info-card strong {
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.refresh-button {
|
|
width: 100%;
|
|
min-height: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.refresh-button:hover {
|
|
background: var(--section-bg);
|
|
}
|
|
|
|
.refresh-button i {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.page-highlights-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.page-highlights-empty {
|
|
padding: 16px;
|
|
text-align: center;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.page-highlight-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--input-border);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.page-highlight-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.page-highlight-item:hover {
|
|
background: var(--section-bg);
|
|
border-left: 3px solid var(--accent);
|
|
padding-left: 9px;
|
|
}
|
|
|
|
.page-highlight-word {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.page-highlight-preview {
|
|
display: inline-block;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.page-highlight-position {
|
|
font-size: 11px;
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.page-highlight-count {
|
|
background: var(--accent);
|
|
color: var(--accent-text);
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.page-highlight-nav {
|
|
display: flex;
|
|
gap: 4px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.page-highlight-nav button {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
padding: 0;
|
|
}
|
|
|
|
.page-highlight-nav button:hover {
|
|
background: var(--section-bg);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.page-highlight-nav button i {
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/* Exceptions Tab */
|
|
.exceptions-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.exception-toggle-btn {
|
|
width: 100%;
|
|
min-height: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.exception-toggle-btn:hover {
|
|
background: var(--section-bg);
|
|
}
|
|
|
|
.exception-toggle-btn.danger {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border-color: rgba(239, 68, 68, 0.3);
|
|
color: var(--danger);
|
|
}
|
|
|
|
.exception-toggle-btn.danger:hover {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.exception-toggle-btn i {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.exceptions-list-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.exceptions-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
min-height: 0;
|
|
}
|
|
|
|
.exception-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--input-border);
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.exception-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.exception-item:hover {
|
|
background: var(--section-bg);
|
|
}
|
|
|
|
.exception-domain {
|
|
flex: 1;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
word-break: break-word;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.exception-remove {
|
|
background: var(--danger);
|
|
color: white;
|
|
border: none;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
transition: all 0.2s;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.exception-remove:hover {
|
|
background: #dc2626;
|
|
}
|
|
|
|
.exception-remove i {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.clear-exceptions-btn {
|
|
width: 100%;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
color: var(--danger);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.clear-exceptions-btn:hover {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
}
|
|
|
|
.clear-exceptions-btn i {
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Settings Overlay */
|
|
.settings-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 16px;
|
|
}
|
|
|
|
.settings-overlay.open {
|
|
display: flex;
|
|
}
|
|
|
|
.settings-overlay-content {
|
|
background: var(--bg-color);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.settings-overlay-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid var(--input-border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.settings-overlay-title {
|
|
font-size: var(--text-md);
|
|
font-weight: 600;
|
|
letter-spacing: var(--tracking-tight);
|
|
color: var(--text-color);
|
|
margin: 0;
|
|
}
|
|
|
|
.settings-close-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
}
|
|
|
|
.settings-overlay-body {
|
|
padding: 12px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* Options (used in overlay) */
|
|
.options-checkboxes {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 8px 10px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.option-checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.option-checkbox {
|
|
width: 18px;
|
|
height: 18px;
|
|
border: 2px solid var(--input-border);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
appearance: none;
|
|
background: var(--input-bg);
|
|
position: relative;
|
|
}
|
|
|
|
.option-checkbox:checked {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.option-checkbox:checked::after {
|
|
content: "✓";
|
|
position: absolute;
|
|
top: -2px;
|
|
left: 3px;
|
|
color: white;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.theme-toggle-section {
|
|
padding: 8px 10px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.theme-toggle-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.theme-toggle-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.theme-toggle-title {
|
|
font-size: var(--text-md);
|
|
font-weight: 500;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.theme-toggle-subtitle {
|
|
font-size: var(--text-sm);
|
|
color: var(--text-color);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.options-buttons {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.option-button {
|
|
flex: 1;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
background: var(--input-bg);
|
|
border: 1px solid var(--input-border);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-size: var(--text-md);
|
|
font-weight: 500;
|
|
color: var(--text-color);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.option-button:hover {
|
|
background: var(--section-bg);
|
|
}
|
|
|
|
.option-button i {
|
|
font-size: 16px;
|
|
}
|
|
|
|
/* Footer */
|
|
.footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 5px 12px;
|
|
border-top: 1px solid var(--input-border);
|
|
background: var(--section-bg);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.footer-version {
|
|
font-size: var(--text-xs);
|
|
color: var(--footer-text);
|
|
}
|
|
|
|
.footer-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
font-size: var(--text-xs);
|
|
color: var(--footer-text);
|
|
text-decoration: none;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.footer-link:hover {
|
|
opacity: 1;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.footer-link i {
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Scrollbar Styles */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--input-border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--accent);
|
|
}
|