solorice/vscode/extensions/dzhavat.css-flexbox-cheatsheet-3.3.1/README.md
2022-04-28 20:54:44 +03:00

61 lines
2.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# CSS Flexbox Cheatsheet ([link](https://marketplace.visualstudio.com/items?itemName=dzhavat.css-flexbox-cheatsheet))
VS Code extension that lets you open a flexbox cheatsheet directly in the editor.
## Features
The cheatsheet can be opened in a few ways:
- Press `Ctrl + Shift + P` (Win, Linux) / `Cmd + Shift + P` (Mac) and search for the `Open CSS Flexbox Cheatsheet` command.
- Press `Ctrl + K K` (Win, Linux) / `Cmd + K K` (Mac) keyboard shortcut.
- Hover any `display: flex` declaration and click the `Open CSS Flexbox Cheatsheet` link in the popup.
Besides the `Open CSS Flexbox Cheatsheet` link in the hover popup, theres also an image shown for each flexbox property. This aims to make it easier to understand how each property works without opening the cheatsheet. This is available for the following file types:
- CSS
- Less
- Sass
- Scss
Most properties also have interactive playgrounds that are part of the cheatsheet.
## Settings
After opening the cheatsheet, you can select the directionality to be used in the interactive playgrounds. This is especially useful for languages that write from right-to-left (e.g. Arabic). [Learn more](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/dir).
## Font and colors
The colors of the cheatsheet automatically adapt to the selected theme. The font is based on the users preferred font.
## Support my work
If you find this extension useful and would like to support my work, you can [buy me a cup of tea](https://www.buymeacoffee.com/dzhavat). Thank you!
[![Buy Me A Cup Of Tea](https://github.com/dzhavat/css-flexbox-cheatsheet/raw/main/images/buy-me-a-cup-of-tea.png)](https://www.buymeacoffee.com/dzhavat)
## Demo
#### Using the `Open CSS Flexbox Cheatsheet` command
![Demo using "Open CSS Flexbox Cheatsheet" the command](https://github.com/dzhavat/css-flexbox-cheatsheet/raw/main/images/demo/command.gif)
#### Clicking the `Open CSS Flexbox Cheatsheet` link on hover
![Demo opening the cheatsheet by clicking the "Open CSS Flexbox Cheatsheet" command](https://github.com/dzhavat/css-flexbox-cheatsheet/raw/main/images/demo/hover.gif)
#### Trying the interactive playgrounds
![Trying the interactive playgrounds](https://github.com/dzhavat/css-flexbox-cheatsheet/raw/main/images/demo/interactive-playgrounds.gif)
#### Changing directionality in the interactive playgrounds
![Demo changing directionality](https://github.com/dzhavat/css-flexbox-cheatsheet/raw/main/images/demo/changing-directionality.gif)
#### Showing an image on hover
![Demo showing an image on hover](https://github.com/dzhavat/css-flexbox-cheatsheet/raw/main/images/demo/hover-image.gif)
## Credit
The cheatsheet in this extension is based on the excellent [Flexbox Cheatsheet](https://darekkay.com/dev/flexbox-cheatsheet.html) by [Darek Kay](https://darekkay.com/).