@ -1,15 +1,27 @@ | |||
{ | |||
"name": "crispy-boilerplate", | |||
"version": "0.9.3", | |||
"version": "0.9.4", | |||
"description": "Flat Sass Boilerplate to give you a amount of Basic Settings, Mixins and Functions", | |||
"repository": { | |||
"type": "git", | |||
"url": "git@github.com:nirgendswo/crispy-boilerplate.git" | |||
"url": "git@github.com:HerrHase/crispy-boilerplate.git" | |||
}, | |||
"author": "Björn Hase", | |||
"license": "MIT", | |||
"dependencies": { | |||
"normalize.css": "^7.0.0", | |||
"reflex-grid": "^2.0.1" | |||
}, | |||
"config": { | |||
"dest_dir": "dest/", | |||
"src_dir": "src/", | |||
}, | |||
"scripts": { | |||
"preinstall": "npm install -g node-sass clean-css-cli postcss-cli autoprefixer", | |||
"build": "npm run css:build", | |||
"css:build": "npm run css:clean && npm run css:postcss && npm run css:minify", | |||
"css:clean": "rimraf $npm_package_config_dist_dir/css/*", | |||
"css:postcss": "postcss $npm_package_config_dest_dir/css/*.css --use autoprefixer -d $npm_package_config_dest_dir/css/", | |||
"css:minify": "cleancss $npm_package_config_dest_dir/css/landingPage.css > $npm_package_config_dest_dir/css/landingPage.min.css" | |||
} | |||
} |
@ -1,65 +0,0 @@ | |||
/** | |||
* 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); | |||
} | |||
/** | |||
* add modificators for font-size from a map | |||
* | |||
* | |||
* @param {map} $font-sizes | |||
* | |||
*/ | |||
@mixin font-sizes($font-sizes) { | |||
@each $name, $font-size in $font-sizes { | |||
@if ($name == 'default') { | |||
@include font-size($font-size); | |||
} @else { | |||
&--#{$name} { | |||
@include font-size($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,35 +0,0 @@ | |||
/** | |||
* list | |||
* | |||
* styles and mixins for ol and ul-element | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
@mixin crispy__list { | |||
.list { | |||
&--horizontal { | |||
li { | |||
float: left; | |||
} | |||
} | |||
&--clear { | |||
@include crispy__list-clear(); | |||
} | |||
} | |||
.d-list { | |||
&--horizontal { | |||
dt, dd { | |||
float: left; | |||
} | |||
dd { | |||
clear: left; | |||
} | |||
} | |||
} | |||
} |
@ -1,18 +1,7 @@ | |||
@import | |||
'../../normalize.css/normalize', | |||
'functions/units', | |||
'functions/zIndex', | |||
'mixins', | |||
'components/align', | |||
'components/body', | |||
'helpers/helpers', | |||
'components/button', | |||
'components/clearfix', | |||
'components/heading', | |||
'components/icon', | |||
'components/list', | |||
'components/margin', | |||
'components/normalize', | |||
'components/text-colors'; | |||
'components/table'; |
@ -1,2 +0,0 @@ | |||
@import | |||
'crispyBoilerplate'; |
@ -0,0 +1,3 @@ | |||
@import | |||
'units', | |||
'zIndex'; |
@ -0,0 +1,8 @@ | |||
@import | |||
'align', | |||
'background-color', | |||
'margin', | |||
'media', | |||
'text-color', | |||
'typography', | |||
'visibilty'; |
@ -1 +0,0 @@ | |||
// reflex grid commands for reflex grid |
@ -1,5 +0,0 @@ | |||
/** | |||
* | |||
* | |||
* | |||
*/ |
@ -1,7 +1,156 @@ | |||
.hide { | |||
display: none; | |||
} | |||
/** | |||
* visibilty | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
@mixin crispy__visibilty() { | |||
.hide { | |||
display: none; | |||
} | |||
.hide { | |||
&--xs { | |||
@include crispy__media-xs() { | |||
display: none; | |||
} | |||
} | |||
&--sm { | |||
@include crispy__media-sm() { | |||
display: none; | |||
} | |||
} | |||
&--md { | |||
@include crispy__media-md() { | |||
display: none; | |||
} | |||
} | |||
&--lg { | |||
@include crispy__media-lg() { | |||
display: none; | |||
} | |||
} | |||
&--xlg { | |||
@include crispy__media-xlg() { | |||
display: none; | |||
} | |||
} | |||
} | |||
.show { | |||
display: block; | |||
&--inline { | |||
display: inline; | |||
} | |||
&--inline-block { | |||
display: inline-block; | |||
} | |||
} | |||
// block | |||
.show { | |||
&--xs { | |||
@include crispy__media-xs() { | |||
display: block; | |||
} | |||
} | |||
&--sm { | |||
@include crispy__media-sm() { | |||
display: block; | |||
} | |||
} | |||
&--md { | |||
@include crispy__media-md() { | |||
display: block; | |||
} | |||
} | |||
&--lg { | |||
@include crispy__media-lg() { | |||
display: block; | |||
} | |||
} | |||
&--xlg { | |||
@include crispy__media-xlg() { | |||
display: block; | |||
} | |||
} | |||
} | |||
// show inline | |||
.show { | |||
&--inline-xs { | |||
@include crispy__media-xs() { | |||
display: inline; | |||
} | |||
} | |||
&--inline-sm { | |||
@include crispy__media-sm() { | |||
display: inline; | |||
} | |||
} | |||
&--inline-md { | |||
@include crispy__media-md() { | |||
display: inline; | |||
} | |||
} | |||
&--inline-lg { | |||
@include crispy__media-lg() { | |||
display: inline; | |||
} | |||
} | |||
&--inline-xlg { | |||
@include crispy__media-xlg() { | |||
display: inline; | |||
} | |||
} | |||
} | |||
// show inline block | |||
.show { | |||
&--inline-block-xs { | |||
@include crispy__media-xs() { | |||
display: inline-block; | |||
} | |||
} | |||
&--inline-block-sm { | |||
@include crispy__media-sm() { | |||
display: inline-block; | |||
} | |||
} | |||
&--inline-block-md { | |||
@include crispy__media-md() { | |||
display: inline-block; | |||
} | |||
} | |||
.show { | |||
&--inline-block-lg { | |||
@include crispy__media-lg() { | |||
display: inline-block; | |||
} | |||
} | |||
&--inline-block-xlg { | |||
@include crispy__media-xlg() { | |||
display: inline-block; | |||
} | |||
} | |||
} | |||
} |
@ -1,235 +0,0 @@ | |||
/** | |||
* | |||
* | |||
* | |||
* | |||
*/ | |||
.show { | |||
display: block; | |||
} | |||
.hide { | |||
display: none; | |||
&--xs { | |||
@include media-xs { | |||
display: none; | |||
} | |||
} | |||
&--sm { | |||
} | |||
&--md { | |||
} | |||
&--lg { | |||
} | |||
} | |||
.lg-visible, | |||
.md-visible, | |||
.sm-visible, | |||
.xs-visible { | |||
display: none !important; | |||
} | |||
.lg-visible-block, | |||
.lg-visible-inline, | |||
.lg-visible-inline-block, | |||
.md-visible-block, | |||
.md-visible-inline, | |||
.md-visible-inline-block, | |||
.sm-visible-block, | |||
.sm-visible-inline, | |||
.sm-visible-inline-block, | |||
.xs-visible-block, | |||
.xs-visible-inline, | |||
.xs-visible-inline-block { | |||
display: none !important; | |||
} | |||
/** | |||
* show | |||
* | |||
* | |||
*/ | |||
@media (max-width: 767px) { | |||
.xs-visible { | |||
display: block !important; | |||
} | |||
table.xs-visible { | |||
display: table !important; | |||
} | |||
tr.xs-visible { | |||
display: table-row !important; | |||
} | |||
td.xs-visible, | |||
th.xs-visible { | |||
display: table-cell !important; | |||
} | |||
} | |||
@media (max-width: 767px) { | |||
.xs-visible-block { | |||
display: block !important; | |||
} | |||
} | |||
@media (max-width: 767px) { | |||
.xs-visible-inline { | |||
display: inline !important; | |||
} | |||
} | |||
@media (max-width: 767px) { | |||
.xs-visible-inline-block { | |||
display: inline-block !important; | |||
} | |||
} | |||
@media (min-width: 768px) and (max-width: 991px) { | |||
.sm-visible { | |||
display: block !important; | |||
} | |||
table.sm-visible { | |||
display: table !important; | |||
} | |||
tr.sm-visible { | |||
display: table-row !important; | |||
} | |||
td.sm-visible, | |||
th.sm-visible { | |||
display: table-cell !important; | |||
} | |||
} | |||
@media (min-width: 768px) and (max-width: 991px) { | |||
.sm-visible-block { | |||
display: block !important; | |||
} | |||
} | |||
@media (min-width: 768px) and (max-width: 991px) { | |||
.sm-visible-inline { | |||
display: inline !important; | |||
} | |||
} | |||
@media (min-width: 768px) and (max-width: 991px) { | |||
.sm-visible-inline-block { | |||
display: inline-block !important; | |||
} | |||
} | |||
@media (min-width: 992px) and (max-width: 1199px) { | |||
.md-visible { | |||
display: block !important; | |||
} | |||
table.md-visible { | |||
display: table !important; | |||
} | |||
tr.md-visible { | |||
display: table-row !important; | |||
} | |||
td.md-visible, | |||
th.md-visible { | |||
display: table-cell !important; | |||
} | |||
} | |||
@media (min-width: 992px) and (max-width: 1199px) { | |||
.md-visible-block { | |||
display: block !important; | |||
} | |||
} | |||
@media (min-width: 992px) and (max-width: 1199px) { | |||
.md-visible-inline { | |||
display: inline !important; | |||
} | |||
} | |||
@media (min-width: 992px) and (max-width: 1199px) { | |||
.md-visible-inline-block { | |||
display: inline-block !important; | |||
} | |||
} | |||
@media (min-width: 1200px) { | |||
.lg-visible { | |||
display: block !important; | |||
} | |||
table.lg-visible { | |||
display: table !important; | |||
} | |||
tr.lg-visible { | |||
display: table-row !important; | |||
} | |||
td.lg-visible, | |||
th.lg-visible { | |||
display: table-cell !important; | |||
} | |||
} | |||
@media (min-width: 1200px) { | |||
.lg-visible-block { | |||
display: block !important; | |||
} | |||
} | |||
@media (min-width: 1200px) { | |||
.lg-visible-inline { | |||
display: inline !important; | |||
} | |||
} | |||
@media (min-width: 1200px) { | |||
.lg-visible-inline-block { | |||
display: inline-block !important; | |||
} | |||
} | |||
/** | |||
* hidden | |||
* | |||
* | |||
*/ | |||
@media (max-width: 767px) { | |||
.xs-hidden { | |||
display: none !important; | |||
} | |||
} | |||
@media (min-width: 768px) and (max-width: 991px) { | |||
.sm-hidden { | |||
display: none !important; | |||
} | |||
} | |||
@media (min-width: 992px) and (max-width: 1199px) { | |||
.md-hidden { | |||
display: none !important; | |||
} | |||
} | |||
@media (min-width: 1200px) { | |||
.lg-hidden { | |||
display: none !important; | |||
} | |||
} |
@ -0,0 +1,38 @@ | |||
/** | |||
* | |||
* | |||
* | |||
* | |||
*/ | |||
/** | |||
* 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); | |||
} | |||
/** | |||
* add modificators for font-size from a map | |||
* | |||
* | |||
* @param {map} $font-sizes | |||
* | |||
*/ | |||
@mixin font-sizes($font-sizes) { | |||
@each $name, $font-size in $font-sizes { | |||
@if ($name == 'default') { | |||
@include font-size($font-size); | |||
} @else { | |||
&--#{$name} { | |||
@include font-size($font-size); | |||
} | |||
} | |||
} | |||
} |
@ -0,0 +1,69 @@ | |||
/** | |||
* media-queries | |||
* | |||
* | |||
* @author Björn Hase | |||
* | |||
*/ | |||
@mixin crispy__media-xs() { | |||
@media only screen and (min-width: $reflex-xs) { | |||
$content; | |||
} | |||
} | |||
@mixin crispy__media-sm() { | |||
@media only screen and (min-width: $reflex-sm) { | |||
$content; | |||
} | |||
} | |||
@mixin crispy__media-md() { | |||
@media only screen and (min-width: $reflex-md) { | |||
$content; | |||
} | |||
} | |||
@mixin crispy__media-lg() { | |||
@media only screen and (min-width: $reflex-lg) { | |||
$content; | |||
} | |||
} | |||
@mixin crispy__media-xlg() { | |||
@media only screen and (min-width: $reflex-xlg) { | |||
$content; | |||
} | |||
} | |||
// only | |||
@mixin crispy__media-xs-only() { | |||
@media only screen and (min-width: $reflex-xs) and (max-width: $reflex-xs - 1) { | |||
$content; | |||
} | |||
} | |||
@mixin crispy__media-sm-only() { | |||
@media only screen and (min-width: $reflex-sm) and (max-width: $reflex-md - 1) { | |||
$content; | |||
} | |||
} | |||
@mixin crispy__media-md-only() { | |||
@media only screen and (min-width: $reflex-md) and (max-width: $reflex-md - 1) { | |||
$content; | |||
} | |||
} | |||
@mixin crispy__media-lg-only() { | |||
@media only screen and (min-width: $reflex-lg) and (max-width: $reflex-lg - 1) { | |||
$content; | |||
} | |||
} | |||
@mixin crispy__media-xlg-only() { | |||
@media only screen and (min-width: $reflex-xlg) and (max-width: $reflex-xlg - 1) { | |||
$content; | |||
} | |||
} |
@ -0,0 +1,37 @@ | |||
@import | |||
'fonts', | |||
'media-queries'; | |||
/** | |||
* clearfix to end floating | |||
* | |||
* | |||
* | |||
*/ | |||
@mixin crispy__clearfix() { | |||
&::before, | |||
&::after { | |||
display: table; | |||
content: ' '; | |||
} | |||
&::after { | |||
clear: both; | |||
} | |||
} | |||
/** | |||
* clear default styles from list | |||
* | |||
* | |||
*/ | |||
@mixin crispy__list-clear() { | |||
list-style: none; | |||
margin: 0; | |||
padding: 0; | |||
li { | |||
margin: 0; | |||
padding: 0; | |||
} | |||
} |