Responsive Admin Panel
How do I make an responsive admin panel?
Just a design I'm working on for an admin area of a CMS. Just one responsive breakpoint at 800px; one layout for portrait iPad and smaller and another layout for landscape iPad and larger.. What is a responsive admin panel? How do you make a responsive admin panel? This script and codes were developed by Christian Naths on 29 November 2022, Tuesday.
Responsive Admin Panel - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Responsive Admin Panel</title> <script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css"> <link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Open+Sans:400,300'>
<link rel='stylesheet prefetch' href='http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header> <hgroup> <h1>Example Client Website Name</h1> <a href="#">← visit website</a> </hgroup>
</header>
<nav> <ul> <li><a class="brick dashboard" href="#"><span class='icon ion-home'></span>Dashboard</a></li> <li><a class="brick pages" href="#"><span class='icon ion-document'></span>Pages</a></li> <li><a class="brick navigation" href="#"><span class='icon ion-android-share-alt'></span>Navigation</a></li> <li><a class="brick users" href="#"><span class='icon ion-person'></span>Users</a></li> <li><a class="brick settings" href="#"><span class='icon ion-gear-a'></span>Website Settings</a></li> </ul>
</nav>
<div id="content" class="pages"> <header> <div class="brick identify"> <span class="icon ion-document"></span> </div> <div class="brick title"> <h2>Home Page</h2> </div> <div class="brick close"> <span class="text">Close</span> <span class="icon ion-close"></span> </div> <div class="brick save"> <span class="text">Save</span> <span class="icon ion-checkmark"></span> </div> </header> <div class="brick closed"> <hgroup> <h2>Main Headline</h2> <a href="#" class="icon ion-close js-close close"></a> <form> <input type="text" /> </form> </hgroup> </div> <div class="brick closed"> <hgroup> <h2>About Me</h2> <a href="#" class="icon ion-close js-close close"></a> <form> <textarea></textarea> </form> </hgroup> </div> <div class="brick closed"> <hgroup> <h2>Gallery</h2> <a href="#" class="icon ion-close js-close close"></a> <form> <textarea></textarea> </form> </hgroup> </div> <div class="brick closed"> <hgroup> <h2>Page Settings</h2> <a href="#" class="icon ion-close js-close close"></a> <form> <textarea></textarea> </form> </hgroup> </div>
</div>
<footer>
</footer> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Responsive Admin Panel - Script Codes CSS Codes
html { box-sizing: border-box;
}
*, *:before, *:after { box-sizing: inherit;
}
html{ height: 100%; padding: 16px; background-color: #252326; background-image: url('http://christiannaths.com/code/admin-interface/dots.png'), url('http://christiannaths.com/code/admin-interface/route-66.jpg'); background-position: center center, center, center; background-attachment: fixed, fixed; background-size: auto, cover;
}
body{ height: 100%; margin: 0; font: 16px/24px normal "Open Sans", trebuchet, sans-serif; font-weight: 100; color: #616161; color: #252326;
}
h1, h2, h3, h4, h5{ margin-top: 0; font-family: inherit; font-weight: inherit; font-size: 21px;
}
a{ text-decoration: none; color: #fff;
}
.brick{ display: inline-block; width: 100%; padding: 16px; margin-bottom: 8px; margin-right: 8px; background-color: #e7e7e7; vertical-align: top;
}
.icon{ display: inline-block; float: right; width: 30px; height: 30px; font-size: 1.5em; font-weight: 100; color: rgba(255, 255, 255, 0.75); line-height: 1.5; text-align: center;
}
header > hgroup{ margin-bottom: 32px; color: #fff;
}
header h1{ margin-bottom: 0; font-size: 28px;
}
header a{ color: #a93447;
}
nav{ margin-bottom: 32px;
}
nav ul{ margin: 0; padding: 0; list-style: none;
}
nav ul li{ display: inline;
}
nav ul li a.brick{ position: relative; font-family: inherit; font-weight: inherit; color: #616161; color: #252326; line-height: 2; background-color: #252326; background-color: #F3F3F3; background-color: #e7e7e7; border-left: 3px solid #616161
}
nav ul li a.brick .icon{ position: absolute; right: 0; top: 0; height: 64px; width: 64px; font-size: 2em; color: #fff; line-height: 2.25; background: #616161;
}
nav ul li a.dashboard{ border-color: #B93861;
}
nav ul li a.dashboard .icon{ background-color: #B93861;
}
nav ul li a.pages{ border-color: #34ABD7;
}
nav ul li a.pages .icon{ background-color: #34ABD7;
}
nav ul li a.navigation{ border-color: #158A53;
}
nav ul li a.navigation .icon{ background-color: #158A53;
}
nav ul li a.users{ border-color: #D95235;
}
nav ul li a.users .icon{ background-color: #D95235;
}
nav ul li a.settings{ /*border-color: #34ABD7;*/
}
nav ul li a.settings .icon{ /*background-color: #34ABD7;*/
}
#content > header{ position: relative; padding: 0px 72px 0px 0px;
}
#content .brick{ position: relative;
}
#content .brick .close{ position: absolute; right: 8px; top: 8px; color: #616161;
}
#content.pages .brick.title{ height: 120px; border-left: 8px solid #34ABD7;
}
#content.pages .brick.identify{ display: none;
}
#content.pages .brick.save{ position: absolute; right: 0; bottom: 0; width: 64px; height: 54px; min-height: 54px; margin-right: 0; color: #fff; background: #158A53;
}
#content.pages .brick.close{ position: absolute; right: 0; top: 0; width: 64px; height: 54px; min-height: 54px; margin-right: 0; color: #fff; background: #616161;
}
#content.pages .brick.save .icon, #content.pages .brick.close .icon{ line-height: 1;
}
#content .brick.closed{ width: 120px; height: 120px;
}
#content .brick.closed hgroup a{ display: none;
}
#content .brick.closed form{ display: none;
}
#content .brick form textarea{ width: 100%; max-width: 100%; min-height: 200px; padding: 16px; border: 1px solid #666; border-radius: 0px; -moz-border-radius: 0px; -webkit-border-radius: 0px;
}
#content .brick form input[type="text"]{ width: 100%; padding: 8px 16px; border: 1px solid #666; font-size: 1.5em; border-radius: 0px; -moz-border-radius: 0px; -webkit-border-radius: 0px;
}
@media all and (max-width: 799px){ #content.pages .brick.close .text, #content.pages .brick.save .text{ display: none; }
}
@media all and (min-width: 800px){ header > hgroup{ height: 120px; color: #fff; } nav{ position: absolute; width: 250px; } #content{ min-height: 100%; margin-left: 282px; font-size: 0; } #content .brick{ min-height: 120px; min-width: 120px; background: #252326; background: #a93447; background: #F3F3F3; background-color: #e7e7e7; font-size: 16px; } #content .brick hgroup h2{ display: inline-block; width: 80%; } #content .brick hgroup a{ float: right; line-height: 1.13; } #content.pages .brick.controls{ position: relative; padding-left: 136px; } #content > header{ position: relative; padding: 0px 128px; } #content.pages .brick.identify{ display: block; position: absolute; left: 0; top: 0; color: #fff; background: #34ABD7; width: 120px; } #content.pages .brick.identify .icon{ display: block; height: 60px; width: 60px; float: none; margin: 0 auto; font-size: 5em; color: #fff; line-height: 1.25; } #content.pages .brick.title{ border-left: none; } #content.pages .brick.save{ position: absolute; right: 0; bottom: 0; margin-right: 0; color: #fff; background: #158A53; height: 56px; min-height: 56px; width: 120px; } #content.pages .brick.close{ position: absolute; right: 0; top: 0; width: 120px; height: 56px; min-height: 56px; margin-right: 0; color: #fff; background: #616161; } #content.pages .brick.save .icon, #content.pages .brick.close .icon{ line-height: 1; } #content.pages .brick.controls .icon{ position: absolute; left: 0; top: 0; height: 120px; width: 120px; background: #34ABD7; color: #fff; font-size: 5em; } input[type='submit'][value='%']{ position: absolute; background: #158A53; border: none; left: 0px; bottom: 0px; width: 60px; height: 60px; font-family: "ModernPictogramsNormal"; font-weight: 100; font-size: 2em; color: #fff; }
}
Responsive Admin Panel - Script Codes JS Codes
(function() { var tap; tap = "click"; if (Modernizr.touch) { tap = "touchstart"; } $(document).on(tap, '.brick.closed', function(event) { var $this; $this = $(this); $this.animate({ 'width': '100%' }, 'fast', function() {}); $this.removeClass('closed'); return $this.addClass('open'); }); $(document).on(tap, '.brick a.js-close', function(event) { var $brick; $brick = $(this).closest('.brick'); return $brick.animate({ 'width': '120px' }, 'fast', function() { $brick.removeClass('open'); return $brick.addClass('closed'); }); });
}).call(this);
Developer | Christian Naths |
Username | christiannaths |
Uploaded | November 29, 2022 |
Rating | 4.5 |
Size | 4,254 Kb |
Views | 16,192 |
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 |
Activity Timeline | 5,624 Kb |
Animated Chart | 5,214 Kb |
MicroHero Logo Animation | 5,290 Kb |
Checkbox Switch | 4,665 Kb |
Collection-bootstrap | 2,843 Kb |
Next Game Widget | 7,025 Kb |
Pure CSS Radial Graph | 2,363 Kb |
Upcoming Event Stream | 5,355 Kb |
Responsive App Layout | 5,661 Kb |
A Pen by Christian Naths | 2,563 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 |
Modal Dialog | Gigaleet | 2,251 Kb |
CSS-Flexbox-Demo | Sstiglets | 1,709 Kb |
Voting App - register | MatheusLima92 | 1,948 Kb |
Banner Ad | Raquellorenzana | 4,172 Kb |
SVG Transform vs CSS Transform | AmeliaBR | 4,175 Kb |
Under construction | GhostRider | 1,642 Kb |
Codero Sitemap | S1m0ne | 28,169 Kb |
After America | Jonathangarner | 2,686 Kb |
Canvas snow | Win7killer | 2,572 Kb |
AngularJS Skills | Supro | 3,312 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!