SASS Framework
cahnory / plasticss Goto Github PK
View Code? Open in Web Editor NEWSASS Framework
License: MIT License
SASS Framework
License: MIT License
Most of your scoped variables are prefixed by an underscore (e.g. $_string
). Not only it is useless since it cannot conflict with anything outside the scope, but it also hurts readability.
implode()
could be coded this way to avoid interpolation ugliness:
@function implode($list, $glue: '') {
$_string: '';
@for $i from 1 through length($list) {
$_string: $_string + nth($list, $i);
@if $i != length($list) {
$_string: $_string + $glue;
}
}
@return $_string;
}
I feel like all your conversion functions could be merged into a single one with something like this (warning, code not tested):
@function to($unit, $value, $coef: 1) {
$units: 1cm 1mm 1ch 1px 1em 1rem 1vw 1vh 1vmin 1vmax 1pica 1ex 1in 1pc 1%;
$available-units: cm mm ch px em rem vw vh vmin vmax pica ex in pc %;
$index: index($available-units, $unit);
@if $index {
@return nth($units, $index) * to-number($value, $coef);
}
@warn "Unknown unit `#{$unit}` for `to`.";
@return false;
}
is-relevant(''); // true
is-relevant(()); // true
Both should be false
. At least in my opinion.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.