Skip to content
This repository was archived by the owner on Apr 30, 2020. It is now read-only.

Commit 566c8bd

Browse files
KiaraGrouwstraredonkulus
authored andcommitted
add note on use with AMP (#383)
Prior discussion can be found at pure-css/pure#675.
1 parent 7ebecc1 commit 566c8bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

views/pages/customize.handlebars

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@
166166
See the <a href="https://github.com/jsdelivr/jsdelivr#combine-multiple-files">jsDelivr combo handler documentation</a> to learn more about its features.
167167
</p>
168168

169+
{{sectionHeading "Using Pure with Google AMP"}}
170+
<p>
171+
Google's <a href="https://www.ampproject.org/">Accelerated Mobile Pages</a> (AMP) allow web pages to get pre-rendered on Google at the cost of restrictions on JS and [CSS](https://www.ampproject.org/docs/guides/responsive/style_pages#disallowed-styles), such as completely inlining all styles rather than using stylesheets in external files such as those hosted at the CDNs mentioned above. Furthermore, AMP disallows some CSS functionality. In Pure, the only bit currently used disallowed by AMP is '!important', currently used in the definition of the '.hidden' helper class. Removing this modifier should suffice to render Pure usable with AMP.
172+
</p>
173+
169174
{{sectionHeading "Contribute on GitHub"}}
170175
<p>
171176
Pure is an open-source project under the BSD License. We welcome issues, pull requests, and feedback. Check out our <a href="https://github.com/yahoo/pure">repo on GitHub</a>.

0 commit comments

Comments
 (0)