diff --git a/README.md b/README.md
index 5abcf92..168192c 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,20 @@
# cripsy-boilerplate
Flat Sass Boilerplate to give you a amount of Basic Settings, Mixins and Functions.
-This Boilerplate uses hover.css and normalize.css
+This Boilerplate uses
+
+* normalize.css /
+* reflex-grid /
+
+# media queries
+
+The queries are only
+
+```
+@include crispy__media-xs() {
+
+}
+```
```
npm install crispy-boilerplate --save
diff --git a/demo/index.html b/demo/index.html
new file mode 100644
index 0000000..76a8fc2
--- /dev/null
+++ b/demo/index.html
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/package.json b/package.json
index a5d979c..3251c3d 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@
"author": "Björn Hase",
"license": "MIT",
"dependencies": {
- "normalize.css": "^7.0.0"
+ "normalize.css": "^7.0.0",
+ "reflex-grid": "^2.0.1"
}
}
diff --git a/scss/components/_body.scss b/scss/components/_body.scss
deleted file mode 100644
index 8bde77a..0000000
--- a/scss/components/_body.scss
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * body
- *
- *
- *
- * @author Björn Hase
- *
- */
-
-
-// text
-$body__font-size: 12px !default;
-$body__font-family: Arial, Helvetica, Neue Helvetica, sans-serif !default;
-$body__line-height: 1.5 !default;
-$body__direction: ltr !default;
-
-// colors
-$body__color: black !default;
-$body__background-color: white !default;
-
-@mixin crispy-boilerplate-body {
- body {
- font-family: $body__font-family;
- font-weight: normal;
- line-height: $body__line-height;
-
- color: $body__color;
- background-color: $body__background-color;
-
- direction: $body__direction;
-
- @include font-size($body__font-size);
-
- @content;
- }
-}
diff --git a/scss/components/_button.scss b/scss/components/_button.scss
deleted file mode 100644
index 40f417e..0000000
--- a/scss/components/_button.scss
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * button
- *
- *
- *
- * @author Björn Hase
- *
- */
-
-
-@mixin crispy-boilerplate-button() {
- .button {
- position: relative;
- display: inline-block;
-
- vertical-align: middle;
- appearance: none;
-
- &--wide {
- width: 100%;
- }
-
- &:hover {
- cursor: pointer;
- text-decoration: none;
- }
-
- &:focus {
- outline: none;
- }
-
- @content;
- }
-}
diff --git a/scss/components/_clearfix.scss b/scss/components/_clearfix.scss
deleted file mode 100644
index a77d49e..0000000
--- a/scss/components/_clearfix.scss
+++ /dev/null
@@ -1,14 +0,0 @@
-/**
- * clearfix
- *
- *
- * @author Björn Hase
- *
- */
-
-
-@mixin crispy-boilerplate-clearfix() {
- .clearfix {
- @include clearfix();
- }
-}
diff --git a/scss/components/_heading.scss b/scss/components/_heading.scss
deleted file mode 100644
index 1e3a2b3..0000000
--- a/scss/components/_heading.scss
+++ /dev/null
@@ -1,42 +0,0 @@
-/**
- * heading
- *
- * loop to create for all heading styles
- * creating css-classes with same naming
- *
- *
- * @author Björn Hase
- *
- */
-
-
-// text
-$heading__font-sizes: (
- 'h1': 36px,
- 'h2': 30px,
- 'h3': 24px,
- 'h4': 18px,
- 'h5': 14px,
- 'h6': 12px
-) !default;
-
-$heading__font-weight: bold !default;
-$heading__font-family: Arial, Helvetica, Neue Helvetica, sans-serif !default;
-$heading__line-height: 1.5 !default;
-
-$heading__margin: pxToEm(20px) 0 pxToEm(5px) !default;
-
-@mixin crispy-boilerplate-heading {
- @each $h, $font-size in $heading__font-sizes {
- #{$h}, .#{$h} {
- font-family: $heading__font-family;
- font-weight: $heading__font-weight;
- line-height: $heading__line-height;
- margin: $heading__margin;
-
- @include font-size($font-size);
-
- @content;
- }
- }
-}
diff --git a/scss/components/_normalize.scss b/scss/components/_normalize.scss
deleted file mode 100644
index 73f5645..0000000
--- a/scss/components/_normalize.scss
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * normalize
- *
- *
- * @author Björn Hase
- *
- */
-
-
-$normalize__margin: 0 0 pxToEm(20px) !default;
-
-@mixin crispy-boilerplate-normalize {
- html {
- font-size: 100%;
- }
-
- body,
- html {
- height: 100%;
- }
-
- html,
- legend {
- box-sizing: border-box;
- }
-
- *,
- *::after,
- *::before {
- box-sizing: inherit;
- }
-
- table {
- border-collapse: collapse;
- border-spacing: 0;
- }
-
- p {
- margin: $normalize__margin;
- }
-
- ul, ol, dl {
- margin: $normalize__margin;
- }
-
- @content;
-}
diff --git a/scss/components/_text-colors.scss b/scss/components/_text-colors.scss
deleted file mode 100644
index 8fbdfd9..0000000
--- a/scss/components/_text-colors.scss
+++ /dev/null
@@ -1,26 +0,0 @@
-/**
- * text-colors
- *
- * modificators for text-color
- *
- *
- * @author Björn Hase
- *
- */
-
-
-$text-colors: (
- 'success': green,
- 'warning': yellow,
- 'danger': red,
- 'white': white,
- 'black': black
-) !default;
-
-@mixin crispy-boilerplate-text-colors() {
- @each $name, $color in $text-colors {
- .text-#{$name} {
- color: $color;
- }
- }
-}
diff --git a/scss/example.scss b/scss/example.scss
deleted file mode 100644
index c127b82..0000000
--- a/scss/example.scss
+++ /dev/null
@@ -1,32 +0,0 @@
-@import
- 'crispyBoilerplate';
-
-@include crispy-boilerplate-align();
-@include crispy-boilerplate-clearfix();
-@include crispy-boilerplate-list();
-@include crispy-boilerplate-text-colors();
-@include crispy-boilerplate-animation();
-
-@include crispy-boilerplate-normalize() {
- // adding styles
-};
-
-@include crispy-boilerplate-body() {
- // adding styles
-};
-
-@include crispy-boilerplate-button() {
- // adding styles
-};
-
-@include crispy-boilerplate-heading() {
- // adding styles
-};
-
-@include crispy-boilerplate-icon() {
- // adding styles
-};
-
-.clearfix {
- @include crispy-boilerplate-clearfix();
-};
diff --git a/src/scss/_base.scss b/src/scss/_base.scss
new file mode 100644
index 0000000..0060834
--- /dev/null
+++ b/src/scss/_base.scss
@@ -0,0 +1,68 @@
+/**
+ * base
+ *
+ *
+ * @author Björn Hase
+ *
+ */
+
+html {
+ font-size: 100%;
+}
+
+body,
+html {
+ height: 100%;
+}
+
+html,
+legend {
+ box-sizing: border-box;
+}
+
+*,
+*::after,
+*::before {
+ box-sizing: inherit;
+}
+
+img {
+ width: 100%;
+}
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+p {
+ margin: 0 0 $crispy__margin 0;
+}
+
+ul, ol, dl {
+ margin: 0 0 $crispy__margin 0;
+}
+
+ul {
+ list-style-position: outside;
+}
+
+a {
+ color: $crispy__color-primary;
+
+ &:focus {
+ outline: none;
+ }
+}
+
+body {
+ font-family: $crispy__body__font-family;
+ font-weight: normal;
+ font-size: 100%;
+ line-height: $crispy__body__line-height;
+ color: $crispy__body__color-text;
+ background-color: $crispy__body__background-color;
+ direction: $crispy__body__direction;
+
+ @include font-size($crispy__body__font-size);
+}
diff --git a/src/scss/_config.scss b/src/scss/_config.scss
new file mode 100644
index 0000000..1dc4f97
--- /dev/null
+++ b/src/scss/_config.scss
@@ -0,0 +1,23 @@
+/**
+ * default
+ *
+ *
+ */
+
+$crispy__font-size: 16px !default;
+$crispy__golden-ratio: 1.618 !default;
+
+$crispy__margin: pxToEm(20px) !default;
+
+$cripsy__color-primary: #5ca4a9 !default;
+$cripsy__color-success: #6a8d73 !default;
+$cripsy__color-warning: #f4f1bb !default;
+$cripsy__color-danger: #ed6a5a !default;
+$cripsy__color-text: #969696 !default;
+$crispy__color-background: #e6ebe0 !default;
+
+$crispy__body__font-family: Arial, Helvetica, Neue Helvetica, sans-serif !default;
+$crispy__body__line-height: $base__golden-ratio !default;
+$crispy__body__direction: ltr !default;
+$crispy__body__color: $cripsy__color-text !default;
+$crispy__body__background-color: $crispy__color-background !default;
diff --git a/scss/_mixins.scss b/src/scss/_mixins.scss
similarity index 100%
rename from scss/_mixins.scss
rename to src/scss/_mixins.scss
diff --git a/src/scss/components/_button.scss b/src/scss/components/_button.scss
new file mode 100644
index 0000000..9525250
--- /dev/null
+++ b/src/scss/components/_button.scss
@@ -0,0 +1,49 @@
+/**
+ * button
+ *
+ *
+ * @author Björn Hase
+ *
+ */
+
+$crispy__button__up-margin: pxToEm(20px) !default;
+$crispy__button__up-padding: pxToEm(5px) !default;
+
+@mixin crispy__button() {
+ .button {
+ position: relative;
+ display: inline-block;
+
+ vertical-align: middle;
+ appearance: none;
+
+ &--wide {
+ width: 100%;
+ }
+
+ // button for scroll up and down
+ &--up, &--down {
+ position: absolute;
+ bottom: 0;
+ margin: $crispy__button__up-margin;
+ padding: $crispy__button__up-padding;
+ }
+
+ &--down {
+ bottom: 0;
+ }
+
+ &--up {
+ bottom: 0;
+ }
+
+ &:hover {
+ cursor: pointer;
+ text-decoration: none;
+ }
+
+ &:focus {
+ outline: none;
+ }
+ }
+}
diff --git a/src/scss/components/_heading.scss b/src/scss/components/_heading.scss
new file mode 100644
index 0000000..4f1059d
--- /dev/null
+++ b/src/scss/components/_heading.scss
@@ -0,0 +1,43 @@
+/**
+ * heading
+ *
+ * create classes for heading similar to there name
+ *
+ *
+ * @author Björn Hase
+ *
+ */
+
+$crispy__heading__font-sizes: (
+ 'h1': 36px,
+ 'h2': 30px,
+ 'h3': 24px,
+ 'h4': 18px,
+ 'h5': 14px,
+ 'h6': 12px
+) !default;
+
+$crispy__heading__font-weight: bold !default;
+$crispy__heading__font-family: Arial, Helvetica, Neue Helvetica, sans-serif !default;
+$crispy__heading__line-height: $crispy__golden-ratio !default;
+$crispy__heading__margin: 0 0 pxToEm(20px) !default;
+
+@mixin crispy__heading {
+ h1, .h1,
+ h2, .h2,
+ h3, .h3,
+ h4, .h4,
+ h5, .h5,
+ h6, .h6 {
+ font-family: $heading__font-family;
+ font-weight: $heading__font-weight;
+ line-height: $heading__line-height;
+ margin: $heading__margin;
+ }
+
+ @each $h, $font-size in $heading__font-sizes {
+ #{$h}, .#{$h} {
+ @include font-size($font-size);
+ }
+ }
+}
diff --git a/scss/components/_icon.scss b/src/scss/components/_icon.scss
similarity index 50%
rename from scss/components/_icon.scss
rename to src/scss/components/_icon.scss
index 9247e84..7a34792 100644
--- a/scss/components/_icon.scss
+++ b/src/scss/components/_icon.scss
@@ -3,7 +3,7 @@
*
* use svg as icon
*
- *