Button examples

Developer
Size
4,396 Kb
Views
22,264

How do I make an button examples?

SASS button examples of all shapes and sizes.. What is a button examples? How do you make a button examples? This script and codes were developed by UX Snippets on 27 October 2022, Thursday.

Button examples Previews

Button examples - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Button examples</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="info"> <div class="defaults"> <p>This is what the default flat button will look like:</p> <a class="btn-custom">Button</a> </div> <div class="branding gradient"> <p>This is what the default gradient button will look like:</p> <a class="btn-custom gradient">Button</a> </div>
</div>
<br class="clear" />
<section> <h2>Roundness</h2> <ul> <li> <a class="btn-custom square">Button</a> <div class="attributes"> <h5>square</h5> <code>&lt;a class="btn-custom square"&gt;Button&lt;/a&gt;</code> </div> </li> <li> <a class="btn-custom oval">Button</a> <div class="attributes"> <h5>oval</h5> <code>&lt;a class="btn-custom oval"&gt;Button&lt;/a&gt;</code> </div> </li> </ul>
</section>
<section> <h2>Width</h2> <ul> <li> <a class="btn-custom half-width">Button</a> <div class="attributes"> <h5>half-width</h5> <code>&lt;a class="btn-custom half-width"&gt;Button&lt;/a&gt;</code> </div> </li> <li> <a class="btn-custom full-width">Button</a> <div class="attributes"> <h5>full-width</h5> <code>&lt;a class="btn-custom full-width"&gt;Button&lt;/a&gt;</code> </div> </li> </ul>
</section>
<section> <h2>Sizing</h2> <ul> <li> <a class="btn-custom sm">Button</a> <div class="attributes"> <h5>small</h5> <code>&lt;a class="btn-custom sm"&gt;Button&lt;/a&gt;</code> </div> </li> <li> <a class="btn-custom lg">Button</a> <div class="attributes"> <h5>large</h5> <code>&lt;a class="btn-custom lg"&gt;Button&lt;/a&gt;</code> </div> </li> </ul>
</section>
<section> <h2>Styles</h2> <ul> <li> <a class="btn-custom raised">Button</a> <div class="attributes"> <h5>raised</h5> <code>&lt;a class="btn-custom raised"&gt;Button&lt;/a&gt;</code> </div> </li> </ul>
</section>
</body>
</html>

Button examples - Script Codes CSS Codes

.btn-custom { display: inline-block; margin-bottom: 0; text-align: center; vertical-align: middle; cursor: pointer; background-image: none; border: 1px solid transparent; white-space: nowrap; text-decoration: none; padding: 8px 16px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; -webkit-font-smoothing: antialiased; font-smoothing: antialiased; font-smooth: always; -webkit-border-radius: 0.2em; -moz-border-radius: 0.2em; border-radius: 0.2em; background: #428bca; color: #fff;
}
.btn-custom:hover { background: #2a6496;
}
.btn-custom:active { background: #1f496e; -webkit-box-shadow: inset 0 0 10px #0e2132; -moz-box-shadow: inset 0 0 10px #0e2132; box-shadow: inset 0 0 10px #0e2132;
}
.btn-custom.lg { padding: 12px 24px;
}
.btn-custom.sm { padding: 3px 6px; font-size: 12px;
}
.btn-custom.bold { font-weight: 700;
}
.btn-custom.square { -webkit-border-radius: 0; -moz-border-radius: 0; border-radius: 0;
}
.btn-custom.oval { -webkit-border-radius: 2em; -moz-border-radius: 2em; border-radius: 2em;
}
.btn-custom.full-width { width: 100%;
}
.btn-custom.half-width { width: 50%;
}
.btn-custom.gradient { background-color: #1f496e; background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#1f496e)); background-image: -webkit-linear-gradient(top, #428bca, #1f496e); background-image: -moz-linear-gradient(top, #428bca, #1f496e); background-image: -ms-linear-gradient(top, #428bca, #1f496e); background-image: -o-linear-gradient(top, #428bca, #1f496e); background-image: linear-gradient(top, #428bca, #1f496e); filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#428bca', EndColorStr='#1f496e');
}
.btn-custom.gradient:hover { background-color: #16344e; background-image: -webkit-gradient(linear, left top, left bottom, from(#3276b1), to(#16344e)); background-image: -webkit-linear-gradient(top, #3276b1, #16344e); background-image: -moz-linear-gradient(top, #3276b1, #16344e); background-image: -ms-linear-gradient(top, #3276b1, #16344e); background-image: -o-linear-gradient(top, #3276b1, #16344e); background-image: linear-gradient(top, #3276b1, #16344e); filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#3276b1', EndColorStr='#16344e');
}
.btn-custom.gradient:active { background-color: #0d1f2e; background-image: -webkit-gradient(linear, left top, left bottom, from(#296192), to(#0d1f2e)); background-image: -webkit-linear-gradient(top, #296192, #0d1f2e); background-image: -moz-linear-gradient(top, #296192, #0d1f2e); background-image: -ms-linear-gradient(top, #296192, #0d1f2e); background-image: -o-linear-gradient(top, #296192, #0d1f2e); background-image: linear-gradient(top, #296192, #0d1f2e); filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#296192', EndColorStr='#0d1f2e');
}
.btn-custom.disabled, .btn-custom[disabled] { cursor: not-allowed; pointer-events: none; opacity: .65; -webkit-box-shadow: none; -moz-box-shadow: none; box-shadow: none;
}
/* ----------- End of button styles ----------- */
/* Demo ONLY styles */
html, body { margin: 0; padding: 0;
}
body { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.clear { clear: both;
}
.info .defaults, .info .branding { margin: 1em .5em; width: 30%; float: left; padding: 1em .4em;
}
.info .branding div { background: #428bca; width: 50px; height: 50px;
}
.info .branding.gradient div { background-color: #1f496e; background-image: -webkit-gradient(linear, left top, left bottom, from(#428bca), to(#1f496e)); background-image: -webkit-linear-gradient(top, #428bca, #1f496e); background-image: -moz-linear-gradient(top, #428bca, #1f496e); background-image: -ms-linear-gradient(top, #428bca, #1f496e); background-image: -o-linear-gradient(top, #428bca, #1f496e); background-image: linear-gradient(top, #428bca, #1f496e); filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#428bca', EndColorStr='#1f496e');
}
section { margin: 1em .5em; padding: 0; width: 30%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; float: left; background: #f6f6f6;
}
section h2 { margin-top: 0; padding: .5em 1em; font-size: 1.2rem; background: #ddd; color: #333; font-weight: 200; text-transform: uppercase; letter-spacing: .15rem; text-align: center;
}
ul { padding: 0; list-style: none;
}
ul li { width: 100%; padding: .5em 1.5em 0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; min-height: 110px;
}
ul li .attributes { margin: 1em 0 2em;
}
ul li .attributes h5 { margin: 0; padding: 0; text-transform: uppercase;
}
Button examples - Script Codes
Button examples - Script Codes
Home Page Home
Developer UX Snippets
Username appirio-ux
Uploaded October 27, 2022
Rating 3
Size 4,396 Kb
Views 22,264
Do you need developer help for Button examples?

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!

UX Snippets (appirio-ux) 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!