Styling the input field toggle #496
Unanswered
thedeputyofjam
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I have been trying to style the input field toggle using the class argument/css but I can't seem to figure out how to actually make it work - I'm not understanding how to target the toggle with my css (I'm a beginner). This is what I have so far (based on the Meta bind docs and the obsidian toggle variables:
.mb-input-type-toggle .dnd-toggle .toggle {
--toggle-width: 20px;
--toggle-border-width: 2px;
--toggle-thumb-color: transparent;
}
I've created a snippit and put it in the relevant folder, and then I reference the class "dnd-toggle" in my obsidian as follows:
INPUT[toggle(class(dnd-toggle))]
. I think one of the selectors above is wrong or something. If anybody has any thoughts on where the problem is, I would be very grateful! ThanksBeta Was this translation helpful? Give feedback.
All reactions