summaryrefslogtreecommitdiffstats
path: root/src/css/navigation-explore.css
blob: 938e51a160a08d6cf5be920f463dc94d9e9c65c1 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
.navigation-explore {
  display: flex;
  flex-direction: column;
}

.navigation-explore.is-active {
  height: inherit;
}

.navigation-explore .context {
  flex-shrink: 0;
  color: #5d5d5d;
  background-color: #fafafa;
  box-shadow: 0 -1px 0 #e1e1e1;
  padding: 0 0.25rem 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  line-height: 1;
  font-size: 0.8125rem;
  height: var(--drawer-height);
}

@media screen and (min-width: 1024px) {
  .navigation-explore .context {
    font-size: 0.75rem;
  }
}

.navigation-explore.is-active .context {
  box-shadow: 0 1px 0 #e1e1e1;
}

.navigation-explore .context .version {
  background-image: url(../img/chevron.svg);
  background-repeat: no-repeat;
  background-position: right 0.5rem top 50%;
  background-size: auto 0.75em;
  padding: 0 1.5rem 0 0;
}

.navigation-explore .components {
  flex-grow: 1;
  box-shadow: inset 0 1px 5px #e1e1e1;
  background-color: #f0f0f0;
  padding: 0.5rem;
  margin: 0;
  overflow-y: auto;
  max-height: 100%;
  display: block;
}

.navigation-explore:not(.is-active) .components {
  display: none;
}

.navigation-explore .component {
  display: block;
}

.navigation-explore .component + .component {
  margin-top: 0.5rem;
}

.navigation-explore .component .title {
  font-weight: 500;
}

.navigation-explore .versions {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 0.5rem;
}

.navigation-explore .component .version {
  display: block;
  font-size: 0.9375em;
}

.navigation-explore .component .version a {
  border: 1px solid #b0b0b0;
  border-radius: 0.25em;
  color: #4a4a4a;
  white-space: nowrap;
  padding: 0.05em 0.25em 0;
}

.navigation-explore .component .is-current a {
  border-color: #4a4a4a;
  font-weight: 500;
}

/*
.navigation-explore .component .is-latest a::after {
  content: " (latest)";
}
*/

.navigation-explore .component .version + .version {
  padding-left: 0.375em;
}