From 5f33bd312ef2a1f675dedb779ca06f38fd46adce Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 17 Aug 2021 09:14:38 -0400 Subject: [PATCH] fix theme picker again --- docs/assets/plugins/theme-picker/theme-picker.css | 1 + docs/assets/plugins/theme-picker/theme-picker.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/assets/plugins/theme-picker/theme-picker.css b/docs/assets/plugins/theme-picker/theme-picker.css index 848fc8629..234fadf38 100644 --- a/docs/assets/plugins/theme-picker/theme-picker.css +++ b/docs/assets/plugins/theme-picker/theme-picker.css @@ -2,6 +2,7 @@ position: fixed; top: 1rem; right: 1rem; + z-index: 30; } .theme-picker:not(:defined) { diff --git a/docs/assets/plugins/theme-picker/theme-picker.js b/docs/assets/plugins/theme-picker/theme-picker.js index 35751b888..217993ca2 100644 --- a/docs/assets/plugins/theme-picker/theme-picker.js +++ b/docs/assets/plugins/theme-picker/theme-picker.js @@ -53,7 +53,7 @@ Auto `; - document.querySelector('.content').prepend(dropdown); + document.querySelector('.sidebar-toggle').insertAdjacentElement('afterend', dropdown); // Listen for selections const menu = dropdown.querySelector('sl-menu');