tor-browser

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

firstrun.css (4582B)


      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 file,
      3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 @keyframes springUp {
      6  from {
      7    opacity: 0;
      8    transform: translateY(40px);
      9  }
     10  to {
     11    opacity: 1;
     12    transform: translateY(0);
     13  }
     14 }
     15 
     16 #multi-stage-message-root {
     17  --bg-white: light-dark(#fff, #fff);
     18  --bg-transparent: transparent;
     19  --tile-border-color: #f1e7f8;
     20  --shadow-color: rgb(59 34 121);
     21 
     22  .main-content,
     23  .section-main,
     24  .dialog-initial,
     25  .onboardingContainer {
     26    box-shadow: none;
     27  }
     28 
     29  .onboardingContainer .screen[pos="center"] {
     30    background-color: var(--bg-transparent);
     31  }
     32 
     33  #mainContentHeader {
     34    /* stylelint-disable-next-line -- using linear gradient for text effect */
     35    background: linear-gradient(91deg, #7630c0 22.04%, #5c66ee 78.7%);
     36    background-clip: text;
     37    /* stylelint-disable-next-line -- transparent needed for gradient text effect */
     38    color: var(--bg-transparent);
     39  }
     40 
     41  .screen.AI_WINDOW_INTRO {
     42    #mainContentHeader {
     43      opacity: 0;
     44      animation: springUp 0.3s ease-in forwards;
     45      animation-delay: 0.3s;
     46    }
     47  }
     48 
     49  .screen.AI_WINDOW_CHOOSE_MODEL {
     50    h2,
     51    p {
     52      letter-spacing: 0.3px;
     53      line-height: normal;
     54    }
     55 
     56    .welcome-text h2 {
     57      opacity: 0.8;
     58      margin-top: var(--space-medium);
     59    }
     60 
     61    button.primary {
     62      width: calc(var(--size-item-large) * 7);
     63      height: var(--size-item-xlarge);
     64      display: flex;
     65      justify-content: center;
     66      align-items: center;
     67      gap: var(--space-small);
     68      padding: var(--space-xsmall) var(--space-large);
     69      margin: 0 auto;
     70      border: var(--border-width) solid var(--border-color-transparent);
     71      border-radius: var(--border-radius-medium);
     72      /* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens -- gradient defined in ai-window-content.css */
     73      background: var(--gradient-button);
     74      color: var(--button-text-color-primary);
     75      text-align: center;
     76      font-size: var(--button-font-size);
     77      font-weight: var(--button-font-weight);
     78      letter-spacing: -0.3px;
     79      cursor: pointer;
     80    }
     81 
     82    &:not(:has(.icon.selected)) button.primary {
     83      opacity: 0.5;
     84      pointer-events: none;
     85      cursor: default;
     86    }
     87  }
     88 
     89  .tiles-single-select-section.single-select {
     90    gap: var(--space-large);
     91    margin-top: calc(var(--space-xsmall) * 8);
     92    margin-bottom: var(--space-xxlarge);
     93 
     94    .select-item {
     95      width: calc(var(--size-item-large) * 7);
     96      height: calc(var(--size-item-medium) * 11);
     97      padding-block: calc(var(--space-xsmall) * 9) 0;
     98      /* stylelint-disable-next-line -- custom border color per Figma design */
     99      border: var(--border-width) solid var(--tile-border-color);
    100      display: flex;
    101      flex-direction: column;
    102      justify-content: start;
    103      align-items: center;
    104      gap: 0;
    105      padding-inline: var(--space-medium);
    106      box-sizing: border-box;
    107      border-radius: var(--border-radius-large);
    108      /* stylelint-disable-next-line -- using white for consistent background */
    109      background: color-mix(in srgb, var(--bg-white) 60%, var(--bg-transparent));
    110 
    111      .label-text {
    112        margin-top: calc(var(--space-xsmall) * 5);
    113        margin-bottom: 0;
    114        letter-spacing: 0.5px;
    115        opacity: 0.8;
    116        line-height: normal;
    117      }
    118 
    119      .body-text {
    120        opacity: 0.8;
    121        line-height: normal;
    122      }
    123 
    124      .icon {
    125        width: calc(var(--size-item-xlarge) * 2);
    126        height: calc(var(--size-item-xlarge) * 2);
    127        display: flex;
    128        justify-content: center;
    129        align-items: center;
    130        flex-shrink: 0;
    131      }
    132 
    133      &:hover:not(:has(.selected)) {
    134        /* stylelint-disable-next-line -- using white for hover state */
    135        background: var(--bg-white);
    136        cursor: pointer;
    137      }
    138 
    139      &:has(.selected) {
    140        border: calc(var(--border-width) * 2) solid var(--border-color-transparent);
    141        /* stylelint-disable-next-line stylelint-plugin-mozilla/use-design-tokens -- gradient defined in ai-window-content.css */
    142        background:
    143          linear-gradient(#fff, #fff) padding-box,
    144          var(--gradient-selected-border) border-box;
    145        /* stylelint-disable-next-line -- custom shadow color per Figma design */
    146        box-shadow:
    147          0 3px 16px 0 color-mix(in srgb, var(--shadow-color) 12%, var(--bg-transparent)),
    148          0 1px 2px 0 color-mix(in srgb, var(--shadow-color) 20%, var(--bg-transparent));
    149      }
    150    }
    151  }
    152 }