Browse Source

refactoring

master
nirgendswo 7 years ago
parent
commit
ef0977646e
6 changed files with 48 additions and 69 deletions
  1. +1
    -1
      package.json
  2. +46
    -0
      scss/_mixins.scss
  3. +1
    -3
      scss/crispyBoilerplate.scss
  4. +0
    -19
      scss/mixins/_clearfix.scss
  5. +0
    -22
      scss/mixins/_font-size.scss
  6. +0
    -24
      scss/mixins/_list.scss

+ 1
- 1
package.json View File

@ -1,6 +1,6 @@
{
"name": "crispy-boilerplate",
"version": "0.3.0",
"version": "0.4.0",
"description": "Flat Sass Boilerplate to give you a amount of Basic Settings, Mixins and Functions",
"repository": {
"type": "git",


+ 46
- 0
scss/_mixins.scss View File

@ -0,0 +1,46 @@
/**
* add font-size in px as fallback
* and in rem
*
*
* @param {px} $font-size
*
*/
@mixin font-size($font-size) {
font-size: $font-size;
font-size: pxToRem($font-size);
}
/**
* clearfix to end floating
*
*
*
*/
@mixin clearfix() {
&::before,
&::after {
display: table;
content: ' ';
}
&::after {
clear: both;
}
}
/**
* clear default styles from list
*
*
*/
@mixin crispy-boilerplate-list-clear() {
list-style: none;
margin: 0;
padding: 0;
li {
margin: 0;
padding: 0;
}
}

+ 1
- 3
scss/crispyBoilerplate.scss View File

@ -4,9 +4,7 @@
'functions/units',
'functions/zIndex',
'mixins/clearfix',
'mixins/font-size',
'mixins/list',
'mixins',
'components/align',
'components/animations',


+ 0
- 19
scss/mixins/_clearfix.scss View File

@ -1,19 +0,0 @@
/**
* clearfix
*
*
* @author Björn Hase
*
*/
@mixin clearfix() {
&::before,
&::after {
display: table;
content: ' ';
}
&::after {
clear: both;
}
}

+ 0
- 22
scss/mixins/_font-size.scss View File

@ -1,22 +0,0 @@
@import
'../functions/units';
/**
* font-size
*
*
* @author Björn Hase
*
*/
/**
* add font-size with fallback
*
* @param {px} $font-size
*
*/
@mixin font-size($font-size) {
font-size: $font-size;
font-size: pxToRem($font-size);
}

+ 0
- 24
scss/mixins/_list.scss View File

@ -1,24 +0,0 @@
/**
* list
*
*
* @author Björn Hase
*
*/
/**
* clear default styles from list
*
*
*/
@mixin crispy-boilerplate-list-clear() {
list-style: none;
margin: 0;
padding: 0;
li {
margin: 0;
padding: 0;
}
}

Loading…
Cancel
Save