You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

920 lines
16 KiB

  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 8px 4px 5px;
  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-right: 300px;
  28. margin-top: 23px;
  29. }
  30. #wpbody-content #menu-settings-column {
  31. display:inline;
  32. width:281px;
  33. margin-right: -300px;
  34. clear: both;
  35. float: right;
  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-right: 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-left: 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-right: 20%;
  95. }
  96. .menu-settings-group:last-of-type {
  97. margin-bottom: 0;
  98. }
  99. .menu-settings-input {
  100. float: right;
  101. margin: 0;
  102. width: 100%;
  103. }
  104. .menu-settings-group-name {
  105. float: right;
  106. clear: both;
  107. width: 25%;
  108. padding: 3px 0 0;
  109. margin-right: -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: right;
  125. min-width: 100%;
  126. margin-top: 3px;
  127. }
  128. /* @todo: responsive view. */
  129. #menu-management {
  130. position: relative;
  131. margin-left: 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-left: 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: left;
  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: right;
  190. }
  191. #locations-nav-menu-wrapper {
  192. padding: 5px 0;
  193. }
  194. .locations-nav-menu-select select {
  195. float: right;
  196. width: 160px;
  197. margin-left: 5px;
  198. }
  199. .locations-row-links {
  200. float: right;
  201. margin: 6px 6px 0 0;
  202. }
  203. .locations-edit-menu-link,
  204. .locations-add-menu-link {
  205. margin: 0 3px;
  206. }
  207. .locations-edit-menu-link {
  208. padding-left: 3px;
  209. border-left: 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: left;
  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: left;
  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-right: 20px;
  245. margin-top: 5px;
  246. }
  247. .button.right, .button-secondary.right, .button-primary.right {
  248. float: left;
  249. }
  250. /* Button Secondary Actions */
  251. .list-controls {
  252. float: right;
  253. margin-top: 5px;
  254. }
  255. .add-to-menu {
  256. float: left;
  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: right;
  287. margin-top: 5px;
  288. padding-left: 5px;
  289. }
  290. .menu-item-textbox {
  291. width: 180px;
  292. }
  293. .customlinkdiv label,
  294. .nav-menus-php .howto span {
  295. float: right;
  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 0 0 -10px;
  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-left: 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-left: 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-right: 0px; }
  413. .menu-item-depth-1 { margin-right: 30px; }
  414. .menu-item-depth-2 { margin-right: 60px; }
  415. .menu-item-depth-3 { margin-right: 90px; }
  416. .menu-item-depth-4 { margin-right: 120px; }
  417. .menu-item-depth-5 { margin-right: 150px; }
  418. .menu-item-depth-6 { margin-right: 180px; }
  419. .menu-item-depth-7 { margin-right: 210px; }
  420. .menu-item-depth-8 { margin-right: 240px; }
  421. .menu-item-depth-9 { margin-right: 270px; }
  422. .menu-item-depth-10 { margin-right: 300px; }
  423. .menu-item-depth-11 { margin-right: 330px; }
  424. .menu-item-depth-0 .menu-item-transport { margin-right: 0px; }
  425. .menu-item-depth-1 .menu-item-transport { margin-right: -30px; }
  426. .menu-item-depth-2 .menu-item-transport { margin-right: -60px; }
  427. .menu-item-depth-3 .menu-item-transport { margin-right: -90px; }
  428. .menu-item-depth-4 .menu-item-transport { margin-right: -120px; }
  429. .menu-item-depth-5 .menu-item-transport { margin-right: -150px; }
  430. .menu-item-depth-6 .menu-item-transport { margin-right: -180px; }
  431. .menu-item-depth-7 .menu-item-transport { margin-right: -210px; }
  432. .menu-item-depth-8 .menu-item-transport { margin-right: -240px; }
  433. .menu-item-depth-9 .menu-item-transport { margin-right: -270px; }
  434. .menu-item-depth-10 .menu-item-transport { margin-right: -300px; }
  435. .menu-item-depth-11 .menu-item-transport { margin-right: -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. left: 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-left: 10px;
  470. }
  471. .nav-menus-php .item-edit {
  472. position: absolute;
  473. left: -20px;
  474. top: 0;
  475. display: block;
  476. width: 30px;
  477. height: 40px;
  478. margin-left: 0 !important;
  479. text-indent: 100%;
  480. outline: none;
  481. overflow: hidden;
  482. white-space: nowrap;
  483. }
  484. .no-js.nav-menus-php .item-edit {
  485. position: static;
  486. float: left;
  487. width: auto;
  488. height: auto;
  489. margin-left: -10px !important;
  490. padding: 12px 0;
  491. color: #0073aa;
  492. text-decoration: underline;
  493. font-size: 12px;
  494. line-height: 18px;
  495. text-indent: 0;
  496. }
  497. .nav-menus-php .item-edit:before {
  498. margin-top: 10px;
  499. margin-right: 4px;
  500. width: 20px;
  501. -webkit-border-radius: 50%;
  502. border-radius: 50%;
  503. text-indent: -1px; /* account for the dashicon alignment */
  504. }
  505. .no-js.nav-menus-php .item-edit:before {
  506. display: none;
  507. }
  508. .rtl .nav-menus-php .item-edit:before {
  509. text-indent: 1px; /* account for the dashicon alignment */
  510. }
  511. .nav-menus-php .item-edit:focus {
  512. -webkit-box-shadow: none;
  513. box-shadow: none;
  514. }
  515. .nav-menus-php .item-edit:focus:before {
  516. -webkit-box-shadow:
  517. 0 0 0 1px #5b9dd9,
  518. 0 0 2px 1px rgba(30, 140, 190, .8);
  519. box-shadow:
  520. 0 0 0 1px #5b9dd9,
  521. 0 0 2px 1px rgba(30, 140, 190, .8);
  522. }
  523. /* Menu editing */
  524. .menu-instructions-inactive {
  525. display: none;
  526. }
  527. .menu-item-settings {
  528. display: block;
  529. width: 402px;
  530. padding: 10px 10px 10px 0;
  531. position: relative;
  532. z-index: 10; /* Keep .item-title's shadow from appearing on top of .menu-item-settings */
  533. border: 1px solid #e5e5e5;
  534. border-top: none;
  535. -webkit-box-shadow: 0 1px 1px rgba(0,0,0,0.04);
  536. box-shadow: 0 1px 1px rgba(0,0,0,0.04);
  537. }
  538. .menu-item-settings .field-move {
  539. margin: 3px 0 5px;
  540. line-height: 1.5;
  541. }
  542. .field-move-visual-label {
  543. float: right;
  544. margin-left: 4px;
  545. font-style: italic;
  546. }
  547. .menu-item-settings .field-move .button-link {
  548. display: none;
  549. margin: 0 2px;
  550. color: #0073aa;
  551. font-style: italic;
  552. text-decoration: underline;
  553. }
  554. .menu-item-settings .field-move .button-link:hover,
  555. .menu-item-settings .field-move .button-link:active {
  556. color: #00a0d2;
  557. }
  558. .menu-item-settings .field-move .button-link:focus {
  559. color: #124964;
  560. -webkit-box-shadow:
  561. 0 0 0 1px #5b9dd9,
  562. 0 0 2px 1px rgba(30, 140, 190, .8);
  563. box-shadow:
  564. 0 0 0 1px #5b9dd9,
  565. 0 0 2px 1px rgba(30, 140, 190, .8);
  566. }
  567. .menu-item-edit-active .menu-item-settings {
  568. display: block;
  569. }
  570. .menu-item-edit-inactive .menu-item-settings {
  571. display: none;
  572. }
  573. .add-menu-item-pagelinks {
  574. margin: .5em -10px;
  575. text-align: center;
  576. }
  577. .add-menu-item-pagelinks .page-numbers {
  578. display: inline-block;
  579. min-width: 20px;
  580. }
  581. .add-menu-item-pagelinks .page-numbers.dots {
  582. min-width: 0;
  583. }
  584. .link-to-original {
  585. display: block;
  586. margin: 0 0 15px;
  587. padding: 3px 5px 5px;
  588. border: 1px solid #ddd;
  589. color: #72777c;
  590. font-size: 12px;
  591. font-style: italic;
  592. }
  593. .link-to-original a {
  594. padding-right: 4px;
  595. font-style: normal;
  596. }
  597. .hidden-field {
  598. display: none;
  599. }
  600. .menu-item-settings .description-thin,
  601. .menu-item-settings .description-wide {
  602. margin-left: 10px;
  603. float: right;
  604. }
  605. .description-thin {
  606. width: 190px;
  607. }
  608. .description-wide {
  609. width: 390px;
  610. }
  611. .menu-item-actions {
  612. padding-top: 15px;
  613. padding-bottom: 7px;
  614. }
  615. #cancel-save {
  616. cursor: pointer;
  617. }
  618. /* Major/minor publishing actions (classes) */
  619. .nav-menus-php .major-publishing-actions {
  620. clear: both;
  621. padding: 10px 0;
  622. line-height: 28px;
  623. }
  624. .nav-menus-php .major-publishing-actions .publishing-action {
  625. text-align: left;
  626. float: left;
  627. }
  628. .nav-menus-php .blank-slate .menu-settings {
  629. display: none;
  630. }
  631. /* Same as the Publish Meta Box #delete-action */
  632. .nav-menus-php .delete-action {
  633. float: right;
  634. line-height: 28px;
  635. }
  636. .nav-menus-php .major-publishing-actions .form-invalid {
  637. padding-right: 4px;
  638. margin-right: -4px;
  639. }
  640. #nav-menus-frame,
  641. .button-controls,
  642. #menu-item-url-wrap,
  643. #menu-item-name-wrap {
  644. display: block;
  645. }
  646. /* =Media Queries
  647. -------------------------------------------------------------- */
  648. @media only screen and (min-width: 769px) and (max-width: 1000px){
  649. body.menu-max-depth-0 {
  650. min-width: 0 !important;
  651. }
  652. #menu-management-liquid{
  653. width: 100%;
  654. }
  655. .nav-menus-php #post-body-content{
  656. min-width: 0;
  657. }
  658. .menu-item-bar .menu-item-handle{
  659. width: 90%;
  660. }
  661. }
  662. @media screen and ( max-width: 782px ) {
  663. body.nav-menus-php {
  664. min-width: 0 !important;
  665. }
  666. #nav-menus-frame {
  667. margin-right: 0;
  668. float: none;
  669. width: 100%;
  670. }
  671. #wpbody-content #menu-settings-column {
  672. display: block;
  673. width: 100%;
  674. float: none;
  675. margin-right: 0;
  676. }
  677. #side-sortables .add-menu-item-tabs {
  678. margin: 15px 0 14px;
  679. }
  680. ul.add-menu-item-tabs li.tabs {
  681. padding: 13px 15px 14px;
  682. }
  683. .nav-menus-php .item-controls .item-type {
  684. margin-top: 2px;
  685. }
  686. .nav-menus-php .customlinkdiv .howto input {
  687. width: 65%;
  688. }
  689. .nav-menus-php .quick-search {
  690. width: 85%;
  691. }
  692. #menu-management-liquid {
  693. margin-top: 25px;
  694. }
  695. .nav-menus-php .menu-name-label.howto span {
  696. margin-top: 13px
  697. }
  698. .menu-name-label #menu-name {
  699. margin-top: 4px;
  700. }
  701. .nav-menus-php .delete-action {
  702. font-size: 14px;
  703. line-height: 30px;
  704. }
  705. .menu-item-bar .menu-item-handle,
  706. .menu-item-settings,
  707. .description-wide {
  708. width: auto;
  709. }
  710. .menu-item-settings {
  711. padding: 10px;
  712. }
  713. .menu-item-settings .description-thin,
  714. .menu-item-settings .description-wide {
  715. width: 100%;
  716. }
  717. .menu-item-settings input {
  718. width: 100%;
  719. }
  720. .menu-item-settings input[type="checkbox"],
  721. .menu-item-settings input[type="radio"] {
  722. width: 25px;
  723. }
  724. .menu-settings-group {
  725. padding-right: 0;
  726. }
  727. .menu-settings-group-name {
  728. float: none;
  729. width: auto;
  730. margin-right: 0;
  731. margin-bottom: 15px;
  732. }
  733. .menu-settings-input {
  734. float: none;
  735. margin-bottom: 15px;
  736. }
  737. .menu-edit .checkbox-input {
  738. margin-top: 0;
  739. }
  740. .manage-menus select {
  741. margin: 0.5em 0;
  742. }
  743. .widefat .menu-locations .menu-location-title {
  744. padding-top: 16px;
  745. }
  746. }
  747. @media only screen and (max-width: 768px) {
  748. /* menu locations */
  749. #menu-locations-wrap .widefat {
  750. width: 100%;
  751. }
  752. }