tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

plaintext.css (994B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 pre {
      6  white-space: pre-wrap;
      7  word-wrap: break-word;
      8  -moz-control-character-visibility: visible;
      9 }
     10 
     11 .nowrap pre {
     12  white-space: pre;
     13 }
     14 
     15 /* Make text go with the rules of dir=auto, but allow it to be overriden if 'Switch Text Direction' is triggered */
     16 html:not([dir]) pre {
     17  /* Not a UA sheet, so doesn't use :-moz-has-dir-attr */
     18  unicode-bidi: plaintext;
     19 }
     20 
     21 @-moz-document unobservable-document() {
     22  :root {
     23    color-scheme: light dark;
     24  }
     25 }
     26 
     27 /* NOTE(emilio): For some reason some pages, mainly bing.com, load a bunch of
     28 * scripts in zero-size <object> elements, see bug 1548449.
     29 *
     30 * Line-breaking such documents is useless and pretty expensive, so only render
     31 * them if there's a viewport. Sigh.
     32 */
     33 @media (width: 0) or (height: 0) {
     34  :root {
     35    display: none;
     36  }
     37 }