Home › Forums › Legacy Support › 4.0 Bugs & Issues › Custom css for light/dark mode
Tagged: css
- This topic has 15 replies, 2 voices, and was last updated 4 years, 1 month ago by Diana.
-
AuthorPosts
-
September 7, 2020 at 4:07 am #301269shynkarykParticipantDear support, tell me, please: is it possible to differentiate the parameters of the selectors in the custom css for light and dark mode? For example, I need for light mode .selector { color: green; } and for dark mode the same selector in blue color: .selector { color: blue; } How can I do it? I will be grateful for the answer!September 8, 2020 at 8:38 am #301655DianaParticipantYou can change the colors from wp-admin > Appearance > Customize > Vibebp Settings http://prntscr.com/udhv7h But these changes will be applied to other places as well where these colors calledSeptember 8, 2020 at 8:09 pm #301807shynkarykParticipantThanks for the answer. But I mean something else. I have a lot of blocks with a custom css, which do not display well in dark mode. I want to fix them only for the dark mode. Here is an example: https://prnt.sc/udvf5lSeptember 9, 2020 at 7:52 am #301952DianaParticipantSir, Better to share the full page screenshot so we can locate the same and will share custom CSS for only that page or part of block In this screenshot, I can't figure out which component is thisSeptember 12, 2020 at 5:02 pm #309957shynkarykParticipantLight mode: https://prnt.sc/ug5i8j Dark mode: https://prnt.sc/ug5ih7 I need to change background color of div ".punkt_vyznachennya" in dark mode and color of "strong" text in dark mode: https://prnt.sc/udvf5l Thank you!September 15, 2020 at 12:19 pm #311030DianaParticipantI can check that if it is possible or not via custom CSS Share the page URL hereSeptember 16, 2020 at 7:26 am #311269shynkarykParticipantThis reply has been marked as private.September 17, 2020 at 8:20 am #311642DianaParticipantI am sorry sir, for this element it is not possible you can provide inline CSS but with custom CSS not possibleSeptember 17, 2020 at 2:50 pm #311774shynkarykParticipantOk, thank you. Then please show me an example of how I can make a separate inline css for light and dark modes.September 18, 2020 at 10:43 am #311987DianaParticipantEdit your unit in the backend and in the component add the CSS as you did before due to which it is showing in green color But the CSS will remain the same for both light and dark mode because the code is written in the core and the custom CSS will not change the stylingSeptember 26, 2020 at 3:44 pm #314270shynkarykParticipantThank you. How can I set different colors of element for light and dark mode?September 28, 2020 at 11:50 am #314519DianaParticipantSir, I can help you with setting up css but that will remain same for light as well as dark mode because even if i provide inline css for both the modes to show different colors it will not reflect any changes because the css is decided and fetched from the code Are you okay with that? so we can proceedSeptember 28, 2020 at 12:39 pm #314538shynkarykParticipantThank you for your willingness to help. But the option you offer is not what I need. I can use inline css, but in this case I have the same color in light mode and in dark mode. But I only need to change the color for dark mode. You somehow define in WPLMS different colors of elements for light and dark modes... How you do it? Can I apply this to certain new items? Thank you.September 29, 2020 at 1:49 pm #314872DianaParticipantPlease ping me tomorrow once by posting here so I will contact developer and ask him if we can do something or notSeptember 30, 2020 at 5:12 am #315037shynkarykParticipantI am pinging :) Thank You!
-
AuthorPosts
- The topic ‘Custom css for light/dark mode’ is closed to new replies.