summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/shared/css/list.css
blob: bcbc2ab0008337cca3d7aeb7eda59a7347fe74fa (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73

list {
  display: block;
  outline: none;
  overflow: auto;
  position: relative; /* Make sure that item offsets are relative to the
                         list. */
}

list > * {
  -webkit-user-select: none;
  background-color: rgba(255,255,255,0);
  border: 1px solid rgba(255,255,255,0); /* transparent white */
  border-radius: 2px;
  cursor: default;
  display: block;
  line-height: 20px;
  margin: -1px 0;
  overflow: hidden;
  padding: 0px 3px;
  position: relative; /* to allow overlap */
  text-overflow: ellipsis;
  white-space: pre;
}

list > [lead] {
  border-color: transparent;
}

list:focus > [lead] {
  border-color: hsl(214, 91%, 65%);
  z-index: 2;
}

list > [anchor] {

}

list:not([disabled]) > :hover {
  border-color: hsl(214, 91%, 85%);
  z-index: 1;
  background-color: hsl(214, 91%, 97%);
}

list > [selected] {
  background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.8),
                                            rgba(255, 255, 255, 0));
}

list > [selected] {
  border-color: hsl(0, 0%, 85%);
  background-color: hsl(0,0%,90%);
  z-index: 2;
}

list:focus > [selected] {
  background-color: hsl(214,91%,89%);
  border-color: hsl(214, 91%, 65%);
}

list:focus > [lead][selected],
list > [selected]:hover {
  background-color: hsl(214, 91%, 87%);
  border-color: hsl(214, 91%, 65%);
}

list > .spacer {
  border: 0;
  box-sizing: border-box;
  overflow: hidden;
  visibility: hidden;
  margin: 0;
}