admin-bar.css 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119
  1. html {
  2. --wp-admin--admin-bar--height: 32px;
  3. scroll-padding-top: var(--wp-admin--admin-bar--height);
  4. }
  5. #wpadminbar * {
  6. height: auto;
  7. width: auto;
  8. margin: 0;
  9. padding: 0;
  10. position: static;
  11. text-shadow: none;
  12. text-transform: none;
  13. letter-spacing: normal;
  14. font-size: 13px;
  15. font-weight: 400;
  16. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  17. line-height: 2.46153846;
  18. border-radius: 0;
  19. box-sizing: content-box;
  20. transition: none;
  21. -webkit-font-smoothing: subpixel-antialiased; /* Prevent Safari from switching to standard antialiasing on hover */
  22. -moz-osx-font-smoothing: auto; /* Prevent Firefox from inheriting from themes that use other values */
  23. }
  24. .rtl #wpadminbar * {
  25. font-family: Tahoma, sans-serif;
  26. }
  27. html:lang(he-il) .rtl #wpadminbar * {
  28. font-family: Arial, sans-serif;
  29. }
  30. #wpadminbar .ab-empty-item {
  31. cursor: default;
  32. }
  33. #wpadminbar .ab-empty-item,
  34. #wpadminbar a.ab-item,
  35. #wpadminbar > #wp-toolbar span.ab-label,
  36. #wpadminbar > #wp-toolbar span.noticon {
  37. color: #f0f0f1;
  38. }
  39. #wpadminbar #wp-admin-bar-site-name a.ab-item,
  40. #wpadminbar #wp-admin-bar-my-sites a.ab-item {
  41. white-space: nowrap;
  42. }
  43. #wpadminbar ul li:before,
  44. #wpadminbar ul li:after {
  45. content: normal;
  46. }
  47. #wpadminbar a,
  48. #wpadminbar a:hover,
  49. #wpadminbar a img,
  50. #wpadminbar a img:hover {
  51. border: none;
  52. text-decoration: none;
  53. background: none;
  54. box-shadow: none;
  55. }
  56. #wpadminbar a:focus,
  57. #wpadminbar a:active,
  58. #wpadminbar input[type="text"],
  59. #wpadminbar input[type="password"],
  60. #wpadminbar input[type="number"],
  61. #wpadminbar input[type="search"],
  62. #wpadminbar input[type="email"],
  63. #wpadminbar input[type="url"],
  64. #wpadminbar select,
  65. #wpadminbar textarea,
  66. #wpadminbar div {
  67. box-shadow: none;
  68. }
  69. #wpadminbar a:focus {
  70. /* Inherits transparent outline only visible in Windows High Contrast mode */
  71. outline-offset: -1px;
  72. }
  73. #wpadminbar {
  74. direction: ltr;
  75. color: #c3c4c7;
  76. font-size: 13px;
  77. font-weight: 400;
  78. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  79. line-height: 2.46153846;
  80. height: 32px;
  81. position: fixed;
  82. top: 0;
  83. left: 0;
  84. width: 100%;
  85. min-width: 600px; /* match the min-width of the body in wp-admin/css/common.css */
  86. z-index: 99999;
  87. background: #1d2327;
  88. }
  89. #wpadminbar .ab-sub-wrapper,
  90. #wpadminbar ul,
  91. #wpadminbar ul li {
  92. background: none;
  93. clear: none;
  94. list-style: none;
  95. margin: 0;
  96. padding: 0;
  97. position: relative;
  98. text-indent: 0;
  99. z-index: 99999;
  100. }
  101. #wpadminbar ul#wp-admin-bar-root-default>li {
  102. margin-right: 0;
  103. }
  104. #wpadminbar .quicklinks ul {
  105. text-align: left;
  106. }
  107. #wpadminbar li {
  108. float: left;
  109. }
  110. #wpadminbar .ab-empty-item {
  111. outline: none;
  112. }
  113. #wpadminbar .quicklinks .ab-top-secondary > li {
  114. float: right;
  115. }
  116. #wpadminbar .quicklinks a,
  117. #wpadminbar .quicklinks .ab-empty-item,
  118. #wpadminbar .shortlink-input {
  119. height: 32px;
  120. display: block;
  121. padding: 0 10px;
  122. margin: 0;
  123. }
  124. #wpadminbar .quicklinks > ul > li > a {
  125. padding: 0 8px 0 7px;
  126. }
  127. #wpadminbar .menupop .ab-sub-wrapper,
  128. #wpadminbar .shortlink-input {
  129. margin: 0;
  130. padding: 0;
  131. box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  132. background: #2c3338;
  133. display: none;
  134. position: absolute;
  135. float: none;
  136. }
  137. #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
  138. min-width: 100%;
  139. }
  140. #wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper {
  141. right: 0;
  142. left: auto;
  143. }
  144. #wpadminbar .ab-submenu {
  145. padding: 6px 0;
  146. }
  147. #wpadminbar .selected .shortlink-input {
  148. display: block;
  149. }
  150. #wpadminbar .quicklinks .menupop ul li {
  151. float: none;
  152. }
  153. #wpadminbar .quicklinks .menupop ul li a strong {
  154. font-weight: 600;
  155. }
  156. #wpadminbar .quicklinks .menupop ul li .ab-item,
  157. #wpadminbar .quicklinks .menupop ul li a strong,
  158. #wpadminbar .quicklinks .menupop.hover ul li .ab-item,
  159. #wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item,
  160. #wpadminbar .shortlink-input {
  161. line-height: 2;
  162. height: 26px;
  163. white-space: nowrap;
  164. min-width: 140px;
  165. }
  166. #wpadminbar .shortlink-input {
  167. width: 200px;
  168. }
  169. #wpadminbar.nojs li:hover > .ab-sub-wrapper,
  170. #wpadminbar li.hover > .ab-sub-wrapper {
  171. display: block;
  172. }
  173. #wpadminbar .menupop li:hover > .ab-sub-wrapper,
  174. #wpadminbar .menupop li.hover > .ab-sub-wrapper {
  175. margin-left: 100%;
  176. margin-top: -32px;
  177. }
  178. #wpadminbar .ab-top-secondary .menupop li:hover > .ab-sub-wrapper,
  179. #wpadminbar .ab-top-secondary .menupop li.hover > .ab-sub-wrapper {
  180. margin-left: 0;
  181. left: inherit;
  182. right: 100%;
  183. }
  184. #wpadminbar:not(.mobile) .ab-top-menu > li > .ab-item:focus,
  185. #wpadminbar.nojq .quicklinks .ab-top-menu > li > .ab-item:focus,
  186. #wpadminbar:not(.mobile) .ab-top-menu > li:hover > .ab-item,
  187. #wpadminbar .ab-top-menu > li.hover > .ab-item {
  188. background: #2c3338;
  189. color: #72aee6;
  190. }
  191. #wpadminbar:not(.mobile) > #wp-toolbar li:hover span.ab-label,
  192. #wpadminbar > #wp-toolbar li.hover span.ab-label,
  193. #wpadminbar:not(.mobile) > #wp-toolbar a:focus span.ab-label {
  194. color: #72aee6;
  195. }
  196. #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
  197. #wpadminbar .ab-icon,
  198. #wpadminbar .ab-item:before,
  199. .wp-admin-bar-arrow {
  200. position: relative;
  201. float: left;
  202. font: normal 20px/1 dashicons;
  203. speak: never;
  204. padding: 4px 0;
  205. -webkit-font-smoothing: antialiased;
  206. -moz-osx-font-smoothing: grayscale;
  207. background-image: none !important;
  208. margin-right: 6px;
  209. }
  210. #wpadminbar .ab-icon:before,
  211. #wpadminbar .ab-item:before,
  212. #wpadminbar #adminbarsearch:before {
  213. color: #a7aaad;
  214. color: rgba(240, 246, 252, 0.6);
  215. }
  216. #wpadminbar .ab-icon:before,
  217. #wpadminbar .ab-item:before,
  218. #wpadminbar #adminbarsearch:before {
  219. position: relative;
  220. transition: color .1s ease-in-out;
  221. }
  222. #wpadminbar .ab-label {
  223. display: inline-block;
  224. height: 32px;
  225. }
  226. #wpadminbar .ab-submenu .ab-item {
  227. color: #c3c4c7;
  228. color: rgba(240, 246, 252, 0.7);
  229. }
  230. #wpadminbar .quicklinks .menupop ul li a,
  231. #wpadminbar .quicklinks .menupop ul li a strong,
  232. #wpadminbar .quicklinks .menupop.hover ul li a,
  233. #wpadminbar.nojs .quicklinks .menupop:hover ul li a {
  234. color: #c3c4c7;
  235. color: rgba(240, 246, 252, 0.7);
  236. }
  237. #wpadminbar .quicklinks .menupop ul li a:hover,
  238. #wpadminbar .quicklinks .menupop ul li a:focus,
  239. #wpadminbar .quicklinks .menupop ul li a:hover strong,
  240. #wpadminbar .quicklinks .menupop ul li a:focus strong,
  241. #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a,
  242. #wpadminbar .quicklinks .menupop.hover ul li a:hover,
  243. #wpadminbar .quicklinks .menupop.hover ul li a:focus,
  244. #wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:hover,
  245. #wpadminbar .quicklinks .menupop.hover ul li div[tabindex]:focus,
  246. #wpadminbar.nojs .quicklinks .menupop:hover ul li a:hover,
  247. #wpadminbar.nojs .quicklinks .menupop:hover ul li a:focus,
  248. #wpadminbar li:hover .ab-icon:before,
  249. #wpadminbar li:hover .ab-item:before,
  250. #wpadminbar li a:focus .ab-icon:before,
  251. #wpadminbar li .ab-item:focus:before,
  252. #wpadminbar li .ab-item:focus .ab-icon:before,
  253. #wpadminbar li.hover .ab-icon:before,
  254. #wpadminbar li.hover .ab-item:before,
  255. #wpadminbar li:hover #adminbarsearch:before,
  256. #wpadminbar li #adminbarsearch.adminbar-focused:before {
  257. color: #72aee6;
  258. }
  259. #wpadminbar.mobile .quicklinks .ab-icon:before,
  260. #wpadminbar.mobile .quicklinks .ab-item:before {
  261. color: #c3c4c7;
  262. }
  263. #wpadminbar.mobile .quicklinks .hover .ab-icon:before,
  264. #wpadminbar.mobile .quicklinks .hover .ab-item:before {
  265. color: #72aee6;
  266. }
  267. #wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow:before,
  268. #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
  269. position: absolute;
  270. font: normal 17px/1 dashicons;
  271. speak: never;
  272. -webkit-font-smoothing: antialiased;
  273. -moz-osx-font-smoothing: grayscale;
  274. }
  275. #wpadminbar .menupop .menupop > .ab-item {
  276. display: block;
  277. padding-right: 2em;
  278. }
  279. #wpadminbar .menupop .menupop > .ab-item .wp-admin-bar-arrow:before {
  280. top: 1px;
  281. right: 10px;
  282. padding: 4px 0;
  283. content: "\f139";
  284. color: inherit;
  285. }
  286. #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item {
  287. padding-left: 2em;
  288. padding-right: 1em;
  289. }
  290. #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item .wp-admin-bar-arrow:before {
  291. top: 1px;
  292. left: 6px;
  293. content: "\f141";
  294. }
  295. #wpadminbar .quicklinks .menupop ul.ab-sub-secondary {
  296. display: block;
  297. position: relative;
  298. right: auto;
  299. margin: 0;
  300. box-shadow: none;
  301. }
  302. #wpadminbar .quicklinks .menupop ul.ab-sub-secondary,
  303. #wpadminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu {
  304. background: #3c434a;
  305. }
  306. #wpadminbar .quicklinks .menupop .ab-sub-secondary > li > a:hover,
  307. #wpadminbar .quicklinks .menupop .ab-sub-secondary > li .ab-item:focus a {
  308. color: #72aee6;
  309. }
  310. #wpadminbar .quicklinks a span#ab-updates {
  311. background: #f0f0f1;
  312. color: #2c3338;
  313. display: inline;
  314. padding: 2px 5px;
  315. font-size: 10px;
  316. font-weight: 600;
  317. border-radius: 10px;
  318. }
  319. #wpadminbar .quicklinks a:hover span#ab-updates {
  320. background: #fff;
  321. color: #000;
  322. }
  323. #wpadminbar .ab-top-secondary {
  324. float: right;
  325. }
  326. #wpadminbar ul li:last-child,
  327. #wpadminbar ul li:last-child .ab-item {
  328. box-shadow: none;
  329. }
  330. /**
  331. * Recovery Mode
  332. */
  333. #wpadminbar #wp-admin-bar-recovery-mode {
  334. color: #fff;
  335. background-color: #d63638;
  336. }
  337. #wpadminbar .ab-top-menu > #wp-admin-bar-recovery-mode.hover >.ab-item,
  338. #wpadminbar.nojq .quicklinks .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus,
  339. #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode:hover > .ab-item,
  340. #wpadminbar:not(.mobile) .ab-top-menu > #wp-admin-bar-recovery-mode > .ab-item:focus {
  341. color: #fff;
  342. background-color: #d63638;
  343. }
  344. /**
  345. * My Account
  346. */
  347. #wp-admin-bar-my-account > ul {
  348. min-width: 198px;
  349. }
  350. #wp-admin-bar-my-account:not(.with-avatar) > .ab-item {
  351. display: inline-block;
  352. }
  353. #wp-admin-bar-my-account > .ab-item:before {
  354. content: "\f110";
  355. top: 2px;
  356. float: right;
  357. margin-left: 6px;
  358. margin-right: 0;
  359. }
  360. #wp-admin-bar-my-account.with-avatar > .ab-item:before {
  361. display: none;
  362. content: none;
  363. }
  364. #wp-admin-bar-my-account.with-avatar > ul {
  365. min-width: 270px;
  366. }
  367. #wpadminbar #wp-admin-bar-user-actions > li {
  368. margin-left: 16px;
  369. margin-right: 16px;
  370. }
  371. #wpadminbar #wp-admin-bar-user-actions.ab-submenu {
  372. padding: 6px 0 12px;
  373. }
  374. #wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li {
  375. margin-left: 88px;
  376. }
  377. #wpadminbar #wp-admin-bar-user-info {
  378. margin-top: 6px;
  379. margin-bottom: 15px;
  380. height: auto;
  381. background: none;
  382. }
  383. #wp-admin-bar-user-info .avatar {
  384. position: absolute;
  385. left: -72px;
  386. top: 4px;
  387. width: 64px;
  388. height: 64px;
  389. }
  390. #wpadminbar #wp-admin-bar-user-info a {
  391. background: none;
  392. height: auto;
  393. }
  394. #wpadminbar #wp-admin-bar-user-info span {
  395. background: none;
  396. padding: 0;
  397. height: 18px;
  398. }
  399. #wpadminbar #wp-admin-bar-user-info .display-name,
  400. #wpadminbar #wp-admin-bar-user-info .username {
  401. display: block;
  402. }
  403. #wpadminbar #wp-admin-bar-user-info .username {
  404. color: #a7aaad;
  405. font-size: 11px;
  406. }
  407. #wpadminbar #wp-admin-bar-my-account.with-avatar > .ab-empty-item img,
  408. #wpadminbar #wp-admin-bar-my-account.with-avatar > a img {
  409. width: auto;
  410. height: 16px;
  411. padding: 0;
  412. border: 1px solid #8c8f94;
  413. background: #f0f0f1;
  414. line-height: 1.84615384;
  415. vertical-align: middle;
  416. margin: -4px 0 0 6px;
  417. float: none;
  418. display: inline;
  419. }
  420. /**
  421. * WP Logo
  422. */
  423. #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
  424. width: 15px;
  425. height: 20px;
  426. margin-right: 0;
  427. padding: 6px 0 5px;
  428. }
  429. #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
  430. padding: 0 7px;
  431. }
  432. #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
  433. content: "\f120";
  434. top: 2px;
  435. }
  436. /*
  437. * My Sites & Site Title
  438. */
  439. #wpadminbar .quicklinks li .blavatar {
  440. display: inline-block;
  441. vertical-align: middle;
  442. font: normal 16px/1 dashicons !important;
  443. speak: never;
  444. -webkit-font-smoothing: antialiased;
  445. -moz-osx-font-smoothing: grayscale;
  446. color: #f0f0f1;
  447. }
  448. #wpadminbar .quicklinks li a:hover .blavatar,
  449. #wpadminbar .quicklinks li a:focus .blavatar,
  450. #wpadminbar .quicklinks .ab-sub-wrapper .menupop.hover > a .blavatar {
  451. color: #72aee6;
  452. }
  453. #wpadminbar .quicklinks li img.blavatar,
  454. #wpadminbar .quicklinks li div.blavatar:before {
  455. height: 16px;
  456. width: 16px;
  457. margin: 0 8px 2px -2px;
  458. }
  459. #wpadminbar .quicklinks li div.blavatar:before {
  460. content: "\f120";
  461. display: inline-block;
  462. }
  463. #wpadminbar #wp-admin-bar-appearance {
  464. margin-top: -12px;
  465. }
  466. #wpadminbar #wp-admin-bar-my-sites > .ab-item:before,
  467. #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
  468. content: "\f541";
  469. top: 2px;
  470. }
  471. #wpadminbar #wp-admin-bar-site-editor > .ab-item:before {
  472. content: "\f100";
  473. top: 2px;
  474. }
  475. #wpadminbar #wp-admin-bar-customize > .ab-item:before {
  476. content: "\f540";
  477. top: 2px;
  478. }
  479. #wpadminbar #wp-admin-bar-edit > .ab-item:before {
  480. content: "\f464";
  481. top: 2px;
  482. }
  483. #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
  484. content: "\f226";
  485. }
  486. .wp-admin #wpadminbar #wp-admin-bar-site-name > .ab-item:before {
  487. content: "\f102";
  488. }
  489. /**
  490. * Comments
  491. */
  492. #wpadminbar #wp-admin-bar-comments .ab-icon {
  493. margin-right: 6px;
  494. }
  495. #wpadminbar #wp-admin-bar-comments .ab-icon:before {
  496. content: "\f101";
  497. top: 3px;
  498. }
  499. #wpadminbar #wp-admin-bar-comments .count-0 {
  500. opacity: .5;
  501. }
  502. /**
  503. * New Content
  504. */
  505. #wpadminbar #wp-admin-bar-new-content .ab-icon:before {
  506. content: "\f132";
  507. top: 4px;
  508. }
  509. /**
  510. * Updates
  511. */
  512. #wpadminbar #wp-admin-bar-updates .ab-icon:before {
  513. content: "\f463";
  514. top: 2px;
  515. }
  516. #wpadminbar #wp-admin-bar-updates.spin .ab-icon:before {
  517. display: inline-block;
  518. animation: rotation 2s infinite linear;
  519. }
  520. @media (prefers-reduced-motion: reduce) {
  521. #wpadminbar #wp-admin-bar-updates.spin .ab-icon:before {
  522. animation: none;
  523. }
  524. }
  525. /**
  526. * Search
  527. */
  528. #wpadminbar #wp-admin-bar-search .ab-item {
  529. padding: 0;
  530. background: transparent;
  531. }
  532. #wpadminbar #adminbarsearch {
  533. position: relative;
  534. height: 32px;
  535. padding: 0 2px;
  536. z-index: 1;
  537. }
  538. #wpadminbar #adminbarsearch:before {
  539. position: absolute;
  540. top: 6px;
  541. left: 5px;
  542. z-index: 20;
  543. font: normal 20px/1 dashicons !important;
  544. content: "\f179";
  545. speak: never;
  546. -webkit-font-smoothing: antialiased;
  547. -moz-osx-font-smoothing: grayscale;
  548. }
  549. /* The admin bar search field needs to reset many styles that might be inherited from the active Theme CSS. See ticket #40313. */
  550. #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
  551. display: inline-block;
  552. float: none;
  553. position: relative;
  554. z-index: 30;
  555. font-size: 13px;
  556. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  557. line-height: 1.84615384;
  558. text-indent: 0;
  559. height: 24px;
  560. width: 24px;
  561. max-width: none;
  562. padding: 0 3px 0 24px;
  563. margin: 0;
  564. color: #c3c4c7;
  565. background-color: rgba(255, 255, 255, 0);
  566. border: none;
  567. outline: none;
  568. cursor: pointer;
  569. box-shadow: none;
  570. box-sizing: border-box;
  571. transition-duration: 400ms;
  572. transition-property: width, background;
  573. transition-timing-function: ease;
  574. }
  575. #wpadminbar > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
  576. z-index: 10;
  577. color: #000;
  578. width: 200px;
  579. background-color: rgba(255, 255, 255, 0.9);
  580. cursor: text;
  581. border: 0;
  582. }
  583. #wpadminbar #adminbarsearch .adminbar-button {
  584. display: none;
  585. }
  586. /**
  587. * Customize support classes
  588. */
  589. .no-customize-support .hide-if-no-customize,
  590. .customize-support .hide-if-customize,
  591. .no-customize-support #wpadminbar .hide-if-no-customize,
  592. .no-customize-support.wp-core-ui .hide-if-no-customize,
  593. .no-customize-support .wp-core-ui .hide-if-no-customize,
  594. .customize-support #wpadminbar .hide-if-customize,
  595. .customize-support.wp-core-ui .hide-if-customize,
  596. .customize-support .wp-core-ui .hide-if-customize {
  597. display: none;
  598. }
  599. /* Skip link */
  600. #wpadminbar .screen-reader-text,
  601. #wpadminbar .screen-reader-text span {
  602. border: 0;
  603. clip: rect(1px, 1px, 1px, 1px);
  604. -webkit-clip-path: inset(50%);
  605. clip-path: inset(50%);
  606. height: 1px;
  607. margin: -1px;
  608. overflow: hidden;
  609. padding: 0;
  610. position: absolute;
  611. width: 1px;
  612. word-wrap: normal !important;
  613. }
  614. #wpadminbar .screen-reader-shortcut {
  615. position: absolute;
  616. top: -1000em;
  617. }
  618. #wpadminbar .screen-reader-shortcut:focus {
  619. left: 6px;
  620. top: 7px;
  621. height: auto;
  622. width: auto;
  623. display: block;
  624. font-size: 14px;
  625. font-weight: 600;
  626. padding: 15px 23px 14px;
  627. background: #f0f0f1;
  628. color: #2271b1;
  629. z-index: 100000;
  630. line-height: normal;
  631. text-decoration: none;
  632. box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  633. }
  634. @media screen and (max-width: 782px) {
  635. html {
  636. --wp-admin--admin-bar--height: 46px;
  637. }
  638. /* Toolbar Touchification*/
  639. html #wpadminbar {
  640. height: 46px;
  641. min-width: 240px; /* match the min-width of the body in wp-admin/css/common.css */
  642. }
  643. #wpadminbar * {
  644. font-size: 14px;
  645. font-weight: 400;
  646. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  647. line-height: 2.28571428;
  648. }
  649. #wpadminbar .quicklinks > ul > li > a,
  650. #wpadminbar .quicklinks .ab-empty-item {
  651. padding: 0;
  652. height: 46px;
  653. line-height: 3.28571428;
  654. width: auto;
  655. }
  656. #wpadminbar .ab-icon {
  657. font: 40px/1 dashicons !important;
  658. margin: 0;
  659. padding: 0;
  660. width: 52px;
  661. height: 46px;
  662. text-align: center;
  663. }
  664. #wpadminbar .ab-icon:before {
  665. text-align: center;
  666. }
  667. #wpadminbar .ab-submenu {
  668. padding: 0;
  669. }
  670. #wpadminbar #wp-admin-bar-site-name a.ab-item,
  671. #wpadminbar #wp-admin-bar-my-sites a.ab-item,
  672. #wpadminbar #wp-admin-bar-my-account a.ab-item {
  673. text-overflow: clip;
  674. }
  675. #wpadminbar .quicklinks .menupop ul li .ab-item,
  676. #wpadminbar .quicklinks .menupop ul li a strong,
  677. #wpadminbar .quicklinks .menupop.hover ul li .ab-item,
  678. #wpadminbar.nojs .quicklinks .menupop:hover ul li .ab-item,
  679. #wpadminbar .shortlink-input {
  680. line-height: 1.6;
  681. }
  682. #wpadminbar .ab-label {
  683. border: 0;
  684. clip: rect(1px, 1px, 1px, 1px);
  685. -webkit-clip-path: inset(50%);
  686. clip-path: inset(50%);
  687. height: 1px;
  688. margin: -1px;
  689. overflow: hidden;
  690. padding: 0;
  691. position: absolute;
  692. width: 1px;
  693. word-wrap: normal !important;
  694. }
  695. #wpadminbar .menupop li:hover > .ab-sub-wrapper,
  696. #wpadminbar .menupop li.hover > .ab-sub-wrapper {
  697. margin-top: -46px;
  698. }
  699. #wpadminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop > .ab-item {
  700. padding-right: 30px;
  701. }
  702. #wpadminbar .menupop .menupop > .ab-item:before {
  703. top: 10px;
  704. right: 6px;
  705. }
  706. #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper .ab-item {
  707. font-size: 16px;
  708. padding: 8px 16px;
  709. }
  710. #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper a:empty {
  711. display: none;
  712. }
  713. /* WP logo */
  714. #wpadminbar #wp-admin-bar-wp-logo > .ab-item {
  715. padding: 0;
  716. }
  717. #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon {
  718. padding: 0;
  719. width: 52px;
  720. height: 46px;
  721. text-align: center;
  722. vertical-align: top;
  723. }
  724. #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
  725. font: 28px/1 dashicons !important;
  726. top: -3px;
  727. }
  728. #wpadminbar .ab-icon,
  729. #wpadminbar .ab-item:before {
  730. padding: 0;
  731. }
  732. /* My Sites and "Site Title" menu */
  733. #wpadminbar #wp-admin-bar-my-sites > .ab-item,
  734. #wpadminbar #wp-admin-bar-site-name > .ab-item,
  735. #wpadminbar #wp-admin-bar-site-editor > .ab-item,
  736. #wpadminbar #wp-admin-bar-customize > .ab-item,
  737. #wpadminbar #wp-admin-bar-edit > .ab-item,
  738. #wpadminbar #wp-admin-bar-my-account > .ab-item {
  739. text-indent: 100%;
  740. white-space: nowrap;
  741. overflow: hidden;
  742. width: 52px;
  743. padding: 0;
  744. color: #a7aaad; /* @todo not needed? this text is hidden */
  745. position: relative;
  746. }
  747. #wpadminbar > #wp-toolbar > #wp-admin-bar-root-default .ab-icon,
  748. #wpadminbar .ab-icon,
  749. #wpadminbar .ab-item:before {
  750. padding: 0;
  751. margin-right: 0;
  752. }
  753. #wpadminbar #wp-admin-bar-edit > .ab-item:before,
  754. #wpadminbar #wp-admin-bar-my-sites > .ab-item:before,
  755. #wpadminbar #wp-admin-bar-site-name > .ab-item:before,
  756. #wpadminbar #wp-admin-bar-site-editor > .ab-item:before,
  757. #wpadminbar #wp-admin-bar-customize > .ab-item:before,
  758. #wpadminbar #wp-admin-bar-my-account > .ab-item:before {
  759. display: block;
  760. text-indent: 0;
  761. font: normal 32px/1 dashicons;
  762. speak: never;
  763. top: 7px;
  764. width: 52px;
  765. text-align: center;
  766. -webkit-font-smoothing: antialiased;
  767. -moz-osx-font-smoothing: grayscale;
  768. }
  769. #wpadminbar #wp-admin-bar-appearance {
  770. margin-top: 0;
  771. }
  772. #wpadminbar .quicklinks li .blavatar:before {
  773. display: none;
  774. }
  775. /* Search */
  776. #wpadminbar #wp-admin-bar-search {
  777. display: none;
  778. }
  779. /* New Content */
  780. #wpadminbar #wp-admin-bar-new-content .ab-icon:before {
  781. top: 0;
  782. line-height: 1.33333333;
  783. height: 46px !important;
  784. text-align: center;
  785. width: 52px;
  786. display: block;
  787. }
  788. /* Updates */
  789. #wpadminbar #wp-admin-bar-updates {
  790. text-align: center;
  791. }
  792. #wpadminbar #wp-admin-bar-updates .ab-icon:before {
  793. top: 3px;
  794. }
  795. /* Comments */
  796. #wpadminbar #wp-admin-bar-comments .ab-icon {
  797. margin: 0;
  798. }
  799. #wpadminbar #wp-admin-bar-comments .ab-icon:before {
  800. display: block;
  801. font-size: 34px;
  802. height: 46px;
  803. line-height: 1.38235294;
  804. top: 0;
  805. }
  806. /* My Account */
  807. #wpadminbar #wp-admin-bar-my-account > a {
  808. position: relative;
  809. white-space: nowrap;
  810. text-indent: 150%; /* More than 100% indention is needed since this element has padding */
  811. width: 28px;
  812. padding: 0 10px;
  813. overflow: hidden; /* Prevent link text from forcing horizontal scrolling on mobile */
  814. }
  815. #wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar > a img {
  816. position: absolute;
  817. top: 13px;
  818. right: 10px;
  819. width: 26px;
  820. height: 26px;
  821. }
  822. #wpadminbar #wp-admin-bar-user-actions.ab-submenu {
  823. padding: 0;
  824. }
  825. #wpadminbar #wp-admin-bar-user-actions.ab-submenu img.avatar {
  826. display: none;
  827. }
  828. #wpadminbar #wp-admin-bar-my-account.with-avatar #wp-admin-bar-user-actions > li {
  829. margin: 0;
  830. }
  831. #wpadminbar #wp-admin-bar-user-info .display-name {
  832. height: auto;
  833. font-size: 16px;
  834. line-height: 1.5;
  835. color: #f0f0f1;
  836. }
  837. #wpadminbar #wp-admin-bar-user-info a {
  838. padding-top: 4px;
  839. }
  840. #wpadminbar #wp-admin-bar-user-info .username {
  841. line-height: 0.8 !important;
  842. margin-bottom: -2px;
  843. }
  844. /* Show only default top level items */
  845. #wp-toolbar > ul > li {
  846. display: none;
  847. }
  848. #wpadminbar li#wp-admin-bar-menu-toggle,
  849. #wpadminbar li#wp-admin-bar-wp-logo,
  850. #wpadminbar li#wp-admin-bar-my-sites,
  851. #wpadminbar li#wp-admin-bar-updates,
  852. #wpadminbar li#wp-admin-bar-site-name,
  853. #wpadminbar li#wp-admin-bar-site-editor,
  854. #wpadminbar li#wp-admin-bar-customize,
  855. #wpadminbar li#wp-admin-bar-new-content,
  856. #wpadminbar li#wp-admin-bar-edit,
  857. #wpadminbar li#wp-admin-bar-comments,
  858. #wpadminbar li#wp-admin-bar-my-account {
  859. display: block;
  860. }
  861. /* Allow dropdown list items to appear normally */
  862. #wpadminbar li:hover ul li,
  863. #wpadminbar li.hover ul li,
  864. #wpadminbar li:hover ul li:hover ul li {
  865. display: list-item;
  866. }
  867. /* Override default min-width so dropdown lists aren't stretched
  868. to 100% viewport width at responsive sizes. */
  869. #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
  870. min-width: -moz-fit-content;
  871. min-width: fit-content;
  872. }
  873. #wpadminbar ul#wp-admin-bar-root-default > li {
  874. margin-right: 0;
  875. }
  876. /* Experimental fix for touch toolbar dropdown positioning */
  877. #wpadminbar .ab-top-menu,
  878. #wpadminbar .ab-top-secondary,
  879. #wpadminbar #wp-admin-bar-wp-logo,
  880. #wpadminbar #wp-admin-bar-my-sites,
  881. #wpadminbar #wp-admin-bar-site-name,
  882. #wpadminbar #wp-admin-bar-updates,
  883. #wpadminbar #wp-admin-bar-comments,
  884. #wpadminbar #wp-admin-bar-new-content,
  885. #wpadminbar #wp-admin-bar-edit,
  886. #wpadminbar #wp-admin-bar-my-account {
  887. position: static;
  888. }
  889. #wpadminbar #wp-admin-bar-my-account {
  890. float: right;
  891. }
  892. .network-admin #wpadminbar ul#wp-admin-bar-top-secondary > li#wp-admin-bar-my-account {
  893. margin-right: 0;
  894. }
  895. /* Realign arrows on taller responsive submenus */
  896. #wpadminbar .ab-top-secondary .menupop .menupop > .ab-item:before {
  897. top: 10px;
  898. left: 0;
  899. }
  900. }
  901. /* Smartphone */
  902. @media screen and (max-width: 600px) {
  903. #wpadminbar {
  904. position: absolute;
  905. }
  906. #wp-responsive-overlay {
  907. position: fixed;
  908. top: 0;
  909. left: 0;
  910. width: 100%;
  911. height: 100%;
  912. z-index: 400;
  913. }
  914. #wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
  915. width: 100%;
  916. left: 0;
  917. }
  918. #wpadminbar .menupop .menupop > .ab-item:before {
  919. display: none;
  920. }
  921. #wpadminbar #wp-admin-bar-wp-logo.menupop .ab-sub-wrapper {
  922. margin-left: 0;
  923. }
  924. #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
  925. margin: 0;
  926. width: 100%;
  927. top: auto;
  928. left: auto;
  929. position: relative;
  930. }
  931. #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper .ab-item {
  932. font-size: 16px;
  933. padding: 6px 15px 19px 30px;
  934. }
  935. #wpadminbar li:hover ul li ul li {
  936. display: list-item;
  937. }
  938. #wpadminbar li#wp-admin-bar-wp-logo,
  939. #wpadminbar li#wp-admin-bar-updates {
  940. display: none;
  941. }
  942. /* Make submenus full-width at this size */
  943. #wpadminbar .ab-top-menu > .menupop li > .ab-sub-wrapper {
  944. position: static;
  945. box-shadow: none;
  946. }
  947. }
  948. /* Very narrow screens */
  949. @media screen and (max-width: 400px) {
  950. #wpadminbar li#wp-admin-bar-comments {
  951. display: none;
  952. }
  953. }