11: root {
22 --small-font : 1.4rem ;
3+ --connect-method : rgb (185 , 94 , 4 );
4+ --delete-method : rgb (211 , 61 , 61 );
35 --get-method : rgb (52 , 109 , 219 );
6+ --head-method : rgb (185 , 94 , 4 );
7+ --options-method : rgb (115 , 92 , 255 );
8+ --patch-method : rgb (185 , 94 , 4 );
9+ --post-method : rgb (0 , 136 , 71 );
10+ --put-method : rgb (185 , 94 , 4 );
11+ --trace-method : rgb (185 , 94 , 4 );
412 --background-color : rgb (245 , 247 , 249 );
513 --text-color : rgb (59 , 69 , 78 );
614 --type-color : rgb (52 , 109 , 219 );
@@ -30,15 +38,15 @@ summary {
3038
3139
3240details # detailItems {
33- padding : 0 0 1rem 2 rem ;
41+ padding : 0 0 1rem 3 rem ;
3442}
3543
3644details # detailItems > p : first-of-type {
3745 margin-bottom : 2.5rem ;
3846}
3947
4048details > summary {
41- list-style : none ;
49+ cursor : pointer ;
4250}
4351
4452details > summary ::marker ,
@@ -71,7 +79,7 @@ summary{
7179}
7280
7381summary div {
74- margin : 1rem 2 rem ;
82+ margin : 1rem 3 rem ;
7583}
7684
7785section {
@@ -85,11 +93,15 @@ section{
8593
8694# baseUrl {
8795 color : var (--light-text-color );
88- font-size : var (--small-font )
96+ font-size : var (--small-font );
97+ line-height : 2rem ;
8998}
9099
100+ .get { background-color : var (--get-method ); }
101+ .post { background-color : var (--post-method ); }
102+ .put { background-color : var (--put-method );}
103+
91104.method {
92- background-color : var (--get-method );
93105 text-transform : uppercase;
94106 font-weight : 700 ;
95107 font-size : var (--small-font );
@@ -106,7 +118,7 @@ section{
106118 color : var (--text-color );
107119}
108120
109- # pathDetails {
121+ # pathDetails , # requestBody {
110122 color : var (--bright-text-color );
111123 display : flex;
112124 flex-direction : row;
@@ -116,30 +128,28 @@ section{
116128 margin-bottom : 3.2rem ;
117129}
118130
119- # pathDetails div {
131+ # pathDetails div , # requestBody div {
120132 display : inline;
121133 padding : 1rem 0 ;
122- font-weight : 500 ;
123134 white-space : pre-wrap;
124135 overflow-wrap : break-word;
125136}
126137
127- # pathDetails div : first-child {
128- width : 10.5 rem ;
138+ # pathDetails div : first-child , # requestBody div : first-child {
139+ width : 20 rem ;
129140 padding : 0 ;
141+ font-weight : 600 ;
130142}
131143
132- # pathDetails div : nth-child (2 ){
133- width : 6rem ;
134- padding : 0 ;
135-
144+ # pathDetails div : nth-child (2 ), # requestBody div : nth-child (2 ){
145+ width : 9rem ;
146+ padding : 0 ;
136147}
137148
138- # pathDetails div : last-child {
149+ # pathDetails div : last-child , # requestBody div : last-child {
139150 flex : 1 1 0% ;
140151 margin-right : 2.5rem ;
141- padding : 0 ;
142-
152+ padding : 0 ;
143153}
144154
145155.httpResponse {
@@ -154,8 +164,9 @@ section{
154164}
155165
156166.httpResponse details > summary {
157- width : 100% ;
158- position : relative; /* Add this line */
167+ cursor : pointer;
168+ position : relative;
169+ width : fit-content;
159170}
160171
161172.httpResponse summary {
@@ -168,10 +179,10 @@ section{
168179}
169180
170181.httpResponse summary : before {
171- content : "" ; /* Add this line */
182+ content : "" ;
172183 right : 0 ;
173184 cursor : pointer;
174- top : -1.4 rem ;
185+ top : -2 rem ;
175186 background-image : url ("./arrow.svg" );
176187 transform : rotate (-90deg );
177188 width : 1.25rem ;
@@ -190,11 +201,11 @@ section{
190201}
191202
192203.httpResponseContainer .statusDescription {
193- margin-left : -2.5 rem ;
204+ /* empty */
194205}
195206
196207.httpStatus {
197- width : 19 rem ;
208+ width : 29 rem ;
198209 font-weight : 700 ;
199210 color : var (--text-color );
200211 display : flex;
@@ -215,11 +226,11 @@ section{
215226
216227
217228.httpResponse details .schema details [open ] > summary : before {
218- content : "‒" ; /* Add this line */
229+ content : "‒" ;
219230}
220231
221232.httpResponse details .schema summary : before {
222- content : "+" ; /* Add this line */
233+ content : "+" ;
223234 font-weight : 500 ;
224235 cursor : pointer;
225236 background-image : none;
@@ -228,7 +239,7 @@ section{
228239 font-size : 1.6rem ;
229240 position : absolute;
230241 left : -1.6rem ;
231- top : 0 ;
242+ top : calc ( 1 rem / 16 ) ;
232243}
233244
234245.httpResponse details .schema summary {
@@ -243,6 +254,7 @@ section{
243254.httpResponse details .schema .type {
244255 color : var (--type-color );
245256 margin-bottom : 0 ;
257+ line-height : 2rem ;
246258}
247259
248260.httpResponse details .schema .comment {
@@ -253,12 +265,11 @@ section{
253265
254266.title {
255267 font-weight : 600 ;
256- line-height : 1.5rem ;
257268 color : var (--text-color );
258269 margin-right : 1rem ;
259270}
260271
261- .pathName , .httpResponse details .schema .type {
272+ .pathName , .httpResponse details .schema .type , . httpResponse details . schema summary {
262273 font-family : 'Courier New' , Courier, monospace;
263274}
264275
@@ -293,4 +304,12 @@ section{
293304
294305.httpStatus .blue .circle-path {
295306 fill : rgb (0 , 0 , 255 );
307+ }
308+
309+ .markdown-section * {
310+ line-height : 2.2rem ;
311+ }
312+
313+ .markdown-section section {
314+ margin : 1rem 0 ;
296315}
0 commit comments