nav-menus.css 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  1. /* nav-menu */
  2. /* @todo: determine if this is truly for nav menus only */
  3. .no-js #message {
  4. display: block;
  5. }
  6. ul.add-menu-item-tabs li {
  7. padding: 3px 5px 4px 8px;
  8. }
  9. .accordion-section ul.category-tabs,
  10. .accordion-section ul.add-menu-item-tabs,
  11. .accordion-section ul.wp-tab-bar {
  12. margin: 0;
  13. }
  14. .accordion-section .categorychecklist {
  15. margin: 13px 0;
  16. }
  17. #nav-menu-meta .accordion-section-content {
  18. padding: 18px 13px;
  19. }
  20. #nav-menu-meta .button-controls {
  21. margin-bottom: 0;
  22. }
  23. .has-no-menu-item .button-controls {
  24. display: none;
  25. }
  26. #nav-menus-frame {
  27. margin-left: 300px;
  28. margin-top: 23px;
  29. }
  30. #wpbody-content #menu-settings-column {
  31. display:inline;
  32. width:281px;
  33. margin-left: -300px;
  34. clear: both;
  35. float: left;
  36. padding-top: 0;
  37. }
  38. #menu-settings-column .inside {
  39. clear: both;
  40. margin: 10px 0 0;
  41. }
  42. .metabox-holder-disabled .postbox,
  43. .metabox-holder-disabled .accordion-section-content,
  44. .metabox-holder-disabled .accordion-section-title {
  45. opacity: 0.5;
  46. filter: alpha(opacity=50);
  47. }
  48. .metabox-holder-disabled .button-controls .select-all {
  49. display: none;
  50. }
  51. #wpbody {
  52. position: relative;
  53. }
  54. .blank-slate .menu-settings {
  55. border: none;
  56. margin-top: 0;
  57. padding-top: 0;
  58. overflow: hidden;
  59. }
  60. .is-submenu {
  61. color: #555d66; /* #fafafa background */
  62. font-style: italic;
  63. font-weight: 400;
  64. margin-left: 4px;
  65. }
  66. .manage-menus {
  67. margin-top: 23px;
  68. padding: 10px;
  69. overflow: hidden;
  70. background: #fbfbfb;
  71. }
  72. .manage-menus .selected-menu,
  73. .manage-menus select,
  74. .manage-menus .submit-btn,
  75. .nav-menus-php .add-new-menu-action {
  76. display: inline-block;
  77. margin-right: 3px;
  78. vertical-align: middle;
  79. }
  80. .manage-menus select,
  81. .menu-location-menus select {
  82. max-width: 100%;
  83. }
  84. .menu-edit #post-body-content h3 {
  85. margin: 1em 0 10px;
  86. }
  87. .menu-settings {
  88. border-top: 1px solid #eee;
  89. margin-top: 2em;
  90. }
  91. .menu-settings-group {
  92. margin: 0 0 10px;
  93. overflow: hidden;
  94. padding-left: 20%;
  95. }
  96. .menu-settings-group:last-of-type {
  97. margin-bottom: 0;
  98. }
  99. .menu-settings-input {
  100. float: left;
  101. margin: 0;
  102. width: 100%;
  103. }
  104. .menu-settings-group-name {
  105. float: left;
  106. clear: both;
  107. width: 25%;
  108. padding: 3px 0 0;
  109. margin-left: -25%; /* 20 container left padding x ( 100 container % width / 80 this % width ) */
  110. }
  111. .menu-settings label {
  112. vertical-align: baseline;
  113. }
  114. .menu-edit .checkbox-input {
  115. margin-top: 4px;
  116. }
  117. .theme-location-set {
  118. color: #72777c;
  119. font-size: 11px;
  120. }
  121. /* Menu Container */
  122. /* @todo: responsive view. */
  123. #menu-management-liquid {
  124. float: left;
  125. min-width: 100%;
  126. margin-top: 3px;
  127. }
  128. /* @todo: responsive view. */
  129. #menu-management {
  130. position: relative;
  131. margin-right: 20px;
  132. margin-top: -3px;
  133. width: 100%;
  134. background: #f5f5f5;
  135. }
  136. #menu-management .menu-edit {
  137. margin-bottom: 20px;
  138. }
  139. .nav-menus-php #post-body {
  140. padding: 0 10px 10px;
  141. border-top: 1px solid #fff;
  142. border-bottom: 1px solid #ddd;
  143. background: #fff;
  144. }
  145. #nav-menu-header,
  146. #nav-menu-footer {
  147. padding: 0 10px;
  148. }
  149. #nav-menu-header {
  150. border-bottom: 1px solid #ddd;
  151. margin-bottom: 0;
  152. }
  153. #nav-menu-header .menu-name-label {
  154. display: inline-block;
  155. vertical-align: middle;
  156. margin-right: 7px;
  157. font-style: italic;
  158. }
  159. .nav-menus-php #post-body div.updated,
  160. .nav-menus-php #post-body div.error {
  161. margin: 0;
  162. }
  163. .nav-menus-php #post-body-content {
  164. position: relative;
  165. float: none;
  166. }
  167. #menu-management .menu-add-new abbr {
  168. font-weight:600;
  169. }
  170. #select-nav-menu-container {
  171. text-align: right;
  172. padding: 0 10px 3px 10px;
  173. margin-bottom: 5px;
  174. }
  175. #select-nav-menu {
  176. width: 100px;
  177. display: inline;
  178. }
  179. #menu-name-label {
  180. margin-top: -2px;
  181. }
  182. .widefat .menu-locations .menu-location-title {
  183. padding: 13px 10px 0;
  184. }
  185. .menu-location-title label {
  186. font-weight: 600;
  187. }
  188. .menu-location-menus select {
  189. float: left;
  190. }
  191. #locations-nav-menu-wrapper {
  192. padding: 5px 0;
  193. }
  194. .locations-nav-menu-select select {
  195. float: left;
  196. width: 160px;
  197. margin-right: 5px;
  198. }
  199. .locations-row-links {
  200. float: left;
  201. margin: 6px 0 0 6px;
  202. }
  203. .locations-edit-menu-link,
  204. .locations-add-menu-link {
  205. margin: 0 3px;
  206. }
  207. .locations-edit-menu-link {
  208. padding-right: 3px;
  209. border-right: 1px solid #ccc;
  210. }
  211. #menu-management .inside {
  212. padding: 0 10px;
  213. }
  214. /* Add Menu Item Boxes */
  215. .postbox .howto input,
  216. .customlinkdiv .menu-item-textbox {
  217. width: 180px;
  218. float: right;
  219. }
  220. .accordion-container .outer-border {
  221. margin: 0;
  222. }
  223. .customlinkdiv p {
  224. margin-top: 0
  225. }
  226. #nav-menu-theme-locations .howto select {
  227. width: 100%;
  228. }
  229. #nav-menu-theme-locations .button-controls {
  230. text-align: right;
  231. }
  232. .add-menu-item-view-all {
  233. height: 400px;
  234. }
  235. /* Button Primary Actions */
  236. #menu-container .submit {
  237. margin: 0 0 10px;
  238. padding: 0;
  239. }
  240. /* @todo: is this actually used? */
  241. #cancel-save {
  242. text-decoration: underline;
  243. font-size: 12px;
  244. margin-left: 20px;
  245. margin-top: 5px;
  246. }
  247. .button.right, .button-secondary.right, .button-primary.right {
  248. float: right;
  249. }
  250. /* Button Secondary Actions */
  251. .list-controls {
  252. float: left;
  253. margin-top: 5px;
  254. }
  255. .add-to-menu {
  256. float: right;
  257. }
  258. .button-controls {
  259. clear:both;
  260. margin: 10px 0;
  261. }
  262. .show-all,
  263. .hide-all {
  264. cursor: pointer;
  265. }
  266. .hide-all {
  267. display: none;
  268. }
  269. /* Create Menu */
  270. #menu-name {
  271. width: 270px;
  272. vertical-align: middle;
  273. }
  274. #manage-menu .inside {
  275. padding: 0px 0px;
  276. }
  277. /* Custom Links */
  278. #available-links dt {
  279. display: block;
  280. }
  281. #add-custom-link .howto {
  282. font-size: 12px;
  283. }
  284. #add-custom-link label span {
  285. display: block;
  286. float: left;
  287. margin-top: 5px;
  288. padding-right: 5px;
  289. }
  290. .menu-item-textbox {
  291. width: 180px;
  292. }
  293. .customlinkdiv label,
  294. .nav-menus-php .howto span {
  295. float: left;
  296. margin-top: 6px;
  297. }
  298. /* Menu item types */
  299. .quick-search {
  300. width: 190px;
  301. }
  302. .quick-search-wrap .spinner {
  303. float: none;
  304. margin: -3px -10px 0 0;
  305. }
  306. .nav-menus-php .list-wrap {
  307. display: none;
  308. clear: both;
  309. margin-bottom: 10px;
  310. }
  311. .nav-menus-php .postbox p.submit {
  312. margin-bottom: 0;
  313. }
  314. /* Listings */
  315. .nav-menus-php .list li {
  316. display: none;
  317. margin: 0;
  318. margin-bottom: 5px;
  319. }
  320. .nav-menus-php .list li .menu-item-title {
  321. cursor: pointer;
  322. display: block;
  323. }
  324. .nav-menus-php .list li .menu-item-title input {
  325. margin-right: 3px;
  326. margin-top: -3px;
  327. }
  328. .menu-item-title input[type=checkbox] {
  329. display: inline-block;
  330. margin-top: -4px;
  331. }
  332. /* Nav Menu */
  333. #menu-container .inside {
  334. padding-bottom: 10px;
  335. }
  336. .menu {
  337. padding-top:1em;
  338. }
  339. #menu-to-edit {
  340. margin: 0;
  341. padding: 0.1em 0;
  342. }
  343. .menu ul {
  344. width: 100%;
  345. }
  346. .menu li {
  347. margin-bottom: 0;
  348. position:relative;
  349. }
  350. .menu-item-bar {
  351. clear:both;
  352. line-height:1.5em;
  353. position:relative;
  354. margin: 9px 0 0;
  355. }
  356. .menu-item-bar .menu-item-handle {
  357. border: 1px solid #ddd;
  358. position: relative;
  359. padding: 10px 15px;
  360. height: auto;
  361. min-height: 20px;
  362. width: 382px;
  363. line-height: 30px;
  364. overflow: hidden;
  365. word-wrap: break-word;
  366. }
  367. .menu-item-bar .menu-item-handle:hover {
  368. border-color: #999;
  369. }
  370. #menu-to-edit .menu-item-invalid .menu-item-handle {
  371. background: #f6c9cc;
  372. border-color: #f1acb1;
  373. }
  374. .no-js .menu-item-edit-active .item-edit {
  375. display: none;
  376. }
  377. .js .menu-item-handle {
  378. cursor: move;
  379. }
  380. .menu li.deleting .menu-item-handle {
  381. background-image: none;
  382. background-color: #f66;
  383. }
  384. .menu-item-handle .item-title {
  385. font-size: 13px;
  386. font-weight: 600;
  387. line-height: 20px;
  388. display: block;
  389. /* @todo: responsive view. */
  390. margin-right: 13em;
  391. }
  392. .menu-item-handle .menu-item-title.no-title {
  393. color: #72777c;
  394. }
  395. /* Sortables */
  396. li.menu-item.ui-sortable-helper .menu-item-bar {
  397. margin-top: 0;
  398. }
  399. li.menu-item.ui-sortable-helper .menu-item-transport .menu-item-bar {
  400. margin-top: 13px;
  401. }
  402. .menu .sortable-placeholder {
  403. height: 35px;
  404. width: 410px;
  405. margin-top: 13px;
  406. }
  407. /* Hide the transport list when it's empty */
  408. .menu-item .menu-item-transport:empty {
  409. display: none;
  410. }
  411. /* WARNING: The factor of 30px is hardcoded into the nav-menus JavaScript. */
  412. .menu-item-depth-0 { margin-left: 0px; }
  413. .menu-item-depth-1 { margin-left: 30px; }
  414. .menu-item-depth-2 { margin-left: 60px; }
  415. .menu-item-depth-3 { margin-left: 90px; }
  416. .menu-item-depth-4 { margin-left: 120px; }
  417. .menu-item-depth-5 { margin-left: 150px; }
  418. .menu-item-depth-6 { margin-left: 180px; }
  419. .menu-item-depth-7 { margin-left: 210px; }
  420. .menu-item-depth-8 { margin-left: 240px; }
  421. .menu-item-depth-9 { margin-left: 270px; }
  422. .menu-item-depth-10 { margin-left: 300px; }
  423. .menu-item-depth-11 { margin-left: 330px; }
  424. .menu-item-depth-0 .menu-item-transport { margin-left: 0px; }
  425. .menu-item-depth-1 .menu-item-transport { margin-left: -30px; }
  426. .menu-item-depth-2 .menu-item-transport { margin-left: -60px; }
  427. .menu-item-depth-3 .menu-item-transport { margin-left: -90px; }
  428. .menu-item-depth-4 .menu-item-transport { margin-left: -120px; }
  429. .menu-item-depth-5 .menu-item-transport { margin-left: -150px; }
  430. .menu-item-depth-6 .menu-item-transport { margin-left: -180px; }
  431. .menu-item-depth-7 .menu-item-transport { margin-left: -210px; }
  432. .menu-item-depth-8 .menu-item-transport { margin-left: -240px; }
  433. .menu-item-depth-9 .menu-item-transport { margin-left: -270px; }
  434. .menu-item-depth-10 .menu-item-transport { margin-left: -300px; }
  435. .menu-item-depth-11 .menu-item-transport { margin-left: -330px; }
  436. body.menu-max-depth-0 { min-width: 950px !important; }
  437. body.menu-max-depth-1 { min-width: 980px !important; }
  438. body.menu-max-depth-2 { min-width: 1010px !important; }
  439. body.menu-max-depth-3 { min-width: 1040px !important; }
  440. body.menu-max-depth-4 { min-width: 1070px !important; }
  441. body.menu-max-depth-5 { min-width: 1100px !important; }
  442. body.menu-max-depth-6 { min-width: 1130px !important; }
  443. body.menu-max-depth-7 { min-width: 1160px !important; }
  444. body.menu-max-depth-8 { min-width: 1190px !important; }
  445. body.menu-max-depth-9 { min-width: 1220px !important; }
  446. body.menu-max-depth-10 { min-width: 1250px !important; }
  447. body.menu-max-depth-11 { min-width: 1280px !important; }
  448. /* Menu item controls */
  449. .item-type {
  450. display: inline-block;
  451. padding: 12px 16px;
  452. color: #666;
  453. font-size: 12px;
  454. line-height: 18px;
  455. }
  456. .item-controls {
  457. font-size: 12px;
  458. position: absolute;
  459. right: 20px;
  460. top: -1px;
  461. }
  462. .item-controls a {
  463. text-decoration: none;
  464. }
  465. .item-controls a:hover {
  466. cursor: pointer;
  467. }
  468. .item-controls .item-order {
  469. padding-right: 10px;
  470. }
  471. .nav-menus-php .item-edit {
  472. position: absolute;
  473. right: -20px;
  474. top: 0;
  475. display: block;
  476. width: 30px;
  477. height: 40px;
  478. outline: none;
  479. }
  480. .no-js.nav-menus-php .item-edit {
  481. position: static;
  482. float: right;
  483. width: auto;
  484. height: auto;
  485. margin: 12px -10px 12px 0;
  486. padding: 0;
  487. color: #0073aa;
  488. text-decoration: underline;
  489. font-size: 12px;
  490. line-height: 18px;
  491. }
  492. .no-js.nav-menus-php .item-edit .screen-reader-text {
  493. position: static;
  494. -webkit-clip-path: none;
  495. clip-path: none;
  496. width: auto;
  497. height: auto;
  498. margin: 0;
  499. }
  500. .nav-menus-php .item-edit:before {
  501. margin-top: 10px;
  502. margin-left: 4px;
  503. width: 20px;
  504. border-radius: 50%;
  505. text-indent: -1px; /* account for the dashicon alignment */
  506. }
  507. .no-js.nav-menus-php .item-edit:before {
  508. display: none;
  509. }
  510. .rtl .nav-menus-php .item-edit:before {
  511. text-indent: 1px; /* account for the dashicon alignment */
  512. }
  513. .js.nav-menus-php .item-edit:focus {
  514. box-shadow: none;
  515. }
  516. .nav-menus-php .item-edit:focus:before {
  517. box-shadow:
  518. 0 0 0 1px #5b9dd9,
  519. 0 0 2px 1px rgba(30, 140, 190, .8);
  520. }
  521. /* Menu editing */
  522. .menu-instructions-inactive {
  523. display: none;
  524. }
  525. .menu-item-settings {
  526. display: block;
  527. width: 402px;
  528. padding: 10px 0 10px 10px;
  529. position: relative;
  530. z-index: 10; /* Keep .item-title's shadow from appearing on top of .menu-item-settings */
  531. border: 1px solid #e5e5e5;
  532. border-top: none;
  533. box-shadow: 0 1px 1px rgba(0,0,0,0.04);
  534. }
  535. .menu-item-settings .field-move {
  536. margin: 3px 0 5px;
  537. line-height: 1.5;
  538. }
  539. .field-move-visual-label {
  540. float: left;
  541. margin-right: 4px;
  542. font-style: italic;
  543. }
  544. .menu-item-settings .field-move .button-link {
  545. display: none;
  546. margin: 0 2px;
  547. font-style: italic;
  548. }
  549. .menu-item-edit-active .menu-item-settings {
  550. display: block;
  551. }
  552. .menu-item-edit-inactive .menu-item-settings {
  553. display: none;
  554. }
  555. .add-menu-item-pagelinks {
  556. margin: .5em -10px;
  557. text-align: center;
  558. }
  559. .add-menu-item-pagelinks .page-numbers {
  560. display: inline-block;
  561. min-width: 20px;
  562. }
  563. .add-menu-item-pagelinks .page-numbers.dots {
  564. min-width: 0;
  565. }
  566. .link-to-original {
  567. display: block;
  568. margin: 0 0 15px;
  569. padding: 3px 5px 5px;
  570. border: 1px solid #ddd;
  571. color: #72777c;
  572. font-size: 12px;
  573. font-style: italic;
  574. }
  575. .link-to-original a {
  576. padding-left: 4px;
  577. font-style: normal;
  578. }
  579. .hidden-field {
  580. display: none;
  581. }
  582. .menu-item-settings .description-thin,
  583. .menu-item-settings .description-wide {
  584. margin-right: 10px;
  585. float: left;
  586. }
  587. .description-thin {
  588. width: 190px;
  589. }
  590. .description-wide {
  591. width: 390px;
  592. }
  593. .menu-item-actions {
  594. padding-top: 15px;
  595. padding-bottom: 7px;
  596. }
  597. #cancel-save {
  598. cursor: pointer;
  599. }
  600. /* Major/minor publishing actions (classes) */
  601. .nav-menus-php .major-publishing-actions {
  602. clear: both;
  603. padding: 10px 0;
  604. line-height: 28px;
  605. }
  606. .nav-menus-php .major-publishing-actions .publishing-action {
  607. text-align: right;
  608. float: right;
  609. }
  610. .nav-menus-php .blank-slate .menu-settings {
  611. display: none;
  612. }
  613. /* Same as the Publish Meta Box #delete-action */
  614. .nav-menus-php .delete-action {
  615. float: left;
  616. line-height: 28px;
  617. }
  618. .nav-menus-php .major-publishing-actions .form-invalid {
  619. padding-left: 4px;
  620. margin-left: -4px;
  621. }
  622. #nav-menus-frame,
  623. .button-controls,
  624. #menu-item-url-wrap,
  625. #menu-item-name-wrap {
  626. display: block;
  627. }
  628. /* =Media Queries
  629. -------------------------------------------------------------- */
  630. @media only screen and (min-width: 769px) and (max-width: 1000px){
  631. body.menu-max-depth-0 {
  632. min-width: 0 !important;
  633. }
  634. #menu-management-liquid{
  635. width: 100%;
  636. }
  637. .nav-menus-php #post-body-content{
  638. min-width: 0;
  639. }
  640. .menu-item-bar .menu-item-handle{
  641. width: 90%;
  642. }
  643. }
  644. @media screen and ( max-width: 782px ) {
  645. body.nav-menus-php,
  646. body.wp-customizer {
  647. min-width: 0 !important;
  648. }
  649. #nav-menus-frame {
  650. margin-left: 0;
  651. float: none;
  652. width: 100%;
  653. }
  654. #wpbody-content #menu-settings-column {
  655. display: block;
  656. width: 100%;
  657. float: none;
  658. margin-left: 0;
  659. }
  660. #side-sortables .add-menu-item-tabs {
  661. margin: 15px 0 14px;
  662. }
  663. ul.add-menu-item-tabs li.tabs {
  664. padding: 13px 15px 14px;
  665. }
  666. .nav-menus-php .customlinkdiv .howto input {
  667. width: 65%;
  668. }
  669. .nav-menus-php .quick-search {
  670. width: 85%;
  671. }
  672. #menu-management-liquid {
  673. margin-top: 25px;
  674. }
  675. .nav-menus-php .menu-name-label.howto span {
  676. margin-top: 13px
  677. }
  678. #menu-name {
  679. width: 100%;
  680. }
  681. .nav-menus-php .major-publishing-actions .publishing-action {
  682. padding-top: 1em;
  683. }
  684. .nav-menus-php .delete-action {
  685. font-size: 14px;
  686. line-height: 30px;
  687. }
  688. .menu-item-bar .menu-item-handle,
  689. .menu-item-settings,
  690. .description-wide {
  691. width: auto;
  692. }
  693. .menu-item-settings {
  694. padding: 10px;
  695. }
  696. .menu-item-settings .description-thin,
  697. .menu-item-settings .description-wide {
  698. width: 100%;
  699. }
  700. .menu-item-settings input {
  701. width: 100%;
  702. }
  703. .menu-item-settings input[type="checkbox"],
  704. .menu-item-settings input[type="radio"] {
  705. width: 25px;
  706. }
  707. .menu-settings-group {
  708. padding-left: 0;
  709. }
  710. .menu-settings-group-name {
  711. float: none;
  712. width: auto;
  713. margin-left: 0;
  714. margin-bottom: 15px;
  715. }
  716. .menu-settings-input {
  717. float: none;
  718. margin-bottom: 15px;
  719. }
  720. .menu-edit .checkbox-input {
  721. margin-top: 0;
  722. }
  723. .manage-menus select {
  724. margin: 0.5em 0;
  725. }
  726. .widefat .menu-locations .menu-location-title {
  727. padding-top: 16px;
  728. }
  729. }
  730. @media only screen and (max-width: 768px) {
  731. /* menu locations */
  732. #menu-locations-wrap .widefat {
  733. width: 100%;
  734. }
  735. }