-
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
27 changed files
with
196 additions
and
201 deletions.
There are no files selected for viewing
Empty file.
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,15 @@ | ||
build | ||
node_modules | ||
src | ||
docs | ||
test | ||
__tests__ | ||
.prettierrc | ||
.editorconfig | ||
bower.json | ||
Gemfile | ||
gulpfile.js | ||
LICENSE.txt | ||
Rakefile | ||
server.js | ||
.prettierrc |
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,5 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'fileutils' | ||
gem 'sshkit' | ||
gem 'semver' |
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,12 +1,18 @@ | ||
# webkit-sassui-frame-wrapper | ||
> Webkit sass ui module media wrapper. | ||
## documentation | ||
- https://afeiship.github.io/webkit-sassui-frame-wrapper/ | ||
|
||
## installation | ||
```shell | ||
npm i @feizheng/webkit-sassui-frame-wrapper | ||
``` | ||
|
||
## usage | ||
```html | ||
<div class="frame-wrapper av1"> | ||
<img src="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/bd_logo1_31bdc765.png" alt=""> | ||
</div> | ||
```scss | ||
@import '~@feizheng/webkit-sassui-frame-wrapper'; | ||
``` | ||
|
||
## resources | ||
+ http://www.zhangxinxu.com/study/201503/css3-object-fit.html | ||
- https://github.com/afeiship/generator-webkit-sassui |
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,4 @@ | ||
|
||
Dir["./node_modules/@feizheng/rake-*/index.rake"].each do |task| | ||
load task | ||
end |
This file was deleted.
Oops, something went wrong.
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,16 +1,12 @@ | ||
(function() { | ||
|
||
'use strict'; | ||
var gulp = require('gulp'); | ||
var config = require('./config'); | ||
var argv = require('yargs').argv; | ||
var $ = require('gulp-load-plugins')({ | ||
pattern: ['gulp-*', 'gulp.*', 'del'] | ||
pattern: ['gulp-*', 'gulp.*', 'del'], | ||
}); | ||
|
||
//clean | ||
gulp.task('clean', function() { | ||
return $.del('dist'); | ||
}); | ||
|
||
}()); | ||
})(); |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
(function() { | ||
'use strict'; | ||
|
||
var gulp = require('gulp'); | ||
var $ = require('gulp-load-plugins')({ | ||
pattern: ['gulp-*', 'gulp.*', 'del'], | ||
}); | ||
|
||
//styles | ||
gulp.task('docs', function() { | ||
return gulp | ||
.src('docs/style.scss') | ||
.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
(function() { | ||
"use strict"; | ||
'use strict'; | ||
|
||
var gulp = require("gulp"); | ||
var config = require("./config"); | ||
var argv = require("yargs").argv; | ||
var $ = require("gulp-load-plugins")({ | ||
pattern: ["gulp-*", "gulp.*", "del"] | ||
var gulp = require('gulp'); | ||
var autoprefixer = require('autoprefixer'); | ||
var $ = require('gulp-load-plugins')({ | ||
pattern: ['gulp-*', 'gulp.*', 'del', '@feizheng/gulp-*'], | ||
}); | ||
|
||
gulp.task("styles", function() { | ||
//styles | ||
gulp.task('styles', function() { | ||
return gulp | ||
.src("src/*.scss") | ||
.pipe(gulp.dest("dist")) | ||
.pipe($.sass({ outputStyle: "expanded" }).on("error", $.sass.logError)) | ||
.pipe(gulp.dest("dist")) | ||
.pipe($.sass({ outputStyle: "compressed" }).on("error", $.sass.logError)) | ||
.pipe($.rename({ extname: ".min.css" })) | ||
.pipe(gulp.dest("dist")); | ||
.src('src/*.scss') | ||
.pipe($.feizheng.pkgHeader()) | ||
.pipe(gulp.dest('dist')) | ||
.pipe($.sass()) | ||
.pipe($.postcss([autoprefixer()])) | ||
.pipe(gulp.dest('dist')); | ||
}); | ||
})(); |
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,45 @@ | ||
/*! | ||
* name: @feizheng/webkit-sassui-frame-wrapper | ||
* description: Webkit sass ui module media wrapper. | ||
* url: https://github.com/afeiship/webkit-sassui-frame-wrapper | ||
* version: 1.0.0 | ||
* date: 2020-02-17 15:23:33 | ||
* license: MIT | ||
*/ | ||
/*webkit-sassui-frame-wrapper Start*/ | ||
/* flex-align start*/ | ||
/* flex-align end*/ | ||
/* flex-direction start*/ | ||
/* flex-direction end*/ | ||
/* object-fit start*/ | ||
/* object-fit end*/ | ||
/* text-align start*/ | ||
/* vertical-align end*/ | ||
/* vertical-align start*/ | ||
/* vertical-align end*/ | ||
.webkit-sassui-frame-wrapper { | ||
position: relative; | ||
overflow: hidden; | ||
display: inline-block; } | ||
.webkit-sassui-frame-wrapper > img { | ||
-o-object-fit: cover; | ||
object-fit: cover; | ||
width: 100%; | ||
height: 100%; } | ||
.webkit-sassui-frame-wrapper[data-object-fit="contain"] > img { | ||
-o-object-fit: contain; | ||
object-fit: contain; } | ||
.webkit-sassui-frame-wrapper[data-object-fit="cover"] > img { | ||
-o-object-fit: cover; | ||
object-fit: cover; } | ||
.webkit-sassui-frame-wrapper[data-object-fit="fill"] > img { | ||
-o-object-fit: fill; | ||
object-fit: fill; } | ||
.webkit-sassui-frame-wrapper[data-object-fit="inherit"] > img { | ||
-o-object-fit: inherit; | ||
object-fit: inherit; } | ||
.webkit-sassui-frame-wrapper[data-object-fit="none"] > img { | ||
-o-object-fit: none; | ||
object-fit: none; } | ||
|
||
/*webkit-sassui-frame-wrapper End*/ |
11 changes: 10 additions & 1 deletion
11
src/webkit-sassui-frame-wrapper.scss → dist/index.scss
100644 → 100755
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 was deleted.
Oops, something went wrong.
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,15 @@ | ||
<!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-frame-wrapper</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@import "../dist/index.scss"; | ||
|
||
.test-webkit-sassui-frame-wrapper{ | ||
border:1px solid red; | ||
} |
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,17 @@ | ||
(function() { | ||
|
||
'use strict'; | ||
|
||
var path = require('path'); | ||
var gulp = require('gulp'); | ||
var argv = require('yargs').argv; | ||
var fs = require('fs'); | ||
var $ = require('gulp-load-plugins')({ | ||
pattern: ['gulp-*', 'gulp.*', 'del'] | ||
pattern: ['gulp-*', 'gulp.*', 'del'], | ||
}); | ||
|
||
//import | ||
fs.readdirSync('./build').map(function(file) { | ||
require('./build/' + file); | ||
}); | ||
|
||
|
||
gulp.task('default', gulp.series(['clean', 'styles'])); | ||
|
||
}()); | ||
gulp.task('default', gulp.series(['clean', 'styles', 'docs'])); | ||
})(); |
Oops, something went wrong.