Commit Graph

21 Commits

Author SHA1 Message Date
XhmikosR 7b766e1ad5 Switch to stylelint. (#23572) 2017-10-02 20:34:56 -07:00
Patrick H. Lauke 7a781b2ae0 Remove ::first-letter and ::first-line selectors from print styles
Bootstrap itself doesn't use any `::first-letter` or `::first-line`
styles. These selectors also cause(d) problems in IE11 (see
https://github.com/h5bp/html5-boilerplate/pull/1799) and currently cause
a nasty rendering bug in Chrome where the first letter is vertically
shifted (see https://github.com/twbs/bootstrap/issues/21771)

As h5bp has now removed these as well, no need to keep and comment them
out. See https://github.com/h5bp/html5-boilerplate/issues/1961 /
https://github.com/h5bp/html5-boilerplate/pull/1962
2017-07-11 19:51:21 +01:00
Quy 2ea7e388e7 Drop .carete (#21525) 2017-01-03 19:31:27 -08:00
Bardi Harborow 794136f191 Change .tag print styles to .badge. 2016-11-13 12:32:07 +11:00
Patrick H. Lauke 2b73773953 Scope ::first-letter selector for print styles
`*::first-letter` causes problems in IE11 - only prints first page of a
multi-page document
2016-11-06 21:02:29 +00:00
Patrick H. Lauke db533c2e8d Follow-up fix to #20821
With apologies, copy/paste error following on from trying to fix conflicting Hound/Travis checks for https://github.com/twbs/bootstrap/pull/20821/ slipped through before I noticed them.
2016-10-03 10:13:58 +01:00
Patrick H. Lauke 6ae42a02c6 Update print styles borrowed from h5bp
most notable change:
- fixes print/print preview crash in IE11 (caused by `*:first-line`
selector)
2016-10-02 16:33:11 +01:00
Mark Otto dc5c1421c6 Disable important flag on Sass linter (#20627) 2016-09-04 17:58:20 -07:00
Ameya Pandilwar 4ed5fa77ff Rename .label class to .tag 2016-02-11 03:54:30 -05:00
Chris Rebert ecdfc71d1f Add $enable-print-styles variable for _print.scss; fixes #19101
[skip sauce]
2016-02-06 21:35:19 -08:00
Mark Otto 03ec195974 linter overhaul 2016-02-06 12:28:18 -08:00
XhmikosR e672d60646 Update print styles to v5.3.0 of html5 boilerplate. 2016-01-26 21:37:44 +02:00
Chris Rebert 8820c563d2 Remove print-specific img max-width:100%; style so that Google Maps and other widgets print correctly
See https://github.com/h5bp/html5-boilerplate/issues/1741
X-Ref: #1506
2016-01-21 14:18:54 -08:00
Chris Rebert 8b91f95d98 Use $border-width in misc border print styles
[skip sauce]
2015-11-14 23:06:40 -08:00
Kevin Kirsche d51f0a4f81 Use double colons for psuedo elements
Fix #17052
2015-08-24 13:22:10 -04:00
Chris Rebert 2057124cf2 Merge pull request #105 from twbs/beautiful-colors
Print with all the colors of the wind
2015-04-13 10:34:30 -07:00
Chris Rebert b9164b3690 Remove half-assed inclusion of link URLs (hrefs) when printing
* Relative URLs were output as-is, which is suboptimal or even confusing for end-users
* Ditto for fragment identifiers
* Outputting long URLs inline with prose isn't good UX

JavaScript could potentially help with this (e.g. http://alistapart.com/article/improvingprint).
However, we're not currently interested in trying to tackle the hard problem of fancy print stylesheets/views
(particularly given the level of cross-browser inconsistency when it comes to printing).
So let's just keep things simple, vanilla, and unsurprising,
which should also make it easy for others to add their own print fanciness on top of Bootstrap.
2015-04-11 00:24:27 -07:00
Chris Rebert d8423c0590 Print with all the colors of the wind
Forcing black-and-white text & backgrounds is too harsh. Printing speed isn't everything.
Users or authors can easily enable grayscale themselves if need be.
2015-04-11 00:22:45 -07:00
Chris Rebert 07c11f5e92 Remove defunct OS X Chrome <select> printing bug workaround
Chrome fixed the bug as of v37:
https://code.google.com/p/chromium/issues/detail?id=282918
2014-12-16 19:59:05 -08:00
Mark Otto fef873a840 fix all validation, turn off some settings, add sort order 2014-12-11 12:05:29 -08:00
Mark Otto 27df020852 convert to scss 2014-12-02 14:02:35 -08:00