Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I found print.css is not including for print version. We need to use
styles/css/components/print.css: { media: print }
to include files in print version.
Comment | File | Size | Author |
---|---|---|---|
#7 | changes_STARTERKIT.layout.page_.css-2833363-6.patch | 280.14 KB | rohit.rawat619 |
#6 | changes_STARTERKIT.layout.page_.css-2833363-6.patch | 280.14 KB | rohit.rawat619 |
#4 | Screenshot from 2016-12-09 11:54:22.png | 88.59 KB | levmyshkin |
#4 | Screenshot from 2016-12-09 11:22:42.png | 82.25 KB | levmyshkin |
#4 | at_tools-print-css-weight-2833363-4.patch | 1023 bytes | levmyshkin |
Comments
Comment #2
levmyshkinPatch here:
Comment #3
Jeff Burnz CreditAttribution: Jeff Burnz commentedDo you mean it's not working for a particular browser or set of styles?
I ask because
print.css
uses an@media print
rule, although I can see that having both is safer, but another http request.Comment #4
levmyshkinI found out why my print.css styles didn't apply. When I wrote styles in custom.css file, these styles overlap my print.css styles. I think print.css should be included after custom.css file.
Now:
After patch:
Comment #5
rohit.rawat619 CreditAttribution: rohit.rawat619 at TO THE NEW commentedComment #6
rohit.rawat619 CreditAttribution: rohit.rawat619 at TO THE NEW commentedComment #7
rohit.rawat619 CreditAttribution: rohit.rawat619 at TO THE NEW commented