Files
swagger-ui/src/style/_table.scss
kyle 87296702c6 feature: allowEmptyValue controls (#4788)
* add baseline tests

* coerce empty strings to null when updating parameter values

* add ParameterIncludeEmpty

* add redux management for empty parameter value inclusion state

* use name+in keying for state management instead of hash keying

* update new redux method usages to name+in keying

* coerce empty Immutable iterables in onChangeWrapper

* OAS3 tests & support

* add included empty parameters to requests before dispatching to Swagger Client

* make empty inclusion interface prettier

* add tests for #4587

* linter fixes

* check for truthy value before reaching into property
2018-08-04 01:26:07 -07:00

161 lines
2.4 KiB
SCSS

table
{
width: 100%;
padding: 0 10px;
border-collapse: collapse;
&.model
{
tbody
{
tr
{
td
{
padding: 0;
vertical-align: top;
&:first-of-type
{
width: 174px;
padding: 0 0 0 2em;
}
}
}
}
}
&.headers
{
td
{
font-size: 12px;
font-weight: 300;
vertical-align: middle;
@include text_code();
}
}
tbody
{
tr
{
td
{
padding: 10px 0 0 0;
vertical-align: top;
&:first-of-type
{
max-width: 20%;
min-width: 6em;
padding: 10px 0;
}
}
}
}
thead
{
tr
{
th,
td
{
font-size: 12px;
font-weight: bold;
padding: 12px 0;
text-align: left;
border-bottom: 1px solid rgba($table-thead-td-border-bottom-color, .2);
@include text_body();
}
}
}
}
.parameters-col_description
{
input[type=text]
{
width: 100%;
max-width: 340px;
}
select {
border-width: 1px;
}
}
.parameter__name
{
font-size: 16px;
font-weight: normal;
@include text_headline();
&.required
{
font-weight: bold;
&:after
{
font-size: 10px;
position: relative;
top: -6px;
padding: 5px;
content: 'required';
color: rgba($table-parameter-name-required-font-color, .6);
}
}
}
.parameter__in,
.parameter__extension
{
font-size: 12px;
font-style: italic;
@include text_code($table-parameter-in-font-color);
}
.parameter__deprecated
{
font-size: 12px;
font-style: italic;
@include text_code($table-parameter-deprecated-font-color);
}
.parameter__empty_value_toggle {
font-size: 13px;
padding-top: 5px;
padding-bottom: 12px;
input {
margin-right: 7px;
}
&.disabled {
opacity: 0.7;
}
}
.table-container
{
padding: 20px;
}