summaryrefslogtreecommitdiffstats
path: root/browser/components/firefoxview/fxview-tab-list.css
blob: 5a4bff023a5582cb36703c4378412bbd3e7a2ea5 (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
/* 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/. */

:host {
  display: grid;
  row-gap: var(--space-xsmall);
}

.fxview-tab-list {
  display: grid;
  grid-template-columns: min-content 3fr min-content 2fr 1fr 1fr min-content min-content;
  gap: var(--space-xsmall);

  &.pinned {
    display: flex;
    flex-wrap: wrap;

    > virtual-list {
      display: block;
    }

    > fxview-tab-row {
      display: block;
      margin-block-end: var(--space-xsmall);
    }
  }

  :host([compactRows]) & {
    grid-template-columns: min-content 1fr min-content min-content min-content;
  }
}

virtual-list {
  display: grid;
  grid-column: span 9;
  grid-template-columns: subgrid;

  .top-padding,
  .bottom-padding {
    grid-column: span 9;
  }
}