Skip to content

Commit

Permalink
Visually separated working & non-working example
Browse files Browse the repository at this point in the history
  • Loading branch information
stowball committed Apr 2, 2013
1 parent c99b851 commit 803a9df
Showing 1 changed file with 40 additions and 6 deletions.
46 changes: 40 additions & 6 deletions jquery.izilla.touchMenuHover.html
Expand Up @@ -25,6 +25,14 @@
color: #666;
}

b {
color: #1a9364;
}

b.fail {
color: #a81c1c;
}

.nav {
border-bottom: 1px solid #999;
max-width: 768px;
Expand Down Expand Up @@ -61,6 +69,10 @@
width: 100%;
}

.fail ul, .fail ul div {
border-color: #7e1515;
}

li {
display: table-cell;
position: relative;
Expand All @@ -75,10 +87,19 @@
text-decoration: none;
}

.fail a {
background: #891717;
border-right-color: #7e1515;
}

li:first-child > a {
border-left: 2px solid #00794a;
}

.fail li:first-child > a {
border-left-color: #7e1515;
}

.parent:after {
border-color: #fff transparent transparent transparent;
border-style: solid;
Expand All @@ -97,6 +118,10 @@
background: #1a9364;
}

.fail a:hover, .fail a:focus, .fail li:hover > a {
background: #891717;
}

ul ul, ul div {
border-width: 0 2px;
left: -999em;
Expand Down Expand Up @@ -130,6 +155,11 @@
border-width: 0 0 2px 0;
}

.fail li li a {
background: #a81c1c;
border-color: #7e1515;
}

li li:first-child > a {
border-top-width: 2px;
border-left: 0;
Expand All @@ -138,6 +168,10 @@
li li a:hover, li li a:focus {
background: #008752;
}

.fail li li a:hover, .fail li li a:focus {
background: #891717;
}
</style>
</head>

Expand All @@ -146,9 +180,9 @@
<h1>Izilla jQuery Touch Menu Hover Test Page</h1>

<h2>Standard UL &raquo; LI &raquo; UL &raquo; LI pattern</h2>
<p>Flyout menus not accessible on any mobile browsers <i>(not always the case on iOS)</i></p>
<p>Flyout menus <b class="fail">not accessible</b> on any mobile browsers <i>(not always the case on iOS)</i></p>

<div class="nav">
<div class="nav fail">
<ul>
<li>
<a href="http://google.com" class="parent">Google</a>
Expand All @@ -174,7 +208,7 @@ <h2>Standard UL &raquo; LI &raquo; UL &raquo; LI pattern</h2>
</div>

<h2>Standard UL &raquo; LI &raquo; UL &raquo; LI pattern <i>(with Touch Menu Hover enabled)</i></h2>
<p>Flyout menus accessible on all mobile browsers</p>
<p>Flyout menus <b>accessible</b> on all mobile browsers</p>

<pre>
<code>
Expand Down Expand Up @@ -210,9 +244,9 @@ <h2>Standard UL &raquo; LI &raquo; UL &raquo; LI pattern <i>(with Touch Menu Hov
</div>

<h2>Mega Menu UL &raquo; LI &raquo; DIV &raquo; UL &raquo; LI pattern</h2>
<p>Flyout menus not accessible on any mobile browsers</p>
<p>Flyout menus <b class="fail">not accessible</b> on any mobile browsers</p>

<div class="nav">
<div class="nav fail">
<ul>
<li>
<a href="http://google.com" class="parent">Google</a>
Expand Down Expand Up @@ -242,7 +276,7 @@ <h2>Mega Menu UL &raquo; LI &raquo; DIV &raquo; UL &raquo; LI pattern</h2>
</div>

<h2>Mega Menu UL &raquo; LI &raquo; DIV &raquo; UL &raquo; LI pattern <i>(with Touch Menu Hover enabled)</i></h2>
<p>Flyout menus accessible on all mobile browsers</p>
<p>Flyout menus <b>accessible</b> on all mobile browsers</p>

<pre>
<code>
Expand Down

0 comments on commit 803a9df

Please sign in to comment.