Repository navigation
Expand file tree
/
Copy pathaddons.css
More file actions
136 lines (114 loc) · 3.73 KB
/
Copy pathaddons.css
File metadata and controls
136 lines (114 loc) · 3.73 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
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
/* Making the addons page sidebar compact (expand on hover) and make addons as grid */
/* inspiration from https://github.com/MrOtherGuy/firefox-csshacks/blob/master/content/multi_column_addons.css made available under Mozilla Public License v. 2.0 */
@-moz-document url-prefix("about:addons") {
@media -moz-pref("compact-settings.compact-addons.enabled") {
@media (min-width: 951px) {
#full {
display: block !important;
#sidebar {
position: fixed !important;
inset-inline-start: 0 !important;
top: 0 !important;
height: 100vh !important;
z-index: 20 !important;
box-sizing: border-box !important;
width: var(--cs-strip-w) !important;
overflow: clip !important;
margin: 0 !important;
padding: 0 !important;
padding-inline-start: 8px !important;
background: var(--cs-sidebar-background) !important;
--font-size-xlarge: 0px;
mask-image: linear-gradient(to right, black 43px, transparent 47px) !important;
@media -moz-pref("compact-settings.animation.enabled") {
transition:
width var(--cs-anim),
box-shadow var(--cs-anim) !important;
}
moz-page-nav {
margin-inline-start: 0 !important;
padding-inline: 0 !important;
width: 234px !important;
}
moz-page-nav-button {
width: 225px !important;
&[selected] {
color: var(--cs-accent) !important;
}
}
&:hover {
width: var(--cs-flyout-w) !important;
mask-image: none !important;
padding-inline-end: var(--space-small, 7.5px) !important;
box-shadow: var(--cs-elevation) !important;
}
}
#content {
margin-inline-start: var(--cs-content-offset) !important;
max-width: calc(100% - var(--cs-content-offset) - 8px) !important;
height: 100vh !important;
overflow-y: auto !important;
}
}
}
}
@media -moz-pref("compact-settings.addons.grid-enabled") {
#full #content #main {
width: 90% !important;
max-width: 100vw !important;
padding: 0 !important;
margin: 0 auto !important;
addon-card[expanded="true"] > div {
margin-top: 40px;
}
addon-list {
h2 {
grid-area: hd;
}
&[type="extension"] > section {
display: grid;
grid-auto-columns: 1fr;
gap: 1em;
grid-template-areas: "hd" "cd";
addon-card > div {
height: 65% !important;
}
@media (min-width: 960px) {
grid-template-areas: "hd hd" "cd cd";
addon-card > div {
height: 70% !important;
}
}
@media (min-width: 1200px) {
grid-template-areas: "hd hd hd" "cd cd cd";
addon-card > div {
height: 80% !important;
}
}
}
&[type="theme"] > section addon-card {
padding: 2px !important;
}
.card-contents {
width: unset !important;
white-space: initial !important;
}
}
}
addon-page-header .sticky-container {
border-bottom: 1px solid var(--border-color, #88888840) !important;
position: relative !important;
margin-bottom: 20px !important;
.main-heading {
max-width: 100vw !important;
margin: auto !important;
width: 80% !important;
}
.main-search {
max-width: 100vw !important;
justify-content: center !important;
gap: 30px !important;
}
}
}
}