Giter Club home page Giter Club logo

sasscore's People

Contributors

antife-yinyue avatar icepy avatar marvin1023 avatar visioncan avatar ycg520520 avatar

Stargazers

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

Watchers

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

sasscore's Issues

建议打包成 Ruby Gem 或 Node Package

  1. 建议打包成库,比如 Ruby Gem 或 Node Package,这样方便升级,一条命令直接升级最新版本。
  2. 建议再出一个Saas版本,虽说 SCSS 很方便转换到 Sass ,但是每次升级还是麻烦,特别是使用包管理之后。

无法过渡transfrom

调用_css3.scss中的transition:

// Return vendor-prefixed property names if appropriate
// Example: transition-property-names((transform, color, background), moz) -> -moz-transform, color, background
//----------------------------------------
@function transition-property-names($props, $vendor: false) {
  $new-props: ();
  @each $prop in $props {
    $new-props: append($new-props, transition-property-name($prop, $vendor), comma);
  }
  @return $new-props;
}

@function transition-property-name($prop, $vendor: false) {
  // put other properties that need to be prefixed here aswell
  @if $vendor and $prop == transform {
    @return unquote('-'+$vendor+'-'+$prop);
  }
  @else {
    @return $prop;
  }
}

// transition
//----------------------------------------
@mixin transition ($properties...) {
  @if length($properties) >= 1 {
    @include prefixer(transition, $properties, webkit moz o ms spec);
  }

  @else {
    $properties: all 0.15s ease-out 0;
    @include prefixer(transition, $properties, webkit moz o ms spec);
  }
}

实际引用:

li {

    @include transition(transform .2s ease );
}

编译出来的css:

li{
    -webkit-transition: transform 0.2s ease;
    -moz-transition: transform 0.2s ease;
    -o-transition: transform 0.2s ease;
    -ms-transition: transform 0.2s ease;
    transition: transform 0.2s ease; 
}

我需要的是:

li{
    -webkit-transition: -webkit-transform 0.2s ease;
    -moz-transition:-moz-transform 0.2s ease;
    -o-transition: -o-transform 0.2s ease;
    -ms-transition: -ms-transform 0.2s ease;
    transition: transform 0.2s ease; 
}

有何办法可以解决

mixin文件的inline-block

// inline-block
// ie6-7 _display: inline;_zoom:1;
@mixin inline-block ($extend:true) {
@if $extend {
@extend %inline-block;
} @else {
display: inline-block;
@if $lte7 {
_display: inline;_zoom:1;
}
}
}
%inline-block{
@include inline-block(false);
}

以上说库中对 inline-block的定义,理解了一下,感觉在自己绕圈子呢?以下是为我的分析:
分几种情况:
一:调用 @include inline-block,执行 @mixin里的条件true,再执行 %inline-block,再执行 @mixin 里的条件false,最终是执行 @mixin里的条件 false;
二:跳用 @include inline-block(false),直接调用 @mixin里的条件 false;
三:调用 %inline-block,直接调用 @mixin里的条件 false;

以上就是所有的调用方式,但是最终都是调用 @mixin里的条件 false;

不知道还有其他调用方式吗?

如你介绍一样,@mixin 和 % 在sass解析成css的时候不一样,但是在用gulp等自动化工具将css合并压缩css为一行的时候,也会自动组合css样式的,那么这个问题是否可以忽略呢?

部分mixin比较坑,如果不传参数,就会变成%的效果

@import "../bower_components/sassCore/base";

.container{
    @include center-block;
    width:getWidth();
    min-width: getWidth();
}

上面代码,会如下输出

.container {
  margin-left: auto;
  margin-right: auto; }

/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 * 0. sassCore's style
 */
html {
  font-family: sans-serif;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  overflow-y: scroll;
  /* 0 */
  -webkit-overflow-scrolling: touch;
  /* 0 */ }

这个和文档不一致,会直接输出在reset部分的前面,我要去看源码才能找出问题所在

能不能处理这个warning,太烦人了

.WARNING: Unrecognized prefix: moz
D:/www/github/sassCore/core/css3:41, in mixin prefixer
D:/www/github/sassCore/core/css3:103, in mixin box-sizing
D:/www/github/sassCore/core/mixin:275

ING: Unrecognized prefix: moz
D:/www/github/sassCore/core/css3:41, in mixin prefixer
D:/www/github/sassCore/core/css3:208, in mixin transition
D:/www/github/sassCore/core/mixin:322

ING: Unrecognized prefix: o
D:/www/github/sassCore/core/css3:41, in mixin prefixer
D:/www/github/sassCore/core/css3:208, in mixin transition
D:/www/github/sassCore/core/mixin:322

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.