| @@ -1,0 +1,350 @@ | ||
| 1 | +/** | |
| 2 | + * $gray color functions: | |
| 3 | + * | |
| 4 | + * color.adjust( $gray, $lightness: 10% ) | |
| 5 | + * color.adjust( $gray, $lightness: 20% ) | |
| 6 | + * color.adjust( $gray, $lightness: 30% ) | |
| 7 | + * color.adjust( $gray, $lightness: -10% ) | |
| 8 | + * color.adjust( $gray, $lightness: -20% ) | |
| 9 | + * color.adjust( $gray, $lightness: -30% ) | |
| 10 | + * | |
| 11 | + * See wordpress.com/design-handbook/colors/ for more info. | |
| 12 | + */ | |
| 13 | +:root { | |
| 14 | + --font-title-large: 36px; | |
| 15 | + --font-title-small: 24px; | |
| 16 | + --font-body: 16px; | |
| 17 | + --font-label: 12px; | |
| 18 | + --jp-black: #000; | |
| 19 | + --jp-black-80: #2c3338; | |
| 20 | + --jp-white: #fff; | |
| 21 | + --jp-white-off: #f9f9f6; | |
| 22 | + --jp-gray: #dcdcde; | |
| 23 | + --jp-gray-0: #f6f7f7; | |
| 24 | + --jp-gray-5: #dcdcde; | |
| 25 | + --jp-gray-10: #c3c4c7; | |
| 26 | + --jp-gray-20: #a7aaad; | |
| 27 | + --jp-gray-30: #8c8f94; | |
| 28 | + --jp-gray-40: #787c82; | |
| 29 | + --jp-gray-50: #646970; | |
| 30 | + --jp-gray-60: #50575e; | |
| 31 | + --jp-gray-70: #3c434a; | |
| 32 | + --jp-gray-80: #2c3338; | |
| 33 | + --jp-gray-90: #1d2327; | |
| 34 | + --jp-gray-100: #101517; | |
| 35 | + --jp-gray-off: #e2e2df; | |
| 36 | + --jp-yellow-5: #f5e6b3; | |
| 37 | + --jp-yellow-10: #f2cf75; | |
| 38 | + --jp-yellow-20: #f0c930; | |
| 39 | + --jp-yellow-30: #deb100; | |
| 40 | + --jp-yellow-40: #c08c00; | |
| 41 | + --jp-yellow-50: #9d6e00; | |
| 42 | + --jp-yellow-60: #7d5600; | |
| 43 | + --jp-orange-20: #faa754; | |
| 44 | + --jp-blue-5: #ced9f2; | |
| 45 | + --jp-blue-20: #68b3e8; | |
| 46 | + --jp-blue-40: #1689db; | |
| 47 | + --jp-red-0: #f7ebec; | |
| 48 | + --jp-red-5: #facfd2; | |
| 49 | + --jp-red-40: #e65054; | |
| 50 | + --jp-red-50: #d63638; | |
| 51 | + --jp-red-60: #b32d2e; | |
| 52 | + --jp-red-70: #8a2424; | |
| 53 | + --jp-red-80: #8a2424; | |
| 54 | + --jp-red: #d63639; | |
| 55 | + --jp-pink: #c9356e; | |
| 56 | + --jp-green-0: #f0f2eb; | |
| 57 | + --jp-green-5: #d0e6b8; | |
| 58 | + --jp-green-10: #9dd977; | |
| 59 | + --jp-green-20: #64ca43; | |
| 60 | + --jp-green-30: #2fb41f; | |
| 61 | + --jp-green-40: #069e08; | |
| 62 | + --jp-green-50: #008710; | |
| 63 | + --jp-green-60: #007117; | |
| 64 | + --jp-green-70: #005b18; | |
| 65 | + --jp-green-80: #004515; | |
| 66 | + --jp-green-90: #003010; | |
| 67 | + --jp-green-100: #001c09; | |
| 68 | + --jp-green: #069e08; | |
| 69 | + --jp-green-mint: #d3f6d5; | |
| 70 | + --jp-green-primary: var(--jp-green-40, #069e08); | |
| 71 | + --jp-green-secondary: var(--jp-green-30, #2fb41f); | |
| 72 | + --jp-border-radius: 4px; | |
| 73 | + --jp-border-radius-rna: 8px; | |
| 74 | + --jp-menu-border-height: 1px; | |
| 75 | + --jp-underline-thickness: 2px; | |
| 76 | + --jp-modal-padding-large: 32px; | |
| 77 | + --jp-modal-padding: 24px; | |
| 78 | + --jp-modal-padding-small: 16px; | |
| 79 | + --jp-modal-radius: 8px; | |
| 80 | + --jp-button-padding: 8px; | |
| 81 | + --jp-button-radius: 4px; | |
| 82 | + --jp-gap: 16px; | |
| 83 | +} | |
| 84 | + | |
| 85 | +#jetpack_summary_widget * { | |
| 86 | + box-sizing: border-box; | |
| 87 | +} | |
| 88 | +#jetpack_summary_widget h2.hndle span { | |
| 89 | + display: flex; | |
| 90 | + align-items: center; | |
| 91 | +} | |
| 92 | +#jetpack_summary_widget h2.hndle span span { | |
| 93 | + padding: 0 0.4em; | |
| 94 | +} | |
| 95 | +#jetpack_summary_widget h2.hndle svg { | |
| 96 | + height: 20px; | |
| 97 | + margin-block: 0.15em 0; | |
| 98 | + margin-inline-start: 0.5em; | |
| 99 | + margin-inline-end: 0; | |
| 100 | +} | |
| 101 | +#jetpack_summary_widget pre.stats-widget-error { | |
| 102 | + overflow: scroll; | |
| 103 | +} | |
| 104 | +#jetpack_summary_widget { | |
| 105 | + /* Widget settings */ | |
| 106 | +} | |
| 107 | +#jetpack_summary_widget .js-toggle-stats_dashboard_widget_control .toggle-indicator::before { | |
| 108 | + content: "\f111"; | |
| 109 | + display: inline-block; | |
| 110 | + font: 400 20px/1 dashicons; | |
| 111 | +} | |
| 112 | +#jetpack_summary_widget .inside { | |
| 113 | + margin: 0; | |
| 114 | + padding: 0; | |
| 115 | +} | |
| 116 | +#jetpack_summary_widget .inside #stats_dashboard_widget_control { | |
| 117 | + display: none; | |
| 118 | + padding: 0 10px; | |
| 119 | + overflow: hidden; | |
| 120 | +} | |
| 121 | +#jetpack_summary_widget .inside #stats_dashboard_widget_control .button-primary { | |
| 122 | + float: inline-end; | |
| 123 | +} | |
| 124 | +#jetpack_summary_widget .inside #dashboard_stats { | |
| 125 | + box-sizing: border-box; | |
| 126 | + width: 100%; | |
| 127 | + padding: 0 10px; | |
| 128 | +} | |
| 129 | +#jetpack_summary_widget .inside #dashboard_stats.is-loading { | |
| 130 | + display: none; | |
| 131 | +} | |
| 132 | +#jetpack_summary_widget .inside #dashboard_stats .inside { | |
| 133 | + margin: 10px 0 0 0 !important; | |
| 134 | +} | |
| 135 | +#jetpack_summary_widget .inside #dashboard_stats #stats-graph { | |
| 136 | + margin: 0; | |
| 137 | +} | |
| 138 | +#jetpack_summary_widget .inside #dashboard_stats { | |
| 139 | + /* Widget graph contents */ | |
| 140 | +} | |
| 141 | +#jetpack_summary_widget .inside #dashboard_stats #stat-chart { | |
| 142 | + background: none !important; | |
| 143 | +} | |
| 144 | +#jetpack_summary_widget .inside #dashboard_stats #stats-info { | |
| 145 | + background: var(--jp-white-off, #f9f9f6); | |
| 146 | + padding: 1.5em 1em; | |
| 147 | + padding-bottom: 0; | |
| 148 | + border-top: 1px solid #dcdcde; | |
| 149 | + margin: 7px -10px 0 -10px; | |
| 150 | + overflow: hidden; | |
| 151 | +} | |
| 152 | +#jetpack_summary_widget .inside #dashboard_stats #stats-info div#active { | |
| 153 | + border-top: 1px solid #dcdcde; | |
| 154 | + margin: 0 -10px; | |
| 155 | + padding: 10px 10px 0 10px; | |
| 156 | + box-shadow: inset 0 1px 0 #fff; | |
| 157 | + overflow: hidden; | |
| 158 | +} | |
| 159 | +#jetpack_summary_widget .inside #dashboard_stats #stats-info .stats-section-inner > h3.heading { | |
| 160 | + font-size: 1.25em; | |
| 161 | + margin: 0 0 0.5em 0; | |
| 162 | +} | |
| 163 | +#jetpack_summary_widget .inside #dashboard_stats #stats-info p { | |
| 164 | + margin: 0 0 0.25em; | |
| 165 | + color: var(--jp-gray-40, #787c82); | |
| 166 | +} | |
| 167 | +#jetpack_summary_widget .inside #dashboard_stats #stats-info p.nothing { | |
| 168 | + color: var(--jp-gray-60, #50575e); | |
| 169 | +} | |
| 170 | +#jetpack_summary_widget .inside #dashboard_stats #stats-info p.widget-loading { | |
| 171 | + margin: 1em 0 0; | |
| 172 | + color: #333; | |
| 173 | +} | |
| 174 | +#jetpack_summary_widget .inside #dashboard_stats #stats-info p a { | |
| 175 | + color: var(--jp-black, #000); | |
| 176 | + display: block; | |
| 177 | + text-decoration: none; | |
| 178 | +} | |
| 179 | +#jetpack_summary_widget .inside #dashboard_stats #stats-info p a.button { | |
| 180 | + display: inline; | |
| 181 | +} | |
| 182 | +#jetpack_summary_widget .inside #dashboard_stats #stats-info p a:active, #jetpack_summary_widget .inside #dashboard_stats #stats-info p a:focus, #jetpack_summary_widget .inside #dashboard_stats #stats-info p a:hover { | |
| 183 | + text-decoration: underline; | |
| 184 | +} | |
| 185 | +#jetpack_summary_widget #stats-info-container { | |
| 186 | + background: var(--jp-white, #fff); | |
| 187 | + border-radius: 5px; | |
| 188 | + box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0.04); | |
| 189 | + padding: 1em 1.5em 1em 1.5em; | |
| 190 | + overflow: hidden; | |
| 191 | + display: grid; | |
| 192 | + row-gap: 1em; | |
| 193 | + grid-template-areas: "header" "content"; | |
| 194 | + grid-template-rows: min-content min-content; | |
| 195 | +} | |
| 196 | +#jetpack_summary_widget .stats-info-content { | |
| 197 | + grid-area: content; | |
| 198 | + display: grid; | |
| 199 | + grid-template-areas: "posts searches"; | |
| 200 | + grid-template-columns: 1fr 1fr; | |
| 201 | + column-gap: 1em; | |
| 202 | +} | |
| 203 | +#jetpack_summary_widget .stats-info-content .stats-section { | |
| 204 | + min-width: 0; | |
| 205 | +} | |
| 206 | +#jetpack_summary_widget #stats-info .stats-info-header { | |
| 207 | + grid-area: header; | |
| 208 | + display: flex; | |
| 209 | + justify-content: space-between; | |
| 210 | +} | |
| 211 | +#jetpack_summary_widget #stats-info .stats-info-header > h2 { | |
| 212 | + font-size: 18px; | |
| 213 | + line-height: 30px; | |
| 214 | + padding: 0; | |
| 215 | +} | |
| 216 | +#jetpack_summary_widget #stats-info .stats-info-header .stats-info-header-right { | |
| 217 | + align-self: center; | |
| 218 | +} | |
| 219 | +.wp-core-ui #jetpack_summary_widget #stats-info .stats-info-header .stats-info-header-right .button-primary { | |
| 220 | + background: var(--jp-black, #000); | |
| 221 | + border-color: var(--jp-black, #000); | |
| 222 | + color: var(--jp-white, #fff); | |
| 223 | +} | |
| 224 | +#jetpack_summary_widget #top-posts { | |
| 225 | + grid-area: posts; | |
| 226 | +} | |
| 227 | +#jetpack_summary_widget #top-posts .stats-section-inner p { | |
| 228 | + white-space: nowrap; | |
| 229 | + overflow: hidden; | |
| 230 | +} | |
| 231 | +#jetpack_summary_widget #top-posts .stats-section-inner p a { | |
| 232 | + overflow: hidden; | |
| 233 | + text-overflow: ellipsis; | |
| 234 | +} | |
| 235 | +#jetpack_summary_widget #top-search { | |
| 236 | + grid-area: searches; | |
| 237 | +} | |
| 238 | +#jetpack_summary_widget #top-search p { | |
| 239 | + color: #999; | |
| 240 | +} | |
| 241 | +#jetpack_summary_widget .stats, | |
| 242 | +#jetpack_summary_widget .widgets, | |
| 243 | +#jetpack_summary_widget .wpcom-connect { | |
| 244 | + padding: 0.75em; | |
| 245 | +} | |
| 246 | +#jetpack_summary_widget .wpcom-connect { | |
| 247 | + background: var(--jp-gray-0, #f6f7f7); | |
| 248 | + text-align: center; | |
| 249 | +} | |
| 250 | +#jetpack_summary_widget .wpcom-connect .jp-emblem { | |
| 251 | + padding: 5px 0 0 0; | |
| 252 | +} | |
| 253 | +#jetpack_summary_widget .wpcom-connect svg { | |
| 254 | + width: 40px; | |
| 255 | + height: 40px; | |
| 256 | +} | |
| 257 | +#jetpack_summary_widget .wpcom-connect svg path { | |
| 258 | + fill: #069e08; | |
| 259 | +} | |
| 260 | +#jetpack_summary_widget .wpcom-connect .jp-emblem, | |
| 261 | +#jetpack_summary_widget .wpcom-connect h3, | |
| 262 | +#jetpack_summary_widget .wpcom-connect p { | |
| 263 | + width: 100%; | |
| 264 | +} | |
| 265 | +#jetpack_summary_widget .wpcom-connect h3 { | |
| 266 | + font-size: 1.25em; | |
| 267 | + font-weight: 400; | |
| 268 | +} | |
| 269 | +#jetpack_summary_widget .wpcom-connect p { | |
| 270 | + color: #50575e; | |
| 271 | + margin-top: 0; | |
| 272 | + padding: 0 15px; | |
| 273 | +} | |
| 274 | +#jetpack_summary_widget .wpcom-connect .actions { | |
| 275 | + text-align: center; | |
| 276 | + padding: 15px 0 10px 0; | |
| 277 | +} | |
| 278 | +#jetpack_summary_widget .wpcom-connect .actions small { | |
| 279 | + display: block; | |
| 280 | +} | |
| 281 | +#jetpack_summary_widget .wpcom-connect .actions small a { | |
| 282 | + color: #999; | |
| 283 | +} | |
| 284 | +#jetpack_summary_widget footer { | |
| 285 | + background: var(--jp-white-off, #f9f9f6); | |
| 286 | + overflow: hidden; | |
| 287 | +} | |
| 288 | +#jetpack_summary_widget footer .blocked-container { | |
| 289 | + background: var(--jp-white-off, #f9f9f6); | |
| 290 | + padding: 1.5em 1em; | |
| 291 | + display: grid; | |
| 292 | + gap: 0 1em; | |
| 293 | + grid-template-columns: 1fr 1fr; | |
| 294 | +} | |
| 295 | +#jetpack_summary_widget footer .protect, | |
| 296 | +#jetpack_summary_widget footer .akismet { | |
| 297 | + background: var(--jp-white, #fff); | |
| 298 | + border-radius: 5px; | |
| 299 | + box-shadow: 0 4px 40px 0 rgba(0, 0, 0, 0.04); | |
| 300 | + padding: 1em 1.5em 1em 1.5em; | |
| 301 | +} | |
| 302 | +#jetpack_summary_widget footer h3 { | |
| 303 | + font-size: 1em; | |
| 304 | + font-weight: 400; | |
| 305 | + margin: 0 0 0.25em 0; | |
| 306 | + padding: 0; | |
| 307 | +} | |
| 308 | +#jetpack_summary_widget footer p.blocked-count { | |
| 309 | + margin-top: 0; | |
| 310 | + margin-bottom: 6px; | |
| 311 | + margin-inline-end: 8px; | |
| 312 | + font-weight: 500; | |
| 313 | + font-size: 2rem; | |
| 314 | + display: inline-block; | |
| 315 | + padding: 0 4px; | |
| 316 | + min-width: 36px; | |
| 317 | + text-align: center; | |
| 318 | +} | |
| 319 | +#jetpack_summary_widget footer p { | |
| 320 | + margin: 0; | |
| 321 | + padding: 0; | |
| 322 | +} | |
| 323 | +#jetpack_summary_widget footer section { | |
| 324 | + margin: 0; | |
| 325 | + padding: 0; | |
| 326 | + text-align: center; | |
| 327 | +} | |
| 328 | +#jetpack_summary_widget footer .footer-links { | |
| 329 | + margin-block: 0 1.5em; | |
| 330 | + margin-inline-start: 1.5em; | |
| 331 | + margin-inline-end: 0; | |
| 332 | +} | |
| 333 | +#jetpack_summary_widget footer .footer-links svg { | |
| 334 | + height: 20px; | |
| 335 | +} | |
| 336 | +#jetpack_summary_widget footer .footer-links span { | |
| 337 | + float: inline-end; | |
| 338 | +} | |
| 339 | +#jetpack_summary_widget footer .button { | |
| 340 | + background: var(--jp-black, #000); | |
| 341 | + border-color: var(--jp-black, #000); | |
| 342 | + color: var(--jp-white, #fff); | |
| 343 | + margin-top: 8px; | |
| 344 | +} | |
| 345 | + | |
| 346 | +/* Hide the widget title's SVG in the Screen Options tab */ | |
| 347 | +.metabox-prefs label[for=jetpack_summary_widget-hide] span svg { | |
| 348 | + height: 1.2rem; | |
| 349 | + vertical-align: text-bottom; | |
| 350 | +} | |