You are here

twentytwenty.css in Glazed CMS Portfolio 8

.twentytwenty-horizontal .twentytwenty-handle:before, .twentytwenty-horizontal .twentytwenty-handle:after, .twentytwenty-vertical .twentytwenty-handle:before, .twentytwenty-vertical .twentytwenty-handle:after {
  content: " ";
  display: block;
  background: white;
  position: absolute;
  z-index: 30;
  -webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5); }

.twentytwenty-horizontal .twentytwenty-handle:before, .twentytwenty-horizontal .twentytwenty-handle:after {
  width: 3px;
  height: 9999px;
  left: 50%;
  margin-left: -1.5px; }

.twentytwenty-vertical .twentytwenty-handle:before, .twentytwenty-vertical .twentytwenty-handle:after {
  width: 9999px;
  height: 3px;
  top: 50%;
  margin-top: -1.5px; }

.twentytwenty-before-label, .twentytwenty-after-label, .twentytwenty-overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%; }

.twentytwenty-before-label, .twentytwenty-after-label, .twentytwenty-overlay {
  -webkit-transition-duration: 0.5s;
  -moz-transition-duration: 0.5s;
  transition-duration: 0.5s; }

.twentytwenty-before-label, .twentytwenty-after-label {
  -webkit-transition-property: opacity;
  -moz-transition-property: opacity;
  transition-property: opacity; }

.twentytwenty-before-label:before, .twentytwenty-after-label:before {
  color: white;
  font-size: 13px;
  letter-spacing: 0.1em; }

.twentytwenty-before-label:before, .twentytwenty-after-label:before {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  line-height: 38px;
  padding: 0 20px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  border-radius: 2px; }

.twentytwenty-horizontal .twentytwenty-before-label:before, .twentytwenty-horizontal .twentytwenty-after-label:before {
  top: 50%;
  margin-top: -19px; }

.twentytwenty-vertical .twentytwenty-before-label:before, .twentytwenty-vertical .twentytwenty-after-label:before {
  left: 50%;
  margin-left: -45px;
  text-align: center;
  width: 90px; }

.twentytwenty-left-arrow, .twentytwenty-right-arrow, .twentytwenty-up-arrow, .twentytwenty-down-arrow {
  width: 0;
  height: 0;
  border: 6px inset transparent;
  position: absolute; }

.twentytwenty-left-arrow, .twentytwenty-right-arrow {
  top: 50%;
  margin-top: -6px; }

.twentytwenty-up-arrow, .twentytwenty-down-arrow {
  left: 50%;
  margin-left: -6px; }

.twentytwenty-container {
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  z-index: 0;
  overflow: hidden;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none; }
  .twentytwenty-container img {
    max-width: 100%;
    position: absolute;
    top: 0;
    display: block; }
  .twentytwenty-container.active .twentytwenty-overlay, .twentytwenty-container.active :hover.twentytwenty-overlay {
    background: rgba(0, 0, 0, 0); }
    .twentytwenty-container.active .twentytwenty-overlay .twentytwenty-before-label,
    .twentytwenty-container.active .twentytwenty-overlay .twentytwenty-after-label, .twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-before-label,
    .twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-after-label {
      opacity: 0; }
  .twentytwenty-container * {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box; }

.twentytwenty-before-label {
  opacity: 0; }
  .twentytwenty-before-label:before {
    content: attr(data-content); }

.twentytwenty-after-label {
  opacity: 0; }
  .twentytwenty-after-label:before {
    content: attr(data-content); }

.twentytwenty-horizontal .twentytwenty-before-label:before {
  left: 10px; }

.twentytwenty-horizontal .twentytwenty-after-label:before {
  right: 10px; }

.twentytwenty-vertical .twentytwenty-before-label:before {
  top: 10px; }

.twentytwenty-vertical .twentytwenty-after-label:before {
  bottom: 10px; }

.twentytwenty-overlay {
  -webkit-transition-property: background;
  -moz-transition-property: background;
  transition-property: background;
  background: rgba(0, 0, 0, 0);
  z-index: 25; }
  .twentytwenty-overlay:hover {
    background: rgba(0, 0, 0, 0.5); }
    .twentytwenty-overlay:hover .twentytwenty-after-label {
      opacity: 1; }
    .twentytwenty-overlay:hover .twentytwenty-before-label {
      opacity: 1; }

.twentytwenty-before {
  z-index: 20; }

.twentytwenty-after {
  z-index: 10; }

.twentytwenty-handle {
  height: 38px;
  width: 38px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -22px;
  margin-top: -22px;
  border: 3px solid white;
  -webkit-border-radius: 1000px;
  -moz-border-radius: 1000px;
  border-radius: 1000px;
  -webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  z-index: 40;
  cursor: pointer; }

.twentytwenty-horizontal .twentytwenty-handle:before {
  bottom: 50%;
  margin-bottom: 22px;
  -webkit-box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
.twentytwenty-horizontal .twentytwenty-handle:after {
  top: 50%;
  margin-top: 22px;
  -webkit-box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }

.twentytwenty-vertical .twentytwenty-handle:before {
  left: 50%;
  margin-left: 22px;
  -webkit-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
.twentytwenty-vertical .twentytwenty-handle:after {
  right: 50%;
  margin-right: 22px;
  -webkit-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  -moz-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }

.twentytwenty-left-arrow {
  border-right: 6px solid white;
  left: 50%;
  margin-left: -17px; }

.twentytwenty-right-arrow {
  border-left: 6px solid white;
  right: 50%;
  margin-right: -17px; }

.twentytwenty-up-arrow {
  border-bottom: 6px solid white;
  top: 50%;
  margin-top: -17px; }

.twentytwenty-down-arrow {
  border-top: 6px solid white;
  bottom: 50%;
  margin-bottom: -17px; }

File

vendor/twentytwenty/css/twentytwenty.css
View source
  1. .twentytwenty-horizontal .twentytwenty-handle:before, .twentytwenty-horizontal .twentytwenty-handle:after, .twentytwenty-vertical .twentytwenty-handle:before, .twentytwenty-vertical .twentytwenty-handle:after {
  2. content: " ";
  3. display: block;
  4. background: white;
  5. position: absolute;
  6. z-index: 30;
  7. -webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  8. -moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  9. box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5); }
  10. .twentytwenty-horizontal .twentytwenty-handle:before, .twentytwenty-horizontal .twentytwenty-handle:after {
  11. width: 3px;
  12. height: 9999px;
  13. left: 50%;
  14. margin-left: -1.5px; }
  15. .twentytwenty-vertical .twentytwenty-handle:before, .twentytwenty-vertical .twentytwenty-handle:after {
  16. width: 9999px;
  17. height: 3px;
  18. top: 50%;
  19. margin-top: -1.5px; }
  20. .twentytwenty-before-label, .twentytwenty-after-label, .twentytwenty-overlay {
  21. position: absolute;
  22. top: 0;
  23. width: 100%;
  24. height: 100%; }
  25. .twentytwenty-before-label, .twentytwenty-after-label, .twentytwenty-overlay {
  26. -webkit-transition-duration: 0.5s;
  27. -moz-transition-duration: 0.5s;
  28. transition-duration: 0.5s; }
  29. .twentytwenty-before-label, .twentytwenty-after-label {
  30. -webkit-transition-property: opacity;
  31. -moz-transition-property: opacity;
  32. transition-property: opacity; }
  33. .twentytwenty-before-label:before, .twentytwenty-after-label:before {
  34. color: white;
  35. font-size: 13px;
  36. letter-spacing: 0.1em; }
  37. .twentytwenty-before-label:before, .twentytwenty-after-label:before {
  38. position: absolute;
  39. background: rgba(255, 255, 255, 0.2);
  40. line-height: 38px;
  41. padding: 0 20px;
  42. -webkit-border-radius: 2px;
  43. -moz-border-radius: 2px;
  44. border-radius: 2px; }
  45. .twentytwenty-horizontal .twentytwenty-before-label:before, .twentytwenty-horizontal .twentytwenty-after-label:before {
  46. top: 50%;
  47. margin-top: -19px; }
  48. .twentytwenty-vertical .twentytwenty-before-label:before, .twentytwenty-vertical .twentytwenty-after-label:before {
  49. left: 50%;
  50. margin-left: -45px;
  51. text-align: center;
  52. width: 90px; }
  53. .twentytwenty-left-arrow, .twentytwenty-right-arrow, .twentytwenty-up-arrow, .twentytwenty-down-arrow {
  54. width: 0;
  55. height: 0;
  56. border: 6px inset transparent;
  57. position: absolute; }
  58. .twentytwenty-left-arrow, .twentytwenty-right-arrow {
  59. top: 50%;
  60. margin-top: -6px; }
  61. .twentytwenty-up-arrow, .twentytwenty-down-arrow {
  62. left: 50%;
  63. margin-left: -6px; }
  64. .twentytwenty-container {
  65. -webkit-box-sizing: content-box;
  66. -moz-box-sizing: content-box;
  67. box-sizing: content-box;
  68. z-index: 0;
  69. overflow: hidden;
  70. position: relative;
  71. -webkit-user-select: none;
  72. -moz-user-select: none; }
  73. .twentytwenty-container img {
  74. max-width: 100%;
  75. position: absolute;
  76. top: 0;
  77. display: block; }
  78. .twentytwenty-container.active .twentytwenty-overlay, .twentytwenty-container.active :hover.twentytwenty-overlay {
  79. background: rgba(0, 0, 0, 0); }
  80. .twentytwenty-container.active .twentytwenty-overlay .twentytwenty-before-label,
  81. .twentytwenty-container.active .twentytwenty-overlay .twentytwenty-after-label, .twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-before-label,
  82. .twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-after-label {
  83. opacity: 0; }
  84. .twentytwenty-container * {
  85. -webkit-box-sizing: content-box;
  86. -moz-box-sizing: content-box;
  87. box-sizing: content-box; }
  88. .twentytwenty-before-label {
  89. opacity: 0; }
  90. .twentytwenty-before-label:before {
  91. content: attr(data-content); }
  92. .twentytwenty-after-label {
  93. opacity: 0; }
  94. .twentytwenty-after-label:before {
  95. content: attr(data-content); }
  96. .twentytwenty-horizontal .twentytwenty-before-label:before {
  97. left: 10px; }
  98. .twentytwenty-horizontal .twentytwenty-after-label:before {
  99. right: 10px; }
  100. .twentytwenty-vertical .twentytwenty-before-label:before {
  101. top: 10px; }
  102. .twentytwenty-vertical .twentytwenty-after-label:before {
  103. bottom: 10px; }
  104. .twentytwenty-overlay {
  105. -webkit-transition-property: background;
  106. -moz-transition-property: background;
  107. transition-property: background;
  108. background: rgba(0, 0, 0, 0);
  109. z-index: 25; }
  110. .twentytwenty-overlay:hover {
  111. background: rgba(0, 0, 0, 0.5); }
  112. .twentytwenty-overlay:hover .twentytwenty-after-label {
  113. opacity: 1; }
  114. .twentytwenty-overlay:hover .twentytwenty-before-label {
  115. opacity: 1; }
  116. .twentytwenty-before {
  117. z-index: 20; }
  118. .twentytwenty-after {
  119. z-index: 10; }
  120. .twentytwenty-handle {
  121. height: 38px;
  122. width: 38px;
  123. position: absolute;
  124. left: 50%;
  125. top: 50%;
  126. margin-left: -22px;
  127. margin-top: -22px;
  128. border: 3px solid white;
  129. -webkit-border-radius: 1000px;
  130. -moz-border-radius: 1000px;
  131. border-radius: 1000px;
  132. -webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  133. -moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  134. box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  135. z-index: 40;
  136. cursor: pointer; }
  137. .twentytwenty-horizontal .twentytwenty-handle:before {
  138. bottom: 50%;
  139. margin-bottom: 22px;
  140. -webkit-box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  141. -moz-box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  142. box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
  143. .twentytwenty-horizontal .twentytwenty-handle:after {
  144. top: 50%;
  145. margin-top: 22px;
  146. -webkit-box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  147. -moz-box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  148. box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
  149. .twentytwenty-vertical .twentytwenty-handle:before {
  150. left: 50%;
  151. margin-left: 22px;
  152. -webkit-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  153. -moz-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  154. box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
  155. .twentytwenty-vertical .twentytwenty-handle:after {
  156. right: 50%;
  157. margin-right: 22px;
  158. -webkit-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  159. -moz-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  160. box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
  161. .twentytwenty-left-arrow {
  162. border-right: 6px solid white;
  163. left: 50%;
  164. margin-left: -17px; }
  165. .twentytwenty-right-arrow {
  166. border-left: 6px solid white;
  167. right: 50%;
  168. margin-right: -17px; }
  169. .twentytwenty-up-arrow {
  170. border-bottom: 6px solid white;
  171. top: 50%;
  172. margin-top: -17px; }
  173. .twentytwenty-down-arrow {
  174. border-top: 6px solid white;
  175. bottom: 50%;
  176. margin-bottom: -17px; }