Repository navigation
Expand file tree
/
Copy pathuserChrome.css
More file actions
87 lines (76 loc) · 2.69 KB
/
Copy pathuserChrome.css
File metadata and controls
87 lines (76 loc) · 2.69 KB
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
@import url("tabColour.css");
/* Make the pinned tabs narrower (default is HUGE)
* Fix the too-large space between tabs in compact mode
*/
:root {
--tab-pinned-min-width-expanded: calc(var(--tab-min-height) + 2 * 2px) !important;
--tab-margin-block: 2px !important;
}
/* Bold selected and hover tab text */
.tabbrowser-tab[selected], .tabbrowser-tab:hover {
font-weight: 700 !important;
}
/* Add outline to selected and hover tab;
* explicit copy of built-in box shadow for easy modification */
tab[selected] .tab-background, tab:hover .tab-background {
outline-color: rgba(0, 0, 0, 0.4) !important;
box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4) !important;
}
/* Italicise unread tabs (depends on function in JS) */
.tabbrowser-tab[unread]:not([skipbackgroundnotify]) {
font-style: italic !important;
}
/* Fix vertical padding */
#tabbrowser-tabs[orient="vertical"] {
& .tabbrowser-tab[pinned] {
padding-block: 2px !important;
}
& .tabbrowser-tab:not([pinned]) {
padding-block: 0px !important;
}
}
/* Fixes for container and group markers */
#tabbrowser-tabs[orient="vertical"] {
.tab-context-line {
margin: 0 -6px !important;
width: 4px !important;
border-block-width: 15px !important;
border-radius: 2px !important;
background: linear-gradient(rgba(255, 255, 255, 0.4), transparent) var(--identity-icon-color) !important;
}
.tab-group-line {
margin: 5px 0 5px -2px !important;
width: 4px !important;
inset-block: -2px -2px !important;
border-radius: 2px !important;
background: linear-gradient(rgba(255, 255, 255, 0.4), transparent) var(--tab-group-color) !important;
}
}
/* Make title changed indicator a neutral colour */
.tab-content[titlechanged]:not([selected]) {
background-image: radial-gradient(circle, white 1px, black 2px, transparent 2px) !important;
}
/* Alternate colours for dark mode */
@media (prefers-color-scheme: dark) {
tab[selected] .tab-background, tab:hover .tab-background {
outline-color: rgba(255, 255, 255, 0.4) !important;
box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.4) !important;
}
#tabbrowser-tabs[orient="vertical"] {
.tab-context-line {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.4)) var(--identity-icon-color) !important;
}
.tab-group-line {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.4)) var(--tab-group-color) !important;
}
}
.tab-content[titlechanged]:not([selected]) {
background-image: radial-gradient(circle, black 1px, white 2px, transparent 2px) !important;
}
}
/* Fix for blurry text on vertical tabs
* https://bugzilla.mozilla.org/show_bug.cgi?id=2065243
*/
#sidebar-container, sidebar-main {
translate: unset !important;
}