-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Base.css
2422 lines (1968 loc) · 60.8 KB
/
Base.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
.root {
/* Note that counting for odd/even starts at 0, thus the first displayed row is even */
-jr-row-odd-background: -fx-control-inner-background-alt;
-jr-row-even-background: -fx-control-inner-background;
/*
On light theme, the text is hard to see when it's on top of the accent color. This is an alternative lighter accent color
for better text visibility.
*/
-jr-accent-alt: derive(-jr-accent, 15%);
/*
The theme color and some derived colors from it are used for icons, tab-headers, marking of selected inputs and
hover colors for the main menu. It generally defines the look of JabRef. The highlighting colors below should
work nicely with this base color
*/
/* original JabRef dark blue color */
-jr-theme: #50618F;
-jr-accent: #a3b7e6;
-jr-transparent-accent: rgba(163, 183, 230, 0.16);
-jr-checked: -jr-theme;
-jr-selected: -jr-accent;
-jr-hover: #0002;
-jr-hover-text: -fx-focused-text-base-color;
/* The base gray. Most gray-tones in the application are derived from this color. */
-jr-base: #ebebeb;
-jr-white: #ffffff;
-jr-gray-0: #f2f2f2;
-jr-gray-1: #dddddd;
-jr-gray-2: #808080;
-jr-gray-3: #404040;
-jr-black: #000;
/* Some blueish greys - currently not used */
-jr-blue-gray-1: #c8d6e5;
-jr-blue-gray-1-darker: derive(-jr-blue-gray-1, -5%);
-jr-blue-gray-2: #8395a7;
-jr-blue-gray-2-darker: derive(-jr-blue-gray-2, -5%);
-jr-blue-gray-3: #576574;
-jr-blue-gray-3-darker: derive(-jr-blue-gray-3, -5%);
-jr-blue-gray-4: #222f3e;
-jr-blue-gray-4-darker: derive(-jr-blue-gray-4, -5%);
/* Highlights */
-jr-blue: #0abde3;
-jr-light-blue: #48dbfb;
-jr-purple: #7559C2;
-jr-light-purple: #ff9ff3;
-jr-green: #10ac84;
-jr-light-green: #1dd1a1;
-jr-red: #ee5253;
-jr-light-red: #ff6b6b;
-jr-yellow: #feca57;
-jr-orange: #ff9f43;
/* Background specs */
-jr-background-alt: -fx-background;
-jr-text-area-background: derive(-jr-base, 80%);
-jr-search-background: -jr-text-area-background;
-jr-toolbar: derive(-jr-base, 46.4%);
-jr-menu-background: derive(-jr-base, 46.4%);
-jr-menu-background-active: -jr-hover;
-jr-menu-foreground: -fx-dark-text-color;
-jr-menu-item-foreground: -fx-dark-text-color;
-jr-menu-forground-active: -fx-dark-text-color;
-jr-head-fg: -fx-text-inner-color;
/* All icons/text on toolbars */
-jr-theme-text: -jr-theme;
-jr-icon-background: transparent;
-jr-icon-background-active: #0001;
-jr-icon-background-armed: #0002;
/* Colors for messages and errors */
-jr-info: -jr-light-green;
-jr-warn: -jr-orange;
-jr-error: -jr-light-red;
/* Color for the small group view indicator for the number of hits */
-jr-group-hits-bg: derive(-jr-sidepane-background, -50%);
-jr-group-hits-fg: ladder(
-jr-group-hits-bg,
-fx-light-text-color 45%,
-fx-dark-text-color 46%,
-fx-dark-text-color 59%,
-fx-mid-text-color 60%
);
/* Specific color for general tooltips */
-jr-tooltip-bg: -jr-accent;
-jr-tooltip-fg: -jr-black;
/* Finally, some specific jr styles that depend on -fx definitions in *this* style */
-jr-sidepane-background: -jr-gray-1;
-jr-sidepane-header-background: -jr-gray-1;
-jr-sidepane-header-color: -jr-theme-text;
/* Specs for the scrollbars */
-jr-scrollbar-thumb: derive(-fx-outer-border, -30%);
-jr-scrollbar-track: derive(-fx-control-inner-background, -10%);
-jr-separator: derive(-fx-color, -5%);
-jr-search-text: -fx-text-base-color;
/* For drag and drop actions */
-jr-drag-target: -jr-purple;
-jr-drag-target-hover: derive(-jr-purple, 80%);
-js-summary-text-color: #000000;
-js-summary-text-color-selected: #000000;
/*
Here are redefinitions of the default properties of modena. They should in principle all be derived from the
above colors. Goal should be to make as few as possible direct color-changes to elements and only do this for
very specific purposes.
*/
-fx-base: -jr-base;
/* A very light grey used for the background of windows. See also
* -fx-text-background-color, which should be used as the -fx-text-fill
* value for text painted on top of backgrounds colored with -fx-background.
*/
-fx-background: derive(-fx-base, 26.4%);
/* Used for the inside of text boxes, password boxes, lists, trees, and
* tables. See also -fx-text-inner-color, which should be used as the
* -fx-text-fill value for text painted on top of backgrounds colored
* with -fx-control-inner-background.
*/
-fx-control-inner-background: derive(-fx-base, 95%);
/* Version of -fx-control-inner-background for alternative rows */
-fx-control-inner-background-alt: derive(-fx-control-inner-background, -6%);
/* One of these colors will be chosen based upon a ladder calculation
* that uses the brightness of a background color. Instead of using these
* colors directly as -fx-text-fill values, the sections in this file should
* use a derived color to match the background in use. See also:
*
* -fx-text-base-color for text on top of -fx-base, -fx-color, and -fx-body-color
* -fx-text-background-color for text on top of -fx-background
* -fx-text-inner-color for text on top of -fx-control-inner-color
* -fx-selection-bar-text for text on top of -fx-selection-bar
*/
-fx-dark-text-color: -jr-black;
-fx-mid-text-color: -jr-gray-3;
-fx-light-text-color: -jr-white;
/* We overwrite accents -> make old stick out */
-fx-accent: red;
/* Default buttons color, this is similar to accent but more subtle */
-fx-default-button: derive(-jr-accent, 50%);
/* A bright blue for the focus indicator of objects. Typically used as the
* first color in -fx-background-color for the "focused" pseudo-class. Also
* typically used with insets of -1.4 to provide a glowing effect.
*/
-fx-focus-color: -jr-accent;
-fx-faint-focus-color: derive(-jr-accent, 50%);
/* The color that is used in styling controls. The default value is based
* on -fx-base, but is changed by pseudoclasses to change the base color.
* For example, the "hover" pseudoclass will typically set -fx-color to
* -fx-hover-base (see below) and the "armed" pseudoclass will typically
* set -fx-color to -fx-pressed-base.
*/
-fx-color: -fx-base;
-fx-hover-base: derive(-fx-base, 30%);
/* A little darker than -fx-base and used as the -fx-color for the
* "armed" pseudoclass state.
*
* TODO: should this be renamed to -fx-armed-base?
*/
-fx-pressed-base: derive(-fx-base, -6%);
/* A little darker than -fx-color and used to draw boxes around objects such
* as progress bars, scroll bars, scroll panes, trees, tables, and lists.
*/
-fx-box-border: derive(-fx-color, -5%);
/* Darker than -fx-background and used to draw boxes around text boxes and
* password boxes.
*/
-fx-text-box-border: derive(-fx-background, -15%);
/* Lighter than -fx-background and used to provide a small highlight when
* needed on top of -fx-background. This is never a shadow in Modena but
* keep -fx-shadow-highlight-color name to be compatible with Caspian.
*/
-fx-shadow-highlight-color: rgba(255, 255, 255, 0.07) 70%;
/* A gradient that goes from a little darker than -fx-color on the top to
* even more darker than -fx-color on the bottom. Typically is the second
* color in the -fx-background-color list as the small thin border around
* a control. It is typically the same size as the control (i.e., insets
* are 0).
*/
-fx-outer-border: derive(-fx-color, -5%);
/* A gradient that goes from a bit lighter than -fx-color on the top to
* a little darker at the bottom. Typically is the third color in the
* -fx-background-color list as a thin highlight inside the outer border.
* Insets are typically 1.
*/
-fx-inner-border: derive(-fx-color, 65%);
-fx-inner-border-horizontal: derive(-fx-color, 65%);
-fx-inner-border-bottomup: derive(-fx-color, 65%);
/*-fx-inner-border: red;*/
/*-fx-inner-border-horizontal: green;*/
/*-fx-inner-border-bottomup: blue;*/
/* A gradient that goes from a little lighter than -fx-color at the top to
* a little darker than -fx-color at the bottom and is used to fill the
* body of many controls such as buttons.
*/
-fx-body-color: derive(-fx-color, 20%);
-fx-body-color-bottomup: derive(-fx-color, 20%);
-fx-body-color-to-right: derive(-fx-color, 20%);
/* The small thin light "shadow" for mark-like objects. Typically used in
* conjunction with -fx-mark-color with an insets of 1 0 -1 0. */
-fx-mark-color: -fx-text-base-color;
-fx-mark-highlight-color: transparent;
/*-fx-mark-highlight-color: derive(-fx-color,80%);*/
/* Background for items in list like things such as menus, lists, trees,
* and tables. */
-fx-selection-bar: -jr-accent;
/* Background color to use for selection of list cells etc. This is when
* the control doesn't have focus or the row of a previously selected item. */
-fx-selection-bar-non-focused: lightgrey;
/* The color to use as -fx-text-fill when painting text on top of
* backgrounds filled with -fx-selection-bar. */
-fx-selection-bar-text: -fx-text-background-color;
/* These are needed for Popup */
-fx-background-color: inherit;
-fx-background-radius: inherit;
-fx-background-insets: inherit;
-fx-padding: inherit;
/** Focus line for keyboard focus traversal on cell based controls */
-fx-cell-focus-inner-border: derive(-fx-selection-bar, 30%);
-fx-focused-mark-color: -fx-focused-text-base-color;
/* Consistent size for headers of tab-pane and side-panels*/
-jr-header-height: 3em;
/* AI chat style */
-jr-ai-message-user: -jr-accent;
-jr-ai-message-user-border: -jr-theme;
-jr-ai-message-ai: -jr-accent;
-jr-ai-message-ai-border: -jr-theme;
-jr-ai-message-error: -jr-error;
-jr-ai-message-error-border: derive(-jr-error, -40%);
/* region: maintable base colors **/
-jr-match-1-odd: -jr-row-odd-background;
-jr-match-1-even: -jr-row-even-background;
-jr-match-1-text-color: -fx-mid-text-color;
-jr-match-2-odd: derive(-jr-theme, 100%);
-jr-match-2-even: derive(-jr-match-2-odd, 10%);
-jr-match-2-text-color: -fx-mid-text-color;
-jr-match-3-odd: derive(-jr-theme, 50%);
-jr-match-3-even: derive(-jr-match-3-odd, 10%);
-jr-match-3-text-color: derive(-jr-accent, 30%);
-jr-match-4-odd: -jr-theme;
-jr-match-4-even: derive(-jr-match-4-odd, 10%);
-jr-match-4-text-color: -jr-accent;
-jr-maintable-focused-hover-text: -jr-white;
/* endregion */
}
.unchanged {
-rtfx-background-color: #0000;
}
.updated {
-rtfx-background-color: rgba(41, 166, 236, 0.66);
}
.addition {
-rtfx-background-color: rgba(29, 209, 161, 0.5);
}
.deletion {
-rtfx-background-color: rgba(255, 107, 107, 0.55);
}
#frame {
-fx-background-color: -jr-background-alt;
}
/*
* The base css file defining the style that is valid for every pane and dialog.
*/
TextFlow > * {
-fx-fill: -fx-text-background-color;
}
TextFlow > .hyperlink,
.hyperlink {
-fx-padding: 0;
-fx-underline: false;
-fx-border-style: null;
-fx-border-color: null;
-fx-text-fill: -jr-theme;
-fx-fill: -jr-theme;
}
TextFlow > .hyperlink:visited,
.hyperlink:visited {
-fx-text-fill: -jr-accent;
-fx-fill: -jr-accent;
}
.TextFlow > .hyperlink:hover,
.hyperlink:hover {
-fx-underline: true;
}
.TextFlow > .embeddedHyperlink {
-fx-padding: 0.166667em 0.25em 0.166667em 0.25em;
}
.glyph-icon {
/* This adjusts text alignment within the bounds of text nodes so that
the text is always vertically centered within the bounds. Based on
the cap height of the text. */
-fx-bounds-type: logical_vertical_center;
/* The base color of icons should always be the same as the text. */
-fx-fill: -fx-text-base-color;
}
.ikonli-font-icon {
-fx-icon-color: -fx-text-base-color;
}
.tooltip {
-fx-background-color: -jr-tooltip-bg;
-fx-opacity: 95%;
-fx-text-fill: -jr-tooltip-fg;
-fx-font-size: 1em;
}
.tooltip > TextFlow > Text {
-fx-font-size: 1em;
}
TextFlow > .tooltip-text-bold {
-fx-font-weight: bold;
}
TextFlow > .tooltip-text-italic {
-fx-font-style: italic;
}
TextFlow > .tooltip-text-monospaced {
-fx-font-family: monospace;
}
.radio-button > .radio,
.check-box > .box {
-fx-background-color: transparent;
-fx-background-insets: 0;
-fx-background-radius: 0;
-fx-text-fill: -fx-text-base-color;
}
.button,
.toggle-button,
.menu-button,
.choice-box,
.combo-box-base,
.combo-box-base:editable > .arrow-button {
-fx-background-color: transparent;
-fx-background-insets: 0;
-fx-background-radius: 0.25em;
-fx-text-fill: -fx-text-base-color;
}
.button {
-fx-background-color: transparent;
-fx-border-color: -fx-outer-border; /* rgba(0, 0, 0, 0.23); */
-fx-border-width: 0.062em;
-fx-border-radius: 0.25em;
-fx-padding: 0.5em 1em 0.5em 1em;
}
.menu-button > .label {
-fx-padding: 0 8 0 8;
}
.button:hover {
-fx-background-color: rgba(0, 0, 0, 0.12);
}
.button:focused,
.button:pressed {
-fx-background-color: rgba(0, 0, 0, 0.3);
}
.button:default {
-fx-background-color: -fx-default-button;
}
.button:default:hover {
-fx-background-color: derive(-fx-default-button, -10%);
}
.button:default:focused,
.button:default:pressed {
-fx-background-color: derive(-fx-default-button, -20%);
}
.text-button {
-fx-border-width: 0;
}
.contained-button {
-fx-background-color: -jr-accent;
-fx-border-color: -jr-accent;
}
.icon-buttonNoSpaceBottom,
.icon-buttonNoSpaceTop,
.icon-button {
-fx-border-width: 0;
-fx-background-color: -jr-icon-background;
-fx-padding: 0.5em;
}
.toggle-button:hover,
.toggle-button:selected:hover,
.icon-buttonNoSpaceBottom:hover,
.icon-buttonNoSpaceTop:hover,
.icon-button:hover {
-fx-background-color: -jr-icon-background-active;
}
.icon-buttonNoSpaceBottom:armed,
.icon-buttonNoSpaceTop:armed,
.icon-button:armed {
-fx-background-color: -jr-icon-background-armed;
}
.icon-button:selected {
-fx-background-color: -jr-icon-background-active;
-fx-text-fill: white;
-fx-fill: white;
}
.icon-button:disabled {
-fx-opacity: 0.4;
}
.toggle-button:selected {
-fx-background-color: -jr-icon-background-active;
-fx-text-fill: -jr-selected;
-fx-fill: -jr-selected;
}
.icon-buttonNoSpaceBottom {
-fx-padding: 0.5em 0.5em -0.1em 0.5em;
}
.icon-buttonNoSpaceTop {
-fx-padding: -0.1em 0.5em 0.5em 0.5em;
}
.progress-indicator {
-fx-progress-color: -jr-theme;
-fx-border-width: 0;
-fx-background-color: -jr-icon-background;
}
.progress-indicator:hover {
-fx-background-color: -jr-icon-background-active;
}
.progress-indicatorToolbar {
-fx-padding: 0.5em;
}
.progress-indicatorToolbar .percentage {
-fx-fill: null;
}
.check-box {
-fx-label-padding: 0.0em 0.0em 0.0em 0.75em;
-fx-text-fill: -fx-text-background-color;
}
.check-box > .box {
-fx-border-color: -fx-outer-border; /* rgba(0, 0, 0, 0.54); */
-fx-border-width: 0.125em;
-fx-border-radius: 0.062em;
-fx-padding: 0.1em 0.1em 0.2em 0.2em;
}
.check-box:selected > .box {
-fx-background-insets: 0.125em;
-fx-border-color: -jr-checked;
-fx-background-color: -jr-checked;
}
.check-box > .box > .mark {
-fx-padding: 0.2em 0.2em 0.2em 0.2em;
}
.check-box:selected > .box > .mark {
-fx-background-color: -fx-control-inner-background;
-fx-shape: "M6.61 11.89L3.5 8.78 2.44 9.84 6.61 14l8.95-8.95L14.5 4z";
-fx-stroke-width: 5;
}
.radio-button > .radio {
-fx-background-radius: 1.0em; /* large value to make sure this remains circular */
-fx-padding: 0.35em; /* padding from outside edge to the inner dot */
-fx-background-color: rgba(0, 0, 0, 0.54), -fx-control-inner-background;
-fx-background-insets: 0, 0.125em;
}
.radio-button:selected > .radio {
-fx-background-color: -jr-checked, -fx-background;
}
.radio-button > .radio > .dot {
-fx-padding: 0.25em; /* radius of the inner dot when selected */
-fx-background-insets: 0;
}
.radio-button:selected > .radio > .dot {
-fx-background-color: -jr-checked;
}
.menu-bar {
-fx-background-color: -jr-menu-background;
-fx-background-insets: 0;
-fx-background-radius: 0;
}
.menu-bar > .container > .menu-button > .label {
-fx-padding: 0.41777em 0.41777em 0.41777em 0.41777em;
}
.menu-bar > .menu {
-fx-padding: 0.0em 0.666667em 0.0em 0.666667em;
}
.menu-bar .menu-button {
-fx-border-color: transparent;
-fx-border-width: 0;
-fx-border-radius: 0;
}
.menu-item {
-fx-padding: 0.5em 0.41777em 0.5em 0.41777em;
}
.tab-pane {
-fx-open-tab-animation: NONE;
-fx-close-tab-animation: NONE;
}
.tab-pane > .tab-header-area > .headers-region > .tab {
-fx-background-insets: 0;
-fx-background-radius: 0;
-fx-background-color: -jr-background-alt;
-fx-border-color: -fx-outer-border;
-fx-border-width: 0.5 0.5 0.5 0.5;
-fx-padding: 0.3em 0.9em 0.3em 0.9em;
-fx-pref-height: -jr-header-height;
}
.tab-pane > .tab-header-area > .headers-region > .tab .tab-label {
-fx-text-fill: -fx-mid-text-color;
}
.tab-pane > .tab-header-area > .headers-region > .control-buttons-tab {
-fx-border-color: -jr-theme;
-fx-fill: -jr-theme-text;
-fx-text-fill: -jr-theme-text;
}
.tab-pane > .tab-header-area > .headers-region > .tab:selected {
-fx-background-color: -fx-control-inner-background;
-fx-border-color: -jr-theme;
-fx-border-width: 3 0 0 0;
}
.tab-pane > .tab-header-area > .headers-region > .tab:selected .tab-label {
-fx-fill: -jr-theme-text;
-fx-text-fill: -jr-theme-text;
}
.tab-pane > .tab-header-area > .headers-region > .tab:selected .tab-close-button {
-fx-background-color: -jr-theme-text;
}
.tab-pane > .tab-header-area > .headers-region > .tab:selected .glyph-icon {
-fx-fill: -fx-mid-text-color;
-fx-text-fill: -fx-mid-text-color;
}
.tab-pane:focused > .tab-header-area > .headers-region > .tab:selected .focus-indicator {
-fx-border-width: 0;
-fx-border-insets: 0;
-fx-border-radius: 0;
}
.tab-pane > .tab-header-area > .headers-region > .tab.drop {
-fx-border-color: -jr-drag-target;
-fx-background-color: -jr-drag-target-hover;
-fx-border-width: 3 1 1 1;
}
.tab-pane > .tab-header-area > .headers-region > .tab.drop .tab-label {
-fx-fill: -jr-drag-target;
-fx-text-fill: -jr-drag-target;
}
.tab-pane > .tab-header-area > .tab-header-background {
-fx-background-color: -jr-background-alt;
}
.tab-pane > .tab-header-area > .headers-region > .tab .glyph-icon {
-glyph-size: 0.812em;
-fx-fill: -fx-mid-text-color;
-fx-text-fill: -fx-mid-text-color;
}
.tab-pane > .tab-header-area > .headers-region > .tab:selected .glyph-icon {
-fx-fill: -jr-theme-text;
-fx-text-fill: -jr-theme-text;
}
.tab-pane > .tab-header-area {
-fx-padding: 0 0 0 0;
}
.numberColumn > .hits:any-selected {
-fx-background-color: derive(-jr-green, 70%);
}
.numberColumn > .hits:all-selected {
-fx-background-color: -jr-green;
}
.table-view,
.tree-table-view {
-fx-background-insets: 0;
-fx-padding: 0;
}
.table-view:focused,
.tree-table-view:focused {
-fx-background-insets: 0;
}
.split-pane > .split-pane-divider {
-fx-background-color: -jr-sidepane-background;
-fx-padding: 0 .5 0 .5;
}
.table-row-cell:hover,
.table-row-cell:hover:even,
.tree-table-row-cell:hover {
-fx-background-color: -jr-hover;
-fx-fill: -jr-hover-text;
-fx-text-fill: -jr-hover-text;
}
.tree-table-row-cell:selected > .tree-table-cell > .glyph-icon {
-fx-fill: white;
-fx-text-fill: white;
}
.table-view > .virtual-flow > .clipped-container > .sheet > .table-row-cell .table-cell:selected,
.tree-table-view > .virtual-flow > .clipped-container > .sheet > .tree-table-row-cell .tree-table-cell:selected {
-fx-border-color: transparent;
-fx-background-insets: 0;
}
.merge-field-value .action-icon {
-fx-blend-mode: multiply;
-fx-opacity: 69%;
-fx-icon-size: 14;
-fx-icon-color: -fx-text-background-color;
}
.merge-field-value:disabled .action-icon {
-fx-opacity: 0%;
}
.merge-header-cell {
-fx-border-width: 0 0 1 0;
-fx-border-color: -jr-gray-1;
-fx-background-color: -jr-row-even-background;
}
.merge-header {
-fx-background-color: -jr-row-even-background;
}
.lib-change-header {
-fx-font-size: 130%;
-fx-padding: 0.2em 0em 0.2em 0.2em;
}
.table-view .groupColumnBackground {
-fx-stroke: -jr-gray-2;
}
.scroll-pane:focused,
.split-pane:focused,
.list-view:focused,
.tree-view:focused,
.table-view:focused,
.tree-table-view:focused,
.html-editor:contains-focus {
-fx-background-color: -fx-control-inner-background;
-fx-background-insets: 0;
-fx-background-radius: 0;
}
/* Selected rows */
.list-view:focused > .virtual-flow > .clipped-container > .sheet > .list-cell:filled:selected,
.tree-view:focused > .virtual-flow > .clipped-container > .sheet > .tree-cell:filled:selected,
.table-view:focused > .virtual-flow > .clipped-container > .sheet > .table-row-cell:filled:selected,
.tree-table-view:focused > .virtual-flow > .clipped-container > .sheet > .tree-table-row-cell:filled:selected,
.table-view:focused > .virtual-flow > .clipped-container > .sheet > .table-row-cell .table-cell:selected,
.tree-table-view:focused > .virtual-flow > .clipped-container > .sheet > .tree-table-row-cell .tree-table-cell:selected {
-fx-background: -jr-selected;
-fx-background-color: -jr-selected;
-fx-table-cell-border-color: transparent;
}
/* Selected when control is not focused
* In the context of the MainTable: an element is focused at a double click. A single click "just" selects it.
*/
.list-cell:filled:selected,
.tree-cell:filled:selected,
.table-row-cell:filled:selected,
.tree-table-row-cell:filled:selected,
.table-row-cell:filled > .table-cell:selected,
.tree-table-row-cell:filled > .tree-table-cell:selected {
-fx-background: -jr-selected;
-fx-background-color: -jr-selected;
-fx-table-cell-border-color: transparent;
-fx-text-fill: -jr-black;
}
.table-cell:invalid,
.list-cell:invalid {
-fx-background-color: -jr-warn;
}
.duplicate-entry {
-fx-background-color: -jr-light-green;
}
.file-row-text {
-fx-fill: -jr-search-text;
}
.file-row-text:opacity {
-fx-fill: derive(-jr-search-text, 70%);
}
.combo-box-base {
-fx-background-color: -fx-outer-border, -fx-control-inner-background;
-fx-background-insets: 0, 1;
-fx-background-radius: 0, 0;
}
.combo-box > .list-cell {
-fx-background-color: -fx-outer-border, -fx-control-inner-background;
-fx-background-insets: 0, 1 0 1 1;
-fx-text-fill: -fx-text-base-color;
}
.combo-box-popup > .list-view {
-fx-background-color: -fx-control-inner-background;
-fx-background-insets: 0;
-fx-effect: null;
-fx-border-width: 1;
-fx-border-color: -fx-outer-border;
-fx-padding: 0;
}
.combo-box-popup > .list-view > .virtual-flow > .clipped-container > .sheet > .list-cell {
-fx-padding: 4 0 4 5;
/* No alternate highlighting */
-fx-background: -fx-control-inner-background;
}
.combo-box-popup > .list-view > .virtual-flow > .clipped-container > .sheet > .list-cell:filled:hover {
-fx-background: -fx-control-inner-background;
-fx-background-color: -jr-hover;
}
.combo-box-popup > .list-view > .virtual-flow > .clipped-container > .sheet > .list-cell:filled:selected,
.combo-box-popup > .list-view > .virtual-flow > .clipped-container > .sheet > .list-cell:filled:selected:hover {
-fx-background: -fx-control-inner-background;
-fx-background-insets: 0;
}
.combo-box-popup > .list-view > .placeholder > .label {
-fx-text-fill: -fx-text-base-color;
}
.stack-pane,
.scroll-pane,
.scroll-pane > .viewport,
.split-pane {
-fx-background-color: transparent;
-fx-background-insets: 0, 0;
-fx-padding: 0;
}
.accordion .titled-pane {
-fx-skin: "org.jabref.gui.util.CustomTitledPaneSkin";
-fx-arrow-side: right;
}
.accordion .titled-pane .title {
-fx-background-color: transparent;
-fx-border-color: transparent;
-fx-background-insets: 5 5 5 5;
}
.accordion .titled-pane > *.content {
-fx-background-color: transparent;
-fx-border-color: transparent;
}
/*
* The arrow button has some right padding that's added
* by "modena.css". This simply puts the padding on the
* left since the arrow is positioned on the right.
*/
.titled-pane > .title > .arrow-button {
-fx-padding: 0.0em 0.0em 0.0em 0.583em;
}
.text-input {
-fx-background-color: -fx-outer-border, -fx-control-inner-background;
-fx-background-insets: 0, 1;
-fx-prompt-text-fill: -jr-gray-2;
}
.text-input:focused {
-fx-highlight-fill: derive(-jr-accent, 20%);
-fx-background-color: -jr-accent, -fx-control-inner-background;
-fx-background-insets: 0, 2;
-fx-highlight-text-fill: -fx-text-inner-color;
}
.text-area {
-fx-background-color: -fx-control-inner-background;
}
.text-area .content {
-fx-background-color: -fx-outer-border, -fx-control-inner-background;
-fx-background-insets: 0, 1;
-fx-padding: 0.333333em 0.583em 0.333333em 0.583em;
-fx-background-radius: 0;
}
.text-area:focused .content {
-fx-background-color: -jr-accent, -fx-control-inner-background;
-fx-background-insets: 0, 2;
-fx-background-radius: 0;
}
.text-area > .scroll-pane > .corner {
-fx-background-radius: 0 0 0 0;
-fx-background-color: -fx-background;
}
.combo-box-base:editable > .text-field,
.date-picker > .text-field {
-fx-background-color: -fx-outer-border, -fx-control-inner-background;
-fx-background-insets: 0, 1;
-fx-background-radius: 0;
}
.combo-box-base:editable:focused > .text-field,
.combo-box-base:editable > .text-field:focused,
.date-picker > .text-field:focused {
-fx-background-color: -jr-accent, -fx-control-inner-background;
-fx-background-insets: 0, 2;
-fx-background-radius: 0;
}
.date-picker:focused > .text-field {
-fx-background-color: -fx-control-inner-background;
-fx-background-insets: 0;
}
.scroll-bar {
-fx-background-color: transparent;
-fx-opacity: 0.3;
}
.scroll-bar:horizontal .track,
.scroll-bar:vertical .track {
-fx-background-color: -jr-scrollbar-track;
-fx-opacity: 0.6;
-fx-background-radius: 0em;
}
.scroll-bar:horizontal .thumb,
.scroll-bar:vertical .thumb {
-fx-background-color: -jr-scrollbar-thumb;
-fx-background-insets: 0, 0, 0;
-fx-background-radius: 0em;
}
.scroll-bar .thumb:hover,
.scroll-bar .thumb:pressed {
-fx-background-color: derive(-jr-scrollbar-thumb, -30%);
}
/* Hide increment and decrement buttons */
.scroll-bar > .increment-button,
.scroll-bar > .decrement-button {
-fx-background-color: null;
-fx-background-radius: 0;
-fx-background-insets: 0;
-fx-padding: 0;
}
/* Hide increment and decrement arrows */
.scroll-bar:horizontal > .decrement-button > .decrement-arrow,
.scroll-bar:horizontal > .increment-button > .increment-arrow,
.scroll-bar:vertical > .decrement-button > .decrement-arrow,
.scroll-bar:vertical > .increment-button > .increment-arrow {
-fx-background-color: null;
-fx-background-radius: 0;
-fx-background-insets: 0;
-fx-shape: null;
-fx-padding: 0;
}
/* Need some padding since otherwise no scroll-bar is displayed at all */
.scroll-bar:horizontal > .decrement-button > .decrement-arrow {
-fx-padding: 0.333em 0.167em 0.333em 0.167em; /* 4 2 4 2 */
}
.scroll-bar:vertical > .decrement-button > .decrement-arrow {
-fx-padding: 0em 0.333em 0em 0.333em; /* 2 4 2 4 */
}
/* Restore full visibility of scrollbars for active elements */
.list-view:hover .scroll-bar,
.tree-view:hover .scroll-bar,
.table-view:hover .scroll-bar,
.tree-table-view:hover .scroll-bar,
.text-input:hover .scroll-bar,
.scroll-pane:hover .scroll-bar {
-fx-opacity: 1;
}
.sidePaneComponentHeader {
-fx-background-color: -jr-sidepane-header-background;
-fx-padding: 0.3em 0.9em 0.3em 0.9em;
-fx-pref-height: -jr-header-height;
}
.sidePaneComponentHeader > .label {
-fx-text-fill: -jr-sidepane-header-color;
-fx-font-weight: bold;