PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / 1.3.6.1
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF v1.3.6.1
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
imagify / assets / css / twentytwenty.css

twentytwenty.css in Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF 1.3.6.1, at assets/css/twentytwenty.css

200 lines 3.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * Twentwenty image comparison
3 */
4 .twentytwenty-handle {
5 z-index: 40;
6 position: absolute;
7 left: 50%;
8 top: 50%;
9 height: 64px;
10 width: 64px;
11 margin-left: -32px;
12 margin-top: -32px;
13 border-radius: 50%;
14 box-shadow: 0 3px 0 #338EA6;
15 background: #40B1D0;
16 cursor: pointer;
17 }
18 .twentytwenty-horizontal .twentytwenty-handle:before,
19 .twentytwenty-horizontal .twentytwenty-handle:after {
20 left: 50%;
21 width: 2px;
22 height: 9999px;
23 margin-left: -1px;
24 }
25
26 .twentytwenty-horizontal .twentytwenty-handle:before {
27 bottom: 50%;
28 margin-bottom: 32px;
29 box-shadow: 0 3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
30 }
31
32 .twentytwenty-horizontal .twentytwenty-handle:after {
33 top: 50%;
34 margin-top: 34px;
35 box-shadow: 0 -3px 0 white, 0px 0px 12px rgba(51, 51, 51, 0.5);
36 }
37
38 .twentytwenty-horizontal .twentytwenty-handle:before,
39 .twentytwenty-horizontal .twentytwenty-handle:after {
40 content: "";
41 position: absolute;
42 z-index: 30;
43 display: block;
44 background: #F2F5F7;
45 box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.5);
46 }
47
48 .twentytwenty-labels,
49 .twentytwenty-overlay {
50 position: absolute;
51 top: 0;
52 width: 100%;
53 height: 100%;
54 -webkit-transition-duration: 0.5s;
55 transition-duration: 0.5s;
56 }
57
58 .twentytwenty-labels {
59 opacity: 1;
60 -webkit-transition-property: opacity;
61 transition-property: opacity;
62 }
63
64 .twentytwenty-labels .twentytwenty-label-content {
65 position: absolute;
66 padding: 0 12px;
67 font-size: 13px;
68 letter-spacing: 0.1em;
69 line-height: 38px;
70 color: white;
71 background: #1F2332;
72 border-radius: 2px;
73 }
74
75 .twentytwenty-horizontal .twentytwenty-labels .twentytwenty-label-content {
76 bottom: 15px;
77 }
78
79 .twentytwenty-after-label .twentytwenty-label-content {
80 background: #40B1D0;
81 }
82
83 .twentytwenty-left-arrow,
84 .twentytwenty-right-arrow {
85 position: absolute;
86 width: 0;
87 height: 0;
88 border: 8px inset transparent;
89 }
90
91 .twentytwenty-left-arrow,
92 .twentytwenty-right-arrow {
93 top: 50%;
94 margin-top: -8px;
95 }
96
97 .twentytwenty-container {
98 box-sizing: content-box;
99 position: relative;
100 z-index: 0;
101 overflow: hidden;
102 box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
103 opacity: 0;
104 -webkit-transition: opacity 0.4s;
105 transition: opacity 0.4s;
106 -webkit-user-select: none;
107 -moz-user-select: none;
108 }
109 .twentytwenty-container * {
110 box-sizing: content-box;
111 }
112
113 .twentytwenty-container img {
114 position: absolute;
115 top: 0;
116 display: block;
117 width: 100%;
118 height: auto;
119 }
120
121 .loaded .twentytwenty-container {
122 opacity: 1;
123 }
124
125 .twentytwenty-container.active .twentytwenty-overlay .twentytwenty-labels,
126 .twentytwenty-container.active .twentytwenty-overlay:hover .twentytwenty-labels {
127 opacity: 0;
128 }
129
130 .twentytwenty-horizontal .twentytwenty-before-label .twentytwenty-label-content {
131 left: 15px;
132 }
133
134 .twentytwenty-horizontal .twentytwenty-after-label .twentytwenty-label-content {
135 right: 15px;
136 }
137
138 .twentytwenty-overlay {
139 z-index: 25;
140 }
141 .twentytwenty-before {
142 z-index: 20;
143 }
144 .twentytwenty-after {
145 z-index: 10;
146 }
147
148 /* Buttons for image choices */
149 .twentytwenty-duo-buttons {
150 position: absolute;
151 top: 10px;
152 z-index: 30;
153 overflow: hidden;
154 }
155 .twentytwenty-duo-buttons button {
156 float: left;
157 padding: 2px 6px;
158 font-size: 11px;
159 text-transform: uppercase;
160 letter-spacing: 0.125em;
161 font-weight: bold;
162 border: 0;
163 background: #1f2332;
164 color: #FFF;
165 transition: all .3s;
166 cursor: pointer;
167 }
168 .twentytwenty-duo-buttons button:hover,
169 .twentytwenty-duo-buttons button:focus {
170 background: #444;
171 }
172 .twentytwenty-duo-buttons button:first-child {
173 border-radius: 3px 0 0 3px;
174 }
175 .twentytwenty-duo-buttons button:last-child {
176 border-radius: 0 3px 3px 0;
177 }
178 .twentytwenty-duo-buttons button.selected {
179 background: #8bc34a;
180 text-shadow: 0 0 1px rgba(0,0,0,.2);
181 cursor: default;
182 }
183 .twentytwenty-duo-left {
184 left: 10px;
185 }
186 .twentytwenty-duo-right {
187 right: 10px;
188 }
189
190 .twentytwenty-left-arrow {
191 left: 50%;
192 margin-left: -22px;
193 border-right: 8px solid white;
194 }
195
196 .twentytwenty-right-arrow {
197 right: 50%;
198 margin-right: -22px;
199 border-left: 8px solid white;
200 }