formha/static/e_blog/b_share_btn.css
2025-05-03 15:47:24 -06:00

62 lines
1.1 KiB
CSS

.share {
position: relative;
display: flex;
align-items: center;
background: #eee;
border-radius: 2rem;
width: 3rem;
height: 3rem;
overflow: hidden;
transition: width 0.3s ease;
}
.share:hover {
width: 18rem;
}
.share__wrapper {
display: flex;
align-items: center;
height: 100%;
position: relative;
}
.share__toggle {
background: #549c67;
color: white;
border-radius: 50%;
width: 2.5rem;
height: 2.5rem;
margin: 0.25rem;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.share__button {
background: #555;
color: white;
border-radius: 50%;
width: 2.5rem;
height: 2.5rem;
margin-left: 0.5rem;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transform: scale(0);
transition: transform 0.3s ease, opacity 0.3s ease;
position: relative;
}
/* Mostrar botones solo cuando se hace hover */
.share:hover .share__button {
opacity: 1;
transform: scale(1);
}
.fb { background: #1877f2; }
.tw { background: #000000; }
.in { background: #0077b5; }
.copy { background: #444; }