MCPcopy Index your code
hub / github.com/jonathantneal/flexibility

github.com/jonathantneal/flexibility @2.0.1 sqlite

repository ↗ · DeepWiki ↗ · release 2.0.1 ↗
23 symbols 49 edges 20 files 0 documented · 0% 3 cross-repo links
README

flexibility

Flexibility Logo

A JavaScript polyfill for Flexbox

npm bower ci gitter

Flexibility is a polyfill for the Flexible Box Layout, commonly known as Flexbox. With Flexibility, you get to design beautiful, flexible layouts on the web without sacrificing the experience in older browsers.

Flexbox lays out, aligns, and distributes elements in a container, even when their size is unknown or dynamic. To better understand Flexbox, read Chris Coyier’s excellent Complete Guide to Flexbox.

To start using Flexbox in Internet Explorer 8 & 9 or any older browser, download the flexibility.js script and include it anywhere on your page.

<script src="https://github.com/jonathantneal/flexibility/raw/2.0.1/flexibility.js"></script>

If you’re only targeting Internet Explorer 10 and lower, add a -js-display: flex declaration before any display: flex declarations in your CSS, or use PostCSS Flexibility to automate this during your build process.

.container {
    -js-display: flex;
    display: flex;
}

If you’re targeting other browsers, use the data-style attribute to alert these browsers to your changes.






When you’re ready to polyfill flexbox with JavaScript, use the flexibility method on the outermost element you would like to polyfill.

flexibility(document.documentElement);

API

The global flexibility method contains child functions for use within your own framework.

flexibility.read

Argument: Element

Return flexbox related styles from an element.

flexibility.readAll

Argument: Element

Return a list of flexbox details from a matching element or its descendants.

flexibility.write

Argument: Details

Writes flexbox details back to their respective elements.

flexibility.writeAll

Argument: Array

Writes a list of flexbox details back to their respective elements.


To learn more about Flexibility, read the support section.

If you experience an issue, read the contributing section before creating an issue.

Core symbols most depended-on inside this repo

n
called by 15
flexibility.js
normalize
called by 10
lib/write/index.js
l
called by 6
flexibility.js
reduce
called by 6
lib/flexbox/reduce/index.js
o
called by 4
flexibility.js
f
called by 4
flexibility.js
flexibility
called by 2
lib/index.js
read
called by 2
lib/read/index.js

Shape

Function 23

Languages

TypeScript100%

Modules by API surface

test/shared/script.js4 symbols
lib/read/index.js4 symbols
flexibility.js4 symbols
lib/readAll/index.js3 symbols
lib/write/index.js2 symbols
lib/read/getComputedLength.js2 symbols
lib/writeAll/index.js1 symbols
lib/index.js1 symbols
lib/flexbox/reduce/index.js1 symbols
lib/flexbox/index.js1 symbols

Dependencies from manifests, versioned

ava0.15.2 · 1×
browserify13.0.1 · 1×
eslint2.13.1 · 1×
eslint-config-10upgithub:jonathantneal · 1×
jscs3.0.5 · 1×
jscs-config-10upgithub:jonathantneal · 1×
npm-watch0.1.4 · 1×
uglify-js2.6.4 · 1×

For agents

$ claude mcp add flexibility \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact