Skip to content

Commit 3db666a

Browse files
committed
2432: API docs (openapi) styling update
1 parent 91749b6 commit 3db666a

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

public/styles/swagger-ui.css

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
/** HEADER **/
22

3+
body {
4+
margin: 0;
5+
}
6+
37
header:before {
4-
background: white;
8+
background: none;
59
box-shadow: none;
610
z-index: -100;
11+
height: 0;
712
}
813

914
header {
10-
margin-bottom: -60px;
1115

1216
#logo {
1317
right: 60px;
@@ -35,26 +39,33 @@ header {
3539
color: rgb(66, 66, 66);
3640
}
3741

42+
43+
/* TOS and contact links */
3844
.swagger-ui .info > div.info__tos {
39-
position: absolute;
45+
float: left;
46+
margin-right: 40px;
4047
}
4148

4249
.swagger-ui .info > div.info__contact {
43-
position: absolute;
44-
left: 200px;
50+
float: left;
4551
}
4652

4753
#swagger-ui.api-platform .information-container.wrapper {
4854
height: 140px;
4955
}
5056

57+
.swagger-ui .info > div.info__contact > div {
58+
float: left;
59+
margin-right: 40px;
60+
}
61+
5162
.swagger-ui .info > div.info__contact > a.link {
52-
position: absolute;
53-
top: 0;
54-
left: 200px;
55-
width: 200px;
63+
display: block;
64+
float: left;
5665
}
5766

67+
68+
/* GET method color */
5869
#swagger-ui.api-platform .opblock.opblock-get .opblock-summary-method {
5970
background-color: rgb(31, 161, 56);
6071
}
@@ -63,6 +74,7 @@ header {
6374
background-color: rgb(31, 161, 56, .1);
6475
}
6576

77+
/* Auth button */
6678
.swagger-ui .btn.authorize {
6779
border-color: rgb(31, 161, 56);
6880
color: rgb(31, 161, 56);
@@ -76,10 +88,13 @@ header {
7688
fill: rgb(31, 161, 56);
7789
}
7890

91+
92+
/* Version bubble */
7993
.swagger-ui .info .title small {
8094
background-color: rgb(0, 156, 220);
8195
}
8296

97+
/* OAS bubble */
8398
.swagger-ui .info .title small.version-stamp {
8499
background-color: rgb(31, 161, 56);
85100
}

0 commit comments

Comments
 (0)