* Add error response variant * Add response table styles * Already filtered * Don't need these styles * Fallback to http code status messsage * Add translation strings * Proper heading level Co-authored-by: Grace Park <gracepark@github.com> * Match table styling with params table * Typing unnecessary Co-authored-by: Peter Bengtsson <mail@peterbe.com> * Typing unnecessary Co-authored-by: Peter Bengtsson <mail@peterbe.com> * Work with the status code as a number * Move error responses to operation end * Make RestResponseTable a standalone component Co-authored-by: Grace Park <gracepark@github.com> Co-authored-by: Peter Bengtsson <mail@peterbe.com>
49 lines
671 B
SCSS
49 lines
671 B
SCSS
.restResponseTable {
|
|
table-layout: fixed !important;
|
|
|
|
thead {
|
|
tr {
|
|
border-top: none;
|
|
|
|
th {
|
|
border: 0;
|
|
font-weight: normal;
|
|
}
|
|
|
|
th:first-child {
|
|
width: 25%;
|
|
}
|
|
|
|
th:nth-child(2) {
|
|
width: 75%;
|
|
}
|
|
}
|
|
}
|
|
|
|
tr:nth-child(2n) {
|
|
background: none !important;
|
|
}
|
|
|
|
td {
|
|
padding: 0.75rem 0.5rem !important;
|
|
border: 0 !important;
|
|
vertical-align: top;
|
|
width: 100%;
|
|
}
|
|
|
|
tbody {
|
|
tr td:first-child {
|
|
width: 30%;
|
|
font-weight: bold;
|
|
}
|
|
|
|
tr td:nth-child(2) {
|
|
width: 70%;
|
|
}
|
|
|
|
table tr td:not(:first-child) {
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
}
|