SharpMeow commited on
Commit
6a4d6c4
·
verified ·
1 Parent(s): 83fade1

Guide follows the Space page's theme (Scrolls PR #310)

Browse files
Files changed (1) hide show
  1. guide/index.html +4 -0
guide/index.html CHANGED
@@ -89,6 +89,10 @@ footer{padding:36px 0 48px;color:var(--ink3);font-size:14px;text-align:center}
89
  th,td{padding:8px 10px;font-size:14px}
90
  }
91
  </style>
 
 
 
 
92
  </head>
93
  <body>
94
  <nav><div class="wrap">
 
89
  th,td{padding:8px 10px;font-size:14px}
90
  }
91
  </style>
92
+ <script>
93
+ // Follow the theme the Space page was opened with (Gradio follows Hugging Face's ?__theme=), else the system setting.
94
+ try{var t=new URLSearchParams(parent.location.search).get('__theme');if(t==='light'||t==='dark')document.documentElement.dataset.theme=t;}catch(e){}
95
+ </script>
96
  </head>
97
  <body>
98
  <nav><div class="wrap">