Giter VIP home page Giter VIP logo

scss-starter's Issues

Aynı value'ya sahip farklı classlar oluşturulurken aynı isimle oluşturulması sorunu

'color': (
    property: color,
    values: (
      'muted': $g-text-muted-color,
      'primary': $color-primary,
      'success': $color-success,
      'danger': $color-danger,
      'warning': $color-warning,
      'gray-400': $g-text-muted-color,
    ),
  ),

Yukarıdaki gibi kullanımda aynı value'a sahip('muted' ve 'gray-400') 2 farklı class oluşturmaya çalıştığımızda sistem .u-color-muted .u-color-gray-400 class'larını ayrı ayrı oluşturmak yerine, aynı isimle 2 tane .u-muted-color class'ı oluşturuyor. Bu durum da aşağıdaki satırdan kaynaklanıyor:

nth($property-class-modifier, index($property-value, $value))

Burada index'i alıyoruz, map'in içerisinde 2 tane aynı value olduğu için ilkinin index'ini döndürüyor.

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.