-
-
Save toburger/5309036 to your computer and use it in GitHub Desktop.
Revisions
-
toburger revised this gist
Apr 4, 2013 . 1 changed file with 12 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,17 @@ /** * Simple CSS only flyout menu */ body { background: #f06; background: linear-gradient(45deg, #f06, yellow); min-height: 100%; font-family: Arial; } nav { width: 100%; float: left; font-weight: bold; } nav ul { list-style: none; @@ -24,9 +35,9 @@ nav ul ul { } nav li li { float: none; padding: 5px 0px; } nav li:hover ul { transform: translate(0px,0px); opacity: 1; } -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,32 @@ nav { width: 100%; float: left; } nav ul { list-style: none; padding: 0px; margin: 0px; } nav li { position: relative; float: left; padding: 5px; cursor: pointer; } nav ul ul { left: 0px; opacity: 0; transition-property: opacity, transform; transition-duration: 100ms, 100ms; transform: translate(0px,-10px); transition-timing-function: ease ease; transition-delay: 200ms; } nav li li { float: none; } nav li:hover ul { display: block; transform: translate(0px,0px); opacity: 1; } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ <!-- content to be placed inside <body>…</body> --> <nav> <ul> <li>Home</li> <li>To be expanded <ul> <li>Sub1</li> <li>Sub2</li> </ul> </li> <li>About</li> </ul> </nav> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ // alert('Hello world!'); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}