flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
39
VISUALIZACION/node_modules/polished/lib/mixins/clearFix.js
generated
vendored
Executable file
39
VISUALIZACION/node_modules/polished/lib/mixins/clearFix.js
generated
vendored
Executable file
|
|
@ -0,0 +1,39 @@
|
|||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports["default"] = clearFix;
|
||||
/**
|
||||
* CSS to contain a float (credit to CSSMojo).
|
||||
*
|
||||
* @example
|
||||
* // Styles as object usage
|
||||
* const styles = {
|
||||
* ...clearFix(),
|
||||
* }
|
||||
*
|
||||
* // styled-components usage
|
||||
* const div = styled.div`
|
||||
* ${clearFix()}
|
||||
* `
|
||||
*
|
||||
* // CSS as JS Output
|
||||
*
|
||||
* '&::after': {
|
||||
* 'clear': 'both',
|
||||
* 'content': '""',
|
||||
* 'display': 'table'
|
||||
* }
|
||||
*/
|
||||
function clearFix(parent) {
|
||||
var _ref;
|
||||
if (parent === void 0) {
|
||||
parent = '&';
|
||||
}
|
||||
var pseudoSelector = parent + "::after";
|
||||
return _ref = {}, _ref[pseudoSelector] = {
|
||||
clear: 'both',
|
||||
content: '""',
|
||||
display: 'table'
|
||||
}, _ref;
|
||||
}
|
||||
module.exports = exports.default;
|
||||
Loading…
Add table
Add a link
Reference in a new issue