admin-menu-nav-unification-rtl.css
2 years ago
admin-menu-nav-unification-rtl.min.css
2 years ago
admin-menu-nav-unification.css
2 years ago
admin-menu-nav-unification.min.css
2 years ago
admin-menu-rtl.css
2 years ago
admin-menu-rtl.min.css
2 years ago
admin-menu.css
2 years ago
admin-menu.js
2 years ago
admin-menu.min.css
2 years ago
class-admin-menu.php
2 years ago
class-atomic-admin-menu.php
2 years ago
class-base-admin-menu.php
2 years ago
class-dashboard-switcher-tracking.php
3 years ago
class-domain-only-admin-menu.php
2 years ago
class-jetpack-admin-menu.php
2 years ago
class-p2-admin-menu.php
4 years ago
class-wpcom-admin-menu.php
2 years ago
class-wpcom-email-subscription-checker.php
3 years ago
dashicon-set.php
4 years ago
globe-icon.svg
3 years ago
load.php
2 years ago
menu-mappings.php
3 years ago
admin-menu.css
514 lines
| 1 | #adminmenu { |
| 2 | margin: 0; |
| 3 | } |
| 4 | |
| 5 | /** |
| 6 | * Menu width |
| 7 | */ |
| 8 | #wpcontent, |
| 9 | #wpfooter { |
| 10 | margin-left: 272px; |
| 11 | } |
| 12 | |
| 13 | #adminmenuback, |
| 14 | #adminmenuwrap, |
| 15 | #adminmenu, |
| 16 | #adminmenu .wp-submenu { |
| 17 | width: 272px; |
| 18 | } |
| 19 | |
| 20 | #adminmenu .wp-submenu { |
| 21 | left: 272px; |
| 22 | } |
| 23 | |
| 24 | #adminmenu .wp-not-current-submenu .wp-submenu, |
| 25 | .folded #adminmenu .wp-has-current-submenu .wp-submenu { |
| 26 | min-width: 272px; |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Fixes Gutenberg in not fullscreen mode. |
| 31 | */ |
| 32 | @media (min-width: 783px) { |
| 33 | .interface-interface-skeleton, |
| 34 | .edit-post-layout .components-editor-notices__snackbar { |
| 35 | left: 272px; |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | @media (min-width: 961px) { |
| 40 | body:not(.folded).auto-fold .interface-interface-skeleton, |
| 41 | .auto-fold .edit-post-layout .components-editor-notices__snackbar, |
| 42 | .components-snackbar-list.edit-widgets-notices__snackbar, |
| 43 | .jp-dialogue-modern-full__container { |
| 44 | left: 272px; |
| 45 | } |
| 46 | |
| 47 | .global-notices { |
| 48 | max-width: calc( 100% - 48px - 272px ); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * Jetpack logo |
| 54 | */ |
| 55 | #adminmenu [class*="activity-log"] .wp-menu-image img { |
| 56 | padding-top: 7px; |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * Site Card |
| 61 | */ |
| 62 | #adminmenu .toplevel_page_site-card .wp-menu-name { |
| 63 | margin-left: 40px; /* icon width (32) + padding (8). */ |
| 64 | padding: 0; |
| 65 | } |
| 66 | |
| 67 | #adminmenu li.toplevel_page_site-card a { |
| 68 | padding: 10px 0 10px 8px; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Site Notices |
| 73 | */ |
| 74 | #adminmenu a.toplevel_page_site-notices:hover, |
| 75 | #adminmenu a.toplevel_page_site-notices:focus, |
| 76 | #adminmenu li.toplevel_page_site-notices:hover, |
| 77 | #adminmenu li.toplevel_page_site-notices:focus { |
| 78 | background-color: inherit !important; |
| 79 | color: inherit !important; |
| 80 | } |
| 81 | |
| 82 | #adminmenu li.toplevel_page_site-notices .wp-menu-image { |
| 83 | display: none; |
| 84 | } |
| 85 | |
| 86 | #adminmenu .toplevel_page_site-notices .wp-menu-image { |
| 87 | border-radius: 2px; |
| 88 | background-color: #fff; |
| 89 | } |
| 90 | |
| 91 | #adminmenu .toplevel_page_site-notices .wp-menu-image:before { |
| 92 | content: '\f534'; |
| 93 | font-family: 'dashicons'; |
| 94 | font-size: 20px; |
| 95 | line-height: 20px; |
| 96 | background-color: #a7aaad; |
| 97 | color: white; |
| 98 | border-radius: 50%; |
| 99 | margin: 5px; |
| 100 | padding: 0; |
| 101 | } |
| 102 | |
| 103 | #adminmenu .toplevel_page_site-notices:hover .wp-menu-image:before { |
| 104 | color: #fff; |
| 105 | } |
| 106 | |
| 107 | #adminmenu .toplevel_page_site-notices .upsell_banner { |
| 108 | display: flex; |
| 109 | flex-grow: 1; |
| 110 | flex-wrap: nowrap; |
| 111 | align-items: center; |
| 112 | justify-content: space-between; |
| 113 | position: relative; |
| 114 | width: 100%; |
| 115 | padding: 7px 12px; |
| 116 | left: -28px; |
| 117 | border-radius: 2px; |
| 118 | font-size: 12px; |
| 119 | line-height: 1.4; |
| 120 | hyphens: none; |
| 121 | } |
| 122 | |
| 123 | #adminmenu .toplevel_page_site-notices .upsell_banner .banner__info { |
| 124 | margin-right: 12px; |
| 125 | } |
| 126 | |
| 127 | #adminmenu .toplevel_page_site-notices .upsell_banner .button { |
| 128 | font-size: 12px; |
| 129 | line-height: 12px; |
| 130 | padding: 0 7px; |
| 131 | border: 0; |
| 132 | min-height: 26px; |
| 133 | } |
| 134 | |
| 135 | #adminmenu .toplevel_page_site-notices .upsell_banner svg.dismissible-card__close-icon { |
| 136 | height: 24px; |
| 137 | width: 24px; |
| 138 | margin-left: 10px; |
| 139 | } |
| 140 | |
| 141 | @media screen and (min-width: 782px) { |
| 142 | .folded #adminmenu .toplevel_page_site-notices .wp-menu-image { |
| 143 | display: block; |
| 144 | width: 30px; |
| 145 | } |
| 146 | |
| 147 | .folded #adminmenu .toplevel_page_site-notices { |
| 148 | height: 50px; |
| 149 | display: flex; |
| 150 | align-items: center; |
| 151 | justify-content: center; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | @media screen and (min-width: 782px) and (max-width: 960px){ |
| 156 | .auto-fold #adminmenu .toplevel_page_site-notices .wp-menu-image { |
| 157 | display: block; |
| 158 | width: 30px; |
| 159 | } |
| 160 | |
| 161 | .auto-fold #adminmenu .toplevel_page_site-notices { |
| 162 | height: 50px; |
| 163 | display: flex; |
| 164 | align-items: center; |
| 165 | justify-content: center; |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | /* Prevent box-shadow at the top of the sidebar */ |
| 170 | #adminmenu .site-switcher:hover, |
| 171 | #adminmenu .toplevel_page_site-card:hover, |
| 172 | #adminmenu .toplevel_page_site-notices:hover { |
| 173 | box-shadow: none; |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Site icon inline-styles for height and width are defined in set_site_icon_inline_styles |
| 178 | */ |
| 179 | #adminmenu .toplevel_page_site-card .wp-menu-image { |
| 180 | background-image: none; |
| 181 | background-position: center; |
| 182 | background-repeat: no-repeat; |
| 183 | background-size: 18px 18px; |
| 184 | transform: translateZ(0); |
| 185 | transition-property: background-image,background-color; |
| 186 | transition-duration: .2s; |
| 187 | } |
| 188 | |
| 189 | #adminmenu a.toplevel_page_site-card:hover, |
| 190 | #adminmenu li.toplevel_page_site-card:hover { |
| 191 | background-color: inherit; |
| 192 | } |
| 193 | |
| 194 | #adminmenu .toplevel_page_site-card img { |
| 195 | opacity: initial; |
| 196 | } |
| 197 | |
| 198 | #adminmenu .toplevel_page_site-card.has-site-icon img { |
| 199 | padding: 0; |
| 200 | } |
| 201 | |
| 202 | #adminmenu .toplevel_page_site-card:hover div.wp-menu-image, |
| 203 | #adminmenu .toplevel_page_site-card a:focus div.wp-menu-image { |
| 204 | background-image: url("data:image/svg+xml,%3Csvg class='gridicon gridicons-house' height='24' width='24' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg%3E%3Cpath fill='%23fff' d='M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z'/%3E%3C/g%3E%3C/svg%3E%0A"); |
| 205 | } |
| 206 | |
| 207 | #adminmenu .toplevel_page_site-card:not(.has-site-icon) .wp-menu-image { |
| 208 | background-color: #c3c4c7; |
| 209 | height: 32px; |
| 210 | width: 32px; |
| 211 | } |
| 212 | |
| 213 | #adminmenu .toplevel_page_site-card:not(.has-site-icon) .wp-menu-image img { |
| 214 | width: 18px; |
| 215 | height: 18px; |
| 216 | padding: 7px; |
| 217 | } |
| 218 | |
| 219 | #adminmenu .toplevel_page_site-card:hover div.wp-menu-image img, |
| 220 | #adminmenu .toplevel_page_site-card a:focus div.wp-menu-image img { |
| 221 | display: none; |
| 222 | } |
| 223 | |
| 224 | .site__info .site__title { |
| 225 | display: block; |
| 226 | font-size: 14px; |
| 227 | font-weight: 400; |
| 228 | line-height: 1.3; |
| 229 | } |
| 230 | |
| 231 | .site__info .site__domain { |
| 232 | display: block; |
| 233 | max-width: 95%; |
| 234 | font-size: 12px; |
| 235 | line-height: 1.4; |
| 236 | margin-top: 2px; |
| 237 | } |
| 238 | |
| 239 | .site__info .site__title, |
| 240 | .site__info .site__domain { |
| 241 | overflow: hidden; |
| 242 | white-space: nowrap; |
| 243 | } |
| 244 | .site__info .site__title::after, |
| 245 | .site__info .site__domain::after { |
| 246 | content: ""; |
| 247 | display: block; |
| 248 | position: absolute; |
| 249 | -webkit-touch-callout: none; |
| 250 | -webkit-user-select: none; |
| 251 | user-select: none; |
| 252 | pointer-events: none; |
| 253 | top: 0; |
| 254 | bottom: 0; |
| 255 | right: 0; |
| 256 | left: auto; |
| 257 | width: 20%; |
| 258 | height: auto; |
| 259 | } |
| 260 | |
| 261 | .site__info > .site__badge { |
| 262 | font-size: 12px; |
| 263 | border-radius: 12px; |
| 264 | clear: both; |
| 265 | display: inline-block; |
| 266 | margin-top: 6px; |
| 267 | margin-right: 3px; |
| 268 | padding: 1px 10px; |
| 269 | } |
| 270 | |
| 271 | .site__info > .site__badge.site__badge-staging { |
| 272 | background-color: #f0c930; |
| 273 | color: #4f3500; |
| 274 | } |
| 275 | |
| 276 | /** |
| 277 | * Inline text in a menu title |
| 278 | */ |
| 279 | .inline-text { |
| 280 | display: block !important; |
| 281 | position: absolute; |
| 282 | right: 20px; |
| 283 | top: 50%; |
| 284 | transform: translateY( -50% ); |
| 285 | opacity: 0.8; |
| 286 | } |
| 287 | |
| 288 | /** |
| 289 | * Stats |
| 290 | */ |
| 291 | [class*="toplevel_page_https://wordpress.com/stats/day"] .sidebar-unified__sparkline { |
| 292 | float: right; |
| 293 | margin-right: 8px; |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * Folded State |
| 298 | */ |
| 299 | .folded #adminmenu a.menu-top { |
| 300 | height: 31px; |
| 301 | } |
| 302 | |
| 303 | .folded #adminmenu li.toplevel_page_site-card a { |
| 304 | padding-left: 0; |
| 305 | } |
| 306 | |
| 307 | /* Auto-folding of the admin menu */ |
| 308 | @media only screen and (max-width: 960px) { |
| 309 | #adminmenu, |
| 310 | #adminmenuwrap, |
| 311 | #adminmenuback { |
| 312 | width: 272px; |
| 313 | } |
| 314 | |
| 315 | .auto-fold #adminmenu a[class*="toplevel_page_http"].wp-first-item { |
| 316 | height: auto; |
| 317 | } |
| 318 | |
| 319 | .wp-responsive-open #adminmenu a.menu-top { |
| 320 | height: auto; |
| 321 | } |
| 322 | |
| 323 | .auto-fold #adminmenu div.wp-menu-image { |
| 324 | width: 36px; |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | @media screen and (min-width: 782px) and (max-width: 960px) { |
| 329 | .auto-fold #adminmenu a.menu-top { |
| 330 | height: 34px; |
| 331 | } |
| 332 | |
| 333 | .auto-fold #adminmenu li.toplevel_page_site-card a { |
| 334 | height: 36px; |
| 335 | padding-left: 1px; |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | @media screen and (max-width: 782px) { |
| 340 | #adminmenu li.menu-top .wp-submenu>li>a, |
| 341 | .auto-fold #adminmenu li.menu-top .wp-submenu>li>a { |
| 342 | padding-left: 42px; |
| 343 | } |
| 344 | |
| 345 | .wp-responsive-open #wpbody { |
| 346 | right: inherit; |
| 347 | } |
| 348 | |
| 349 | .wp-responsive-open #wpcontent { |
| 350 | margin-left: 272px; |
| 351 | } |
| 352 | |
| 353 | .auto-fold #adminmenu, .auto-fold #adminmenuback, .auto-fold #adminmenuwrap { |
| 354 | width: 272px; |
| 355 | } |
| 356 | |
| 357 | .auto-fold #adminmenu a.site-switcher, |
| 358 | #adminmenu a.site-switcher { |
| 359 | font-size: 14px; |
| 360 | } |
| 361 | } |
| 362 | |
| 363 | @media only screen and (max-width: 660px) { |
| 364 | #adminmenuback, |
| 365 | #adminmenuwrap, |
| 366 | #adminmenu, |
| 367 | #adminmenu .wp-submenu, |
| 368 | .auto-fold #adminmenu, |
| 369 | .auto-fold #adminmenuback, |
| 370 | .auto-fold #adminmenuwrap { |
| 371 | width: 100%; |
| 372 | z-index: 171; |
| 373 | } |
| 374 | |
| 375 | .wp-responsive-open #wpcontent { |
| 376 | margin-left: 0; |
| 377 | } |
| 378 | |
| 379 | ul#adminmenu a.wp-has-current-submenu:after, |
| 380 | ul#adminmenu>li.current>a.current:after, |
| 381 | ul#adminmenu li:hover a.wp-has-current-submenu:after, |
| 382 | .auto-fold ul#adminmenu li:hover a.wp-has-current-submenu:after { |
| 383 | display: none; |
| 384 | } |
| 385 | |
| 386 | .auto-fold #adminmenu li.toplevel_page_site-card a { |
| 387 | padding: 18px 0 18px 12px; |
| 388 | } |
| 389 | } |
| 390 | |
| 391 | /* Dashboard Switcher */ |
| 392 | #view-link-wrap { |
| 393 | float: left; |
| 394 | margin: 0 0 0 6px; |
| 395 | } |
| 396 | |
| 397 | .screen-options-tab__wrapper { |
| 398 | position:relative |
| 399 | } |
| 400 | |
| 401 | .screen-options-tab__dropdown { |
| 402 | background-color: #fff; |
| 403 | border: 1px solid var(--color-neutral-5); |
| 404 | border-radius: 4px; |
| 405 | box-shadow: 0 4px 10px #0000001a; |
| 406 | padding: 3px; |
| 407 | position: absolute; |
| 408 | right: 20px; |
| 409 | top: 37px; |
| 410 | width:215px; |
| 411 | z-index: 9999; |
| 412 | } |
| 413 | |
| 414 | @media screen and (max-width: 782px) { |
| 415 | .screen-options-tab__dropdown { |
| 416 | right: 10px; |
| 417 | top: 47px; |
| 418 | } |
| 419 | } |
| 420 | |
| 421 | @media screen and (max-width: 600px) { |
| 422 | .screen-options-tab__dropdown { |
| 423 | top: 93px; |
| 424 | } |
| 425 | } |
| 426 | |
| 427 | .screen-switcher:not(:hover) .screen-switcher__button:nth-child(2) > strong { |
| 428 | color:var(--wp-admin-theme-color) |
| 429 | } |
| 430 | |
| 431 | .screen-switcher__button, a.screen-switcher__button { |
| 432 | background: transparent; |
| 433 | border: 1px solid #0000; |
| 434 | border-radius: 4px; |
| 435 | color: var(--color-text); |
| 436 | cursor: pointer; |
| 437 | display: inline-block; |
| 438 | font-size: .75rem; |
| 439 | line-height: normal; |
| 440 | text-decoration: none; |
| 441 | padding: 8px; |
| 442 | text-align:left |
| 443 | } |
| 444 | |
| 445 | .screen-switcher__button:nth-child(2), a.screen-switcher__button:nth-child(2) { |
| 446 | border-color: var(--wp-admin-theme-color); |
| 447 | margin-bottom:4px |
| 448 | } |
| 449 | |
| 450 | .screen-switcher__button:last-child, a.screen-switcher__button:last-child { |
| 451 | margin-bottom:0 |
| 452 | } |
| 453 | |
| 454 | .screen-switcher__button strong, a.screen-switcher__button strong { |
| 455 | display: block; |
| 456 | font-size: 13px; |
| 457 | margin-bottom:4px |
| 458 | } |
| 459 | |
| 460 | .screen-switcher__button:focus > strong, .screen-switcher__button:hover > strong, a.screen-switcher__button:focus > strong, a.screen-switcher__button:hover > strong { |
| 461 | color:var(--wp-admin-theme-color) |
| 462 | } |
| 463 | |
| 464 | /** Add new site button **/ |
| 465 | #adminmenu { |
| 466 | display: flex; |
| 467 | flex-direction: column; |
| 468 | } |
| 469 | #adminmenu .menu-top[class*="/start?ref=calypso-sidebar"] { |
| 470 | order: 99999; |
| 471 | } |
| 472 | |
| 473 | body:not(.folded) #adminmenu .menu-top[class*="/start?ref=calypso-sidebar"] { |
| 474 | padding: 8px; |
| 475 | width: auto; |
| 476 | } |
| 477 | |
| 478 | body:not(.folded) #adminmenu .menu-top[class*="/start?ref=calypso-sidebar"] a { |
| 479 | background: transparent; |
| 480 | border-color: var(--transparent-button-text-color, currentcolor); |
| 481 | display: flex; |
| 482 | justify-content: center; |
| 483 | margin-top: auto; |
| 484 | background: transparent; |
| 485 | border-style: solid; |
| 486 | border-width: 1px; |
| 487 | cursor: pointer; |
| 488 | margin: 0; |
| 489 | outline: 0; |
| 490 | overflow: hidden; |
| 491 | text-align: center; |
| 492 | text-overflow: ellipsis; |
| 493 | text-decoration: none; |
| 494 | vertical-align: top; |
| 495 | box-sizing: border-box; |
| 496 | font-size: 14px; |
| 497 | line-height: 22px; |
| 498 | border-radius: 2px; |
| 499 | padding: 8px 14px; |
| 500 | appearance: none; |
| 501 | } |
| 502 | |
| 503 | body:not(.folded) #adminmenu .menu-top[class*="/start?ref=calypso-sidebar"] a:hover { |
| 504 | box-shadow: none; |
| 505 | } |
| 506 | |
| 507 | body:not(.folded) #adminmenu .menu-top[class*="/start?ref=calypso-sidebar"] a .wp-menu-name { |
| 508 | padding: 0; |
| 509 | } |
| 510 | |
| 511 | body:not(.folded) #adminmenu .menu-top[class*="/start?ref=calypso-sidebar"] a .wp-menu-image { |
| 512 | display: none; |
| 513 | } |
| 514 |