mirror of https://github.com/onweru/compose.git

weru
27.33.2020 4d2655330d8d443a389b3985a9c95b1deeb8cc56
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
.nav
  display: grid
  grid-gap: 1rem
  padding: 0 1.5rem !important
  align-items: center
  background-color: var(--bg)
  @media screen and (min-width: 992px)
    grid-template-columns: 10rem 1fr
  &_brand
    position: relative
    picture, img
      max-width: 10rem
  &_header
    position: absolute
    top: 0
    left: 0
    width: 100%
    background-color: var(--bg)
    z-index: 999999
  &_toggle
    position: absolute
    top: 0
    bottom: 0
    width: 3rem
    display: grid
    align-items: center
    text-align: center
    right: 0
    color: var(--text)
    @media screen and (min-width: 992px)
      display: none
  &_body
    display: flex
    flex-direction: column
    background: var(--accent)
    position: fixed
    height: 100vh
    transition: transform 0.25s var(--ease)
    transform: translateX(-101vw)
    @media screen and (min-width: 992px)
      transform: translateX(0)
      position: relative
      height: initial
      justify-content: flex-end
      background: transparent
      flex-direction: row
  &.show &_body
    transform: translateX(-1.5rem)
    box-shadow: 0 1rem 4rem rgba(0,0,0,0.1)
    background: var(--bg)
    li:first-child
      margin: 1.5rem 1rem 0.5rem 1rem
    // input
    //   background: var(--accent)
  &-link
    display: inline-flex
    padding: 0.5rem 1rem
  &-item
    display: grid
    align-items: center
    .search
      @media screen and (min-width: 992px)
        margin-right: 1.5rem