-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserChrome.css
More file actions
76 lines (67 loc) · 2.2 KB
/
Copy pathuserChrome.css
File metadata and controls
76 lines (67 loc) · 2.2 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
@import url("tabColour.css");
/* Make the pinned tabs narrower (default is HUGE) */
:root {
--tab-pinned-min-width-expanded: 30px !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;
}
/* Reduce tab vertical padding */
#tabbrowser-tabs[orient="vertical"] {
& .tabbrowser-tab {
padding-block: 2px !important;
}
}
/* The default is different even for pinned tabs, and messes them up. */
#tabbrowser-tabs[orient="vertical"] {
& .tabbrowser-tab {
&:nth-child(1 of :not([hidden])) {
padding-block-start: 2px !important;
}
}
}
/* Fixes for container and group markers */
#tabbrowser-tabs[orient="vertical"] {
.tab-context-line {
margin: 0 -6px !important;
width: 3px !important;
border-radius: 1px !important;
background: linear-gradient(rgba(255, 255, 255, 0.4), transparent) var(--identity-icon-color) !important;
}
tab-group {
&:not([collapsed])::before {
margin: 7px -2px 4px -2px !important;
width: 3px !important;
border-radius: 1px !important;
background: linear-gradient(rgba(255, 255, 255, 0.4), transparent) var(--tab-group-color) !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 {
&:not([collapsed])::before {
background: linear-gradient(transparent, rgba(0, 0, 0, 0.4)) var(--tab-group-color) !important;
}
}
}
}