tor-browser

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

sanitizeDialog.css (1758B)


      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 /* Sanitize everything warnings */
      6 
      7 #sanitizeEverythingWarning,
      8 #sanitizeEverythingUndoWarning {
      9  white-space: pre-wrap;
     10 }
     11 
     12 /* Hide the duration dropdown suffix label if it's empty.  Otherwise it
     13   takes up a little space, causing the end of the dropdown to not be aligned
     14   with the warning box. */
     15 #sanitizeDurationSuffixLabel[value=""] {
     16  display: none;
     17 }
     18 
     19 #sanitizeDurationLabel[value=""] + #sanitizeDurationChoice {
     20  margin-inline-start: 0;
     21 }
     22 
     23 /* Sanitize everything warning box */
     24 #sanitizeEverythingWarningBox {
     25  /* Fallback colors are used when the dialog is open outside of in-content prefs */
     26  background-color: var(--background-color-box);
     27  border: 1px solid var(--border-color, ThreeDDarkShadow);
     28  border-radius: 5px;
     29  padding: 16px;
     30  margin-block: 6px;
     31 }
     32 
     33 #sanitizeEverythingWarningIcon {
     34  padding: 0;
     35  margin: 0;
     36 }
     37 
     38 #sanitizeEverythingWarningDescBox {
     39  padding: 0 16px;
     40  margin: 0;
     41 }
     42 
     43 #titleText {
     44  margin-block-start: 0;
     45  margin-inline: 4px;
     46 }
     47 
     48 dialog:not([inbrowserwindow]) #titleText {
     49  display: none;
     50 }
     51 
     52 dialog[inbrowserwindow] {
     53  --grid-padding: 16px;
     54  padding: var(--grid-padding) calc(var(--grid-padding) - 4px);
     55 }
     56 
     57 dialog[inbrowserwindow] groupbox,
     58 dialog[inbrowserwindow] #sanitizeEverythingWarningBox,
     59 dialog[inbrowserwindow] #SanitizeDurationBox {
     60  margin-inline: 4px;
     61 }
     62 
     63 dialog[inbrowserwindow] #sanitizeDurationLabel {
     64  margin-inline-start: 0;
     65 }
     66 
     67 dialog[inbrowserwindow] #sanitizeDurationSuffixLabel {
     68  margin-inline-end: 0;
     69 }
     70 
     71 dialog[inbrowserwindow] groupbox:last-child {
     72  margin-block-end: 16px;
     73 }