aboutsummaryrefslogtreecommitdiffstats
path: root/public/projects/react-small-apps/apps/notebook/src/components/layout/Nav/Nav.css
blob: 9f5f90cc05d851516fec1ed1059d36df40265e35 (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
.nav {
  position: relative;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  margin: 2rem auto 0;
}

.nav .list--nav {
  list-style-type: none;
  position: absolute;
  bottom: 100%;
  width: 80vw;
  margin: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ccc;
}

@media screen and (min-width: 1024px) {
  .nav .list--nav {
    width: 50%;
  }
}

.nav__link {
  background: #fff;
  border: none;
  color: hsl(212, 46%, 34%);
  text-decoration: underline;
  display: inline-block;
  margin: 0 1px;
  padding: 0.8rem 1rem;
}

.nav .list__link {
  display: block;
  padding: 0.2rem;
}

.nav .list__link--current {
  background: hsl(212, 46%, 34%);
  color: #fff;
}

.nav__link:hover,
.nav__link:focus,
.nav .list__link:hover,
.nav .list__link:focus {
  text-decoration-thickness: 4px;
}

.nav__link:focus,
.nav .list__link:focus {
  color: inherit;
}

.nav .list__link--current:focus {
  color: hsl(0, 0%, 89%);
}

.nav__link:active {
  color: hsl(212, 46%, 20%);
  text-decoration-thickness: 2px;
}