Make clicky item icons match line height
This commit is contained in:
parent
40cc55757b
commit
37d2b41778
3 changed files with 4 additions and 2 deletions
|
@ -54,7 +54,9 @@ Zotero.UIProperties = new class {
|
||||||
|
|
||||||
_setFontSize(root) {
|
_setFontSize(root) {
|
||||||
let size = Zotero.Prefs.get('fontSize');
|
let size = Zotero.Prefs.get('fontSize');
|
||||||
root.style.fontSize = root.style['--zotero-font-size'] = size + 'em';
|
let sizeCSS = size + 'rem';
|
||||||
|
root.style.fontSize = sizeCSS;
|
||||||
|
root.style.setProperty('--zotero-font-size', sizeCSS);
|
||||||
if (size <= 1) {
|
if (size <= 1) {
|
||||||
size = 'small';
|
size = 'small';
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
font-family: system-ui, -apple-system, sans-serif;
|
font-family: system-ui, -apple-system, sans-serif;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
|
line-height: 1.3333333333;
|
||||||
@media (-moz-platform: windows) {
|
@media (-moz-platform: windows) {
|
||||||
--color-accent: var(--accent-blue);
|
--color-accent: var(--accent-blue);
|
||||||
@include light-dark(--color-focus-border, #000, #fff);
|
@include light-dark(--color-focus-border, #000, #fff);
|
||||||
|
|
|
@ -39,7 +39,6 @@ libraries-collections-box {
|
||||||
|
|
||||||
.icon {
|
.icon {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue