mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 17:02:41 +01:00
87ccca32b6
Summary: Fixes T2146. This is a really simple approach, you just do: !print .rule { whatever: blah; } And it transforms it into: .printable .rule { whatever: blah; } @media print { .rule { whatever: blah; } } So we end up with these rules twice, but they should compress well and we shouldn't need that many of them, and this fix is way way simpler than all the nonsense I discussed in T2146. Test Plan: - Added a unit test. - Added a simple rule to throw away the menubar when printing. - Checked the latter with `/?__print__=1`. Reviewers: chad, btrahan Reviewed By: chad CC: chad, aran Maniphest Tasks: T2146 Differential Revision: https://secure.phabricator.com/D7363 |
||
---|---|---|
.. | ||
aphront | ||
application | ||
core | ||
diviner | ||
layout | ||
phui | ||
sprite-actions.css | ||
sprite-apps-large.css | ||
sprite-apps-xlarge.css | ||
sprite-apps.css | ||
sprite-conpherence.css | ||
sprite-docs.css | ||
sprite-gradient.css | ||
sprite-icons.css | ||
sprite-login.css | ||
sprite-menu.css | ||
sprite-minicons.css | ||
sprite-payments.css | ||
sprite-projects.css | ||
sprite-status.css | ||
sprite-tokens.css |