summaryrefslogtreecommitdiffstats
path: root/browser/components/tabpreview/tabpreview.css
blob: 776f520c7da2cf3e2dcc5f1395a3266f1c009ea0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

.tab-preview-container {
  --tab-preview-background-color: light-dark(#fff, #42414d);
  --tab-preview-text-color: light-dark(#15141a, #fbfbfe);
  --tab-preview-border-color: light-dark(#cfcfd8, #8f8f9d);

  @media (prefers-contrast) {
    --tab-preview-background-color: Canvas;
    --tab-preview-text-color: CanvasText;
  }
}

.tab-preview-container {
  background-color: var(--tab-preview-background-color);
  color: var(--tab-preview-text-color);
  border-radius: 9px;
  display: inline-block;
  width: 280px;
  overflow: hidden;
  line-height: 1.5;
  border: 1px solid var(--tab-preview-border-color);
}

.tab-preview-title {
  max-height: 3em;
  overflow: hidden;
  font-weight: 600;
}

.tab-preview-uri {
  color: var(--text-color-deemphasized);
  max-height: 1.5em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tab-preview-text-container {
  padding: 8px;
}

.tab-preview-thumbnail-container {
  border-top: 1px solid var(--tab-preview-border-color);
}

.tab-preview-thumbnail-container img,
.tab-preview-thumbnail-container canvas {
  display: block;
  width: 100%;
}

@media (max-width: 640px) {
  .tab-preview-thumbnail-container {
    display: none;
  }
}