@@ -64,7 +64,8 @@ $sub-schema-offset: ($bullet-size / 2) + $bullet-margin;
64
64
font-weight : bold ;
65
65
}
66
66
67
- .param-type , .param-array-format {
67
+ .param-type ,
68
+ .param-array-format {
68
69
vertical-align : middle ;
69
70
line-height : $param-name-height ;
70
71
color : rgba ($black , 0.4 );
@@ -73,7 +74,8 @@ $sub-schema-offset: ($bullet-size / 2) + $bullet-margin;
73
74
.param-type {
74
75
font-weight : normal ;
75
76
word-break : break-all ;
76
- & .array ::before , & .tuple ::before {
77
+ & .array ::before ,
78
+ & .tuple ::before {
77
79
color : $black ;
78
80
font-weight : $base-font-weight ;
79
81
.param-collection-format-multi + & {
@@ -144,7 +146,6 @@ $sub-schema-offset: ($bullet-size / 2) + $bullet-margin;
144
146
}
145
147
146
148
.param :first-of-type {
147
-
148
149
> .param-name ::before {
149
150
content : ' ' ;
150
151
display : block ;
@@ -158,7 +159,6 @@ $sub-schema-offset: ($bullet-size / 2) + $bullet-margin;
158
159
159
160
.param :last-of-type ,
160
161
.param.last {
161
-
162
162
> .param-name {
163
163
position : relative ;
164
164
@@ -236,14 +236,24 @@ $sub-schema-offset: ($bullet-size / 2) + $bullet-margin;
236
236
}
237
237
}
238
238
239
+ .param-example {
240
+ font-size : 0.95em ;
241
+
242
+ & ::before {
243
+ content : ' Example: ' ;
244
+ }
245
+ }
246
+
239
247
.param-enum-value ,
240
- .param-default-value {
241
- background-color : $background-color ;
242
- border : 1px solid rgba ($secondary-color , 0.2 );
248
+ .param-default-value ,
249
+ .param-example-value {
250
+ font-family : Courier , monospace ;
251
+ background-color : rgba ($secondary-color , 0.02 );
252
+ border : 1px solid rgba ($secondary-color , 0.1 );
243
253
margin : 2px 3px ;
244
- padding : 0 5 px ;
245
- border-radius : 2 px ;
246
- color : $secondary -color ;
254
+ padding : 0.1 em 0.2 em 0.2 em ;
255
+ border-radius : $border-radius ;
256
+ color : $text -color ;
247
257
display : inline-block ;
248
258
min-width : 20px ;
249
259
text-align : center ;
0 commit comments