tor-browser

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

sanitizeDialog_v2.css (2393B)


      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 /* Add padding to the left to create space between
     13   the duration choicemenu (#sanitizeDurationChoice)
     14   and the label
     15 */
     16 #sanitizeDurationSuffixLabel {
     17  margin-inline-start: var(--space-small);
     18 }
     19 
     20 /* Hide the duration dropdown suffix label if it's empty.  Otherwise it
     21   takes up a little space, causing the end of the dropdown to not be aligned
     22   with the warning box. */
     23 #sanitizeDurationSuffixLabel[value=""] {
     24  display: none;
     25 }
     26 
     27 #sanitizeDurationLabel[value=""] + #sanitizeDurationChoice {
     28  margin-inline-start: 0;
     29 }
     30 
     31 /* Sanitize everything warning box */
     32 #sanitizeEverythingWarningBox {
     33  /* Fallback colors are used when the dialog is open outside of in-content prefs */
     34  background-color: var(--background-color-box);
     35  border: 1px solid var(--border-color, ThreeDDarkShadow);
     36  border-radius: var(--border-radius-small);
     37  padding: 16px;
     38  margin-block: 6px;
     39 }
     40 
     41 #sanitizeEverythingWarningIcon {
     42  padding: 0;
     43  margin: 0;
     44 }
     45 
     46 #sanitizeEverythingWarningDescBox {
     47  padding: 0 16px;
     48  margin: 0;
     49 }
     50 
     51 #titleText {
     52  margin-block-start: 0;
     53  margin-inline: 4px;
     54 }
     55 
     56 .checkboxWithDescription {
     57  padding: 8px 0;
     58 }
     59 
     60 .sanitizeCheckboxDescription {
     61  padding: 0 24px;
     62  line-height: normal;
     63 }
     64 
     65 #sanitizeDurationChoice {
     66  margin-inline-end: 0;
     67 }
     68 
     69 dialog:not([inClearOnShutdown]) #SanitizeOnShutdownDescription {
     70  display: none;
     71 }
     72 
     73 dialog[inClearOnShutdown] #SanitizeDurationBox {
     74  display: none;
     75 }
     76 
     77 dialog[inClearOnShutdown] #SanitizeOnShutdownDescription {
     78  display: block;
     79 }
     80 
     81 dialog:not([inbrowserwindow]) #titleText {
     82  display: none;
     83 }
     84 
     85 dialog[inbrowserwindow] {
     86  --grid-padding: 16px;
     87  padding: var(--grid-padding) calc(var(--grid-padding) - 4px);
     88 }
     89 
     90 dialog[inbrowserwindow] groupbox,
     91 dialog[inbrowserwindow] #sanitizeEverythingWarningBox,
     92 dialog[inbrowserwindow] #SanitizeDurationBox {
     93  margin-inline: 4px;
     94 }
     95 
     96 dialog[inbrowserwindow] #sanitizeDurationLabel {
     97  margin-inline-start: 0;
     98 }
     99 
    100 dialog[inbrowserwindow] #sanitizeDurationSuffixLabel {
    101  margin-inline-end: 0;
    102 }
    103 
    104 dialog[inbrowserwindow] groupbox:last-child {
    105  margin-block-end: 16px;
    106 }