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