maximus87

Untitled

Oct 25th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.58 KB | None | 0 0
  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.  
  11. .twentytwenty-horizontal .twentytwenty-handle:before, .twentytwenty-horizontal .twentytwenty-handle:after {
  12. width: 3px;
  13. height: 9999px;
  14. left: 50%;
  15. margin-left: -1.5px; }
  16.  
  17. .twentytwenty-vertical .twentytwenty-handle:before, .twentytwenty-vertical .twentytwenty-handle:after {
  18. width: 9999px;
  19. height: 3px;
  20. top: 50%;
  21. margin-top: -1.5px; }
  22.  
  23. .twentytwenty-before-label, .twentytwenty-after-label, .twentytwenty-overlay {
  24. position: absolute;
  25. top: 0;
  26. width: 100%;
  27. height: 100%; }
  28.  
  29. .twentytwenty-before-label, .twentytwenty-after-label, .twentytwenty-overlay {
  30. -webkit-transition-duration: 0.5s;
  31. -moz-transition-duration: 0.5s;
  32. transition-duration: 0.5s; }
  33.  
  34. .twentytwenty-before-label, .twentytwenty-after-label {
  35. -webkit-transition-property: opacity;
  36. -moz-transition-property: opacity;
  37. transition-property: opacity; }
  38.  
  39. .twentytwenty-before-label:before, .twentytwenty-after-label:before {
  40. color: white;
  41. font-size: 13px;
  42. letter-spacing: 0.1em; }
  43.  
  44. .twentytwenty-before-label:before, .twentytwenty-after-label:before {
  45. position: absolute;
  46. background: rgba(255, 255, 255, 0.2);
  47. line-height: 38px;
  48. padding: 0 20px;
  49. -webkit-border-radius: 2px;
  50. -moz-border-radius: 2px;
  51. border-radius: 2px; }
  52.  
  53. .twentytwenty-horizontal .twentytwenty-before-label:before, .twentytwenty-horizontal .twentytwenty-after-label:before {
  54. top: 50%;
  55. margin-top: -19px; }
  56.  
  57. .twentytwenty-vertical .twentytwenty-before-label:before, .twentytwenty-vertical .twentytwenty-after-label:before {
  58. left: 50%;
  59. margin-left: -45px;
  60. text-align: center;
  61. width: 90px; }
  62.  
  63. .twentytwenty-left-arrow, .twentytwenty-right-arrow, .twentytwenty-up-arrow, .twentytwenty-down-arrow {
  64. width: 0;
  65. height: 0;
  66. border: 6px inset transparent;
  67. position: absolute; }
  68.  
  69. .twentytwenty-left-arrow, .twentytwenty-right-arrow {
  70. top: 50%;
  71. margin-top: -6px; }
  72.  
  73. .twentytwenty-up-arrow, .twentytwenty-down-arrow {
  74. left: 50%;
  75. margin-left: -6px; }
  76.  
  77. .twentytwenty-container {
  78. -webkit-box-sizing: content-box;
  79. -moz-box-sizing: content-box;
  80. box-sizing: content-box;
  81. z-index: 0;
  82. overflow: hidden;
  83. position: relative;
  84. -webkit-user-select: none;
  85. -moz-user-select: none;
  86. -ms-user-select: none; }
  87. .twentytwenty-container img {
  88. max-width: 100%;
  89. position: absolute;
  90. top: 0;
  91. display: block; }
  92. .twentytwenty-container.active .twentytwenty-overlay, .twentytwenty-container.active :hover.twentytwenty-overlay {
  93. background: rgba(0, 0, 0, 0); }
  94. .twentytwenty-container.active .twentytwenty-overlay .twentytwenty-before-label,
  95. .twentytwenty-container.active .twentytwenty-overlay .twentytwenty-after-label, .twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-before-label,
  96. .twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-after-label {
  97. opacity: 0; }
  98. .twentytwenty-container * {
  99. -webkit-box-sizing: content-box;
  100. -moz-box-sizing: content-box;
  101. box-sizing: content-box; }
  102.  
  103. .twentytwenty-before-label {
  104. opacity: 0; }
  105. .twentytwenty-before-label:before {
  106. content: attr(data-content); }
  107.  
  108. .twentytwenty-after-label {
  109. opacity: 0; }
  110. .twentytwenty-after-label:before {
  111. content: attr(data-content); }
  112.  
  113. .twentytwenty-horizontal .twentytwenty-before-label:before {
  114. left: 10px; }
  115.  
  116. .twentytwenty-horizontal .twentytwenty-after-label:before {
  117. right: 10px; }
  118.  
  119. .twentytwenty-vertical .twentytwenty-before-label:before {
  120. top: 10px; }
  121.  
  122. .twentytwenty-vertical .twentytwenty-after-label:before {
  123. bottom: 10px; }
  124.  
  125. .twentytwenty-overlay {
  126. -webkit-transition-property: background;
  127. -moz-transition-property: background;
  128. transition-property: background;
  129. background: rgba(0, 0, 0, 0);
  130. z-index: 25; }
  131. .twentytwenty-overlay:hover {
  132. background: rgba(0, 0, 0, 0.5); }
  133. .twentytwenty-overlay:hover .twentytwenty-after-label {
  134. opacity: 1; }
  135. .twentytwenty-overlay:hover .twentytwenty-before-label {
  136. opacity: 1; }
  137.  
  138. .twentytwenty-before {
  139. z-index: 20; }
  140.  
  141. .twentytwenty-after {
  142. z-index: 10; }
  143.  
  144. .twentytwenty-handle {
  145. height: 38px;
  146. width: 38px;
  147. position: absolute;
  148. left: 50%;
  149. top: 50%;
  150. margin-left: -22px;
  151. margin-top: -22px;
  152. border: 3px solid white;
  153. -webkit-border-radius: 1000px;
  154. -moz-border-radius: 1000px;
  155. border-radius: 1000px;
  156. -webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  157. -moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  158. box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
  159. z-index: 40;
  160. cursor: pointer; }
  161.  
  162. .twentytwenty-horizontal .twentytwenty-handle:before {
  163. bottom: 50%;
  164. margin-bottom: 22px;
  165. -webkit-box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  166. -moz-box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  167. box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
  168. .twentytwenty-horizontal .twentytwenty-handle:after {
  169. top: 50%;
  170. margin-top: 22px;
  171. -webkit-box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  172. -moz-box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  173. box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
  174.  
  175. .twentytwenty-vertical .twentytwenty-handle:before {
  176. left: 50%;
  177. margin-left: 22px;
  178. -webkit-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  179. -moz-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  180. box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
  181. .twentytwenty-vertical .twentytwenty-handle:after {
  182. right: 50%;
  183. margin-right: 22px;
  184. -webkit-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  185. -moz-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
  186. box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5); }
  187.  
  188. .twentytwenty-left-arrow {
  189. border-right: 6px solid white;
  190. left: 50%;
  191. margin-left: -17px; }
  192.  
  193. .twentytwenty-right-arrow {
  194. border-left: 6px solid white;
  195. right: 50%;
  196. margin-right: -17px; }
  197.  
  198. .twentytwenty-up-arrow {
  199. border-bottom: 6px solid white;
  200. top: 50%;
  201. margin-top: -17px; }
  202.  
  203. .twentytwenty-down-arrow {
  204. border-top: 6px solid white;
  205. bottom: 50%;
  206. margin-bottom: -17px; }
Advertisement
Add Comment
Please, Sign In to add comment