You are here

blazy.lightbox.css in Blazy 8

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