flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
41
VISUALIZACION/node_modules/polished/lib/mixins/cover.js
generated
vendored
Executable file
41
VISUALIZACION/node_modules/polished/lib/mixins/cover.js
generated
vendored
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports["default"] = cover;
|
||||
/**
|
||||
* CSS to fully cover an area. Can optionally be passed an offset to act as a "padding".
|
||||
*
|
||||
* @example
|
||||
* // Styles as object usage
|
||||
* const styles = {
|
||||
* ...cover()
|
||||
* }
|
||||
*
|
||||
* // styled-components usage
|
||||
* const div = styled.div`
|
||||
* ${cover()}
|
||||
* `
|
||||
*
|
||||
* // CSS as JS Output
|
||||
*
|
||||
* div: {
|
||||
* 'position': 'absolute',
|
||||
* 'top': '0',
|
||||
* 'right: '0',
|
||||
* 'bottom': '0',
|
||||
* 'left: '0'
|
||||
* }
|
||||
*/
|
||||
function cover(offset) {
|
||||
if (offset === void 0) {
|
||||
offset = 0;
|
||||
}
|
||||
return {
|
||||
position: 'absolute',
|
||||
top: offset,
|
||||
right: offset,
|
||||
bottom: offset,
|
||||
left: offset
|
||||
};
|
||||
}
|
||||
module.exports = exports.default;
|
||||
Loading…
Add table
Add a link
Reference in a new issue