Search code examples
cssrefinerycms

How to add CSS for specific pages in RefineryCMS?


Following along to the tutorial at http://refinerycms.com/guides/getting-started which says to

instructions

Seemed simple enough. So I created app/assets/stylesheets/about-page.css wtih some test code

p { 
  color: green; 
  font-size: 32px;
}


But that sitll got applied to the home page.

enter image description here

What am I doing wrong here?


Solution

  • That is not what is meant.. the about-page refers to an id so it's like this using SCSS syntax with, say, styles.css.scss which is included by application.css automatically using the asset pipeline:

    body#about-page {
      p {
        color: green;
        font-size: 32px;
      }
    }