1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00
phorge-phorge/webroot/rsrc/css/application
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
..
auth Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00
base Add printable support to CSS 2013-10-19 14:23:19 -07:00
chatlog Improve pagination in ChatLog application 2013-10-10 04:49:04 -07:00
config Make Maniphest task priorites user-customizable 2013-09-13 11:50:28 -07:00
conpherence Color consolidation 2013-09-07 09:13:55 -07:00
contentsource Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00
countdown Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00
diff More grey text updates 2013-09-02 13:57:48 -07:00
differential Misc Diffusion/Differential CSS tweaks 2013-10-16 13:09:12 -07:00
diffusion Misc Diffusion/Differential CSS tweaks 2013-10-16 13:09:12 -07:00
directory Move #666 to $greytext in UIColor 2013-09-02 08:08:54 -07:00
feed Set overflow-x: auto 2013-05-13 09:14:45 -07:00
files Move all CSS "z-index" rules to "z-index.css", fix Differential z-index problem 2012-12-30 09:30:21 -08:00
flag Move PhabricatorObjectItem to PHUIObjectItem, add 'plain' setting for lists. 2013-09-09 14:14:34 -07:00
herald Move #666 to $greytext in UIColor 2013-09-02 08:08:54 -07:00
legalpad Legalpad V0.1 2013-07-03 11:15:45 -07:00
maniphest Remove ManiphestTransactionDetailView 2013-09-23 14:30:38 -07:00
objectselector More grey text updates 2013-09-02 13:57:48 -07:00
owners Move #666 to $greytext in UIColor 2013-09-02 08:08:54 -07:00
paste Line count can be set for paste 2013-03-14 10:51:34 -07:00
people Add an icon+background selector for project images 2013-10-17 09:32:34 -07:00
phame Move #666 to $greytext in UIColor 2013-09-02 08:08:54 -07:00
pholio Add objectheaders to new View 2013-09-28 15:55:38 -07:00
phortune Clean up rendering of credit card form 2013-04-25 09:46:59 -07:00
phrequent UIColor Blues and common color integration 2013-09-02 08:10:47 -07:00
phriction Color consolidation 2013-09-07 09:13:55 -07:00
policy Custom Policy Editor 2013-10-09 14:05:10 -07:00
ponder Add objectheaders to new View 2013-09-28 15:55:38 -07:00
profile Move #666 to $greytext in UIColor 2013-09-02 08:08:54 -07:00
projects Fix some Maniphest links 2013-09-13 16:56:21 -07:00
releeph Move #666 to $greytext in UIColor 2013-09-02 08:08:54 -07:00
search Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00
settings Placed Radio buttons for Home Page Preferences Settings 2013-04-09 09:43:42 -07:00
slowvote Move #888 and #999 to $lightgreytext 2013-09-02 08:12:18 -07:00
tokens Twerk Tokens Layout 2013-07-20 12:29:05 -07:00
uiexample Add a "toggle-class" behavior 2012-07-30 16:08:42 -07:00