customize-nav-menus.css 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884
  1. #customize-theme-controls #accordion-section-menu_locations {
  2. position: relative;
  3. margin-top: 30px;
  4. }
  5. #customize-theme-controls #accordion-section-menu_locations > .accordion-section-title {
  6. border-bottom-color: #dcdcde;
  7. margin-top: 15px;
  8. }
  9. #customize-theme-controls .customize-section-title-nav_menus-heading,
  10. #customize-theme-controls .customize-section-title-menu_locations-heading,
  11. #customize-theme-controls .customize-section-title-menu_locations-description {
  12. padding: 0 12px;
  13. }
  14. #customize-theme-controls .customize-control-description.customize-section-title-menu_locations-description {
  15. /* Override the default italic style for control descriptions */
  16. font-style: normal;
  17. }
  18. .menu-in-location,
  19. .menu-in-locations {
  20. display: block;
  21. font-weight: 600;
  22. font-size: 10px;
  23. }
  24. #customize-controls .theme-location-set,
  25. #customize-controls .control-section .accordion-section-title:focus .menu-in-location,
  26. #customize-controls .control-section .accordion-section-title:hover .menu-in-location {
  27. color: #50575e;
  28. }
  29. /* The `edit-menu` and `create-menu` buttons also use the `button-link` class. */
  30. .customize-control-nav_menu_location .edit-menu,
  31. .customize-control-nav_menu_location .create-menu {
  32. margin-left: 6px;
  33. vertical-align: middle;
  34. line-height: 2.2;
  35. }
  36. #customize-controls .customize-control-nav_menu_name {
  37. margin-bottom: 12px;
  38. }
  39. .customize-control-nav_menu_name p:last-of-type {
  40. margin-bottom: 0;
  41. }
  42. #customize-new-menu-submit {
  43. float: right;
  44. min-width: 85px;
  45. }
  46. .wp-customizer .menu-item-bar .menu-item-handle,
  47. .wp-customizer .menu-item-settings,
  48. .wp-customizer .menu-item-settings .description-thin {
  49. box-sizing: border-box;
  50. }
  51. .wp-customizer .menu-item-bar {
  52. margin: 0;
  53. }
  54. .wp-customizer .menu-item-bar .menu-item-handle {
  55. width: 100%;
  56. max-width: 100%;
  57. background: #fff;
  58. }
  59. .wp-customizer .menu-item-handle .item-title {
  60. margin-right: 0;
  61. }
  62. .wp-customizer .menu-item-handle .item-type {
  63. padding: 1px 21px 0 5px;
  64. float: right;
  65. text-align: right;
  66. }
  67. .wp-customizer .menu-item-handle:hover {
  68. z-index: 8;
  69. }
  70. .customize-control-nav_menu_item.has-notifications .menu-item-handle {
  71. border-left: 4px solid #72aee6;
  72. }
  73. .wp-customizer .menu-item-settings {
  74. max-width: 100%;
  75. overflow: hidden;
  76. z-index: 8;
  77. padding: 10px;
  78. background: #f0f0f1;
  79. border: 1px solid #8c8f94;
  80. border-top: none;
  81. }
  82. .wp-customizer .menu-item-settings .description-thin {
  83. width: 100%;
  84. height: auto;
  85. margin: 0 0 8px;
  86. }
  87. .wp-customizer .menu-item-settings input[type="text"] {
  88. width: 100%;
  89. }
  90. .wp-customizer .menu-item-settings .submitbox {
  91. margin: 0;
  92. padding: 0;
  93. }
  94. .wp-customizer .menu-item-settings .link-to-original {
  95. padding: 5px 0;
  96. border: none;
  97. font-style: normal;
  98. margin: 0;
  99. width: 100%;
  100. }
  101. .wp-customizer .menu-item .submitbox .submitdelete {
  102. float: left;
  103. margin: 6px 0 0;
  104. padding: 0;
  105. cursor: pointer;
  106. }
  107. /**
  108. * Menu items reordering styles
  109. */
  110. .menu-item-reorder-nav {
  111. display: none;
  112. background-color: #fff;
  113. position: absolute;
  114. top: 0;
  115. right: 0;
  116. }
  117. .menus-move-left:before {
  118. content: "\f341";
  119. }
  120. .menus-move-right:before {
  121. content: "\f345";
  122. }
  123. .reordering .menu-item .item-controls,
  124. .reordering .menu-item .item-type {
  125. display: none;
  126. }
  127. .reordering .menu-item-reorder-nav {
  128. display: block;
  129. }
  130. .customize-control input.menu-name-field {
  131. width: 100%; /* Override the 98% default for customizer inputs, to align with the size of menu items. */
  132. }
  133. .wp-customizer .menu-item .item-edit {
  134. position: absolute;
  135. right: -19px;
  136. top: 2px;
  137. display: block;
  138. width: 30px;
  139. height: 38px;
  140. margin-right: 0 !important;
  141. box-shadow: none;
  142. outline: none;
  143. overflow: hidden;
  144. cursor: pointer;
  145. text-align: center;
  146. }
  147. .wp-customizer .menu-item.menu-item-edit-active .item-edit .toggle-indicator:before {
  148. content: "\f142";
  149. }
  150. .wp-customizer .menu-item-settings p.description {
  151. font-style: normal;
  152. }
  153. .wp-customizer .menu-settings dl {
  154. margin: 12px 0 0;
  155. padding: 0;
  156. }
  157. .wp-customizer .menu-settings .checkbox-input {
  158. margin-top: 8px;
  159. }
  160. .wp-customizer .menu-settings .menu-theme-locations {
  161. border-top: 1px solid #c3c4c7;
  162. }
  163. .wp-customizer .menu-settings {
  164. margin-top: 36px;
  165. border-top: none;
  166. }
  167. .wp-customizer .menu-location-settings {
  168. margin-top: 12px;
  169. border-top: none;
  170. }
  171. .wp-customizer .control-section-nav_menu .menu-location-settings {
  172. margin-top: 24px;
  173. border-top: 1px solid #dcdcde;
  174. }
  175. .wp-customizer .control-section-nav_menu .menu-location-settings,
  176. .customize-control-nav_menu_auto_add {
  177. padding-top: 12px;
  178. }
  179. .menu-location-settings .customize-control-checkbox .theme-location-set {
  180. line-height: 1;
  181. }
  182. .customize-control-nav_menu_auto_add label {
  183. vertical-align: top;
  184. }
  185. .menu-location-settings .new-menu-locations-widget-note {
  186. display: block;
  187. }
  188. .customize-control-menu {
  189. margin-top: 4px;
  190. }
  191. #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle {
  192. color: #50575e;
  193. }
  194. /* Screen Options */
  195. .customize-screen-options-toggle {
  196. background: none;
  197. border: none;
  198. color: #50575e;
  199. cursor: pointer;
  200. margin: 0;
  201. padding: 20px;
  202. position: absolute;
  203. right: 0;
  204. top: 30px;
  205. }
  206. #customize-controls .customize-info .customize-help-toggle {
  207. padding: 20px;
  208. }
  209. #customize-controls .customize-info .customize-help-toggle:before {
  210. padding: 4px;
  211. }
  212. .customize-screen-options-toggle:hover,
  213. .customize-screen-options-toggle:active,
  214. .customize-screen-options-toggle:focus,
  215. .active-menu-screen-options .customize-screen-options-toggle,
  216. #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:hover,
  217. #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:active,
  218. #customize-controls .customize-info.open.active-menu-screen-options .customize-help-toggle:focus {
  219. color: #2271b1;
  220. }
  221. .customize-screen-options-toggle:focus,
  222. #customize-controls .customize-info .customize-help-toggle:focus {
  223. /* Only visible in Windows High Contrast mode */
  224. outline: 1px solid transparent;
  225. }
  226. .customize-screen-options-toggle:before {
  227. -moz-osx-font-smoothing: grayscale;
  228. border: none;
  229. content: "\f111";
  230. display: block;
  231. font: 18px/1 dashicons;
  232. padding: 5px;
  233. text-align: center;
  234. text-decoration: none !important;
  235. text-indent: 0;
  236. left: 6px;
  237. position: absolute;
  238. top: 6px;
  239. }
  240. .customize-screen-options-toggle:focus:before,
  241. #customize-controls .customize-info .customize-help-toggle:focus:before {
  242. border-radius: 100%;
  243. }
  244. .wp-customizer #screen-options-wrap {
  245. display: none;
  246. background: #fff;
  247. border-top: 1px solid #dcdcde;
  248. padding: 4px 15px 15px;
  249. }
  250. .wp-customizer .metabox-prefs label {
  251. display: block;
  252. padding-right: 0;
  253. line-height: 30px;
  254. }
  255. /* rework the arrow indicator implementation for NVDA bug same as #32715 */
  256. .wp-customizer .toggle-indicator {
  257. display: inline-block;
  258. font-size: 20px;
  259. line-height: 1;
  260. }
  261. .rtl .wp-customizer .toggle-indicator {
  262. text-indent: 1px; /* account for the dashicon alignment */
  263. }
  264. .wp-customizer .menu-item .item-edit .toggle-indicator:before,
  265. #available-menu-items .accordion-section-title .toggle-indicator:before {
  266. content: "\f140";
  267. display: block;
  268. padding: 1px 2px 1px 0;
  269. speak: never;
  270. border-radius: 50%;
  271. color: #787c82;
  272. font: normal 20px/1 dashicons;
  273. -webkit-font-smoothing: antialiased;
  274. -moz-osx-font-smoothing: grayscale;
  275. text-decoration: none !important;
  276. }
  277. .control-section-nav_menu .field-link-target,
  278. .control-section-nav_menu .field-title-attribute,
  279. .control-section-nav_menu .field-css-classes,
  280. .control-section-nav_menu .field-xfn,
  281. .control-section-nav_menu .field-description {
  282. display: none;
  283. }
  284. .control-section-nav_menu.field-link-target-active .field-link-target,
  285. .control-section-nav_menu.field-title-attribute-active .field-title-attribute,
  286. .control-section-nav_menu.field-css-classes-active .field-css-classes,
  287. .control-section-nav_menu.field-xfn-active .field-xfn,
  288. .control-section-nav_menu.field-description-active .field-description {
  289. display: block;
  290. }
  291. /* WARNING: The 20px factor is hard-coded in JS. */
  292. .menu-item-depth-0 { margin-left: 0; }
  293. .menu-item-depth-1 { margin-left: 20px; }
  294. .menu-item-depth-2 { margin-left: 40px; }
  295. .menu-item-depth-3 { margin-left: 60px; }
  296. .menu-item-depth-4 { margin-left: 80px; }
  297. .menu-item-depth-5 { margin-left: 100px; }
  298. .menu-item-depth-6 { margin-left: 120px; }
  299. .menu-item-depth-7 { margin-left: 140px; }
  300. .menu-item-depth-8 { margin-left: 160px; } /* Not likely to be used or useful beyond this depth */
  301. .menu-item-depth-9 { margin-left: 180px; }
  302. .menu-item-depth-10 { margin-left: 200px; }
  303. .menu-item-depth-11 { margin-left: 220px; }
  304. /* @todo handle .menu-item-settings width */
  305. .menu-item-depth-0 > .menu-item-bar { margin-right: 0; }
  306. .menu-item-depth-1 > .menu-item-bar { margin-right: 20px; }
  307. .menu-item-depth-2 > .menu-item-bar { margin-right: 40px; }
  308. .menu-item-depth-3 > .menu-item-bar { margin-right: 60px; }
  309. .menu-item-depth-4 > .menu-item-bar { margin-right: 80px; }
  310. .menu-item-depth-5 > .menu-item-bar { margin-right: 100px; }
  311. .menu-item-depth-6 > .menu-item-bar { margin-right: 120px; }
  312. .menu-item-depth-7 > .menu-item-bar { margin-right: 140px; }
  313. .menu-item-depth-8 > .menu-item-bar { margin-right: 160px; }
  314. .menu-item-depth-9 > .menu-item-bar { margin-right: 180px; }
  315. .menu-item-depth-10 > .menu-item-bar { margin-right: 200px; }
  316. .menu-item-depth-11 > .menu-item-bar { margin-right: 220px; }
  317. /* Submenu left margin. */
  318. .menu-item-depth-0 .menu-item-transport { margin-left: 0; }
  319. .menu-item-depth-1 .menu-item-transport { margin-left: -20px; }
  320. .menu-item-depth-3 .menu-item-transport { margin-left: -60px; }
  321. .menu-item-depth-4 .menu-item-transport { margin-left: -80px; }
  322. .menu-item-depth-2 .menu-item-transport { margin-left: -40px; }
  323. .menu-item-depth-5 .menu-item-transport { margin-left: -100px; }
  324. .menu-item-depth-6 .menu-item-transport { margin-left: -120px; }
  325. .menu-item-depth-7 .menu-item-transport { margin-left: -140px; }
  326. .menu-item-depth-8 .menu-item-transport { margin-left: -160px; }
  327. .menu-item-depth-9 .menu-item-transport { margin-left: -180px; }
  328. .menu-item-depth-10 .menu-item-transport { margin-left: -200px; }
  329. .menu-item-depth-11 .menu-item-transport { margin-left: -220px; }
  330. /* WARNING: The 20px factor is hard-coded in JS. */
  331. .reordering .menu-item-depth-0 { margin-left: 0; }
  332. .reordering .menu-item-depth-1 { margin-left: 15px; }
  333. .reordering .menu-item-depth-2 { margin-left: 30px; }
  334. .reordering .menu-item-depth-3 { margin-left: 45px; }
  335. .reordering .menu-item-depth-4 { margin-left: 60px; }
  336. .reordering .menu-item-depth-5 { margin-left: 75px; }
  337. .reordering .menu-item-depth-6 { margin-left: 90px; }
  338. .reordering .menu-item-depth-7 { margin-left: 105px; }
  339. .reordering .menu-item-depth-8 { margin-left: 120px; } /* Not likely to be used or useful beyond this depth */
  340. .reordering .menu-item-depth-9 { margin-left: 135px; }
  341. .reordering .menu-item-depth-10 { margin-left: 150px; }
  342. .reordering .menu-item-depth-11 { margin-left: 165px; }
  343. .reordering .menu-item-depth-0 > .menu-item-bar { margin-right: 0; }
  344. .reordering .menu-item-depth-1 > .menu-item-bar { margin-right: 15px; }
  345. .reordering .menu-item-depth-2 > .menu-item-bar { margin-right: 30px; }
  346. .reordering .menu-item-depth-3 > .menu-item-bar { margin-right: 45px; }
  347. .reordering .menu-item-depth-4 > .menu-item-bar { margin-right: 60px; }
  348. .reordering .menu-item-depth-5 > .menu-item-bar { margin-right: 75px; }
  349. .reordering .menu-item-depth-6 > .menu-item-bar { margin-right: 90px; }
  350. .reordering .menu-item-depth-7 > .menu-item-bar { margin-right: 105px; }
  351. .reordering .menu-item-depth-8 > .menu-item-bar { margin-right: 120px; }
  352. .reordering .menu-item-depth-9 > .menu-item-bar { margin-right: 135px; }
  353. .reordering .menu-item-depth-10 > .menu-item-bar { margin-right: 150px; }
  354. .reordering .menu-item-depth-11 > .menu-item-bar { margin-right: 165px; }
  355. .control-section-nav_menu.menu .menu-item-edit-active {
  356. margin-left: 0;
  357. }
  358. .control-section-nav_menu.menu .menu-item-edit-active .menu-item-bar {
  359. margin-right: 0;
  360. }
  361. .control-section-nav_menu.menu .sortable-placeholder {
  362. margin-top: 0;
  363. margin-bottom: 1px;
  364. max-width: calc(100% - 2px);
  365. float: left;
  366. display: list-item;
  367. border-color: #a7aaad;
  368. }
  369. .menu-item-transport li.customize-control {
  370. float: none;
  371. }
  372. .control-section-nav_menu.menu ul.menu-item-transport .menu-item-bar {
  373. margin-top: 0;
  374. }
  375. /**
  376. * Add-menu-items mode
  377. */
  378. .adding-menu-items .control-section {
  379. opacity: .4;
  380. }
  381. .adding-menu-items .control-panel.control-section,
  382. .adding-menu-items .control-section.open {
  383. opacity: 1;
  384. }
  385. .menu-item-bar .item-delete {
  386. color: #d63638;
  387. position: absolute;
  388. top: 2px;
  389. right: -19px;
  390. width: 30px;
  391. height: 38px;
  392. cursor: pointer;
  393. display: none;
  394. }
  395. .menu-item-bar .item-delete:before {
  396. content: "\f335";
  397. position: absolute;
  398. top: 9px;
  399. left: 5px;
  400. border-radius: 50%;
  401. font: normal 20px/1 dashicons;
  402. -webkit-font-smoothing: antialiased;
  403. -moz-osx-font-smoothing: grayscale;
  404. }
  405. .menu-item-bar .item-delete:hover,
  406. .menu-item-bar .item-delete:focus {
  407. box-shadow: none;
  408. outline: none;
  409. color: #d63638;
  410. }
  411. .adding-menu-items .menu-item-bar .item-edit {
  412. display: none;
  413. }
  414. .adding-menu-items .menu-item-bar .item-delete {
  415. display: block;
  416. }
  417. /**
  418. * Styles for menu-item addition panel
  419. */
  420. #available-menu-items.opening {
  421. overflow-y: hidden; /* avoid scrollbar jitter with animating heights */
  422. }
  423. #available-menu-items #available-menu-items-search.open {
  424. height: 100%;
  425. border-bottom: none;
  426. }
  427. #available-menu-items .accordion-section-title {
  428. border-left: none;
  429. border-right: none;
  430. background: #fff;
  431. transition: background-color 0.15s;
  432. /* Reset the value inherited from the base .accordion-section-title style. Ticket #37589. */
  433. -webkit-user-select: auto;
  434. user-select: auto;
  435. }
  436. #available-menu-items .open .accordion-section-title,
  437. #available-menu-items #available-menu-items-search .accordion-section-title {
  438. background: #f0f0f1;
  439. }
  440. /* rework the arrow indicator implementation for NVDA bug see #32715 */
  441. #available-menu-items .accordion-section-title:after {
  442. content: none !important;
  443. }
  444. #available-menu-items .accordion-section-title:hover .toggle-indicator:before,
  445. #available-menu-items .button-link:hover .toggle-indicator:before,
  446. #available-menu-items .button-link:focus .toggle-indicator:before {
  447. color: #1d2327;
  448. }
  449. #available-menu-items .open .accordion-section-title .toggle-indicator:before {
  450. content: "\f142";
  451. color: #1d2327;
  452. }
  453. #available-menu-items .available-menu-items-list {
  454. overflow-y: auto;
  455. max-height: 200px; /* This gets set in JS to fit the screen size, and based on # of sections. */
  456. background: transparent;
  457. }
  458. #available-menu-items .accordion-section-title button {
  459. display: block;
  460. width: 28px;
  461. height: 35px;
  462. position: absolute;
  463. top: 5px;
  464. right: 5px;
  465. box-shadow: none;
  466. outline: none;
  467. cursor: pointer;
  468. text-align: center;
  469. }
  470. #available-menu-items .accordion-section-title .no-items,
  471. #available-menu-items .cannot-expand .accordion-section-title .spinner,
  472. #available-menu-items .cannot-expand .accordion-section-title > button {
  473. display: none;
  474. }
  475. #available-menu-items-search.cannot-expand .accordion-section-title .spinner {
  476. display: block;
  477. }
  478. #available-menu-items .cannot-expand .accordion-section-title .no-items {
  479. float: right;
  480. color: #50575e;
  481. font-weight: 400;
  482. margin-left: 5px;
  483. }
  484. #available-menu-items .accordion-section-content {
  485. max-height: 290px;
  486. margin: 0;
  487. padding: 0;
  488. position: relative;
  489. background: transparent;
  490. }
  491. #available-menu-items .accordion-section-content .available-menu-items-list {
  492. margin: 0 0 45px;
  493. padding: 1px 15px 15px;
  494. }
  495. #available-menu-items .accordion-section-content .available-menu-items-list:only-child { /* Types that do not support new items for the current user */
  496. margin-bottom: 0;
  497. }
  498. #new-custom-menu-item .accordion-section-content {
  499. padding: 0 15px 15px;
  500. }
  501. #available-menu-items .menu-item-tpl {
  502. margin: 0;
  503. }
  504. #custom-menu-item-name.invalid,
  505. #custom-menu-item-url.invalid,
  506. .edit-menu-item-url.invalid,
  507. .menu-name-field.invalid,
  508. .menu-name-field.invalid:focus,
  509. #available-menu-items .new-content-item .create-item-input.invalid,
  510. #available-menu-items .new-content-item .create-item-input.invalid:focus {
  511. border: 1px solid #d63638;
  512. }
  513. #available-menu-items .menu-item-handle .item-type {
  514. padding-right: 0;
  515. }
  516. #available-menu-items .menu-item-handle .item-title {
  517. padding-left: 20px;
  518. }
  519. #available-menu-items .menu-item-handle {
  520. cursor: pointer;
  521. }
  522. #available-menu-items .menu-item-handle {
  523. box-shadow: none;
  524. margin-top: -1px;
  525. }
  526. #available-menu-items .menu-item-handle:hover {
  527. z-index: 1;
  528. }
  529. #available-menu-items .item-title h4 {
  530. padding: 0 0 5px;
  531. font-size: 14px;
  532. }
  533. #available-menu-items .item-add {
  534. position: absolute;
  535. top: 1px;
  536. left: 1px;
  537. color: #8c8f94;
  538. width: 30px;
  539. height: 38px;
  540. box-shadow: none;
  541. outline: none;
  542. cursor: pointer;
  543. text-align: center;
  544. }
  545. #available-menu-items .menu-item-handle .item-add:focus {
  546. color: #1d2327;
  547. }
  548. #available-menu-items .item-add:before {
  549. content: "\f543";
  550. position: relative;
  551. left: 2px;
  552. top: 3px;
  553. display: inline-block;
  554. height: 20px;
  555. border-radius: 50%;
  556. font: normal 20px/1.05 dashicons; /* line height is to account for the dashicon's vertical alignment */
  557. }
  558. #available-menu-items .menu-item-handle.item-added .item-type,
  559. #available-menu-items .menu-item-handle.item-added .item-title,
  560. #available-menu-items .menu-item-handle.item-added:hover .item-add,
  561. #available-menu-items .menu-item-handle.item-added .item-add:focus {
  562. color: #8c8f94;
  563. }
  564. #available-menu-items .menu-item-handle.item-added .item-add:before {
  565. content: "\f147";
  566. }
  567. #available-menu-items .accordion-section-title.loading .spinner,
  568. #available-menu-items-search.loading .accordion-section-title .spinner {
  569. visibility: visible;
  570. margin: 0 20px;
  571. }
  572. #available-menu-items-search .spinner {
  573. position: absolute;
  574. top: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
  575. right: 21px;
  576. margin: 0 !important;
  577. }
  578. /* search results list */
  579. #available-menu-items #available-menu-items-search .accordion-section-content {
  580. position: absolute;
  581. left: 0;
  582. top: 60px; /* below title div / search input */
  583. bottom: 0; /* 100% height that still triggers lazy load */
  584. max-height: none;
  585. width: 100%;
  586. padding: 1px 15px 15px;
  587. box-sizing: border-box;
  588. }
  589. #available-menu-items-search .nothing-found {
  590. /* Compensate the 1px top padding of the container. */
  591. margin-top: -1px;
  592. }
  593. #available-menu-items-search .accordion-section-title:after {
  594. display: none;
  595. }
  596. #available-menu-items-search .accordion-section-content:empty {
  597. min-height: 0;
  598. padding: 0;
  599. }
  600. #available-menu-items-search.loading .accordion-section-content div {
  601. opacity: .5;
  602. }
  603. #available-menu-items-search.loading.loading-more .accordion-section-content div {
  604. opacity: 1;
  605. }
  606. #customize-preview {
  607. transition: all 0.2s;
  608. }
  609. body.adding-menu-items #available-menu-items {
  610. left: 0;
  611. visibility: visible;
  612. }
  613. body.adding-menu-items .wp-full-overlay-main {
  614. left: 300px;
  615. }
  616. body.adding-menu-items #customize-preview {
  617. opacity: 0.4;
  618. }
  619. body.adding-menu-items #customize-preview iframe {
  620. pointer-events: none;
  621. }
  622. .menu-item-handle .spinner {
  623. display: none;
  624. float: left;
  625. margin: 0 8px 0 0;
  626. }
  627. .nav-menu-inserted-item-loading .spinner {
  628. display: block;
  629. }
  630. .nav-menu-inserted-item-loading .menu-item-handle .item-type {
  631. padding: 0 0 0 8px;
  632. }
  633. .nav-menu-inserted-item-loading .menu-item-handle,
  634. .added-menu-item .menu-item-handle.loading {
  635. padding: 10px 15px 10px 8px;
  636. cursor: default;
  637. opacity: .5;
  638. background: #fff;
  639. color: #787c82;
  640. }
  641. .added-menu-item .menu-item-handle {
  642. transition-property: opacity, background, color;
  643. transition-duration: 1.25s;
  644. transition-timing-function: cubic-bezier( .25, -2.5, .75, 8 ); /* Replacement for .hide().fadeIn('slow') in JS to add emphasis when it's loaded. */
  645. }
  646. /* Add/delete Menus */
  647. #customize-theme-controls .control-panel-content .control-section-nav_menu:nth-last-child(2) .accordion-section-title {
  648. border-bottom-color: #dcdcde;
  649. }
  650. /* @todo update selector */
  651. #accordion-section-add_menu {
  652. margin: 15px 12px;
  653. }
  654. #accordion-section-add_menu h3 {
  655. text-align: right;
  656. }
  657. #accordion-section-add_menu h3,
  658. #accordion-section-add_menu .customize-add-menu-button {
  659. margin: 0;
  660. }
  661. #accordion-section-add_menu .customize-add-menu-button {
  662. font-weight: 400;
  663. }
  664. #create-new-menu-submit {
  665. float: right;
  666. margin: 0 0 12px;
  667. }
  668. .menu-delete-item {
  669. float: left;
  670. padding: 1em 0;
  671. width: 100%;
  672. }
  673. .assigned-menu-locations-title p {
  674. margin: 0 0 8px;
  675. }
  676. li.assigned-to-menu-location .menu-delete-item {
  677. display: none;
  678. }
  679. li.assigned-to-menu-location .add-new-menu-item {
  680. margin-bottom: 1em;
  681. }
  682. .menu-item-handle {
  683. margin-top: -1px;
  684. }
  685. .ui-sortable-disabled .menu-item-handle {
  686. cursor: default;
  687. }
  688. .menu-item-handle:hover {
  689. position: relative;
  690. z-index: 10;
  691. color: #2271b1;
  692. }
  693. .menu-item-handle:hover .item-type,
  694. .menu-item-handle:hover .item-edit,
  695. #available-menu-items .menu-item-handle:hover .item-add {
  696. color: #2271b1;
  697. }
  698. .menu-item-edit-active .menu-item-handle {
  699. border-color: #8c8f94;
  700. border-bottom: none;
  701. }
  702. .customize-control-nav_menu_item {
  703. margin-bottom: 0;
  704. }
  705. .customize-control-nav_menu .new-menu-item-invitation {
  706. margin-top: 0;
  707. margin-bottom: 0;
  708. }
  709. .customize-control-nav_menu .customize-control-nav_menu-buttons {
  710. margin-top: 12px;
  711. }
  712. /**
  713. * box-shadows
  714. */
  715. .wp-customizer .menu-item .submitbox .submitdelete:focus,
  716. .customize-screen-options-toggle:focus:before,
  717. #customize-controls .customize-info .customize-help-toggle:focus:before,
  718. .wp-customizer button:focus .toggle-indicator:before,
  719. .menu-delete:focus,
  720. .menu-item-bar .item-delete:focus:before,
  721. #available-menu-items .item-add:focus:before {
  722. box-shadow:
  723. 0 0 0 1px #4f94d4,
  724. 0 0 2px 1px rgba(79, 148, 212, 0.8);
  725. }
  726. @media screen and (max-width: 782px) {
  727. #available-menu-items #available-menu-items-search .accordion-section-content {
  728. top: 63px;
  729. }
  730. }
  731. @media screen and (max-width: 640px) {
  732. #available-menu-items #available-menu-items-search .accordion-section-content {
  733. top: 130px;
  734. }
  735. }