Responsive Flexbox Administration

Developer
Size
7,376 Kb
Views
10,120

How do I make an responsive flexbox administration?

What is a responsive flexbox administration? How do you make a responsive flexbox administration? This script and codes were developed by Englishextra on 17 January 2023, Tuesday.

Responsive Flexbox Administration Previews

Responsive Flexbox Administration - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Responsive Flexbox Administration</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ /*
** Fonts & Variables
***********************************************************/
@import url("https://fonts.googleapis.com/css?family=Cookie");
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,700");
@import url("https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css");
/*
** Reset
***********************************************************/
*, *:before, *:after { margin: 0; padding: 0; box-sizing: border-box;
}
html { height: 100%; overflow-y: scroll;
}
body { height: 100%; font: 13px/1 'Open Sans', sans-serif; color: #555; background: #eee;
}
a { cursor: pointer;
}
ul { list-style: none;
}
p { line-height: 1.5;
}
button,
input,
select,
textarea { font-family: inherit; font-size: 100%; vertical-align: baseline; border: 0; outline: 0;
}
button::-moz-focus-inner,
input::-moz-focus-inner { border: 0; padding: 0;
}
/*
** Layout
***********************************************************/
.wrapper { display: flex; flex-direction: column; min-height: 100%;
}
.header { height: 50px; color: #eee; background: #303030;
}
.header .title { width: 200px; font: 30px/50px Cookie, sans-serif; text-align: center;
}
.header .user { position: absolute; top: 17px; right: 35px; font-weight: 600;
}
.header .name,
.header .logout { position: relative; display: inline-block; padding-left: 20px;
}
.header .name:before,
.header .logout:before { content: '\f007'; font-family: fontawesome; position: absolute; top: 0; left: 0;
}
.header .name { margin-right: 15px; padding-right: 15px; border-right: 1px solid #eee;
}
.header .logout:before { content: '\f023';
}
.main { display: flex; flex: 1;
}
.nav { width: 200px; background: #404040;
}
.nav .search { position: relative; height: 45px; border-bottom: 1px solid #272727;
}
.nav .search:before { content: '\f002'; font: 14px fontawesome; position: absolute; top: 14px; left: 20px; color: #777;
}
.nav .search input { position: absolute; top: 0; left: 50px; display: block; width: 150px; height: 45px; font-size: 12px; font-weight: 600; color: #777; background: none;
}
.nav .search [placeholder]::-webkit-input-placeholder { color: #777;
}
.nav .search [placeholder]:hover::-webkit-input-placeholder { color: #555;
}
.nav .search [placeholder]:focus::-webkit-input-placeholder { color: transparent;
}
.nav li a { position: relative; display: block; padding: 15px 15px 15px 50px; font-size: 12px; font-weight: 600; color: #eee; border-bottom: 1px solid #272727;
}
.nav li a:before { font: 14px fontawesome; position: absolute; top: 14px; left: 20px;
}
.nav li:nth-child(1) a:before { content: '\f00a';
}
.nav li:nth-child(2) a:before { content: '\f012';
}
.nav li:nth-child(3) a:before { content: '\f0e8';
}
.nav li:nth-child(4) a:before { content: '\f0c3';
}
.nav li:nth-child(5) a:before { content: '\f022';
}
.nav li:nth-child(6) a:before { content: '\f115';
}
.nav li:nth-child(7) a:before { content: '\f085';
}
.nav li a:hover { background: #535353;
}
.nav li a.active { box-shadow: inset 5px 0 0 #d33, inset 6px 0 0 #272727; background: #535353;
}
.nav ul ul { background: #333333;
}
.nav li li a { padding: 10px 10px 10px 50px;
}
.nav li li a:before { content: '\f148' !important; font: 10px fontawesome; top: 10px; left: 25px; transform: rotate(90deg);
}
.content { flex: 1; padding: 30px;
}
.content .title { margin: 0 0 30px; font: 35px Cookie, sans-serif;
}
/*
** Grid
***********************************************************/
.grid { display: flex;
}
.grid .col { flex: 1; margin: 0 30px 30px 0; padding: 15px; border-radius: 3px; background: #fff; box-shadow: inset 0 -1px 0 1px rgba(0, 0, 0, 0.1);
}
.grid .col:last-child { margin-right: 0;
}
.grid .col .head { margin: -15px -15px 15px -15px; padding: 15px; font-size: 14px; font-weight: 600; border-bottom: 1px solid #eee;
}
/*
** Tables
***********************************************************/
table { width: calc(100% + 28px); border-collapse: collapse; margin: -16px -14px;
}
th, td { padding: 10px; border: 1px solid #eee;
}
th:first-child,
td:first-child { border-left: 0;
}
th:last-child,
td:last-child { border-right: 0;
}
th { background: #f8f8f8;
}
tr:nth-child(odd) { background: #f8f8f8;
}
/*
** Buttons
***********************************************************/
.btnset { margin: 15px -15px -15px -15px; padding: 15px; text-align: right; border-top: 1px solid #eee;
}
.btn { display: inline-block; min-width: 100px; margin-left: 10px; padding: 10px 15px 12px; font: 700 12px/1 'Open Sans', sans-serif; text-align: center; border-radius: 3px; cursor: pointer;
}
.btn.act { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); background: #59d; box-shadow: inset 0 -1px 0 1px rgba(0, 0, 0, 0.1), inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}
.btn.act:hover { background: #48c;
}
.btn.pri { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); background: #6b6; box-shadow: inset 0 -1px 0 1px rgba(0, 0, 0, 0.1), inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}
.btn.pri:hover { background: #5a5;
}
.btn.sec { color: #999; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); background: #fff; box-shadow: inset 0 -1px 0 1px rgba(0, 0, 0, 0.1), inset 0 -10px 20px rgba(0, 0, 0, 0.05);
}
.btn.sec:hover { background: #f5f5f5;
}
/*
** Media Queries
***********************************************************/
@media (max-width: 1000px) { .grid { flex-direction: column; } .grid .col { margin-right: 0; }
}
@media (max-width: 800px) { .nav { width: 180px; } .nav .search input { width: 130px; }
}
@media (max-width: 600px) { .nav { width: 160px; } .nav .search input { width: 110px; }
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div class='wrapper'> <div class='header'> <div class='title'> Administration </div> <div class='user'> <div class='name'> John Doe </div> <div class='logout'> Logout </div> </div> </div> <div class='main'> <div class='nav'> <div class='search'> <input placeholder='Search' type='text'> </div> <ul id='menu'> <li> <a>Dashboard</a> </li> <li> <a>Statistics</a> </li> <li> <a class='active'>Milestones</a> <ul> <li> <a>Overview</a> </li> <li> <a>Create</a> </li> <li> <a>Edit</a> </li> </ul> </li> <li> <a>Tickets</a> </li> <li> <a>Previews</a> </li> <li> <a>Files</a> </li> <li> <a>Settings</a> </li> </ul> </div> <div class='content'> <div class='title'> Responsive Flexbox Administration </div> <div class='grid'> <div class='col'> <div class='head'> 1 Column </div> <table> <tr> <th>Head</th> <th>Head</th> <th>Head</th> <th>Head</th> </tr> <tr> <td>Table</td> <td>Table</td> <td>Table</td> <td>Table</td> </tr> <tr> <td>Table</td> <td>Table</td> <td>Table</td> <td>Table</td> </tr> <tr> <td>Table</td> <td>Table</td> <td>Table</td> <td>Table</td> </tr> <tr> <td>Table</td> <td>Table</td> <td>Table</td> <td>Table</td> </tr> </table> <div class='btnset'> <a class='btn sec'>Previous</a> <a class='btn act'>Next</a> </div> </div> </div> <div class='grid'> <div class='col'> <div class='head'> 2 Columns </div> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p> <div class='btnset'> <a class='btn sec'>Cancel</a> <a class='btn pri'>Save</a> </div> </div> <div class='col'> <div class='head'> 2 Columns </div> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p> <div class='btnset'> <a class='btn sec'>Cancel</a> <a class='btn pri'>Save</a> </div> </div> </div> <div class='grid'> <div class='col'> <div class='head'> 3 Columns </div> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p> </div> <div class='col'> <div class='head'> 3 Columns </div> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p> </div> <div class='col'> <div class='head'> 3 Columns </div> <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</p> </div> </div> </div> </div>
</div>
</body>
</html>

Responsive Flexbox Administration - Script Codes CSS Codes

/*
** Fonts & Variables
***********************************************************/
@import url("https://fonts.googleapis.com/css?family=Cookie");
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,700");
@import url("https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css");
/*
** Reset
***********************************************************/
*, *:before, *:after { margin: 0; padding: 0; box-sizing: border-box;
}
html { height: 100%; overflow-y: scroll;
}
body { height: 100%; font: 13px/1 'Open Sans', sans-serif; color: #555; background: #eee;
}
a { cursor: pointer;
}
ul { list-style: none;
}
p { line-height: 1.5;
}
button,
input,
select,
textarea { font-family: inherit; font-size: 100%; vertical-align: baseline; border: 0; outline: 0;
}
button::-moz-focus-inner,
input::-moz-focus-inner { border: 0; padding: 0;
}
/*
** Layout
***********************************************************/
.wrapper { display: flex; flex-direction: column; min-height: 100%;
}
.header { height: 50px; color: #eee; background: #303030;
}
.header .title { width: 200px; font: 30px/50px Cookie, sans-serif; text-align: center;
}
.header .user { position: absolute; top: 17px; right: 35px; font-weight: 600;
}
.header .name,
.header .logout { position: relative; display: inline-block; padding-left: 20px;
}
.header .name:before,
.header .logout:before { content: '\f007'; font-family: fontawesome; position: absolute; top: 0; left: 0;
}
.header .name { margin-right: 15px; padding-right: 15px; border-right: 1px solid #eee;
}
.header .logout:before { content: '\f023';
}
.main { display: flex; flex: 1;
}
.nav { width: 200px; background: #404040;
}
.nav .search { position: relative; height: 45px; border-bottom: 1px solid #272727;
}
.nav .search:before { content: '\f002'; font: 14px fontawesome; position: absolute; top: 14px; left: 20px; color: #777;
}
.nav .search input { position: absolute; top: 0; left: 50px; display: block; width: 150px; height: 45px; font-size: 12px; font-weight: 600; color: #777; background: none;
}
.nav .search [placeholder]::-webkit-input-placeholder { color: #777;
}
.nav .search [placeholder]:hover::-webkit-input-placeholder { color: #555;
}
.nav .search [placeholder]:focus::-webkit-input-placeholder { color: transparent;
}
.nav li a { position: relative; display: block; padding: 15px 15px 15px 50px; font-size: 12px; font-weight: 600; color: #eee; border-bottom: 1px solid #272727;
}
.nav li a:before { font: 14px fontawesome; position: absolute; top: 14px; left: 20px;
}
.nav li:nth-child(1) a:before { content: '\f00a';
}
.nav li:nth-child(2) a:before { content: '\f012';
}
.nav li:nth-child(3) a:before { content: '\f0e8';
}
.nav li:nth-child(4) a:before { content: '\f0c3';
}
.nav li:nth-child(5) a:before { content: '\f022';
}
.nav li:nth-child(6) a:before { content: '\f115';
}
.nav li:nth-child(7) a:before { content: '\f085';
}
.nav li a:hover { background: #535353;
}
.nav li a.active { box-shadow: inset 5px 0 0 #d33, inset 6px 0 0 #272727; background: #535353;
}
.nav ul ul { background: #333333;
}
.nav li li a { padding: 10px 10px 10px 50px;
}
.nav li li a:before { content: '\f148' !important; font: 10px fontawesome; top: 10px; left: 25px; transform: rotate(90deg);
}
.content { flex: 1; padding: 30px;
}
.content .title { margin: 0 0 30px; font: 35px Cookie, sans-serif;
}
/*
** Grid
***********************************************************/
.grid { display: flex;
}
.grid .col { flex: 1; margin: 0 30px 30px 0; padding: 15px; border-radius: 3px; background: #fff; box-shadow: inset 0 -1px 0 1px rgba(0, 0, 0, 0.1);
}
.grid .col:last-child { margin-right: 0;
}
.grid .col .head { margin: -15px -15px 15px -15px; padding: 15px; font-size: 14px; font-weight: 600; border-bottom: 1px solid #eee;
}
/*
** Tables
***********************************************************/
table { width: calc(100% + 28px); border-collapse: collapse; margin: -16px -14px;
}
th, td { padding: 10px; border: 1px solid #eee;
}
th:first-child,
td:first-child { border-left: 0;
}
th:last-child,
td:last-child { border-right: 0;
}
th { background: #f8f8f8;
}
tr:nth-child(odd) { background: #f8f8f8;
}
/*
** Buttons
***********************************************************/
.btnset { margin: 15px -15px -15px -15px; padding: 15px; text-align: right; border-top: 1px solid #eee;
}
.btn { display: inline-block; min-width: 100px; margin-left: 10px; padding: 10px 15px 12px; font: 700 12px/1 'Open Sans', sans-serif; text-align: center; border-radius: 3px; cursor: pointer;
}
.btn.act { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); background: #59d; box-shadow: inset 0 -1px 0 1px rgba(0, 0, 0, 0.1), inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}
.btn.act:hover { background: #48c;
}
.btn.pri { color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); background: #6b6; box-shadow: inset 0 -1px 0 1px rgba(0, 0, 0, 0.1), inset 0 -10px 20px rgba(0, 0, 0, 0.1);
}
.btn.pri:hover { background: #5a5;
}
.btn.sec { color: #999; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); background: #fff; box-shadow: inset 0 -1px 0 1px rgba(0, 0, 0, 0.1), inset 0 -10px 20px rgba(0, 0, 0, 0.05);
}
.btn.sec:hover { background: #f5f5f5;
}
/*
** Media Queries
***********************************************************/
@media (max-width: 1000px) { .grid { flex-direction: column; } .grid .col { margin-right: 0; }
}
@media (max-width: 800px) { .nav { width: 180px; } .nav .search input { width: 130px; }
}
@media (max-width: 600px) { .nav { width: 160px; } .nav .search input { width: 110px; }
}
Responsive Flexbox Administration - Script Codes
Responsive Flexbox Administration - Script Codes
Home Page Home
Developer Englishextra
Username englishextra
Uploaded January 17, 2023
Rating 3
Size 7,376 Kb
Views 10,120
Do you need developer help for Responsive Flexbox Administration?

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!

Englishextra (englishextra) Script Codes
Create amazing web content with AI!

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!