Skip to content

Commit

Permalink
Merge pull request #39 from tuxmachine/modularize
Browse files Browse the repository at this point in the history
Parameterise derived colours and update module resolution
  • Loading branch information
mblode authored Jan 10, 2019
2 parents 7f11145 + 551fda8 commit 80ee701
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 27 deletions.
2 changes: 1 addition & 1 deletion css/marx.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/marx.styl.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/marx.styl.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/marx.styl.min.css.map

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Load plugins
const path = require('path');
const browsersync = require('browser-sync').create();
const gulp = require('gulp');
const autoprefixer = require('autoprefixer');
Expand Down Expand Up @@ -36,7 +37,7 @@ function scss() {
.src('./scss/**/[^_]*.scss')
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe(sass())
.pipe(sass({ includePaths: [ path.resolve(__dirname, 'node_modules') ] }))
.pipe(postcss([autoprefixer(), cssnano()]))
.pipe(gulp.dest('css/'))
.pipe(rename({ suffix: '.min' }))
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@
"url": "https://github.com/mblode/marx/issues"
},
"homepage": "https://github.com/mblode/marx",
"dependencies": {},
"dependencies": {
"sanitize.css": "^8.0.0"
},
"devDependencies": {
"autoprefixer": "^9.4.3",
"browser-sync": "^2.26.3",
Expand All @@ -77,7 +79,6 @@
"gulp-sass": "^4.0.2",
"gulp-sourcemaps": "^2.6.4",
"gulp-stylus": "^2.7.0",
"merge-stream": "^1.0.1",
"sanitize.css": "^8.0.0"
"merge-stream": "^1.0.1"
}
}
10 changes: 5 additions & 5 deletions scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ input[type=submit]:hover,
input[type=reset]:hover,
input[type=button]:hover,
button:hover {
background-color: #0069d9;
border-color: #0062cc;
background-color: darken($primary, 7.5%);
border-color: darken($primary, 10%);
color: $white;
}

input[type=submit]:not(:disabled):active,
input[type=reset]:not(:disabled):active,
input[type=button]:not(:disabled):active,
button:not(:disabled):active {
background-color: #0062cc;
border-color: #005cbf;
background-color: darken($primary, 10%);
border-color: darken($primary, 12.5%);
color: $white;
}

Expand All @@ -49,7 +49,7 @@ input[type=reset]:focus,
input[type=button]:focus,
button:focus {
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.5);
box-shadow: 0 0 0 0.2rem fade_out($primary, 0.5);
}

input[type=submit]:disabled,
Expand Down
8 changes: 4 additions & 4 deletions scss/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ input[type="color"]:focus,
select:focus,
textarea:focus {
background-color: #fff;
border-color: #80bdff;
border-color: mix($primary, #fff);
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
box-shadow: 0 0 0 0.2rem fade_out($primary, 0.75);
}

input:not([type]):focus {
background-color: #fff;
border-color: #80bdff;
border-color: mix($primary, #fff);
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
box-shadow: 0 0 0 0.2rem fade_out($primary, 0.75);
}

input[type="file"]:focus,
Expand Down
2 changes: 1 addition & 1 deletion scss/marx.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@charset 'utf-8';

@import '../node_modules/sanitize.css/sanitize';
@import 'sanitize.css/sanitize';

/*! Marx v3.0.0 - The classless CSS reset (perfect for Communists) | MIT License | https://github.com/mblode/marx */
@import 'variables';
Expand Down
10 changes: 5 additions & 5 deletions styl/_buttons.styl
Original file line number Diff line number Diff line change
Expand Up @@ -28,24 +28,24 @@ input[type=submit]:hover,
input[type=reset]:hover,
input[type=button]:hover,
button:hover
background-color: #0069d9
border-color: #0062cc
background-color: darken($primary, 15%)
border-color: darken($primary, 20%)
color: $white

input[type=submit]:active,
input[type=reset]:active,
input[type=button]:active,
button:active
background-color: #0062cc
border-color: #005cbf
background-color: darken($primary, 20%)
border-color: darken($primary, 25%)
color: $white

input[type=submit]:focus,
input[type=reset]:focus,
input[type=button]:focus,
button:focus
outline: 0
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.5)
box-shadow: 0 0 0 0.2rem alpha($primary, 0.5)

input[type=submit]:disabled,
input[type=reset]:disabled,
Expand Down
8 changes: 4 additions & 4 deletions styl/_form.styl
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ input[type="color"]:focus,
select:focus,
textarea:focus
background-color: #fff
border-color: #80bdff
border-color: mix($primary, #fff)
outline: 0
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25)
box-shadow: 0 0 0 0.2rem alpha($primary, 0.25)

input:not([type]):focus
background-color: #fff
border-color: #80bdff
border-color: mix($primary, #fff)
outline: 0
box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25)
box-shadow: 0 0 0 0.2rem alpha($primary, 0.25)

input[type="file"]:focus,
input[type="radio"]:focus,
Expand Down

0 comments on commit 80ee701

Please sign in to comment.