1
0
mirror of https://github.com/kognise/water.css.git synced 2025-04-25 11:43:14 +02:00

Merge branch 'master' into himanshu

This commit is contained in:
Kognise 2021-08-11 14:44:53 -04:00 committed by GitHub
commit 164d96d385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 32 additions and 7 deletions

View File

@ -0,0 +1,5 @@
---
"water.css": patch
---
Remove sourcemap references from built files

View File

@ -0,0 +1,5 @@
---
"water.css": patch
---
Reduce input selector specificity for display property to prevent overriding user's css. Fixes #78 and #82

View File

@ -0,0 +1,5 @@
---
"water.css": patch
---
Added styling for Input type Reset

View File

@ -0,0 +1,5 @@
---
"water.css": patch
---
Update main package entrypoint

View File

@ -0,0 +1,5 @@
---
"water.css": patch
---
Fix color of `<code>` and `<strong>` tags inside links

View File

@ -231,6 +231,7 @@
<label for="remember">Remember me</label>
<input type="submit" value="Submit" />
<input type="reset" value="Reset" />
</form>
<h3 id="code">Code</h3>

View File

@ -58,7 +58,6 @@ const style = () => {
return (
gulp
.src(paths.styles.src)
.pipe(sourcemaps.init())
.pipe(postcss([postcssImport(), postcssColorModFunction(), postcssInlineSvg()]))
.pipe(startDiff())
@ -69,12 +68,9 @@ const style = () => {
.pipe(postcss([autoprefixer()]))
.pipe(endDiff('autoprefixer'))
.pipe(sourcemaps.write('.'))
.pipe(flatten()) // Put files in out/*, not out/builds/*
.pipe(gulp.dest(paths.styles.dest))
.pipe(filter('**/*.css')) // Remove sourcemaps from the pipeline
// <minifying>
.pipe(startDiff())
.pipe(postcss([cssnano({ preset: ['default', { svgo: { floatPrecision: 0 } }] })]))
@ -82,11 +78,9 @@ const style = () => {
.pipe(rename({ suffix: '.min' }))
// </minifying>
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(paths.styles.dest))
.pipe(gulp.dest(paths.docs.dest + '/water.css'))
.pipe(filter('**/*.css')) // Remove sourcemaps from the pipeline
.pipe(sizereport({ gzip: true, total: false, title: 'SIZE REPORT' }))
.pipe(browserSync.stream())
)

View File

@ -2,7 +2,7 @@
"name": "water.css",
"version": "2.0.0",
"description": "A drop-in collection of CSS styles to make simple websites just a little nicer",
"main": "index.js",
"main": "out/water.css",
"scripts": {
"build": "gulp build",
"dev": "gulp watch",

View File

@ -82,3 +82,8 @@ mark {
padding: 0 2px 0 2px;
color: #000;
}
a > code,
a > strong {
color: inherit;
}