tor-browser

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

formautofill-notification.css (4878B)


      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 /**
      6 * "address-capture" prefix is used for cases where the style should apply
      7 * to "save address doorhanger", "update address doorhanger", and "edit address doorhanger"
      8 *
      9 * "address-save" prefix is used for "save address doorhanger"
     10 * "address-update" prefix is used for "update address doorhanger"
     11 * "address-edit" prefix is used for "edit address doorhanger"
     12 * "address-save-update" prefix is used for "save address doorhanger" and "update address doorhanger"
     13 */
     14 
     15 .popup-notification-body[popupid="address-save-update"] {
     16  width: 25.8em;
     17 }
     18 
     19 .popup-notification-body[popupid="address-edit"] {
     20  width: auto;
     21 }
     22 
     23 .address-capture-notification {
     24  /* Overwrite margin that we don't need */
     25  :is(popupnotificationcontent, .panel-footer) {
     26    margin-top: 0;
     27  }
     28 
     29  description {
     30    margin: 0;
     31  }
     32 
     33  .popup-notification-body-container {
     34    padding-block: 0;
     35  }
     36 
     37  /* define the default text format for the address capture doorhanger */
     38  :is(p, textarea) {
     39    margin-block: 0;
     40    line-height: 1.5;
     41    overflow-wrap: anywhere;
     42  }
     43 
     44  menulist {
     45    padding-block: 6px;
     46    padding-inline: 16px 12px;
     47  }
     48 
     49  .address-capture-icon-button {
     50    width: 32px;
     51    height: 32px;
     52    border: 0;
     53    border-radius: var(--border-radius-small);
     54    margin: 0;
     55    padding: 0;
     56    color: var(--button-text-color-ghost);
     57    background-color: var(--button-background-color-ghost);
     58    background-repeat: no-repeat;
     59    background-position: center;
     60    -moz-context-properties: fill;
     61    fill: currentColor;
     62    margin-inline-start: auto;
     63 
     64    &:hover {
     65      color: var(--button-text-color-ghost-hover);
     66      background-color: var(--button-background-color-ghost-hover);
     67 
     68      &:active {
     69        color: var(--button-text-color-ghost-active);
     70        background-color: var(--button-background-color-ghost-active);
     71      }
     72    }
     73 
     74    &:focus-visible {
     75      outline: var(--focus-outline);
     76      outline-offset: var(--focus-outline-offset);
     77      border-radius: var(--border-radius-xsmall);
     78    }
     79 
     80    &#address-capture-edit-address-button {
     81      background-image: url("chrome://global/skin/icons/edit-outline.svg");
     82    }
     83 
     84    &#address-capture-menu-button {
     85      background-image: url("chrome://browser/skin/formautofill/icon-doorhanger-menu.svg");
     86    }
     87  }
     88 
     89  .popup-notification-primary-button {
     90    color: var(--button-text-color-primary);
     91    background-color: var(--color-accent-primary);
     92 
     93    &:hover {
     94      background-color: var(--color-accent-primary-hover);
     95 
     96      &:active {
     97        background-color: var(--color-accent-primary-active);
     98      }
     99    }
    100  }
    101 }
    102 
    103 .address-capture-header {
    104  margin-top: 8px;
    105  margin-bottom: 12px;
    106  display: flex;
    107  flex-direction: row;
    108 
    109  > h1 {
    110    font-size: 1em;
    111    padding-block: 8px 4px;
    112    margin-block: 0;
    113  }
    114 }
    115 
    116 .address-save-update-notification-content > .address-capture-content {
    117  padding-inline: 4px 0;
    118 }
    119 
    120 .address-capture-description,
    121 .address-save-update-row-container,
    122 .address-edit-row-container {
    123  margin-bottom: 16px;
    124 }
    125 
    126 .address-save-update-row-container {
    127  display: grid;
    128  grid-template-columns: auto 1fr auto;
    129  gap: 8px;
    130 
    131  > image {
    132    width: 16px;
    133    height: 16px;
    134    margin-top: 2px;
    135  }
    136 }
    137 
    138 .address-update-text-diff-added,
    139 .address-update-text-diff-removed {
    140  font-weight: var(--font-weight-semibold);
    141  color: light-dark(rgba(2, 80, 187, 1), rgba(128, 235, 255, 1));
    142  background: light-dark(rgba(0, 96, 223, 0.08), rgba(0, 221, 255, 0.14));
    143 }
    144 
    145 .address-update-text-diff-removed {
    146  text-decoration: line-through;
    147 }
    148 
    149 .address-capture-img-address {
    150  list-style-image: url("chrome://browser/skin/formautofill/icon-capture-address-fields.svg");
    151  -moz-context-properties: fill;
    152  fill: currentColor;
    153 }
    154 
    155 .address-capture-img-email {
    156  list-style-image: url("chrome://browser/skin/formautofill/icon-capture-email-fields.svg");
    157  -moz-context-properties: fill;
    158  fill: currentColor;
    159 }
    160 
    161 .address-edit-row-container {
    162  display: flex;
    163  flex-direction: row;
    164  gap: 10px;
    165 }
    166 
    167 .address-edit-input-container {
    168  display: flex;
    169  flex-direction: column;
    170 
    171  > label {
    172    line-height: 1.5;
    173    margin-bottom: 4px;
    174  }
    175 }
    176 
    177 /* Default size for input fields in address edit doorhanger */
    178 .address-edit-notification-content {
    179  :is(input, textarea) {
    180    width: 15.8em;
    181    margin: 0;
    182  }
    183 
    184  menulist {
    185    width: 17em;
    186    height: 2.46em;
    187    margin: 0;
    188  }
    189 }
    190 
    191 #address-edit-street-address-input {
    192  height: 4.6em;
    193  resize: none;
    194 }
    195 
    196 #address-edit-postal-code-input,
    197 #address-edit-address-level2-input,
    198 #address-edit-address-level3-input {
    199  width: 6.87em;
    200 }
    201 
    202 #address-edit-address-level1-input {
    203  width: 8.1em;
    204 }
    205 
    206 #address-edit-tel-input {
    207  width: 10.6em;
    208 }
    209 
    210 #address-edit-email-input {
    211  width: 12em;
    212 }