Skip to content

Commit 28bb69c

Browse files
committed
Add support for links when using text color utilities (and add reference to Gist with additional text utilities)
1 parent 91137a5 commit 28bb69c

File tree

16 files changed

+2172
-41
lines changed

16 files changed

+2172
-41
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,23 @@ A CSS library that provides utility CSS classes which complement [PureCSS](https
99

1010
## Installation
1111

12-
TODO (first publish on NPM and jsdelivr)
12+
TODO (first publish on NPM)
1313

14+
> https://cdn.jsdelivr.net/gh/jfmdev/purecss-utilities@main/dist/all.css
15+
>
16+
> https://www.jsdelivr.com/documentation
1417
1518
## Utilities
1619

1720
### Texts
1821

1922
You can set the text font size using classes `.pure-txt-xxs` / `.pure-txt-xs` / `.pure-txt-sm` / `.pure-txt-md` / `.pure-txt-lg` / `.pure-txt-xl` / `.pure-txt-xxl`.
2023

21-
You can define the text alignment using classes `.pure-txt-center` / `.pure-txt-justify` / `.pure-txt-left` / `.pure-txt-right`.
22-
2324
You can change the colors of texts using classes `.pure-txt-black` / `.pure-txt-blue` / `.pure-txt-cyan` / `.pure-txt-green` / `.pure-txt-magenta` / `.pure-txt-red` / `.pure-txt-white` / `.pure-txt-yellow`.
2425

2526
Additionally, you can modify the opacity of the colors the `pure-txt-alpha-*` class, where `*` can be replaced with numbers 10, 20, 25, 30, 40, 50, 60, 70, 75, 80 or 90.
2627

27-
TODO: Add support for links
28+
For additional utilities, you can use the [Utility classes for text styling](https://gist.github.com/jfmdev/855d8b20823c89fc8f196812b2d3eb39) Gist.
2829

2930
### Background colors
3031

demo.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ <h1>PureCSS Utilities examples</h1>
1313

1414
<h2>Text</h2>
1515

16-
<h3>Text alignment</h3>
17-
18-
<div class="pure-txt-justify">pure-txt-justify</div>
19-
<div class="pure-txt-left">pure-txt-left</div>
20-
<div class="pure-txt-center">pure-txt-center</div>
21-
<div class="pure-txt-right">pure-txt-right</div>
22-
2316
<h3>Text size</h3>
2417

2518
<div class="pure-txt-xxs">pure-txt-xxs</div>
@@ -49,6 +42,17 @@ <h3>Text colors</h3>
4942
<div class="pure-txt-black pure-txt-alpha-75">pure-txt-black pure-txt-alpha-75</div>
5043
<div class="pure-txt-black pure-txt-alpha-90">pure-txt-black pure-txt-alpha-90</div>
5144

45+
<h3>Text links</h3>
46+
47+
<div><a href="#" class="pure-txt-black">pure-txt-black</a></div>
48+
<div><a href="#" class="pure-txt-blue">pure-txt-blue</a></div>
49+
<div><a href="#" class="pure-txt-cyan">pure-txt-cyan</a></div>
50+
<div><a href="#" class="pure-txt-green">pure-txt-green</a></div>
51+
<div><a href="#" class="pure-txt-magenta">pure-txt-magenta</a></div>
52+
<div><a href="#" class="pure-txt-red">pure-txt-red</a></div>
53+
<div><a href="#" class="pure-txt-white pure-bg-black">pure-txt-white</a></div>
54+
<div><a href="#" class="pure-txt-yellow">pure-txt-yellow</a></div>
55+
5256
<h2>Background colors</h2>
5357

5458
<div class="pure-bg-black pure-txt-white">pure-bg-black</div>

dist/all.css

Lines changed: 971 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/all.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/background.css

Lines changed: 122 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/background.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/border.css

Lines changed: 187 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)