Better Bootstrap Buttons
How do I make an better bootstrap buttons?
I've restyled the default Bootstrap buttons and created a SASS Mixin for better maintenance and to keep your SCSS lightweight. Enjoy. What is a better bootstrap buttons? How do you make a better bootstrap buttons? This script and codes were developed by Matt Litherland on 03 August 2022, Wednesday.
Better Bootstrap Buttons - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Better Bootstrap Buttons</title> <script src="http://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel='stylesheet prefetch' href='http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="row"> <div class="col-md-12"> <h1>Better Bootstrap Buttons</h1> <p class="lead">Better buttons using <b>SASS Mixins</b> for easy maintenance.</p> <hr /> </div> <div class="col-md-12"> <p> <button type="button" class="btn btn-default btn-lg">Large button</button> <button type="button" class="btn btn-primary btn-lg">Large button</button> <button type="button" class="btn btn-info btn-lg">Large button</button> <button type="button" class="btn btn-success btn-lg">Large button</button> <button type="button" class="btn btn-warning btn-lg">Large button</button> <button type="button" class="btn btn-danger btn-lg">Large button</button> </p> <hr /> <p> <button type="button" class="btn btn-default">Default button</button> <button type="button" class="btn btn-primary">Default button</button> <button type="button" class="btn btn-info">Default button</button> <button type="button" class="btn btn-success">Default button</button> <button type="button" class="btn btn-warning">Default button</button> <button type="button" class="btn btn-danger">Default button</button> </p> <hr /> <p> <button type="button" class="btn btn-default btn-sm">Small button</button> <button type="button" class="btn btn-primary btn-sm">Small button</button> <button type="button" class="btn btn-info btn-sm">Small button</button> <button type="button" class="btn btn-success btn-sm">Small button</button> <button type="button" class="btn btn-warning btn-sm">Small button</button> <button type="button" class="btn btn-danger btn-sm">Small button</button> </p> <hr /> <p> <button type="button" class="btn btn-default btn-xs">Extra small button</button> <button type="button" class="btn btn-primary btn-xs">Extra small button</button> <button type="button" class="btn btn-info btn-xs">Extra small button</button> <button type="button" class="btn btn-success btn-xs">Extra small button</button> <button type="button" class="btn btn-warning btn-xs">Extra small button</button> <button type="button" class="btn btn-danger btn-xs">Extra small button</button> </p> </div> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</body>
</html>
Better Bootstrap Buttons - Script Codes CSS Codes
.btn { margin: .2em .1em; font-family: "Open Sans", sans-serif; font-weight: 700; font-size: 1em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; border: none; border-bottom: .15em solid black; border-radius: 3px; padding: 0.65em 1.3em;
}
.btn-lg { padding: 1em 2em;
}
.btn-sm,
.btn-xs { font-size: .85em; padding: .5em 1em;
}
.btn-xs { font-size: .85em; padding: .25em .75em;
}
.btn-default { border-color: #d9d9d9; background-image: linear-gradient(#ffffff, #f2f2f2);
}
.btn-default:hover { background: linear-gradient(#f2f2f2, #e6e6e6);
}
.btn-primary { border-color: #2a6496; background-image: linear-gradient(#428bca, #357ebd);
}
.btn-primary:hover { background: linear-gradient(#357ebd, #3071a9);
}
.btn-success { border-color: #3d8b3d; background-image: linear-gradient(#5cb85c, #4cae4c);
}
.btn-success:hover { background: linear-gradient(#4cae4c, #449d44);
}
.btn-info { border-color: #28a1c5; background-image: linear-gradient(#5bc0de, #46b8da);
}
.btn-info:hover { background: linear-gradient(#46b8da, #31b0d5);
}
.btn-warning { border-color: #df8a13; background-image: linear-gradient(#f0ad4e, #eea236);
}
.btn-warning:hover { background: linear-gradient(#eea236, #ec971f);
}
.btn-danger { border-color: #b52b27; background-image: linear-gradient(#d9534f, #d43f3a);
}
.btn-danger:hover { background: linear-gradient(#d43f3a, #c9302c);
}
Developer | Matt Litherland |
Username | mattsince87 |
Uploaded | August 03, 2022 |
Rating | 3.5 |
Size | 2,955 Kb |
Views | 46,552 |
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 |
Responsive Flot Chart | 3,554 Kb |
Animated SVG Path | 3,853 Kb |
Vertical Align Images - Explained | 4,610 Kb |
Flat Origami Article | 3,581 Kb |
Animated Resposnive SVG Path | 5,339 Kb |
Slick Two Part Form | 6,199 Kb |
Cool Hidden Drawer | 4,754 Kb |
Smooth Anchor Scrolling | 4,508 Kb |
Animated CSS3 Mobile Phone | 4,609 Kb |
Ultimate Pop-Out Menu | 4,264 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 |
Draggable directive | YahyaKacem | 2,277 Kb |
Flexbox Test | Icutpeople | 2,486 Kb |
Blog demo to use given styling | Andygirl | 2,412 Kb |
Price table | Serluk | 5,928 Kb |
Simple checkbox style | Vncnz | 2,628 Kb |
Animated skewed panes | NyX | 4,462 Kb |
Spiralator 9000 | AdmiralPotato | 4,671 Kb |
Elon Musk - Tribute Page - FreeCodeCamp | Yunnimun | 8,615 Kb |
RequestAnimationFrame | Martin-banks | 2,541 Kb |
CSS3 iPad | Vikvarg | 1,766 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!