You are here

blazy.lightbox.css in Blazy 8.2

Provides shared lightbox stylings for both Colorbox and Photobox.

File

css/components/blazy.lightbox.css
View source
  1. /**
  2. * @file
  3. * Provides shared lightbox stylings for both Colorbox and Photobox.
  4. */
  5. .litebox {
  6. position: relative;
  7. }
  8. .media__icon--litebox {
  9. cursor: pointer;
  10. display: block;
  11. height: 80px;
  12. left: 50%;
  13. margin: 0;
  14. opacity: 0;
  15. pointer-events: none;
  16. position: absolute;
  17. top: 50%;
  18. width: 80px;
  19. visibility: hidden;
  20. z-index: 9;
  21. transition: visibility 0s linear 0.5s, opacity 0.5s linear;
  22. -ms-transform: translate(-50%, -50%);
  23. -webkit-transform: translate(-50%, -50%);
  24. transform: translate(-50%, -50%);
  25. }
  26. .media__icon--litebox::before,
  27. .media__icon--litebox::after {
  28. content: '';
  29. display: block;
  30. position: absolute;
  31. pointer-events: none;
  32. }
  33. .media__icon--litebox {
  34. z-index: 9;
  35. }
  36. .media__icon--litebox::before,
  37. .media__icon--litebox::after {
  38. background: white;
  39. border-radius: 4px;
  40. height: 2px;
  41. left: 50%;
  42. margin: -1px 0 0 -40px;
  43. top: 50%;
  44. width: 80px;
  45. -ms-transform: rotate(0deg);
  46. -webkit-transform: rotate(0deg);
  47. transform: rotate(0deg);
  48. }
  49. .media__icon--litebox::after {
  50. -ms-transform: rotate(-90deg);
  51. -webkit-transform: rotate(-90deg);
  52. transform: rotate(-90deg);
  53. }
  54. .media__icon--litebox:hover::before,
  55. .media__icon--litebox:hover::after {
  56. background-color: #ff6d2c;
  57. }
  58. .media:hover .media__icon--litebox {
  59. transition-delay: 0s;
  60. }
  61. .media:hover .media__icon--litebox,
  62. .media--switch .media__image {
  63. opacity: 1;
  64. visibility: visible;
  65. }