When incorporating javascript and css into my project, I am encountering an issue. Here is the code snippet I am using:
if( $form['#node']->type == 'e_form' ){
drupal_add_css( drupal_get_path('module', 'e_form') . '/css/stylesheets/screen.css' );
drupal_add_js( drupal_get_path('module', 'e_form') . '/js/react.js', 'file' );
}
Although the javascript code loads successfully, the css does not.
The css is compiled through compass from a SCSS file. The file Screen.css contains the generated css code, which seems correct.
The module is structured as follows:
.
├── css
│ ├── config.rb
│ ├── sass
│ │ ├── ie.scss
│ │ ├── print.scss
│ │ └── screen.scss
│ └── stylesheets
│ ├── ie.css
│ ├── print.css
│ └── screen.css
├── e_form.features.field_instance.inc
├── e_form.features.inc
├── e_form.info
├── e_form.module
├── e_form.strongarm.inc
└── js
└── react.js
However, the styling is not being applied to the website. Is there something I am overlooking?