Button Color SASS Mixin

Developer
Size
2,363 Kb
Views
44,528

How do I make an button color sass mixin?

A SASS mixin that makes creating different colored buttons simple.. What is a button color sass mixin? How do you make a button color sass mixin? This script and codes were developed by Tommy Creenan on 31 August 2022, Wednesday.

Button Color SASS Mixin Previews

Button Color SASS Mixin - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Button Color SASS Mixin</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <a href="#" class="btn btn-orange">Button</a>
<a href="#" class="btn btn-blue">Button</a>
<a href="#" class="btn btn-light-blue">Button</a>
</body>
</html>

Button Color SASS Mixin - Script Codes CSS Codes

.btn { cursor: pointer; display: inline-block; margin: 10px; padding: 6px 12px; text-align: center; text-transform: uppercase; letter-spacing: 1px; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s;
}
a.btn { padding: 24px 16px; text-decoration: none;
}
.btn:after { content: ''; position: absolute; z-index: -1; -webkit-transition: all 0.3s; -moz-transition: all 0.3s; transition: all 0.3s;
}
.btn-orange { background: #f46a22; color: #fff; box-shadow: 0 3px #772d06; -webkit-transition: none; -moz-transition: none; transition: none;
}
.btn-orange:hover { color: #fff; box-shadow: 0 2px #772d06; top: 1px;
}
.btn-orange:active { color: #fff; box-shadow: 0 0 #772d06; top: 3px;
}
.btn-blue { background: #127ea9; color: #fff; box-shadow: 0 3px #03171f; -webkit-transition: none; -moz-transition: none; transition: none;
}
.btn-blue:hover { color: #fff; box-shadow: 0 2px #03171f; top: 1px;
}
.btn-blue:active { color: #fff; box-shadow: 0 0 #03171f; top: 3px;
}
.btn-light-blue { background: #a4e6fe; color: #fff; box-shadow: 0 3px #0dbcfc; -webkit-transition: none; -moz-transition: none; transition: none;
}
.btn-light-blue:hover { color: #fff; box-shadow: 0 2px #0dbcfc; top: 1px;
}
.btn-light-blue:active { color: #fff; box-shadow: 0 0 #0dbcfc; top: 3px;
}
Button Color SASS Mixin - Script Codes
Button Color SASS Mixin - Script Codes
Home Page Home
Developer Tommy Creenan
Username TommyCreenan
Uploaded August 31, 2022
Rating 3
Size 2,363 Kb
Views 44,528
Do you need developer help for Button Color SASS Mixin?

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!

Tommy Creenan (TommyCreenan) Script Codes
Create amazing marketing copy 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!