tor-browser

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

multiline-editor.css (865B)


      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 :host {
      6  display: inline-flex;
      7  width: 100%;
      8 }
      9 
     10 .multiline-editor {
     11  flex: 1;
     12 }
     13 
     14 .multiline-editor .ProseMirror {
     15  height: 100%;
     16 }
     17 
     18 .multiline-editor .ProseMirror:focus {
     19  outline: none;
     20 }
     21 
     22 .multiline-editor .ProseMirror p {
     23  margin: 0;
     24  padding: 0;
     25 }
     26 
     27 /* Force empty paragraphs to not collapse */
     28 .multiline-editor .ProseMirror p BR.ProseMirror-trailingBreak,
     29 .multiline-editor .ProseMirror p br.ProseMirror-trailingBreak {
     30  display: inline-flex;
     31 }
     32 
     33 .multiline-editor .ProseMirror p.placeholder::before {
     34  content: attr(data-placeholder);
     35  position: absolute;
     36  pointer-events: none;
     37  color: var(--text-color-deemphasized);
     38  user-select: none;
     39 }