@@ -106,13 +106,13 @@ body {
106106}
107107
108108.markdown h2 {
109- font-size : 20 px ;
109+ font-size : 24 px ;
110110 font-weight : 600 ;
111111}
112112
113113.markdown h3 {
114114 font-size : 20px ;
115- font-weight : 400 ;
115+ font-weight : 600 ;
116116}
117117
118118.docusaurus-highlight-code-line {
@@ -130,10 +130,6 @@ pre {
130130 line-height : 1.7 ;
131131}
132132
133- /* .menu__list {
134- transition: none !important;
135- } */
136-
137133.graphiql-container {
138134 flex-grow : 1 ;
139135}
@@ -243,7 +239,128 @@ pre {
243239 }
244240}
245241
246- .navbar__link [href = "https://docs.swan.io/changelog" ] svg
247- {
248- display : none;
242+ .explorer-badge {
243+ display : inline-flex;
244+ align-items : center;
245+ background : # e9e0f2 ;
246+ border : 1px solid # c0b3e1 ;
247+ border-bottom : none;
248+ border-radius : 6px 6px 0 0 ;
249+ padding : 8px 32px 8px 16px ;
250+ font-size : 14px ;
251+ color : var (--ifm-color-primary );
252+ text-decoration : none;
253+ font-weight : 600 ;
254+ margin-left : 1rem ;
255+ cursor : pointer;
256+ transition : all 0.2s ease;
257+ }
258+
259+ .explorer-badge : hover {
260+ background : var (--ifm-navbar-link-hover-color );
261+ color : white;
262+ text-decoration : none;
263+ border-color : var (--ifm-color-primary );
264+ }
265+
266+ .explorer-badge ::before {
267+ content : "🔍" ;
268+ margin-right : 8px ;
269+ }
270+
271+ .tabs-container {
272+ background : # fff ;
273+ border-radius : 10px ;
274+ box-shadow : 0 1px 4px 0 rgba (0 , 0 , 0 , 0.04 );
275+ margin : 24px 0 ;
276+ padding : 0 24px 24px 24px ;
277+ border : 1px solid # edeff3 ;
249278}
279+
280+ .tabs {
281+ background : # eff3f9 ;
282+ margin : 0 -24px ;
283+ padding : 3px 3px 0 ;
284+ border-radius : 8px 8px 0 0 ;
285+ }
286+
287+ .tabs__item {
288+ padding : 0.75em 1.5em ;
289+ }
290+
291+ .tabs__item--active {
292+ background : # fff ;
293+ color : var (--ifm-color-primary );
294+ border-bottom : 2px solid var (--ifm-color-primary );
295+ font-weight : 600 ;
296+ }
297+
298+ html [data-theme = "dark" ] .tabs-container {
299+ background : # 1e293b ;
300+ border-bottom-color : # 475569 ;
301+ }
302+
303+ html [data-theme = "dark" ] .tabs {
304+ background : # 334155 ;
305+ }
306+
307+ html [data-theme = "dark" ] .tabs__item--active {
308+ background : # 1e293b ;
309+ }
310+
311+ .navbar__link .swan-api-explorer ,
312+ .swan-unified-nav {
313+ padding : 0.5rem 1rem ;
314+ background : # f1f5f9 ;
315+ border : 1px solid # cbd5e1 ;
316+ border-radius : 8px ;
317+ font-weight : 500 ;
318+ transition : all 0.65s ease;
319+ }
320+
321+ .navbar__link .swan-api-explorer : hover ,
322+ .swan-unified-nav : hover {
323+ background : none;
324+ border-color : # 94a3b8 ;
325+ }
326+
327+ .swan-unified-nav {
328+ display : flex;
329+ align-items : center;
330+ padding : 0 ;
331+ overflow : hidden;
332+ }
333+
334+ .swan-unified-nav a {
335+ padding : 0.5rem 1rem ;
336+ color : inherit;
337+ text-decoration : none;
338+ transition : background-color 0.2s ;
339+ position : relative;
340+ }
341+
342+ .swan-unified-nav a ::after {
343+ content : '' ;
344+ position : absolute;
345+ bottom : 0 ;
346+ left : 0 ;
347+ width : 100% ;
348+ height : 2px ;
349+ background : # 94a3b8 ;
350+ transform : scaleX (0 );
351+ transition : transform 0.2s ease;
352+ }
353+
354+ .swan-unified-nav a : hover {
355+ opacity : 0.8 ;
356+ }
357+
358+ .swan-unified-nav a : hover ::after {
359+ transform : scaleX (1 );
360+ }
361+
362+ .swan-unified-nav .separator {
363+ width : 1px ;
364+ height : 20px ;
365+ background : # cbd5e1 ;
366+ }
0 commit comments