You are here

better_social_sharing_buttons.css in Better Social Sharing Buttons 8

Same filename and directory in other branches
  1. 8.3 css/better_social_sharing_buttons.css
.social-sharing-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2em 0;
}

.social-sharing-buttons a {
  text-decoration: none;
  margin: 0 4px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btnCopy {
  position: relative;
  padding: 0;
}

.social-sharing-buttons__popup {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -100%);
  background-color: black;
  color: white;
  font-size: small;
  padding: 4px;
  border-radius: 3px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all .5s ease;
}

.social-sharing-buttons__popup.visible {
  opacity: 1;
  height: auto;
  overflow: unset;
}

.social-sharing-buttons__popup:before {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 100%);
  display: block;
  content: '';
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid black;
}

File

css/better_social_sharing_buttons.css
View source
  1. .social-sharing-buttons {
  2. display: flex;
  3. justify-content: center;
  4. align-items: center;
  5. margin: 2em 0;
  6. }
  7. .social-sharing-buttons a {
  8. text-decoration: none;
  9. margin: 0 4px;
  10. display: flex;
  11. justify-content: center;
  12. align-items: center;
  13. }
  14. .btnCopy {
  15. position: relative;
  16. padding: 0;
  17. }
  18. .social-sharing-buttons__popup {
  19. position: absolute;
  20. left: 50%;
  21. top: 0;
  22. transform: translate(-50%, -100%);
  23. background-color: black;
  24. color: white;
  25. font-size: small;
  26. padding: 4px;
  27. border-radius: 3px;
  28. opacity: 0;
  29. height: 0;
  30. overflow: hidden;
  31. transition: all .5s ease;
  32. }
  33. .social-sharing-buttons__popup.visible {
  34. opacity: 1;
  35. height: auto;
  36. overflow: unset;
  37. }
  38. .social-sharing-buttons__popup:before {
  39. position: absolute;
  40. left: 50%;
  41. bottom: 0;
  42. transform: translate(-50%, 100%);
  43. display: block;
  44. content: '';
  45. width: 0;
  46. height: 0;
  47. border-left: 10px solid transparent;
  48. border-right: 10px solid transparent;
  49. border-top: 10px solid black;
  50. }