Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix submenu for small width (#62) #63

Merged
merged 1 commit into from
Aug 22, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}