Browse Source

adding #5

master
HerrHase 6 years ago
parent
commit
2843e6c327
5 changed files with 2639 additions and 1059 deletions
  1. +2614
    -1039
      package-lock.json
  2. +8
    -9
      package.json
  3. +7
    -0
      src/scss/_config.scss
  4. +0
    -1
      src/scss/crispy.scss
  5. +10
    -10
      src/scss/mixins/_media-queries.scss

+ 2614
- 1039
package-lock.json
File diff suppressed because it is too large
View File


+ 8
- 9
package.json View File

@ -10,20 +10,19 @@
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"cash-dom": "^1.3.7", "cash-dom": "^1.3.7",
"normalize.css": "^8.0.0",
"reflex-grid": "^2.0.1"
"normalize.css": "^8.0.0"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^7.2.5",
"clean-css-cli": "^4.1.10",
"autoprefixer": "^7.2.6",
"clean-css-cli": "^4.2.1",
"copyfiles": "^1.2.0", "copyfiles": "^1.2.0",
"node-sass": "^4.7.2",
"node-sass": "^4.9.3",
"postcss-cli": "^4.1.1", "postcss-cli": "^4.1.1",
"rimraf": "^2.6.1", "rimraf": "^2.6.1",
"svg-sprite": "^1.3.7",
"svgo": "^1.0.3",
"uglifyjs-webpack-plugin": "^1.2.0",
"webpack": "^3.11.0"
"svg-sprite": "^1.4.0",
"svgo": "^1.0.5",
"uglifyjs-webpack-plugin": "^1.3.0",
"webpack": "^3.12.0"
}, },
"config": { "config": {
"dist_dir": "dist/", "dist_dir": "dist/",


+ 7
- 0
src/scss/_config.scss View File

@ -26,6 +26,13 @@ $crispy__color-text: #363636 !default;
$crispy__color-border: #d0d0d0 !default; $crispy__color-border: #d0d0d0 !default;
$crispy__color-background: #ffffff !default; $crispy__color-background: #ffffff !default;
// breakpoints
$crispy__xs: 576px !default;
$crispy__sm: 768px !default;
$crispy__md: 992px !default;
$crispy__lg: 1200px !default;
$crispy__xlg: 1600px !default;
// colors as map // colors as map
$crispy__colors: ( $crispy__colors: (
'primary': $crispy__color-primary, 'primary': $crispy__color-primary,


+ 0
- 1
src/scss/crispy.scss View File

@ -1,6 +1,5 @@
@import @import
'normalize', 'normalize',
'reflex',
'functions/functions', 'functions/functions',
'mixins/mixins', 'mixins/mixins',


+ 10
- 10
src/scss/mixins/_media-queries.scss View File

@ -8,62 +8,62 @@
@mixin crispy__media-xs() { @mixin crispy__media-xs() {
@media only screen and (min-width: $reflex-xs) {
@media only screen and (min-width:$crispy__xs) {
@content; @content;
} }
} }
@mixin crispy__media-sm() { @mixin crispy__media-sm() {
@media only screen and (min-width: $reflex-sm) {
@media only screen and (min-width: $crispy__sm) {
@content; @content;
} }
} }
@mixin crispy__media-md() { @mixin crispy__media-md() {
@media only screen and (min-width: $reflex-md) {
@media only screen and (min-width: $crispy__md) {
@content; @content;
} }
} }
@mixin crispy__media-lg() { @mixin crispy__media-lg() {
@media only screen and (min-width: $reflex-lg) {
@media only screen and (min-width: $crispy__lg) {
@content; @content;
} }
} }
@mixin crispy__media-xlg() { @mixin crispy__media-xlg() {
@media only screen and (min-width: $reflex-xlg) {
@media only screen and (min-width: $crispy__xlg) {
@content; @content;
} }
} }
// only // only
@mixin crispy__media-xs-only() { @mixin crispy__media-xs-only() {
@media only screen and (min-width: $reflex-xs) and (max-width: $reflex-sm - 1) {
@media only screen and (min-width: $crispy__xs) and (max-width: $crispy__sm - 1) {
@content; @content;
} }
} }
@mixin crispy__media-sm-only() { @mixin crispy__media-sm-only() {
@media only screen and (min-width: $reflex-sm) and (max-width: $reflex-md - 1) {
@media only screen and (min-width: $crispy__sm) and (max-width: $crispy__md - 1) {
@content; @content;
} }
} }
@mixin crispy__media-md-only() { @mixin crispy__media-md-only() {
@media only screen and (min-width: $reflex-md) and (max-width: $reflex-lg - 1) {
@media only screen and (min-width: $crispy__md) and (max-width: $crispy__lg - 1) {
@content; @content;
} }
} }
@mixin crispy__media-lg-only() { @mixin crispy__media-lg-only() {
@media only screen and (min-width: $reflex-lg) and (max-width: $reflex-xlg - 1) {
@media only screen and (min-width: $crispy__lg) and (max-width: $crispy__xlg - 1) {
@content; @content;
} }
} }
@mixin crispy__media-xlg-only() { @mixin crispy__media-xlg-only() {
@media only screen and (min-width: $reflex-xlg) {
@media only screen and (min-width: $crispy__xlg) {
@content; @content;
} }
} }

Loading…
Cancel
Save