mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
Merge branch 'master' into css-refactor
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<button (click)="showBlur=true" primary>Blur</button>
|
<button (click)="showBlur=true" primary>Blur</button>
|
||||||
|
|
||||||
<div ion-blur (click)="showBlur=false" *ng-if="showBlur" style="display: flex; justify-content: center; align-items: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255,255,255,0.8);">"
|
<div ion-blur (click)="showBlur=false" *ng-if="showBlur" style="display: flex; justify-content: center; align-items: center; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255,255,255,0.8);">
|
||||||
<h2>Blurred!</h2>
|
<h2>Blurred!</h2>
|
||||||
</div>
|
</div>
|
||||||
</ion-content>
|
</ion-content>
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
import {Directive, Renderer, ElementRef} from 'angular2/angular2';
|
import {Directive, Renderer, ElementRef} from 'angular2/angular2';
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The blur attribute applies the CSS blur attribute to an element. If the CSS attribute is not supported,
|
||||||
|
* it will fall back to applying a semi-transparent background color to the element.
|
||||||
|
*
|
||||||
|
* @demo /docs/v2/demos/blur/
|
||||||
|
*/
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: '[ion-blur]'
|
selector: '[ion-blur]'
|
||||||
})
|
})
|
||||||
|
@ -61,6 +61,7 @@ import {extend} from '../../util/util';
|
|||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
|
* @demo /docs/v2/demos/popup/
|
||||||
* @see {@link /docs/v2/components#popups Popup Component Docs}
|
* @see {@link /docs/v2/components#popups Popup Component Docs}
|
||||||
*/
|
*/
|
||||||
@Injectable()
|
@Injectable()
|
||||||
|
@ -174,12 +174,13 @@ module.exports = function(gulp, flags) {
|
|||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var gutil = require('gulp-util');
|
var gutil = require('gulp-util');
|
||||||
var es = require('event-stream');
|
var es = require('event-stream');
|
||||||
|
var mkdirp = require('mkdirp');
|
||||||
var path = require('path');
|
var path = require('path');
|
||||||
var Entities = require('html-entities').AllHtmlEntities;
|
var Entities = require('html-entities').AllHtmlEntities;
|
||||||
entities = new Entities();
|
entities = new Entities();
|
||||||
|
|
||||||
var variables = [];
|
var variables = [];
|
||||||
var outputFile = config.docsDest + '/data/sass.json';
|
var outputFile = 'tmp/sass.json';
|
||||||
|
|
||||||
// Add the variable to the array, encode the html and remove !default from the value
|
// Add the variable to the array, encode the html and remove !default from the value
|
||||||
function addVariable(variableName, defaultValue, file) {
|
function addVariable(variableName, defaultValue, file) {
|
||||||
@ -226,6 +227,7 @@ module.exports = function(gulp, flags) {
|
|||||||
}).on('end', function() {
|
}).on('end', function() {
|
||||||
gutil.log("Writing to file at", gutil.colors.cyan("/driftyco/ionic2/" + outputFile));
|
gutil.log("Writing to file at", gutil.colors.cyan("/driftyco/ionic2/" + outputFile));
|
||||||
gutil.log("Place this file in", gutil.colors.cyan("/driftyco/ionic-site/" + config.v2DocsDir + "/theming/overriding-ionic-variables/"), "in order to update the docs");
|
gutil.log("Place this file in", gutil.colors.cyan("/driftyco/ionic-site/" + config.v2DocsDir + "/theming/overriding-ionic-variables/"), "in order to update the docs");
|
||||||
|
mkdirp.sync('tmp');
|
||||||
fs.writeFileSync(outputFile, JSON.stringify(variables));
|
fs.writeFileSync(outputFile, JSON.stringify(variables));
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user