@@ -61,7 +61,7 @@ export default class EndPoint extends LitElement {
61
61
</ div>
62
62
${ this . path . deprecated
63
63
? html `
64
- <span style= "font-size:12px; text-transform:uppercase; font-weight:bold; color:orangered ; margin:2px 0 0 5px;" >
64
+ <span style= "font-size:12px; text-transform:uppercase; font-weight:bold; color:var(--red) ; margin:2px 0 0 5px;" >
65
65
deprecated
66
66
</ span> `
67
67
: ''
@@ -139,10 +139,7 @@ export default class EndPoint extends LitElement {
139
139
140
140
static get styles ( ) {
141
141
return [ css `
142
- .only-large-screen {
143
- display:none;
144
- }
145
-
142
+ .only-large-screen { display:none; }
146
143
.endpoint-head .path{
147
144
display: flex;
148
145
font-family:var(--font-mono);
@@ -175,28 +172,28 @@ export default class EndPoint extends LitElement {
175
172
}
176
173
.m-endpoint > .endpoint-head.put:hover,
177
174
.m-endpoint > .endpoint-head.put.expanded{
178
- border-color:var(--put-color );
179
- background-color:var(--light-put-color );
175
+ border-color:var(--orange );
176
+ background-color:var(--light-orange );
180
177
}
181
178
.m-endpoint > .endpoint-head.post:hover,
182
179
.m-endpoint > .endpoint-head.post.expanded{
183
- border-color:var(--post-color );
184
- background-color:var(--light-post-color );
180
+ border-color:var(--green );
181
+ background-color:var(--light-green );
185
182
}
186
183
.m-endpoint > .endpoint-head.get:hover,
187
184
.m-endpoint > .endpoint-head.get.expanded{
188
- border-color:var(--get-color );
189
- background-color:var(--light-get-color );
185
+ border-color:var(--blue );
186
+ background-color:var(--light-blue );
190
187
}
191
188
.m-endpoint > .endpoint-head.delete:hover,
192
189
.m-endpoint > .endpoint-head.delete.expanded{
193
- border-color:var(--delete-color );
194
- background-color:var(--light-delete-color );
190
+ border-color:var(--red );
191
+ background-color:var(--light-red );
195
192
}
196
193
.m-endpoint > .endpoint-head.patch:hover,
197
194
.m-endpoint > .endpoint-head.patch.expanded{
198
- border-color:var(--patch-color );
199
- background-color:var(--light-patch-color );
195
+ border-color:var(--yellow );
196
+ background-color:var(--light-yellow );
200
197
}
201
198
.m-endpoint .endpoint-body {
202
199
flex-wrap:wrap;
@@ -205,11 +202,11 @@ export default class EndPoint extends LitElement {
205
202
border-style:solid;
206
203
box-shadow: 0px 4px 3px -3px rgba(0, 0, 0, 0.15);
207
204
}
208
- .m-endpoint .endpoint-body.delete{ border-color:var(--delete-color ); }
209
- .m-endpoint .endpoint-body.patch{ border-color:var(--patch-color ); }
210
- .m-endpoint .endpoint-body.put{ border-color:var(--put-color ); }
211
- .m-endpoint .endpoint-body.post{border-color:var(--post-color );}
212
- .m-endpoint .endpoint-body.get{ border-color:var(--get-color ); }
205
+ .m-endpoint .endpoint-body.delete{ border-color:var(--red ); }
206
+ .m-endpoint .endpoint-body.patch{ border-color:var(--yellow ); }
207
+ .m-endpoint .endpoint-body.put{ border-color:var(--orange ); }
208
+ .m-endpoint .endpoint-body.post{border-color:var(--green );}
209
+ .m-endpoint .endpoint-body.get{ border-color:var(--blue ); }
213
210
214
211
.endpoint-head .deprecated{
215
212
text-decoration: line-through red;
@@ -238,11 +235,11 @@ export default class EndPoint extends LitElement {
238
235
text-transform:uppercase;
239
236
margin-right:5px;
240
237
}
241
- .method.delete{ border: 2px solid var(--delete-color );}
242
- .method.patch{ border: 2px solid var(--patch-color ); }
243
- .method.put{ border: 2px solid var(--put-color ); }
244
- .method.post{ border: 2px solid var(--post-color ); }
245
- .method.get{ border: 2px solid var(--get-color ); }
238
+ .method.delete{ border: 2px solid var(--red );}
239
+ .method.patch{ border: 2px solid var(--yellow ); }
240
+ .method.put{ border: 2px solid var(--orange ); }
241
+ .method.post{ border: 2px solid var(--green ); }
242
+ .method.get{ border: 2px solid var(--blue ); }
246
243
247
244
.req-resp-container{
248
245
display: flex;
@@ -264,23 +261,24 @@ export default class EndPoint extends LitElement {
264
261
border-style:dashed;
265
262
}
266
263
.patch .request{
267
- border-color:var(--patch-color );
264
+ border-color:var(--yellow );
268
265
}
269
266
.put .request{
270
- border-color:var(--put-color );
267
+ border-color:var(--orange );
271
268
}
272
269
.post .request{
273
- border-color:var(--post-color );
270
+ border-color:var(--green );
274
271
}
275
272
.get .request{
276
- border-color:var(--get-color );
273
+ border-color:var(--blue );
277
274
}
278
275
.delete .request{
279
- border-color:var(--delete-color );
276
+ border-color:var(--red );
280
277
}
281
278
282
279
283
- @media only screen and (min-width: 768px){
280
+ @media only screen and (min-width: 768px) {
281
+ .only-large-screen { display:block; }
284
282
.endpoint-head .path{
285
283
font-size: var(--font-size-regular);
286
284
min-width:400px;
@@ -292,9 +290,6 @@ export default class EndPoint extends LitElement {
292
290
.descr .m-markdown-small{
293
291
display:block;
294
292
}
295
- .only-large-screen{
296
- display:block;
297
- }
298
293
.req-resp-container{
299
294
flex-direction: var(--layout, row);
300
295
}
0 commit comments