Giter Club home page Giter Club logo

dart-sass's People

Contributors

danschultz avatar komu avatar llamadonica avatar luisvt avatar nicholastuck avatar sethladd avatar smeagol74 avatar vikraman avatar zoechi avatar zoechigist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dart-sass's Issues

Using transformer with source maps

Really happy to see this transformer, but I noticed that the transformer does not output source maps, which makes sense for pub build, but not when we are developing using pub serve. What am I missing here?

Cannot access files located in the web directory

The system cannot import files located in the web directory. For example, I have a config.scss file under the web directory:

// current file: lib/login_view.scss
@import 'web/config';

And the previous line throws the following error:

Build error:
Transform Sass on my_app|lib/login_view.scss threw error: could not resolve import 'Instance of '_SassImport'' (tried [my_app|lib/web/config.scss, my_app|lib/web/config.sass, my_app|lib/web/_config.scss, my_app|lib/web/_config.sass])

Pleas support environment variables - to be precise SASS_PATH

Since sass 3.2/3.4 sass supports relative search path via SASS_PATH. This is a cool, underrated, feature.

With SASS_PATH it's possible to use scss-files from other packages!
More on SASS_PATH: http://technology.customink.com/blog/2014/10/09/understanding-and-using-sass-load-paths/

cmdline:

export SASS_PATH="/Volumes/Daten/DevLocal/DevDart/MaterialDesignLite/lib/:/Volumes/Daten/DevLocal/DevDart/MobiAd.REST.UI.MDL/lib"

styles.scss:

// This imports "_variables.scss" from 
// /Volumes/Daten/DevLocal/DevDart/MaterialDesignLite/lib/assets/styles/button/_variables.scss
@import "assets/styles/button/variables";

Invalid nested CSS

SCSS example:

$state: active;
$background: white;

.table-hover > tbody > tr {
  > td.#{$state}:hover,
  > th.#{$state}:hover,
  &.#{$state}:hover > td,
  &:hover > .#{$state},
  &.#{$state}:hover > th {
    background-color: darken($background, 5%);
  }
}

Compiles to INVALID:

> td.active:hover, > th.active:hover, .table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr:hover > .active, .table-hover > tbody > tr.active:hover > th {
  background-color: #f2f2f2;
}

Should be:

.table-hover > tbody > tr > td.active:hover,
.table-hover > tbody > tr > th.active:hover,
.table-hover > tbody > tr.active:hover > td,
.table-hover > tbody > tr:hover > .active,
.table-hover > tbody > tr.active:hover > th {
  background-color: #f2f2f2;
}

Error with filename containing dot(s)

Importing file with a dot in the name failed with this error :

Filename to import : default.date.scss

Build error:
Transform Sass on project|web/sass/style.scss threw error: could not resolve import 'Instance of '_SassImport'' (tried [project|web/sass/materialize/components/date_picker/default.date, project|web/sass/materialize/components/date_picker/_default.date])
null

Css RGBA optimization

a {
  background-color: rgba(0, 0, 0, 0);
}

Should be generated as

a {
  background-color: transparent;
}

Not compatible with sassc?

I am trying to use this transformer with sassc:

transformers:
  - dart_sass_transformer:
      executable: sassc

When I run pub serve, it says:

root@7c723f4fdc37:/starbelly/static/dart# pub serve
Loading source assets... 
Loading angular2, dart_sass_transformer and dart_to_js_script_rewriter transformers... 
Serving starbelly web on http://localhost:8080
Build error:
Transform Sass on ng2_fontawesome|lib/font-awesome/scss/font-awesome.scss threw error: Usage: sassc [options] SCSS_FILE [OUT_CSS_FILE]

sassc: error: too few arguments

Am I am doing something wrong or is this package not compatible with sassc?

expected Expected "="..

  filter: alpha(opacity=$opacity-ie);
                        ^
@mixin opacity($opacity) {
  opacity: $opacity;
  // IE8 filter
  $opacity-ie: ($opacity * 100);
  filter: alpha(opacity=$opacity-ie);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.