最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

I am trying to take an html template and create a Theme out of it for Drupal but in my quest to process SCSS files to CSS I am g

programmeradmin1浏览0评论

For example, here is a file that is not working out when I try to get it processed to a css. I am a beginner and I am not really clear on why the SCSS file won't become a CSS file as some of the other files in another folder are processing just fine. But some of particular files such as this one..(_alert.css) will not process. Please assist with the issue and let me know why I keep running into issues. I am using a Web hosting provider to load files into the file manager to use Drupal from there.

//
// Base styles
//

.alert {
  position: relative;
  padding: $alert-padding-y $alert-padding-x;
  margin-bottom: $alert-margin-bottom;
  border: $alert-border-width solid transparent;
  @include border-radius($alert-border-radius);
}

// Headings for larger alerts
.alert-heading {
  // Specified to prevent conflicts of changing $headings-color
  color: inherit;
}

// Provide class for links that match alerts
.alert-link {
  font-weight: $alert-link-font-weight;
}


// Dismissible alerts
//
// Expand the right padding and account for the close button's positioning.

.alert-dismissible {
  padding-right: $close-font-size + $alert-padding-x * 2;

  // Adjust close link position
  .close {
    position: absolute;
    top: 0;
    right: 0;
    padding: $alert-padding-y $alert-padding-x;
    color: inherit;
  }
}


// Alternate styles
//
// Generate contextual modifier classes for colorizing the alert.

@each $color, $value in $theme-colors {
  .alert-#{$color} {
    @include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level));
  }
}

I've downloaded CodeKit and I am getting error messages starting with the following:

Dart Sass failed with this error: Undefined mixin. ╷ 33 │ @include border-radius($alert-border-radius); │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ╵ _alert.scss 33:3 root stylesheet

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论