Skip to content

Commit

Permalink
Merge pull request #322 from dabapps/add-justify
Browse files Browse the repository at this point in the history
Add justify to create-text-align and examples
  • Loading branch information
JakeSidSmith authored Sep 23, 2019
2 parents 631ebc9 + 06c7160 commit 159e7e5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dabapps/roe",
"version": "0.10.2",
"version": "0.10.3",
"description": "A collection of React components, styles, mixins, and atomic CSS classes to aid with the development of web applications.",
"main": "dist/js/index.js",
"types": "dist/js/index.d.ts",
Expand Down
3 changes: 3 additions & 0 deletions src/less/text-align.examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@ Note: `text-align-left` is an alias for `xs-text-align-left`, same for `right` a
xs-text-align-center sm-text-align-left
</strong> - centered on mobile, and left on larger screens
</p>
<p className="text-align-justify">
<strong>text-align-justify</strong> - I'm justified. I fill the space exactly (except on the last line), even if I have to stretch a bit at times. Content spaces out such that as many blocks fit onto one line as possible.
</p>
</div>
```
1 change: 1 addition & 0 deletions src/less/text-align.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
.create-text-align(@prefix, text-align-left, left, @alias);
.create-text-align(@prefix, text-align-right, right, @alias);
.create-text-align(@prefix, text-align-center, center, @alias);
.create-text-align(@prefix, text-align-justify, justify, @alias);
}

.create-text-aligns(xs, true);
Expand Down

0 comments on commit 159e7e5

Please sign in to comment.