-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
132 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"git": { | ||
"requireCleanWorkingDir": false | ||
}, | ||
"hooks": { | ||
"after:init": [ | ||
"t2k" | ||
], | ||
"after:bump": [ | ||
"npm run build" | ||
] | ||
}, | ||
"github": { | ||
"release": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,37 @@ | ||
# webkit-sassui-layout-fixed-header | ||
> Fixed header bar for sassui. | ||
# wsui-layout-fixed-header | ||
> Fixed header bar for wsui. | ||
## documentation | ||
- https://afeiship.github.io/webkit-sassui-layout-fixed-header/ | ||
[![version][version-image]][version-url] | ||
[![license][license-image]][license-url] | ||
[![size][size-image]][size-url] | ||
[![download][download-image]][download-url] | ||
|
||
## installation | ||
```shell | ||
npm i @feizheng/webkit-sassui-layout-fixed-header | ||
npm i @jswork/wsui-layout-fixed-header | ||
``` | ||
|
||
## usage | ||
```scss | ||
@import '~@feizheng/webkit-sassui-layout-fixed-header'; | ||
@import '~@jswork/wsui-layout-fixed-header'; | ||
|
||
// header-height: 50px; | ||
// gap: 10px; | ||
@include wsui-layout-fixed-header($in-height: 50px, $in-gap: 10px); | ||
``` | ||
|
||
## resources | ||
- https://github.com/afeiship/generator-webkit-sassui | ||
## license | ||
Code released under [the MIT license](https://github.com/afeiship/wsui-layout-fixed-header/blob/master/LICENSE.txt). | ||
|
||
[version-image]: https://img.shields.io/npm/v/@jswork/wsui-layout-fixed-header | ||
[version-url]: https://npmjs.org/package/@jswork/wsui-layout-fixed-header | ||
|
||
[license-image]: https://img.shields.io/npm/l/@jswork/wsui-layout-fixed-header | ||
[license-url]: https://github.com/afeiship/wsui-layout-fixed-header/blob/master/LICENSE.txt | ||
|
||
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/wsui-layout-fixed-header | ||
[size-url]: https://github.com/afeiship/wsui-layout-fixed-header/blob/master/dist/wsui-layout-fixed-header.min.js | ||
|
||
[download-image]: https://img.shields.io/npm/dm/@jswork/wsui-layout-fixed-header | ||
[download-url]: https://www.npmjs.com/package/@jswork/wsui-layout-fixed-header | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
(function() { | ||
(function () { | ||
'use strict'; | ||
|
||
var gulp = require('gulp'); | ||
var $ = require('gulp-load-plugins')({ | ||
pattern: ['gulp-*', 'gulp.*', 'del'], | ||
}); | ||
var { includePaths } = nx.$global; | ||
//styles | ||
gulp.task('docs', function() { | ||
gulp.task('docs', function () { | ||
return gulp | ||
.src('docs/style.scss') | ||
.pipe( | ||
$.sass({ outputStyle: 'expanded', includePaths }).on( | ||
'error', | ||
$.sass.logError | ||
) | ||
) | ||
.pipe($.sass({ outputStyle: 'expanded' }).on('error', $.sass.logError)) | ||
.pipe(gulp.dest('docs')); | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
/*! | ||
* name: @feizheng/webkit-sassui-layout-fixed-header | ||
* description: Fixed header bar for sassui. | ||
* url: https://github.com/afeiship/webkit-sassui-layout-fixed-header | ||
* name: @jswork/wsui-layout-fixed-header | ||
* description: Fixed header bar for wsui. | ||
* homepage: https://github.com/afeiship/wsui-layout-fixed-header | ||
* version: 1.0.0 | ||
* date: 2020-02-25 12:34:49 | ||
* date: 2020-12-18 21:40:57 | ||
* license: MIT | ||
*/ | ||
/*webkit-sassui-layout-fixed-header Start*/ | ||
/*webkit-sassui-layout-fixed-header End*/ | ||
/*wsui-layout-fixed-header Start*/ | ||
/*wsui-layout-fixed-header End*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>webkit-sassui-layout-fixed-footer</title> | ||
<title>wsui-layout-fixed-header</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
<div class="wrapper test-webkit-sassui-layout-fixed-footer" data-hasbar=true> | ||
<div class="is-header"> | ||
<span>My header</span> | ||
<button id='btn'>Close ME</button> | ||
</div> | ||
|
||
<div style="height:200px; background:salmon;"></div> | ||
<div style="height:200px; background:royalblue;"></div> | ||
<div style="height:200px; background:saddlebrown;"></div> | ||
<div style="height:200px; background:salmon;"></div> | ||
<div style="height:200px; background:seagreen;"></div> | ||
<div style="height:200px; background:sienna;"></div> | ||
<div style="height:200px; background:salmon;"></div> | ||
<div style="height:200px; background:skyblue;"></div> | ||
<div style="height:200px; background:salmon;"></div> | ||
|
||
|
||
<div class="wrapper test-wsui-layout-fixed-footer" data-hasbar=true> | ||
<div class="is-header"> | ||
<span>My header</span> | ||
<button id='btn'>Close ME</button> | ||
</div> | ||
|
||
<script> | ||
var btn = document.querySelector('#btn'); | ||
var wrapper = document.querySelector('.wrapper'); | ||
btn.onclick = function () { | ||
wrapper.setAttribute('data-hasbar', false); | ||
} | ||
</script> | ||
|
||
<div style="height:200px; background:salmon;"></div> | ||
<div style="height:200px; background:royalblue;"></div> | ||
<div style="height:200px; background:saddlebrown;"></div> | ||
<div style="height:200px; background:salmon;"></div> | ||
<div style="height:200px; background:seagreen;"></div> | ||
<div style="height:200px; background:sienna;"></div> | ||
<div style="height:200px; background:salmon;"></div> | ||
<div style="height:200px; background:skyblue;"></div> | ||
<div style="height:200px; background:salmon;"></div> | ||
|
||
|
||
</div> | ||
|
||
<script> | ||
var btn = document.querySelector('#btn'); | ||
var wrapper = document.querySelector('.wrapper'); | ||
btn.onclick = function () { | ||
wrapper.setAttribute('data-hasbar', false); | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.