Skip to content

Commit

Permalink
Merge pull request #63 from audreyt/submenu-fixes
Browse files Browse the repository at this point in the history
Fix submenu for small width (#62)
  • Loading branch information
audreyt committed Aug 22, 2013
2 parents 4e08f99 + 1c422ac commit b5ad33c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<a role="menuitem" class="lang-option a" href="#萌">國語辭典</a>
</li>
<li class="dropdown-submenu">
<a class="icon-long-arrow-right">分類索引</a>
<a class="icon-long-arrow-right" href="#">分類索引</a>
<ul class="dropdown-menu"><li role="presentation">
<a class="lang-option a a-idiom" href="#,">諺語</a></li>
</li></ul>
Expand All @@ -47,7 +47,7 @@
<a role="menuitem" class="lang-option t" href="#!">臺灣閩南語</a>
</li>
<li class="dropdown-submenu">
<a class="icon-long-arrow-right">分類索引</a>
<a class="icon-long-arrow-right" href="#">分類索引</a>
<ul class="dropdown-menu"><li role="presentation">
<a class="lang-option t t-idiom" href="#!。">諺語</a></li>
</li></ul>
Expand All @@ -56,7 +56,7 @@
<a role="menuitem" class="lang-option h" href="#:">臺灣客家語</a>
</li>
<li class="dropdown-submenu">
<a class="icon-long-arrow-right">分類索引</a>
<a class="icon-long-arrow-right" href="#">分類索引</a>
<ul class="dropdown-menu"><li role="presentation">
<a class="lang-option h h-idiom icon-long-arrow-right" href="#:,">諺語</a></li>
</li></ul>
Expand Down
8 changes: 6 additions & 2 deletions sass/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1075,8 +1075,8 @@ canvas {
}

.dropdown-submenu {
position: relative;
> a:after {
> a { position: relative; }
> a:before {
font-size: 10px;
content: "";
display: block;
Expand All @@ -1094,3 +1094,7 @@ canvas {
}
}
}

@media only screen and (max-width: 767px) {
.dropdown-submenu > a:before { content: ""; }
}
10 changes: 8 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -10452,10 +10452,10 @@ canvas {
display: none;
}
}
.dropdown-submenu {
.dropdown-submenu > a {
position: relative;
}
.dropdown-submenu > a:after {
.dropdown-submenu > a:before {
font-size: 10px;
content: "▶";
display: block;
Expand All @@ -10470,3 +10470,9 @@ canvas {
left: 100%;
top: 0;
}

@media only screen and (max-width: 767px) {
.dropdown-submenu > a:before {
content: "▼" !important;
}
}

0 comments on commit b5ad33c

Please sign in to comment.