-
Notifications
You must be signed in to change notification settings - Fork 0
/
portainer-ce-clean.user.css
254 lines (208 loc) · 8.84 KB
/
portainer-ce-clean.user.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
/* ==UserStyle==
@name Portainer Community Edition Clean Layout
@version 1.0.4
@namespace Portainer
@description Cleanup Portainer Community Edition by hiding all the unusable business features.
@author adripo (https://github.com/adripo)
@homepageURL https://github.com/adripo/portainer-ce-clean-layout
@supportURL https://github.com/adripo/portainer-ce-clean-layout/issues
@updateURL https://raw.githubusercontent.com/adripo/portainer-ce-clean-layout/main/portainer-ce-clean.user.css
@license NO-REDISTRIBUTION
@preprocessor uso
@var text portainer_url "Portainer URL (http://example.com/)" "http://example.com/"
@var select apply_property "CSS Property to apply" {
"Hide*": "display: none !important;",
"Red Border": "border: solid red 2px !important;",
"Rainbow": `
border: 2px solid transparent !important;
border-image: linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%) !important;
border-image-slice: 1 !important;
`,
"Glow": `
border: 2px solid #fff !important;
border-radius: 4px !important;
box-shadow: 0 0 4px #fff,
0 0 4px #fff,
0 0 6px #bc13fe,
0 0 8px #bc13fe,
0 0 10px #bc13fe,
inset 0 0 8px #bc13fe !important;
`
}
==/UserStyle== */
@-moz-document url-prefix("/*[[portainer_url]]*/") {
/***** Everywhere *****/
/* Hide Sidebar Business banner */
#sideview button:has(+ nav) {
/*[[apply_property]]*/
}
/* Hide Sidebar Users Roles */
#sideview nav[aria-label="Settings"] li[aria-label="Users"] li:has(a[href="#!/roles"]) {
/*[[apply_property]]*/
}
/* Hide Sidebar Authentication logs */
#sideview nav[aria-label="Settings"] li[aria-label="Authentication logs"]:has(a[href="#!/auth-logs"]) {
/*[[apply_property]]*/
}
/* Hide Sidebar Kubernetes Security constraints */
#sideview li[aria-label="Cluster"] li[aria-label="Security constraints"] {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/wizard/endpoints($|/create\?.*$)") {
/***** Settings -> Environments -> Add Environment *****/
/* Hide BE Feature */
#content-wrapper div.app-react-components-BoxSelector-BoxSelectorItem-module__business {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/endpoints/[0-9]+/access($|\?.*$)") {
/***** Settings -> Environments -> Manage access *****/
/* Hide Business Feature indicator */
#content-wrapper div.form-group:has(be-feature-indicator) {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/registries$") {
/***** Settings -> Registries *****/
/* Hide Business indicator */
#content-wrapper a.be-indicator {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/settings$") {
/***** Settings -> Settings *****/
/* Hide Business indicator */
#content-wrapper div.form-group:has(a.be-indicator) {
/*[[apply_property]]*/
}
/* Hide BE Card */
#content-wrapper div.be-indicator-container {
/*[[apply_property]]*/
}
/* Hide BE Feature */
#content-wrapper div.app-react-components-BoxSelector-BoxSelectorItem-module__business {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/settings/auth$") {
/***** Settings -> Settings -> Authentication *****/
/* Hide BE Feature */
#content-wrapper div.app-react-components-BoxSelector-BoxSelectorItem-module__business {
/*[[apply_property]]*/
}
/* LDAP */
/* Hide BE Button LDAP URL */
#content-wrapper ldap-settings label[for="ldap_url"] button.limited-be {
/*[[apply_property]]*/
}
/* Hide BE Display Users */
#content-wrapper ldap-settings ldap-custom-user-search > div.form-group div.col-sm-12:has(be-feature-indicator) {
/*[[apply_property]]*/
}
/* Hide BE extra info */
#content-wrapper ldap-settings ldap-custom-group-search > rd-widget div.form-group:has(pr-icon[icon="'briefcase'"]) {
/*[[apply_property]]*/
}
/* Hide BE display user/group matching */
#content-wrapper ldap-settings ldap-custom-group-search > div.form-group div.col-sm-12:has(be-feature-indicator) {
/*[[apply_property]]*/
}
/* Hide LDAP Sections */
#content-wrapper ldap-settings ldap-custom-admin-group,
#content-wrapper ldap-settings ldap-settings-test-login {
/*[[apply_property]]*/
}
/* OAUTH */
/* Hide Business indicator */
#content-wrapper oauth-settings div.form-group:has(a.be-indicator) {
/*[[apply_property]]*/
}
}
@-moz-document
regexp("^/*[[portainer_url]]*//?#!/[0-9]+/docker/stacks/newstack$"),
regexp("^/*[[portainer_url]]*//?#!/[0-9]+/docker/stacks/.*$") {
/***** Environment Docker -> Stacks -> Add Stack *****/
/***** Environment Docker -> Stacks -> Stack -> Editor *****/
/***** Environment Docker -> Stacks -> Stack -> Container *****/
/* Hide Business indicator Stack webhook */
#content-wrapper div:has(> div.form-section-title a.be-indicator),
#content-wrapper div > div.form-section-title:has(a.be-indicator) {
/*[[apply_property]]*/
}
/* Hide Business indicator Container webhook */
#content-wrapper tr:has(div.form-group a.be-indicator) {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/[0-9]+/docker/containers/new($|.*$)") {
/***** Environment Docker -> Containers -> Add Container *****/
/* Hide Webhooks switch new container */
#content-wrapper div:has(> div.form-group a.be-indicator) {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/[0-9]+/docker/containers/[0-9a-fA-F]{64}$") {
/***** Environment Docker -> Containers -> Container *****/
/* Hide Business indicator Container webhook */
#content-wrapper tr:has(div.form-group a.be-indicator) {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/[0-9]+/docker/host/feat-config$") {
/***** Environment Docker -> Host -> Setup *****/
/* Hide Business indicator */
#content-wrapper div.form-group div.col-sm-12:has(a.be-indicator) {
/*[[apply_property]]*/
}
/* Hide title of empty sections */
#content-wrapper div.form-section-title:has(+ div.form-group div.col-sm-12:only-child a.be-indicator) {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/[0-9]+/docker/host/registries$") {
/***** Environment Docker -> Host -> Registries *****/
/* Hide Business indicator */
#content-wrapper be-feature-indicator {
/*[[apply_property]]*/
}
}
@-moz-document
regexp("^/*[[portainer_url]]*//?#!/[0-9]+/kubernetes/pools/new$"),
regexp("^/*[[portainer_url]]*//?#!/[0-9]+/kubernetes/pools/.*$") {
/***** Environment Kubernetes -> Namespaces -> Add with form *****/
/* Hide Business indicator */
#content-wrapper div.form-group:has(label a.be-indicator) {
/*[[apply_property]]*/
}
/* Hide Storage sector */
#content-wrapper div.form-section-title:has(+ div.form-group + div.form-section-title + storage-class-switch a.be-indicator),
#content-wrapper div.form-section-title + div.form-group:has(+ div.form-section-title + storage-class-switch a.be-indicator),
#content-wrapper div.form-section-title + div.form-group + div.form-section-title:has(+ storage-class-switch a.be-indicator) {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/[0-9]+/kubernetes/deploy($|\?.*$)") {
/***** Environment Kubernetes -> ... -> Create from manifest *****/
/* Hide Business indicator */
#content-wrapper div.form-group:has(label a.be-indicator) {
/*[[apply_property]]*/
}
}
@-moz-document regexp("^/*[[portainer_url]]*//?#!/[0-9]+/kubernetes/cluster/configure") {
/***** Environment Kubernetes -> Cluster -> Setup *****/
/* Hide Business indicator */
#content-wrapper div.form-section-title:has(+ div.form-group por-switch-field[name="'disableSysctlSettingForRegularUsers'"] a.be-indicator),
#content-wrapper div.form-section-title + div.form-group:has(por-switch-field[name="'disableSysctlSettingForRegularUsers'"] a.be-indicator) {
/*[[apply_property]]*/
}
/* Hide Business indicator */
#content-wrapper div:has(> por-switch-field[name="'restrictStandardUserIngressW'"] a.be-indicator) {
/*[[apply_property]]*/
}
/* Hide Business indicator */
#content-wrapper div:has(+ div > por-switch-field[name="'resource-over-commit-switch'"] a.be-indicator),
#content-wrapper div + div:has(> por-switch-field[name="'resource-over-commit-switch'"] a.be-indicator) {
/*[[apply_property]]*/
}
}