jetpack-likes-master-iframe.php
2 years ago
jetpack-likes-settings.php
3 years ago
post-count-jetpack.js
4 years ago
post-count.js
4 years ago
queuehandler.js
2 years ago
style.css
2 years ago
style.css
282 lines
| 1 | /** |
| 2 | * Like Button toolbar button, loading text & container styles |
| 3 | */ |
| 4 | |
| 5 | /* Master container */ |
| 6 | #jp-post-flair { |
| 7 | padding-top: .5em; |
| 8 | } |
| 9 | |
| 10 | /* Overall Sharedaddy block title */ |
| 11 | div.sharedaddy, |
| 12 | #content div.sharedaddy, |
| 13 | #main div.sharedaddy { |
| 14 | clear: both; |
| 15 | } |
| 16 | |
| 17 | div.sharedaddy h3.sd-title { |
| 18 | margin: 0 0 1em 0; |
| 19 | display: inline-block; |
| 20 | line-height: 1.2; |
| 21 | font-size: 9pt; |
| 22 | font-weight: bold; |
| 23 | } |
| 24 | |
| 25 | div.sharedaddy h3.sd-title:before { |
| 26 | content: ""; |
| 27 | display: block; |
| 28 | width: 100%; |
| 29 | min-width: 30px; |
| 30 | border-top: 1px solid #dcdcde; |
| 31 | margin-bottom: 1em; |
| 32 | } |
| 33 | |
| 34 | |
| 35 | /* Toolbar */ |
| 36 | #wpadminbar li#wp-admin-bar-admin-bar-likes-widget { |
| 37 | width: 61px; |
| 38 | overflow: hidden; |
| 39 | } |
| 40 | |
| 41 | #wpadminbar iframe.admin-bar-likes-widget { |
| 42 | width: 61px; |
| 43 | height: 28px; |
| 44 | min-height: 28px; |
| 45 | border-width: 0px; |
| 46 | position: absolute; |
| 47 | top: 0; |
| 48 | } |
| 49 | |
| 50 | div.jetpack-likes-widget-wrapper { |
| 51 | width: 100%; |
| 52 | min-height: 50px; /* Previous height, 60px */ |
| 53 | position: relative; /* Need to abs position placeholder and iframe so there isn't a jarring jump */ |
| 54 | } |
| 55 | |
| 56 | div.jetpack-likes-widget-wrapper .sd-link-color { |
| 57 | font-size: 12px; |
| 58 | } |
| 59 | |
| 60 | div.jetpack-comment-likes-widget-wrapper { |
| 61 | width: 100%; |
| 62 | position: relative; |
| 63 | min-height: 31px; |
| 64 | } |
| 65 | |
| 66 | div.jetpack-comment-likes-widget-wrapper iframe { |
| 67 | margin-bottom: 0; |
| 68 | } |
| 69 | |
| 70 | #likes-other-gravatars { |
| 71 | display: none; |
| 72 | position: absolute; |
| 73 | padding: 10px 10px 12px 10px; |
| 74 | background-color: #2e4453; |
| 75 | border-width: 0; |
| 76 | box-shadow: 0 0 10px #2e4453; |
| 77 | box-shadow: 0 0 10px rgba(46,68,83,.6); |
| 78 | min-width: 130px; |
| 79 | z-index: 1000; |
| 80 | } |
| 81 | |
| 82 | #likes-other-gravatars.wpl-new-layout { |
| 83 | display: none; |
| 84 | position: absolute; |
| 85 | padding: 9px 12px 10px 12px; |
| 86 | background-color: #fff; |
| 87 | border: solid 1px #dcdcde; |
| 88 | border-radius: 4px; |
| 89 | box-shadow: none; |
| 90 | min-width: 220px; |
| 91 | max-height: 240px; |
| 92 | height: auto; |
| 93 | overflow: auto; |
| 94 | z-index: 1000; |
| 95 | } |
| 96 | |
| 97 | #likes-other-gravatars * { |
| 98 | line-height: normal; |
| 99 | } |
| 100 | |
| 101 | #likes-other-gravatars .likes-text { |
| 102 | color: white; |
| 103 | font-size: 12px; |
| 104 | padding-bottom: 8px; |
| 105 | } |
| 106 | |
| 107 | #likes-other-gravatars.wpl-new-layout .likes-text { |
| 108 | color: #101517; |
| 109 | font-size: 12px; |
| 110 | font-weight: 500; |
| 111 | padding-bottom: 8px; |
| 112 | } |
| 113 | |
| 114 | #likes-other-gravatars ul, |
| 115 | #likes-other-gravatars li { |
| 116 | margin: 0; |
| 117 | padding: 0; |
| 118 | text-indent: 0; |
| 119 | list-style-type: none; |
| 120 | } |
| 121 | |
| 122 | #likes-other-gravatars li::before { |
| 123 | content: ""; |
| 124 | } |
| 125 | |
| 126 | #likes-other-gravatars ul.wpl-avatars { |
| 127 | overflow: auto; |
| 128 | display: block; |
| 129 | max-height: 190px; |
| 130 | } |
| 131 | |
| 132 | #likes-other-gravatars ul.wpl-avatars li { |
| 133 | width: 32px; |
| 134 | height: 32px; |
| 135 | float: left; |
| 136 | margin: 0 5px 5px 0; |
| 137 | } |
| 138 | |
| 139 | #likes-other-gravatars.wpl-new-layout ul.wpl-avatars li { |
| 140 | width: 196px; |
| 141 | height: 28px; |
| 142 | float: none; |
| 143 | margin: 0 0 4px 0; |
| 144 | } |
| 145 | |
| 146 | #likes-other-gravatars ul.wpl-avatars li a { |
| 147 | margin: 0 2px 0 0; |
| 148 | border-bottom: none !important; |
| 149 | display: block; |
| 150 | } |
| 151 | |
| 152 | #likes-other-gravatars.wpl-new-layout ul.wpl-avatars li a { |
| 153 | margin: 0 2px 0 0; |
| 154 | border-bottom: none !important; |
| 155 | display: flex; |
| 156 | align-items: center; |
| 157 | gap: 8px; |
| 158 | text-decoration: none; |
| 159 | } |
| 160 | |
| 161 | #likes-other-gravatars.wpl-new-layout ul.wpl-avatars li a span { |
| 162 | font-size: 12px; |
| 163 | color: #2C3338; |
| 164 | overflow: hidden; |
| 165 | text-overflow: ellipsis; |
| 166 | white-space: nowrap; |
| 167 | } |
| 168 | |
| 169 | #likes-other-gravatars ul.wpl-avatars li a img { |
| 170 | background: none; |
| 171 | border: none; |
| 172 | margin: 0 !important; |
| 173 | padding: 0 !important; |
| 174 | position: static; |
| 175 | box-sizing: border-box; |
| 176 | } |
| 177 | |
| 178 | #likes-other-gravatars.wpl-new-layout ul.wpl-avatars li a img { |
| 179 | background: none; |
| 180 | border: none; |
| 181 | border-radius: 50%; |
| 182 | margin: 0 !important; |
| 183 | padding: 1px !important; |
| 184 | position: static; |
| 185 | } |
| 186 | |
| 187 | div.sd-box { |
| 188 | border-top: 1px solid #dcdcde; |
| 189 | border-top: 1px solid rgba(0,0,0,.13); |
| 190 | } |
| 191 | |
| 192 | .entry-content .post-likes-widget, .post-likes-widget, |
| 193 | .comment-likes-widget { |
| 194 | margin: 0; |
| 195 | border-width: 0; |
| 196 | display: block; |
| 197 | } |
| 198 | |
| 199 | /* Loading text */ |
| 200 | .post-likes-widget-placeholder, |
| 201 | .comment-likes-widget-placeholder { |
| 202 | margin: 0; |
| 203 | border-width: 0; |
| 204 | position: relative; |
| 205 | } |
| 206 | |
| 207 | .comment-likes-widget-placeholder { |
| 208 | height: 18px; |
| 209 | position: absolute; |
| 210 | display: flex; |
| 211 | font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; |
| 212 | } |
| 213 | |
| 214 | .comment-likes-widget-placeholder::before { |
| 215 | color: #2EA2CC; |
| 216 | width: 16px; |
| 217 | height: 16px; |
| 218 | content: ''; |
| 219 | display: inline-block; |
| 220 | position: relative; |
| 221 | top: 3px; |
| 222 | padding-right: 5px; |
| 223 | background-repeat: no-repeat; |
| 224 | background-size: 16px 16px; |
| 225 | background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='0' fill='none' width='24' height='24'/%3E%3Cg%3E%3Cpath fill='%232EA2CC' d='M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304'/%3E%3C/g%3E%3C/svg%3E"); |
| 226 | } |
| 227 | |
| 228 | .post-likes-widget-placeholder .button { |
| 229 | display: none; /* Let's not show a dummy like button, let's just make a great button experience once it's loaded */ |
| 230 | } |
| 231 | |
| 232 | .post-likes-widget-placeholder .button span { |
| 233 | } |
| 234 | |
| 235 | .post-likes-widget-placeholder .loading, |
| 236 | .comment-likes-widget-placeholder .loading { |
| 237 | color: #999; |
| 238 | font-size: 12px; |
| 239 | } |
| 240 | |
| 241 | .comment-likes-widget-placeholder .loading { |
| 242 | padding-left: 5px; |
| 243 | margin-top: 4px; |
| 244 | align-self: center; |
| 245 | color: #4E4E4E; |
| 246 | } |
| 247 | |
| 248 | /* Like Special cases (display on it's own) */ |
| 249 | div.sharedaddy.sd-like-enabled .sd-like h3 { |
| 250 | display: none; |
| 251 | } |
| 252 | |
| 253 | div.sharedaddy.sd-like-enabled .sd-like .post-likes-widget { |
| 254 | width: 100%; |
| 255 | float: none; |
| 256 | position: absolute; /* Need to abs position placeholder and iframe so there isn't a jarring jump */ |
| 257 | top: 0; |
| 258 | } |
| 259 | |
| 260 | .comment-likes-widget { |
| 261 | width: 100%; |
| 262 | } |
| 263 | |
| 264 | |
| 265 | /* Make ratings block. @todo: make !important unnecessary by removing inline style */ |
| 266 | .pd-rating, |
| 267 | .cs-rating { |
| 268 | display: block !important; |
| 269 | } |
| 270 | |
| 271 | |
| 272 | /* Hide G+ title */ |
| 273 | .sd-gplus .sd-title { |
| 274 | display: none; |
| 275 | } |
| 276 | |
| 277 | @media print { |
| 278 | .jetpack-likes-widget-wrapper { |
| 279 | display: none; |
| 280 | } |
| 281 | } |
| 282 |