tor-browser

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

tab-hover-preview.css (1898B)


      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 #tab-preview-panel {
      6  --panel-width: 280px;
      7  --panel-padding: 0;
      8  /* stylelint-disable-next-line media-query-no-invalid */
      9  @media not -moz-pref("browser.tabs.notes.enabled") {
     10    pointer-events: none;
     11  }
     12 }
     13 
     14 .tab-preview-text-container {
     15  padding: var(--space-small);
     16 }
     17 
     18 .tab-preview-title {
     19  overflow: hidden;
     20  display: -webkit-box;
     21  -webkit-box-orient: vertical;
     22  -webkit-line-clamp: 2;
     23  font-weight: var(--heading-font-weight);
     24 }
     25 
     26 .tab-preview-uri {
     27  color: var(--text-color-deemphasized);
     28  overflow: hidden;
     29  white-space: nowrap;
     30  text-overflow: ellipsis;
     31 }
     32 
     33 .tab-preview-pid-activeness {
     34  color: var(--text-color-deemphasized);
     35  display: flex;
     36  justify-content: space-between;
     37 }
     38 
     39 .tab-preview-thumbnail-container {
     40  width: 264px;
     41  margin: 0 auto var(--space-small);
     42  overflow: hidden;
     43 
     44  &.hide-thumbnail {
     45    display: none;
     46  }
     47  @media (width < 640px) {
     48    display: none;
     49  }
     50  > canvas {
     51    display: block;
     52    width: 100%;
     53    animation: tab-hover-preview-fadein 0.2s ease;
     54    border: 1px solid var(--border-color-deemphasized);
     55    border-radius: var(--border-radius-medium);
     56    box-sizing: border-box;
     57  }
     58 }
     59 
     60 .tab-note-text-container:not(:empty) {
     61  font: menu;
     62  margin: 0 var(--space-large) var(--space-large);
     63 }
     64 
     65 .tab-preview-add-note {
     66  --box-border-color: transparent;
     67  --box-padding: var(--space-medium);
     68  margin: 0 var(--space-small) var(--space-small);
     69 
     70  &[hidden] {
     71    display: none;
     72  }
     73 }
     74 
     75 @keyframes tab-hover-preview-fadein {
     76  from {
     77    opacity: 0;
     78  }
     79  to {
     80    opacity: 100;
     81  }
     82 }
     83 
     84 #tabgroup-panel-content {
     85  max-width: var(--menuitem-max-width);
     86 
     87  & toolbarbutton.active-tab {
     88    font-weight: var(--font-weight-semibold);
     89  }
     90 }