1
0
mirror of synced 2025-12-22 19:34:15 -05:00
Files
docs/components/rest/RestResponseTable.module.scss
Robert Sese 50a8de0769 Separate REST error responses (#26082)
* 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>
2022-03-15 21:14:53 +00:00

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;
}
}
}