MCPcopy Create free account
hub / github.com/Lobos/react-ui / generateOffset

Function generateOffset

src/utils/grids.js:77–83  ·  view source on GitHub ↗
(width, key, responsive)

Source from the content-addressed store, hash-verified

75}
76
77function generateOffset(width, key, responsive) {
78 OFFSETS[key] = true;
79 let minWidth = RESPONSIVE[responsive];
80 let text = `@media screen and (min-width: ${minWidth}px) { .${offsetPre}-${key}{margin-left: ${width}%} }`;
81
82 createStyle(text);
83}
84
85function createStyle(text) {
86 let style = document.createElement('style');

Callers 1

generateFunction · 0.85

Calls 1

createStyleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…