7ninjas / scss-mixins Goto Github PK
View Code? Open in Web Editor NEWCollection of scss mixins and functions to ease and improve implementations of common style-code patterns.
Home Page: https://7ninjas.com/
License: MIT License
Collection of scss mixins and functions to ease and improve implementations of common style-code patterns.
Home Page: https://7ninjas.com/
License: MIT License
there is no plain-hove-focus-active, can you add it?
()
How about adding mixin which can indicate how background image will work?
Many times we write
.example-class {
background-image: url('...');
background-size: cover;
background-position: center;
}
Example:
.example-class {
@include background-image($source: '...', $size: cover, $position: center);
}
url
tag?It would faster our work. What do you think about it?
these files are not important and will be added after 1.0.0 please remove them
@include container;
@include media-breakpoint-down(sm) {
@include container($gutter: false);
}
it's not possible to override first container by container without gutters. I have to use breakpoints:
@include media-breakpoint-up(sm) {
@include container;
}
@include media-breakpoint-down(sm) {
@include container($gutter: false);
}
we need to update gutter mixin by adding else if
@mixin gutter($gutter: $grid-gutter-widths) {
@if $gutter {
@each $breakpoint-query, $gutter-width in $gutter {
@include media-breakpoint-variant($breakpoint-query) {
padding-left: ($gutter-width / 2);
padding-right: ($gutter-width / 2);
}
}
}
} else {
padding-left: 0;
padding-right: 0;
}
It's breaking change so should be available on 2.0 version
When I try to import mixins like @import '~scss-mixins/all'
import doesn't work correctly
https://github.com/7ninjas/scss-mixins/blob/develop/docs/variables.md
I fixed this issue using this import @import '~@7ninjas/scss-mixins/all';
Please add contributing, issue and pull request template
my suggestion:
{
"extends": [
"stylelint-config-standard"
],
"rules": {
}
}
I tried to use code from this example
@include triangle($color: $color-black, $direction: up, $round: true);
Please include _forms.scss
into _all.scss
file. We cannot use placeholder mixin
in projects :/
.table {
@include container(true, $gutter: false);
}
.column {
@include col(1, 7);
}
Module build failed:
@error 'Oops! Invalid breakpoint.';
^
Oops! Invalid breakpoint.
in /node_modules/@7ninjas/scss-mixins/src/_breakpoints.scss (line 33, column 7)
when I paste code like this:
:global {
@include font-face(Graphik Regular, './fonts/Graphik-Regular', 500);
@include font-face(Graphik Light, './fonts/Graphik-Light', 300);
@include font-face(Graphik Medium, './fonts/Graphik-Medium', 500);
@include font-face(Graphik Semibold, './fonts/Graphik-Semibold', 500);
}
css-modules will remove these lines instead of instert font face
when I paste code like this:
:global {
html {
@include font-face(Graphik Regular, './fonts/Graphik-Regular', 500);
@include font-face(Graphik Light, './fonts/Graphik-Light', 300);
@include font-face(Graphik Medium, './fonts/Graphik-Medium', 500);
@include font-face(Graphik Semibold, './fonts/Graphik-Semibold', 500);
}
}
css modules will generate broken css:
@font-face {
html {
font-family: Graphik Regular;
font-style: normal;
font-weight: 500;
src: url(/static/Graphik-Regular.19475240.eot);
src: url(/static/Graphik-Regular.19475240.eot?#iefix) format('embedded-opentype'),
url(/static/Graphik-Regular.6253ad31.woff) format('woff'), url(/static/Graphik-Regular.e2a1876e.otf) format('otf'),
url(/static/Graphik-Regular.cedb86ea.ttf) format('truetype');
font-family: Graphik Light;
font-weight: 300;
src: url(/static/Graphik-Light.b4afb5c4.eot);
src: url(/static/Graphik-Light.b4afb5c4.eot?#iefix) format('embedded-opentype'), url(/static/Graphik-Light.881624e3.woff)
this link doesn't work. images.md doesn't have any svg-icon mixin
https://github.com/7ninjas/scss-mixins/blob/develop/docs/images.md#mixin-svg-icon
Would be great to use something like:
@include color(primary);
@include background(primary, someBackgoundSettings);
change docs example for triangle, right now it's css-triangle and in the code we have triangle
jsfiddle examples for each mixin
after import mixins @import '~@7ninjas/scss-mixins/all';
compilator throws this error
Module build failed:
if($mixin != 'down' || $mixin != 'only' || $mixin != 'up') {
^
Property "if" must be followed by a ':'
in /my-project/node_modules/@7ninjas/scss-mixins/src/_breakpoints.scss (line 32, column 5)
Please add best practices document for project
white color isn't visible on white background
$body-color: $color-white;
$body-bg: $color-white;
fix:
$body-color: $color-black;
$body-bg: $color-white;
I tried to use border-radius
, in all.scss border-radius is not imported
Failed to compile.
./src/routes/Home/components/home.scss
Module build failed:
@include border-radius(10px);
^
No mixin named border-radius
in /Users/arek/better-config-xd/src/routes/Home/components/home.scss (line 5, column 12)
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.