flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
37
VISUALIZACION/node_modules/polished/lib/mixins/hideText.js
generated
vendored
Executable file
37
VISUALIZACION/node_modules/polished/lib/mixins/hideText.js
generated
vendored
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
exports["default"] = hideText;
|
||||
/**
|
||||
* CSS to hide text to show a background image in a SEO-friendly way.
|
||||
*
|
||||
* @example
|
||||
* // Styles as object usage
|
||||
* const styles = {
|
||||
* 'backgroundImage': 'url(logo.png)',
|
||||
* ...hideText(),
|
||||
* }
|
||||
*
|
||||
* // styled-components usage
|
||||
* const div = styled.div`
|
||||
* backgroundImage: url(logo.png);
|
||||
* ${hideText()};
|
||||
* `
|
||||
*
|
||||
* // CSS as JS Output
|
||||
*
|
||||
* 'div': {
|
||||
* 'backgroundImage': 'url(logo.png)',
|
||||
* 'textIndent': '101%',
|
||||
* 'overflow': 'hidden',
|
||||
* 'whiteSpace': 'nowrap',
|
||||
* }
|
||||
*/
|
||||
function hideText() {
|
||||
return {
|
||||
textIndent: '101%',
|
||||
overflow: 'hidden',
|
||||
whiteSpace: 'nowrap'
|
||||
};
|
||||
}
|
||||
module.exports = exports.default;
|
||||
Loading…
Add table
Add a link
Reference in a new issue