Linked Questions

Popular Questions

I'm using custom blocks like in this example

.rmdcomment {
  padding: 1em 1em 1em 4em;
  margin-bottom: 10px;
  background: #f5f5f5;
  position:relative;
}

.rmdcomment:before {
    content: "\f075";
    font-family: FontAwesome;
    left:10px;
    position:absolute;
    top:0px;
    font-size: 45px;
 }

My question is how to make the background color respond to the design chosen by the user which is either "White", "Sepia" or "Night.

I want to add the context to css, but unfortunately don't know how to do it. My guess is to add the color-scheme in one way or another resulting separate "Sepia-Theme-Block-background" and "Night-Theme-Block-background".

Related Questions