css pearls

<div class="container">
  <div id="traffic-light-pearls-glossy-effect" class="row col-12 mx-0 border border-secondary" style="height: 50%">
      <div class="col-4 p-0 mx-0 d-flex justify-content-center align-items-center"><button type="button" class="traf_light embossed btn-danger rounded-circle btn-xl" style="height:50px;width:50px"></button></div>
      <div class="col-4 p-0 mx-0 d-flex justify-content-center align-items-center"><button type="button" class="traf_light embossed btn-warning rounded-circle btn-xl" style="height:50px;width:50px"></button></div>
      <div class="col-4 p-0 mx-0 d-flex justify-content-center align-items-center"><button type="button" class="traf_light embossed btn-success rounded-circle btn-xl" style="height:50px;width:50px"></button></div>
  </div>
</div>

.traf_light{
  border: none;
}
.embossed {
  position: relative;
  z-index: 2;
}
.embossed:before {
	content: "";
	display: block;
	height: 106%;
	width: 106%;
	position: absolute;
	border-radius: 50%;
	top: -3%;
	bottom: 3%;
	right: 6%;
	
	left: 50%;
	transform: translateX(-50%);
	border-radius: 100%;
	opacity: 0.6;
	background: radial-gradient(closest-side, #ffffff,#484848,#0d0d0d );
}
.embossed:after {
  content: "";
  z-index: -1;
  position: absolute;
  border-radius: 50%;
  box-shadow: 
	inset 0 2px 0 rgba(0,0,0,0.1),
	inset 0 -2px 0 rgba(255,255,255,0.3);
  top: -10px; bottom: -10px;
  right: -10px; left: -10px;
  background: linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0));
}

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source