~nykma/hugo-theme-jane unlisted

ref: 202096facc7e47204e7a9343ad365fb97187b8fd hugo-theme-jane/assets/sass/_partial/_header/_menu.scss -rw-r--r-- 1.4 KiB View raw
202096faNyk Ma [!] changes of blockquote and footnote a month ago
                                                                                
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
// ==============================
// Menu
// =============================

.site-navbar {
  .menu {
    float: right;
    padding-right: 15px;
    font-family: $global-serif-font-family;

    .active {
      font-weight: 700;
    }
    
    .menu-item {
      display: inline-block;
      margin-left: 1em;
      margin-right: 1em;
      position: relative;

      & + .menu-item {
        margin-left: $menu-item-margin-left;;
      }

      .submenu {
        visibility: hidden;
        position: absolute;
        top: 120%;
        // left: 50%;
        transition: 0.2s 1s;
        list-style: none;
        padding: 0;
        background: #fff;
        white-space:nowrap;
        border: 1px solid #ddd;
        border-bottom: none;
        transition: 0.2s 0.2s; /* delay of seconds on hover off */
        z-index: 99;

        li {
          border-bottom: 1px solid #ddd;

          a {
            padding: 12px;
          }
        }
      }

      &:hover .submenu {
        visibility: visible;
        transition-delay: 0s; /* react immediately on hover */
      }

      // @include underline-from-center;
    }

    .menu-item-link {
      font-size: $menu-link-font-size;
    }
  }
}

.menu-parent::after {
  content: " ▼";
  font-size: 11px;
}

.menu a:hover {
  color: $theme-color;
}

@include max-screen() {
  .site-navbar {
    display: none;
  }
}

.menu-item-lang .icon-globe::before {
  font-size: 0.9em;
}