1
+ /* UI library styles */
2
+ @import url (fragments.css);
3
+ /* Font */
4
+ @import url ('https://fonts.googleapis.com/css?family=Open+Sans' );
5
+
1
6
: root {
2
7
--ifm-font-size-base : 16px ;
3
8
--ifm-code-font-size : 90% ;
@@ -21,28 +26,67 @@ html[data-theme='dark'] {
21
26
--ifm-menu-color-background-active : # 21243d ;
22
27
}
23
28
24
- .docusaurus-highlight-code-line {
25
- background-color : rgba (0 , 0 , 0 , 0.1 );
26
- display : block;
27
- margin : 0 calc (-1 * var (--ifm-pre-padding ));
28
- padding : 0 var (--ifm-pre-padding );
29
+ /* -------- API documentation */
30
+ /* global */
31
+ html [data-theme = 'light' ] # notice > h4 ,
32
+ html [data-theme = 'light' ] # notice > h3 {
33
+ color : # 36395a ;
34
+ }
35
+
36
+ html [data-theme = 'dark' ] # notice > h4 ,
37
+ html [data-theme = 'dark' ] # notice > h3 {
38
+ color : # fff ;
39
+ }
40
+
41
+ /* wip notice */
42
+ html [data-theme = 'light' ] .wip-notice {
43
+ background-color : # f5f5fa ;
44
+ }
45
+
46
+ html [data-theme = 'dark' ] .wip-notice {
47
+ background-color : # 21243d ;
48
+ }
49
+
50
+ /* home page */
51
+ html [data-theme = 'light' ] .hero-title {
52
+ color : # 36395a ;
53
+ }
54
+
55
+ html [data-theme = 'dark' ] .hero-title {
56
+ color : # fff ;
57
+ }
58
+
59
+ # hero > div : first-child {
60
+ max-width : 1000px ;
61
+ }
62
+
63
+ /* code blocks */
64
+ /* override italic keywords in code blocks */
65
+ code .token .keyword {
66
+ font-style : normal !important ;
67
+ }
68
+ /* prevent full size code blocks in tables */
69
+ table td .code-container {
70
+ width : 600px ;
71
+ }
72
+ /* we only update the header of the table */
73
+ table tbody tr td h3 ,
74
+ table tbody tr td h2 {
75
+ margin-top : 16px ;
29
76
}
30
77
31
78
html [data-theme = 'dark' ] .docusaurus-highlight-code-line {
32
79
background-color : rgba (0 , 0 , 0 , 0.3 );
33
80
}
34
81
35
- html [data-theme = 'light' ] .shiki .nord {
82
+ html [data-theme = 'light' ] .shiki .dark-plus {
36
83
display : none;
37
84
}
38
85
39
- html [data-theme = 'dark' ] .shiki .min- light {
86
+ html [data-theme = 'dark' ] .shiki .light-plus {
40
87
display : none;
41
88
}
42
89
43
- /* Font */
44
- @import url ('https://fonts.googleapis.com/css?family=Open+Sans' );
45
-
46
90
/* -------- Navbar */
47
91
.header-restapi {
48
92
text-transform : capitalize;
@@ -66,23 +110,7 @@ html[data-theme='dark'] .header-github-link:before {
66
110
no-repeat;
67
111
}
68
112
69
- /* override italic keywords in code blocks */
70
- code .token .keyword {
71
- font-style : normal !important ;
72
- }
73
-
74
- /* prevent full size code blocks in tables */
75
- table td .code-container {
76
- width : 600px ;
77
- }
78
-
79
- /* we only update the header of the table */
80
- table tbody tr td h3 ,
81
- table tbody tr td h2 {
82
- margin-top : 16px ;
83
- }
84
-
85
- /* Redoc fix */
113
+ /* HTTP API: Redoc fix */
86
114
.redocusaurus .menu-content label .-depth0 {
87
115
padding-top : 5px ;
88
116
padding-bottom : 10px ;
@@ -101,3 +129,9 @@ table tbody tr td h2 {
101
129
line-height : 15px ;
102
130
width : 38px ;
103
131
}
132
+ .docusaurus-highlight-code-line {
133
+ background-color : rgba (0 , 0 , 0 , 0.1 );
134
+ display : block;
135
+ margin : 0 calc (-1 * var (--ifm-pre-padding ));
136
+ padding : 0 var (--ifm-pre-padding );
137
+ }
0 commit comments