You are here

better_social_sharing_buttons.css in Better Social Sharing Buttons 8.3

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

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

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

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