"mixin in scss"
Bootstrap 4.1.1 Snippet by iammohitverma

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <h2>Create your snippet's HTML, CSS and Javascript in the editor tabs</h2> </div> </div>
@mixin bdradius($value){ /* Safari 3-4, iOS 1-3.2, Android 1.6- */ -webkit-border-radius: $value; /* Firefox 1-3.6 */ -moz-border-radius: $value; /* Opera 10.5, IE 9, Safari 5, Chrome, Firefox 4, iOS 4, Android 2.1+ */ border-radius: $value; } .test{ @include bdradius(15px); } /*for set default*/ @mixin bdradius($value : 5px){ /* Safari 3-4, iOS 1-3.2, Android 1.6- */ -webkit-border-radius: $value; /* Firefox 1-3.6 */ -moz-border-radius: $value; /* Opera 10.5, IE 9, Safari 5, Chrome, Firefox 4, iOS 4, Android 2.1+ */ border-radius: $value; }

Related: See More


Questions / Comments: