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