A Responsive Menu
How do I make an a responsive menu?
Testing out Slim + Stylus while creating a responsive menu.Inspired by Kyee (http://dribbble.com/shots/450349-Responsive-menu). What is a a responsive menu? How do you make a a responsive menu? This script and codes were developed by Ken Lauguico on 20 December 2022, Tuesday.
A Responsive Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Responsive Menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="nav"> <div class="title"> Incoming<span> Messages</span> </div> <a class="fontawesome-comment active"><span>New</span> <div class="bubble"> 10 </div> </a><a class="fontawesome-flag"><span>Priority</span> <div class="bubble"> 8 </div> </a><a class="fontawesome-user"><span>Assigned</span> <div class="bubble"> 0/17 </div> </a><a class="fontawesome-folder-close"><span>Archived</span> <div class="bubble"> 3 </div> </a><a class="fontawesome-trash"><span>Deleted</span> <div class="bubble"> 9 </div> </a><a>Show All</a>
</div> <script src="js/index.js"></script>
</body>
</html>
A Responsive Menu - Script Codes CSS Codes
/* vars */
@import url("http://weloveiconfonts.com/api/?family=fontawesome");
/* zocial */
[class*="fontawesome-"]:before { font-family: 'FontAwesome' sans-serif; font-size: 1.3em; margin-right: 0.8em; color: #d2d5d9;
}
/* mixin */
body { font-family: Arial, sans-serif; font-size: 0.9em; background-color: #f3f4f4;
}
.nav { color: #6d7580; min-width: 90px; max-width: 250px; height: 333px; background-color: #fff; border: 1px solid #d2d5d9; border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,0.1); position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto;
}
a > span { opacity: 1; transition: opacity 0.3s;
}
.nav > a { box-sizing: border-box; position: relative; display: block; padding: 1em; border-bottom: 1px solid #d2d5d9;
}
.nav > a:last-child { border-bottom: 0; border-radius: 0 0 4px 4px;
}
.nav > a:hover { background-color: #6d7580; color: #fff;
}
.nav > a:hover:before { color: #fff;
}
.nav > a:hover .bubble { border: 0; background: #f00; color: #fff;
}
.nav > a:hover::after { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 8px solid #6d7580; content: ''; display: block; position: absolute; right: -8px; top: 1.1em;
}
a.active { background-color: #6d7580; color: #fff;
}
a.active:before { color: #fff;
}
a.active .bubble { border: 0; background: #f00; color: #fff;
}
a.active::after { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 8px solid #6d7580; content: ''; display: block; position: absolute; right: -8px; top: 1.1em;
}
.nav > .title { box-sizing: border-box; position: relative; display: block; padding: 1em; background-color: #4a4f56; color: #fff; font-weight: 500; border-radius: 4px 4px 0 0;
}
.bubble { position: absolute; top: 1.3em; right: 1em; font-size: 0.8em; color: #6d7580; border: 1px solid #6d7580; border-radius: 10px; padding: 2px 5px;
}
/* responsiveness */
@media (max-width: 180px) { .title > span { display: none; } .nav > a > span { opacity: 0; transition: opacity 0.3s; }
}
A Responsive Menu - Script Codes JS Codes
/*
Responsive Menu
Inspired by http://dribbble.com/shots/450349-Responsive-menu
Resize the window!
*/
Developer | Ken Lauguico |
Username | kenlauguico |
Uploaded | December 20, 2022 |
Rating | 4.5 |
Size | 3,590 Kb |
Views | 4,048 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
Flat Email Form | 3,415 Kb |
Animated Captions via data- Attribute | 2,502 Kb |
Fourground Logo | 3,072 Kb |
A Pen by Ken Lauguico | 4,517 Kb |
Pure CSS Image Slider | 3,208 Kb |
Simple Dot Loader | 2,272 Kb |
Force Counter | 2,732 Kb |
Protoshow.js Demo | 1,984 Kb |
Just an animated underline | 2,229 Kb |
Typing Simulator | 2,910 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Draggables in pure angular | Rlo206 | 5,167 Kb |
Super Discount | Orrinward | 3,225 Kb |
Testing Code Pen | Jduprey | 1,468 Kb |
A Pen by Alex Edwards | Exards | 8,218 Kb |
Google Chrome Icon using Pure CSS in one DIV | Grssam | 3,627 Kb |
Coburg Banks SVG Logo | Mjtweaver | 3,875 Kb |
GsuiPopup | Mr21 | 2,641 Kb |
Another brick in the wall | Fivera | 1,955 Kb |
Button Option Group | Honchoman | 1,859 Kb |
Flexbox Test | Icutpeople | 2,486 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!