Skip to content

Commit

Permalink
fix: #75 better things
Browse files Browse the repository at this point in the history
  • Loading branch information
tefkah committed Nov 3, 2022
1 parent e8dfdab commit 43cd792
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 2 deletions.
22 changes: 22 additions & 0 deletions css/night.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,28 @@
}

#main-window[theme='dark'] {
#zotero-tb-toggle-item-pane,
#zotero-tb-toggle-notes-pane {
background: var(--nord1) !important;
}
#zotero-tb-toggle-item-pane span,
#zotero-tb-toggle-notes-pane span {
display: none;
}
#zotero-tb-split {
background: var(--nord0) !important;
}

/* ------------------------------- */

/* 'deck' context notes pane */
#zotero-context-toolbar-extension,
.zotero-context-notes-list,
.notes-list-container {
background: var(--nord0) !important;
color: var(--nord5) !important;
}

math-inline,
math-display {
color: var(--nord4) !important;
Expand Down
83 changes: 83 additions & 0 deletions css/tab.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,85 @@
// background-color: var(--nord0) !important;
// }
[theme='dark'] {
#zotero-tb-toggle-item-pane,
#zotero-tb-toggle-notes-pane {
background: var(--nord1) !important;
}
#zotero-tb-toggle-item-pane span,
#zotero-tb-toggle-notes-pane span {
display: none;
}
#zotero-tb-split {
background: var(--nord0) !important;
}

/* ------------------------------- */

/* 'deck' context notes pane */
#zotero-context-toolbar-extension,
.zotero-context-notes-list,
.notes-list-container {
background: var(--nord0) !important;
color: var(--nord5) !important;
}

/* search bar at the top of context notes pane */
[theme='dark'] .zotero-context-notes-list textbox[type='search'] {
filter: var(--dark-filter);
}

/* '+' button */
[theme='dark'] .header-row button {
background-color: var(--nord2) !important;
color: var(--nord5) !important;
}

/* boxes/cards for notes 'rows' in context notes pane */
[theme='dark'] .note-row,
[theme='dark'] .more-row,
[theme='dark'] .note-row .inner .body-line .date {
background-color: var(--nord2) !important;
color: var(--nord5) !important;
}

/* ------------------------------- */

/* related items tab pane -> 'add' button */
[theme='dark'] .zotero-editpane-related #addButton {
-moz-appearance: none !important;
background-color: var(--nord2) !important;
color: var(--nord5) !important;
}

/* --------------------------------- */

/* 'add' notes button in library view*/
[theme='dark'] #zotero-editpane-notes-add {
-moz-appearance: none !important;
background-color: var(--nord2) !important;
color: var(--nord5) !important;
}

/* --------------------------------- */

/* new tag input in 'tags' tab pane */
[theme='dark'] .tag .editable.editing {
filter: var(--dark-filter);
}

/* --------------------------------- */

/* dropdown icon button of 'author'/publisher data entry field in first context tab */
[theme='dark'] .creator-type-label image {
filter: var(--dark-filter);
}

/* --------------------------------- */

.toolbar-button:hover {
background-color: var(--nord3);
}

body {
background-color: var(--body-background-color) !important;
}
Expand Down Expand Up @@ -438,6 +517,10 @@
color: var(--nord4);
}

.annotations {
color: var(--nord4);
}

.editor .bubble {
background-color: var(--nord6) !important;
border: 1px solid var(--nord4) !important;
Expand Down
4 changes: 2 additions & 2 deletions defaults/preferences/options.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
user_pref('extensions.zotero.night.default_pdf', 'match')
user_pref('extensions.zotero.night.enabled', 'true')
pref('extensions.zotero.night.default_pdf', 'match')
pref('extensions.zotero.night.enabled', true)

0 comments on commit 43cd792

Please sign in to comment.