-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathadmin.css
More file actions
207 lines (172 loc) · 3.44 KB
/
Copy pathadmin.css
File metadata and controls
207 lines (172 loc) · 3.44 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
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
/**
* Minimal custom styles for Webhooks admin
* Leveraging WordPress core admin classes
*/
/* Use core WordPress styles for most elements */
/* Webhook method badge styling */
.webhook-method {
font-weight: 600;
text-transform: uppercase;
font-size: 11px;
}
/* Header row styling using core form-table classes */
.webhook-headers .form-table td {
padding: 5px 10px 5px 0;
}
/* Minimal adjustment for header inputs */
.webhook-header-row {
margin-bottom: 10px;
}
.webhook-header-row input[type="text"] {
width: calc(50% - 50px);
margin-right: 10px;
}
/* Use core button styles, just add spacing */
.test-webhook {
margin-right: 5px;
}
/* Test button states */
.test-webhook.testing {
opacity: 0.6;
cursor: not-allowed;
}
.test-webhook.success {
color: #46b450;
}
.test-webhook.error {
color: #dc3232;
}
/* Webhook test result row */
.webhook-test-result td {
padding: 0 !important;
background: transparent !important;
}
.webhook-test-result .notice {
margin: 10px;
position: relative;
}
.webhook-test-result .notice.inline {
display: block;
}
/* Test details styling */
.webhook-test-details {
padding: 12px;
}
.webhook-test-details p {
margin: 0.5em 0;
}
.webhook-test-details strong {
font-weight: 600;
}
/* Status indicators */
.webhook-test-details .status-success {
color: #46b450;
font-weight: 600;
}
.webhook-test-details .status-error {
color: #dc3232;
font-weight: 600;
}
/* Expandable details */
.webhook-test-details details {
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 3px;
padding: 0;
}
.webhook-test-details summary {
padding: 10px;
cursor: pointer;
background: #f7f7f7;
border-bottom: 1px solid #ddd;
font-weight: 600;
}
.webhook-test-details details[open] summary {
border-bottom: 1px solid #ddd;
}
.webhook-test-details pre {
margin: 0;
padding: 10px;
background: #f9f9f9;
overflow-x: auto;
white-space: pre-wrap;
word-wrap: break-word;
font-size: 12px;
line-height: 1.4;
}
/* Payload and response styling */
.webhook-test-payload,
.webhook-response-body {
font-family: Consolas, Monaco, monospace;
max-height: 300px;
overflow-y: auto;
}
/* Notice dismiss button positioning */
.webhook-test-result .notice-dismiss {
position: absolute;
top: 0;
right: 1px;
padding: 10px 15px;
font-size: 13px;
line-height: 1.23076923;
text-decoration: none;
}
.webhook-test-result .notice-dismiss:before {
content: "\f153";
font-family: dashicons;
font-size: 20px;
font-style: normal;
font-weight: 400;
height: 20px;
width: 20px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Webhook URL column styling */
.webhook-url {
display: block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: Consolas, Monaco, monospace;
font-size: 13px;
color: #2271b1;
}
/* Ensure proper column spacing */
.wp-list-table .column-url {
width: 35%;
min-width: 200px;
}
.wp-list-table .column-name {
width: 25%;
}
.wp-list-table .column-event {
width: 20%;
}
.wp-list-table .column-method {
width: 10%;
}
.wp-list-table .column-headers {
width: 10%;
}
/* Row actions test link styling */
.row-actions .test-webhook {
color: #2271b1;
text-decoration: none;
}
.row-actions .test-webhook:hover {
color: #135e96;
text-decoration: underline;
}
.row-actions .test-webhook.testing {
color: #666;
cursor: default;
pointer-events: none;
}
.row-actions .test-webhook.success {
color: #46b450;
}
.row-actions .test-webhook.error {
color: #dc3232;
}