├── .github └── CODEOWNERS ├── .gitignore ├── .husky └── pre-commit ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── postcss.config.js ├── prettier.config.js ├── public ├── .well-known │ └── brave-rewards-verification.txt ├── favicon.ico └── favicon.svg ├── src ├── App.vue ├── assets │ ├── main.css │ └── prism.css ├── components │ ├── AppHeader.vue │ ├── BaseInput.vue │ ├── BaseSelect.vue │ ├── CarbonAds.vue │ ├── CodeContainer.vue │ ├── CssMarkup.vue │ ├── FlexContainer.vue │ ├── FlexItem.vue │ ├── FlexMarkup.vue │ ├── GitHubIcon.vue │ ├── HtmlMarkup.vue │ ├── Sidebar.vue │ ├── SidebarContainer.vue │ ├── SidebarItems.vue │ ├── SidebarNav.vue │ ├── SidebarNavTab.vue │ ├── Spacer.vue │ ├── TrashCan.vue │ └── TwoBeards.vue ├── main.js └── store.js ├── tailwind.config.js └── vite.config.js /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | @davidleininger 2 | @mikemcbride 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | /dist 4 | 5 | # local env files 6 | .env 7 | .env.local 8 | .env.*.local 9 | 10 | # Log files 11 | npm-debug.log* 12 | yarn-debug.log* 13 | yarn-error.log* 14 | 15 | # Editor directories and files 16 | .idea 17 | .vscode 18 | *.suo 19 | *.ntvs* 20 | *.njsproj 21 | *.sln 22 | *.sw? 23 | 24 | .vercel -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flexbox Playground 2 | 3 | This is a fun little web app to help people visualize flexbox properties. Head on over to https://flexbox.tech and give it a whirl. 4 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |{{ content }}
7 |
7 | Below you will find the CSS and HTML required to generate the
8 | current layout you built.
9 | The CSS has been optimized to omit any properties which have the
10 | default values.
11 | For example,
12 | flex-direction: row;
13 | would not be included since that is the default value for
14 | flex-direction
.
15 |
6 | Edit properties of the flex container here. Click an item to the 7 | right to edit its properties. 8 |
9 | 15 | 71 |7 | Add an item in the other tab first. 8 |
9 |13 | Click a flex item in the container on the right to edit its styles. 14 |
15 | 16 |20 | Edit properties of the flex items here. The selected item will 21 | have a green border. Click the selected item again to stop 22 | editing it. 23 |
24 | 25 | 88 |