summaryrefslogtreecommitdiffstats
path: root/src/css/navigation.css
blob: 550e59a1ac4025521e138bb4a2c1e53153d3c5e1 (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
:root {
  --drawer-height: 2.5rem;
}

.navigation-container {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: 100%;
  font-size: 0.9375rem;
  z-index: 1;
}

.navigation-container.is-active {
  display: block;
}

@media screen and (min-width: 769px) {
  .navigation-container {
    width: 16rem;
    font-size: 0.875rem;
  }
}

@media screen and (min-width: 1024px) {
  .navigation-container {
    font-size: 0.8125rem;
    flex: none;
    display: block;
    position: static;
    top: 0;
  }
}

.navigation {
  background-color: #fafafa;
  position: relative;
  top: var(--toolbar-height);
  height: calc(100vh - var(--navbar-height) - var(--toolbar-height));
}

@media screen and (min-width: 769px) {
  .navigation {
    box-shadow: 0.5px 0 3px #c1c1c1;
  }
}

@media screen and (min-width: 1024px) {
  .navigation {
    top: var(--navbar-height);
    box-shadow: none;
    position: sticky;
    height: calc(100vh - var(--navbar-height));
  }
}

.navigation .panels {
  display: flex;
  flex-direction: column;
  height: inherit;
}