Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This part in radix_preprocess_page()
// Display a message if Sass has not been compiled.
$theme_path = drupal_get_path('theme', $GLOBALS['theme']);
$stylesheet_path = $theme_path . '/assets/stylesheets/screen.css';
if (_radix_current_theme() == 'radix') {
$stylesheet_path = $theme_path . '/assets/stylesheets/radix-style.css';
}
if (!file_exists($stylesheet_path)) {
drupal_set_message(t('It looks like %path has not been created yet. Run <code>@command</code> in your theme directory to create it.', array(
'%path' => $stylesheet_path,
'@command' => 'compass watch',
)), 'error');
}
assumes that custom theme is always using Sass for css pre-processor and that compiled css files will always be in /assets/stylesheets and this is kind a limiting. Custom theme should have a freedom to use Sass or Less and also choose how it will structure it css files.
Can we remove this code from radix_preprocess_page()?
Comments
Comment #1
shadcn CreditAttribution: shadcn commentedWe've removed this message in the latest radix. Marking this issue as fixed. Feel free to reopen if you have any question. Thanks.