Skip to content

Commit e6e6ce4

Browse files
authored
Merge pull request #1 from brownbathrobe/update-readme
Update README to include property declaration order
2 parents e5d7140 + 31d71b9 commit e6e6ce4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Using this plugin, you can create three different types of triangles:
4343
### Triangle types
4444

4545
All triangle types have the following rules/caveats:
46+
- The `triangle` declaration must appear _before_ the `height` or `width` property (doing otherwise will result in a compilation error)
4647
- You must specify a direction (`pointing-up`, `pointing-down`, `pointing-left` or `pointing-right`).
4748
- You must provide a separate `background-color` declaration. This will transpile into a `border-color` in the opposite direction in which your triangle points. The `background-color` helps you forget about all that nonsense and just specify what _appears_ to be the background color, visually.
4849
- Unfortunately, there is no way to set a triangle's actual `border` at this time. I considered using the `::before` pseudo-class to achieve this; however, it had a defect that was cutting it in half and I gave up. Feel free to submit a pull request with this feature if you have a solution for it.

0 commit comments

Comments
 (0)