Coder Social home page Coder Social logo

threespot / frontline-sass Goto Github PK

View Code? Open in Web Editor NEW
18.0 5.0 5.0 1 MB

Threespot's base Sass framework

Home Page: http://threespot.github.io/frontline-sass/documentation/

License: MIT License

JavaScript 4.94% SCSS 95.06%
frontline-sass sass-framework sass

frontline-sass's People

Contributors

matbrady avatar tedw avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

frontline-sass's Issues

Deprecation warnings since upgrading to Rails 6

Since upgrading to Rails 6, I'm getting some deprecation warnings related to this package:

DEPRECATION WARNING on line 1270 of /Users/orenmagid/development/opensecrets-sandbox/app/assets/stylesheets/../../../node_modules/frontline-sass/dist/_frontline.scss: !global assignments won't be able to declare new variables in future versions. Consider adding $burger-height: null at the top level.

There's a similar warning about the next line, $burger-gutter.

Let me know if there's any other information I can provide. Thanks!

Create new link mixins with parent scope

This will allow for element styles to be nested within the element while relying on the parents state.

  • fs-static-parent
  • fs-attention-parent
  • fs-all-states-parent

Example:

@mixin fs-attention-parent($parent:null) {
  @if $parent {
    #{$parent}:hover &,
    #{$parent}:focus &,
    #{$parent}:active & {
      @content;
    }
  }
  @else {
    @content
  }
}

function `fs-svg` should accept a function as an argument

Would be convienent if fs-svg accepted a function for the $color arguement.

Use Case:

.example {
  background-image: url( fs-svg($name: 'chevron', $color: fs-color('blue') ) );
}

Pseudo:

@function fs-svg($name, $color) {
  // . . .
  // Fill
  $fill: '';
  @if ($color) {
    @if (type-of($color) == 'function') {
      $fill: call($color);
    } @else {
      $fill: ' fill="#{$color}"';
    }
  }
  // . . . 
}

The fs-angle() mixin is producing an error

ActionView::Template::Error (Error: Incompatible units: 'deg*deg*deg' and 'deg'.
09:46:25 web.1     |         on line 475 of node_modules/frontline-sass/dist/_frontline.scss
09:46:25 web.1     | >>     $result: $result + $item;
09:46:25 web.1     |    -------------^
09:46:25 web.1     | ):

The fs-pow() function fails for non-unitless values. Need to store the units, strip them, then reapply to the result.

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.