1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-28 00:10:57 +01:00
phorge-phorge/webroot/rsrc/css
epriestley 87ccca32b6 Add printable support to CSS
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
2013-10-19 14:23:19 -07:00
..
aphront Allow applications to define new policy capabilities 2013-10-07 13:28:58 -07:00
application Add printable support to CSS 2013-10-19 14:23:19 -07:00
core Implement Graphviz, Figlet and Cowsay as Remarkup interpreter blocks 2013-10-16 19:12:14 -07:00
diviner PHUIPropertyListView 2013-10-11 07:53:56 -07:00
layout Give disabled crumb actions a distinct visual style 2013-10-14 18:21:06 -07:00
phui Use property tabs in Files 2013-10-19 12:08:06 -07:00
sprite-actions.css Add action icons to object list views 2013-05-10 12:57:01 -07:00
sprite-apps-large.css Navbar quick add icons... probably 2013-07-29 07:18:27 -07:00
sprite-apps-xlarge.css Added Feed icons. 2013-01-10 10:00:18 -08:00
sprite-apps.css Navbar quick add icons... probably 2013-07-29 07:18:27 -07:00
sprite-conpherence.css Conpherence - some cleanup type stuff 2013-03-13 13:03:51 -07:00
sprite-docs.css Document icons sprite sheet. 2013-03-10 14:16:16 -07:00
sprite-gradient.css Add objectheaders to new View 2013-09-28 15:55:38 -07:00
sprite-icons.css Add Link button to Remarkup assist 2013-10-17 18:57:40 -07:00
sprite-login.css Add Persona login icon 2013-10-14 16:33:49 -07:00
sprite-menu.css Mobile "quick create" icons. 2013-07-28 13:47:09 -07:00
sprite-minicons.css PhabricatorActionHeaderView v0 2013-04-05 07:40:27 -07:00
sprite-payments.css Payment sprite icons. 2013-04-22 16:41:00 -07:00
sprite-projects.css Add an icon+background selector for project images 2013-10-17 09:32:34 -07:00
sprite-status.css White policy icons 2013-10-17 07:41:02 -07:00
sprite-tokens.css PHUIIconView 2013-04-19 17:44:20 -07:00