admin.scss 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551
  1. $light_blue: #2ea2cc;
  2. $light_grey: #f7f7f7;
  3. $mid_grey: #eee;
  4. $grey: #DFDFDF;
  5. $dark_grey: #999;
  6. $text_grey: #444;
  7. $white: #fff;
  8. $black: #000;
  9. $red: #D0011B;
  10. $orange: #ffb900;
  11. $green: #46b450;
  12. .rtl.nav-menus-php {
  13. .mm_launch {
  14. margin-left: 0;
  15. margin-right: 10px;
  16. &:before {
  17. margin-left: 2px;
  18. margin-right: 0;
  19. }
  20. }
  21. #cboxContent .mm_tab_container {
  22. float: right;
  23. }
  24. #cboxContent .mega_menu .mm_panel_options {
  25. float: left;
  26. }
  27. #cboxContent .mm_header_container .mm_title {
  28. float: right;
  29. }
  30. #cboxContent table .mega-menu-item-align td.mega-value select {
  31. float: right;
  32. }
  33. #cboxContent table .mega-menu-item-align td.mega-value .mega-description {
  34. float: right;
  35. margin-right: 10px;
  36. }
  37. #cboxContent .mm_tab_container .mm_tab.active:after {
  38. right: auto;
  39. left: 0;
  40. }
  41. #cboxContent .mega_menu .widget-title-action {
  42. direction: ltr;
  43. }
  44. .mega_menu_meta_box div table td:nth-child(2) {
  45. text-align: left;
  46. }
  47. }
  48. .nav-menus-php {
  49. #cboxContent {
  50. padding: 0;
  51. -webkit-user-select: none;
  52. -moz-user-select: none;
  53. -ms-user-select: none;
  54. user-select: none;
  55. .notice {
  56. margin: 10px 0 0 0;
  57. .notice-dismiss:focus {
  58. box-shadow: none;
  59. }
  60. }
  61. .mega-tooltip {
  62. position: relative;
  63. &.mega-enabled:before {
  64. content: attr(data-tooltip-enabled);
  65. }
  66. &.mega-disabled:before {
  67. content: attr(data-tooltip-disabled);
  68. }
  69. &:before {
  70. position: absolute;
  71. content: attr(data-tooltip);
  72. top: -32px;
  73. background: $black;
  74. color: $white;
  75. padding: 3px 0;
  76. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  77. font-size: 10px;
  78. border-radius: 3px;
  79. margin-left: -10px;
  80. width: 160px;
  81. z-index: 2;
  82. }
  83. &:after {
  84. top: -8px;
  85. left: 8px;
  86. border: solid transparent;
  87. content: " ";
  88. height: 0;
  89. width: 0;
  90. position: absolute;
  91. border-color: transparent;
  92. border-top-color: $black;
  93. border-width: 4px;
  94. margin-left: -4px;
  95. }
  96. &:before,
  97. &:after {
  98. opacity: 0;
  99. pointer-events: none;
  100. text-align: center;
  101. transition: all 0.3s;
  102. transition-delay: 0.3s;
  103. }
  104. &:focus:before,
  105. &:focus:after,
  106. &:hover:before,
  107. &:hover:after {
  108. opacity: 1;
  109. }
  110. }
  111. .mm_tabs {
  112. li.mm_tab_horizontal {
  113. float: left;
  114. margin-right: 10px;
  115. cursor: pointer;
  116. padding: 3px 5px;
  117. font-size: 0.9em;
  118. color: $text_grey;
  119. transition: all 0.05s linear;
  120. &:hover {
  121. background: $light_blue;
  122. color: white;
  123. }
  124. }
  125. li.mm_tab_horizontal.active {
  126. background: $light_blue;
  127. color: white;
  128. }
  129. &.horizontal {
  130. width: 85%;
  131. float: left;
  132. margin-top: 0;
  133. }
  134. }
  135. .filter_icons {
  136. width: 14%;
  137. float: right;
  138. margin-top: 0;
  139. font-size: 0.9em;
  140. }
  141. .mm_header_container {
  142. float: left;
  143. width: 100%;
  144. border-bottom: 1px solid $mid_grey;
  145. .mm_title {
  146. padding: 0 20px;
  147. background: white;
  148. font-size: 1.3em;
  149. line-height: 75px;
  150. float: left;
  151. br {
  152. display: none;
  153. }
  154. }
  155. .mm_saving {
  156. text-align: right;
  157. padding: 0 20px;
  158. display: none;
  159. line-height: 75px;
  160. text-transform: uppercase;
  161. color: $light_blue;
  162. font-size: 11px;
  163. font-weight: bold;
  164. float: right;
  165. background: $white;
  166. &:before {
  167. color: $light_blue;
  168. display: inline-block;
  169. font: normal 20px/75px 'dashicons';
  170. speak: none;
  171. -webkit-font-smoothing: antialiased;
  172. -moz-osx-font-smoothing: grayscale;
  173. vertical-align: top;
  174. margin-right: 5px;
  175. content: '\f463';
  176. -webkit-animation: rotation 2s infinite linear;
  177. animation: rotation 2s infinite linear;
  178. }
  179. }
  180. }
  181. .mm_tab_container {
  182. width: 15%;
  183. float: left;
  184. position: relative;
  185. height: 504px;
  186. background: white;
  187. -webkit-box-shadow: inset -10px 0px 7px -12px rgba(0, 0, 0, 0.2);
  188. -moz-box-shadow: inset -10px 0px 7px -12px rgba(0, 0, 0, 0.2);
  189. box-shadow: inset -10px 0px 7px -12px rgba(0, 0, 0, 0.2);
  190. .mm_tab {
  191. text-decoration: none;
  192. color: $text_grey;
  193. width: 100%;
  194. display: block;
  195. padding: 10px 10px 10px 20px;
  196. box-sizing: border-box;
  197. outline: 0;
  198. position: relative;
  199. transition: all 0.05s linear;
  200. font-size: 12px;
  201. }
  202. .mm_tab.active {
  203. color: white;
  204. background: $light_blue;
  205. &:after {
  206. right: 0;
  207. border: solid 5px transparent;
  208. content: " ";
  209. height: 0;
  210. width: 0;
  211. position: absolute;
  212. pointer-events: none;
  213. border-right-color: white;
  214. top: 50%;
  215. margin-top: -5px;
  216. }
  217. }
  218. }
  219. p.submit {
  220. margin-bottom: 0;
  221. padding-bottom: 0;
  222. }
  223. .mm_content_container {
  224. padding: 20px;
  225. float: right;
  226. height: 504px;
  227. width: 85%;
  228. overflow: auto;
  229. box-sizing: border-box;
  230. position: relative;
  231. }
  232. .mm_content.mega_menu {
  233. #widgets,
  234. #mm_widget_selector,
  235. #mm_number_of_columns,
  236. #megamenu-grid {
  237. display: none;
  238. }
  239. }
  240. .mm_content.mega_menu[data-type='grid'] {
  241. #megamenu-grid,
  242. #mm_widget_selector {
  243. display: block;
  244. }
  245. }
  246. .mm_content.mega_menu[data-type='megamenu'] {
  247. #widgets,
  248. #mm_widget_selector,
  249. #mm_number_of_columns {
  250. display: block !important;/* @todo remove !important once MMM Pro 1.7.1 is released */
  251. }
  252. }
  253. .mm_content.mega_menu {
  254. .mm_panel_options {
  255. float: right;
  256. }
  257. #megamenu-grid {
  258. margin-top: 20px;
  259. button.mega-add-row,
  260. button.mega-add-column {
  261. height: 21px;
  262. line-height: 20px;
  263. font-size: 12px;
  264. padding-left: 4px;
  265. .dashicons-plus {
  266. margin-top: 4px;
  267. }
  268. }
  269. > .drop-area {
  270. margin-top: 20px;
  271. border: 1px dashed $dark_grey;
  272. max-height: 100px !important;
  273. }
  274. .mega-row {
  275. width: 100%;
  276. display: inline-block;
  277. background-color: $light_grey;
  278. border: 1px solid $grey;
  279. clear: both;
  280. padding: 10px 5px;
  281. margin-top: 20px;
  282. box-sizing: border-box;
  283. position: relative;
  284. min-height: 100%;
  285. &:first-child {
  286. margin-top: 0;
  287. }
  288. .mega-row-header {
  289. display: inline-block;
  290. width: 100%;
  291. padding: 5px 0;
  292. box-sizing: border-box;
  293. .mega-disabled .dashicons {
  294. opacity: 1;
  295. }
  296. .dashicons.mega-settings-open {
  297. opacity: 1;
  298. }
  299. .dashicons {
  300. opacity: 0.2;
  301. transition: opacity 0.5s;
  302. }
  303. .dashicons-plus {
  304. opacity: 1;
  305. }
  306. .mega-row-actions {
  307. display: inline-block;
  308. .dashicons-trash {
  309. display: none;
  310. color: #D0011B;
  311. }
  312. }
  313. .mega-row-actions:hover .dashicons {
  314. opacity: 1;
  315. }
  316. }
  317. &[data-used-cols='0'] {
  318. .mega-row-header .mega-row-actions .dashicons-trash {
  319. display: inline-block;
  320. opacity: 1;
  321. }
  322. }
  323. .mega-too-many-cols {
  324. display: none;
  325. }
  326. &[data-too-many-cols='true'] {
  327. .mega-too-many-cols {
  328. display: block;
  329. }
  330. }
  331. .mega-row-is-full {
  332. display: none;
  333. }
  334. &[data-row-is-full='true'] .mega-col-expand,
  335. .mega-col[data-span='1'] .mega-col-contract {
  336. pointer-events: none;
  337. color: $grey;
  338. }
  339. &[data-row-is-full='true'] {
  340. .mega-col-expand {
  341. pointer-events: none;
  342. color: $grey;
  343. }
  344. }
  345. @for $of from 1 through 12 {
  346. @for $cols from 1 through $of {
  347. &[data-available-cols='#{$of}'] .mega-col[data-span='#{$cols}'] {
  348. width: (100% / $of) * $cols;
  349. }
  350. }
  351. }
  352. .notice {
  353. margin: 10px 5px;
  354. cursor: pointer;
  355. }
  356. }
  357. .mega-col {
  358. display: inline-block;
  359. position: relative;
  360. vertical-align: top;
  361. float: left;
  362. transition: width 0.1s;
  363. width: 100%;
  364. .mega-col-wrap {
  365. background-color: $white;
  366. border: 1px solid $grey;
  367. margin: 3px;
  368. padding: 8px;
  369. }
  370. .mega-col-widgets {
  371. min-height: 50px;
  372. .widget {
  373. float: none;
  374. width: 100%;
  375. border: 0;
  376. margin: 3px 0;
  377. .widget-top {
  378. background: $light_grey;
  379. border: 1px solid $grey;
  380. height: 42px;
  381. }
  382. &.open .widget-top {
  383. border: 1px solid $dark_grey;
  384. border-bottom: 0;
  385. }
  386. &.open .widget-inner {
  387. border: 1px solid $dark_grey;
  388. }
  389. .widget-title-action {
  390. background: $light_grey;
  391. border: 0;
  392. padding-left: 0;
  393. padding-right: 10px;
  394. position: absolute;
  395. top: 0;
  396. }
  397. &[data-type=item] {
  398. .widget-title-action {
  399. display: none;
  400. }
  401. }
  402. .widget-title {
  403. h4 {
  404. font-weight: normal;
  405. margin-top: 5px;
  406. line-height: 16px;
  407. }
  408. .widget-desc {
  409. clear: both;
  410. font-weight: normal;
  411. font-size: 10px;
  412. opacity: 0.6;
  413. float: left;
  414. font-style: italic;
  415. }
  416. }
  417. }
  418. }
  419. .mega-col-description {
  420. float: left;
  421. .mega-disabled .dashicons {
  422. opacity: 1;
  423. }
  424. .dashicons.mega-settings-open {
  425. opacity: 1;
  426. }
  427. .dashicons {
  428. opacity: 0.2;
  429. transition: opacity 0.5s;
  430. }
  431. .dashicons-trash {
  432. display: none;
  433. color: #D0011B;
  434. }
  435. }
  436. &[data-total-blocks='0'] {
  437. .dashicons-trash {
  438. display: inline-block;
  439. opacity: 1;
  440. }
  441. }
  442. .mega-col-header {
  443. display: inline-block;
  444. width: 100%;
  445. .mega-col-description:hover .dashicons {
  446. opacity: 1;
  447. }
  448. .mega-col-actions {
  449. float: right;
  450. .dashicons {
  451. margin-right: 0;
  452. width: 10px;
  453. cursor: pointer;
  454. }
  455. > span {
  456. font-size: 10px;
  457. position: relative;
  458. top: -3px;
  459. }
  460. }
  461. }
  462. }
  463. button.mega-add-column {
  464. position: absolute;
  465. right: 10px;
  466. top: 10px;
  467. }
  468. button.mega-add-row {
  469. margin-top: 20px;
  470. }
  471. .mega-col-settings {
  472. float: left;
  473. width: 100%;
  474. display: none;
  475. margin: 5px 0 20px;
  476. padding: 10px;
  477. box-sizing: border-box;
  478. label {
  479. width: 100%;
  480. font-size: 11px;
  481. text-transform: uppercase;
  482. margin-right: 5px;
  483. }
  484. input {
  485. font-size: 11px;
  486. max-width: 100%;
  487. display: block;
  488. width: 100%;
  489. margin: 5px 0 10px 0;
  490. }
  491. button {
  492. display: block;
  493. }
  494. }
  495. .mega-row-settings {
  496. float: left;
  497. width: 100%;
  498. display: none;
  499. margin: 5px 0 20px;
  500. padding: 10px;
  501. box-sizing: border-box;
  502. .mega-settings-row {
  503. margin-bottom: 5px;
  504. }
  505. label {
  506. width: 150px;
  507. font-size: 11px;
  508. text-transform: uppercase;
  509. display: inline-block;
  510. }
  511. input,
  512. select {
  513. font-size: 11px;
  514. }
  515. button {
  516. display: block;
  517. }
  518. }
  519. .dashicons {
  520. font-size: 13px;
  521. width: 17px;
  522. cursor: pointer;
  523. }
  524. .dashicons-sort,
  525. .dashicons-move {
  526. cursor: move;
  527. }
  528. .mega-disabled .dashicons {
  529. &:before {
  530. color: $red;
  531. }
  532. }
  533. .mega-add-row {
  534. clear: both;
  535. }
  536. .drop-area {
  537. display: inline-block;
  538. -webkit-box-sizing: border-box;
  539. -moz-box-sizing: border-box;
  540. box-sizing: border-box;
  541. }
  542. .ui-sortable-helper {
  543. opacity: 0.5;
  544. }
  545. }
  546. #widgets {
  547. float: left;
  548. background: $light_grey;
  549. border: 1px solid $grey;
  550. width: 760px;
  551. position: relative;
  552. margin-top: 15px;
  553. padding: 5px;
  554. float: left;
  555. width: 100%;
  556. box-sizing: border-box;
  557. min-height: 200px;
  558. .no_widgets {
  559. font-size: 0.9em;
  560. margin-left: 10px;
  561. font-style: italic;
  562. margin-top: 10px;
  563. clear: both;
  564. color: $text_grey;
  565. float: left;
  566. }
  567. .drop-area {
  568. display: block;
  569. border: 1px solid $mid_grey;
  570. float: left;
  571. -webkit-box-sizing: border-box;
  572. -moz-box-sizing: border-box;
  573. box-sizing: border-box;
  574. }
  575. .widget[data-type='menu_item'] {
  576. .widget-action {
  577. display: none;
  578. }
  579. }
  580. .widget {
  581. width: 100%;
  582. h4 {
  583. max-width: 700px;
  584. }
  585. }
  586. }
  587. select#mm_enable_mega_menu {
  588. margin-bottom: 0;
  589. font-size: 0.9em;
  590. margin: 0 5px;
  591. }
  592. select#mm_widget_selector {
  593. font-size: 0.9em;
  594. float: right;
  595. margin-right: 5px;
  596. }
  597. select#mm_number_of_columns {
  598. font-size: 0.9em;
  599. float: right;
  600. margin-right: 10px;
  601. }
  602. .mm_header {
  603. float: right;
  604. }
  605. .widget {
  606. -webkit-box-sizing: border-box;
  607. -moz-box-sizing: border-box;
  608. box-sizing: border-box;
  609. width: 160px;
  610. margin: 0;
  611. color: $text_grey;
  612. font-size: 12px;
  613. display: inline-block;
  614. float: left;
  615. border: 5px solid transparent;
  616. &:hover {
  617. .widget-top {
  618. border: 1px solid $text_grey;
  619. }
  620. .widget-inner {
  621. border: 1px solid $text_grey;
  622. }
  623. }
  624. textarea {
  625. max-height: 100px;
  626. }
  627. }
  628. .widget.open {
  629. z-index: 999;
  630. .widget-top {
  631. border: 1px solid $text_grey;
  632. cursor: move;
  633. z-index: 1001;
  634. position: relative;
  635. border-bottom: 0;
  636. }
  637. .widget-inner {
  638. border: 1px solid $text_grey;
  639. position: absolute;
  640. z-index: 1000;
  641. -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  642. box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  643. margin-top: -1px;
  644. background: white;
  645. min-width: 340px;
  646. box-sizing: border-box;
  647. display: block;
  648. }
  649. .widget-action {
  650. &::after {
  651. content: '\f142';
  652. }
  653. }
  654. }
  655. .widget-top {
  656. border: 0;
  657. -webkit-box-shadow: 0 0 0;
  658. box-shadow: 0 0 0;
  659. border: 1px solid $grey;
  660. padding: 0 8px;
  661. background: white;
  662. overflow: hidden;
  663. }
  664. .widget.sub_menu {
  665. .widget-top {
  666. cursor: default;
  667. }
  668. }
  669. .widget-title {
  670. h4 {
  671. color: $text_grey;
  672. float: left;
  673. margin: 0;
  674. padding: 0;
  675. overflow: hidden;
  676. white-space: nowrap;
  677. border-bottom: 0;
  678. font-size: 12px;
  679. text-overflow: ellipsis;
  680. line-height: 42px;
  681. &:after {
  682. color: #d54e21;
  683. display: none;
  684. font: normal 20px/1 'dashicons';
  685. speak: none;
  686. -webkit-font-smoothing: antialiased;
  687. -moz-osx-font-smoothing: grayscale;
  688. vertical-align: top;
  689. margin-left: 5px;
  690. content: '\f463';
  691. -webkit-animation: rotation 2s infinite linear;
  692. animation: rotation 2s infinite linear;
  693. vertical-align: middle;
  694. }
  695. }
  696. h4.loading {
  697. &:after {
  698. display: inline-block;
  699. }
  700. }
  701. }
  702. .widget[data-type='menu_item'] {
  703. .widget-title {
  704. h4 {
  705. &:before {
  706. color: $text_grey;
  707. font: normal 16px/1 'dashicons';
  708. speak: none;
  709. -webkit-font-smoothing: antialiased;
  710. -moz-osx-font-smoothing: grayscale;
  711. vertical-align: top;
  712. margin-right: 2px;
  713. content: "\f333";
  714. vertical-align: middle;
  715. top: -1px;
  716. position: relative;
  717. }
  718. }
  719. }
  720. }
  721. .widget-controls {
  722. float: left;
  723. .delete:hover {
  724. text-decoration: none;
  725. color: $red;
  726. }
  727. }
  728. .widget-inner {
  729. display: none;
  730. float: left;
  731. width: 100%;
  732. background: white;
  733. form {
  734. padding: 0 15px 15px 15px;
  735. margin-bottom: 30px;
  736. }
  737. p {
  738. font-size: 12px;
  739. }
  740. select {
  741. font-size: 12px;
  742. }
  743. input {
  744. font-size: 12px;
  745. }
  746. }
  747. .widget-title-action {
  748. padding: 0;
  749. position: relative;
  750. font-weight: normal;
  751. position: absolute;
  752. right: 1px;
  753. background: white;
  754. border-right: 7px solid white;
  755. padding-left: 10px;
  756. opacity: 1;
  757. background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, white 9%, white 100%);
  758. a {
  759. display: inline-block;
  760. line-height: 40px;
  761. }
  762. }
  763. .widget-option {
  764. right: 0;
  765. border: 0;
  766. background: 0 0;
  767. font: 400 16px/1 dashicons;
  768. speak: none;
  769. display: block;
  770. padding: 0;
  771. text-indent: 0;
  772. text-align: center;
  773. position: relative;
  774. -webkit-font-smoothing: antialiased;
  775. -moz-osx-font-smoothing: grayscale;
  776. text-decoration: none !important;
  777. color: $dark_grey;
  778. &:hover {
  779. color: $text_grey;
  780. cursor: pointer;
  781. }
  782. &::after {
  783. padding: 0;
  784. font: 400 14px/40px dashicons;
  785. display: inline;
  786. }
  787. }
  788. .widget-cols {
  789. line-height: 40px;
  790. vertical-align: top;
  791. display: inline-block;
  792. color: $dark_grey;
  793. font-size: 11px;
  794. vertical-align: bottom;
  795. }
  796. h5 {
  797. margin: 10px 0 0 10px;
  798. text-transform: uppercase;
  799. float: left;
  800. }
  801. .widget-expand {
  802. &::after {
  803. content: '\f345';
  804. }
  805. }
  806. .widget-contract {
  807. &::after {
  808. content: '\f341';
  809. }
  810. }
  811. .widget-action {
  812. &::after {
  813. content: '\f107';
  814. margin: 0;
  815. }
  816. }
  817. .widget-option.disabled {
  818. &:hover {
  819. color: $dark_grey;
  820. }
  821. }
  822. .widget[data-columns='1'] {
  823. .widget-contract {
  824. display: none;
  825. }
  826. }
  827. #widgets[data-columns='1'] {
  828. .widget[data-columns='1'] {
  829. width: 100%;
  830. }
  831. }
  832. #widgets[data-columns='2'] {
  833. .widget[data-columns='1'] {
  834. width: 50%;
  835. }
  836. .widget[data-columns='2'] {
  837. width: 100%;
  838. }
  839. }
  840. #widgets[data-columns='3'] {
  841. .widget[data-columns='1'] {
  842. width: 33.3%;
  843. }
  844. .widget[data-columns='2'] {
  845. width: 66.6%;
  846. }
  847. .widget[data-columns='3'] {
  848. width: 100%;
  849. }
  850. }
  851. #widgets[data-columns='4'] {
  852. .widget[data-columns='1'] {
  853. width: 25%;
  854. }
  855. .widget[data-columns='2'] {
  856. width: 50%;
  857. }
  858. .widget[data-columns='3'] {
  859. width: 75%;
  860. }
  861. .widget[data-columns='4'] {
  862. width: 100%;
  863. }
  864. }
  865. #widgets[data-columns='5'] {
  866. .widget[data-columns='1'] {
  867. width: 20%;
  868. }
  869. .widget[data-columns='2'] {
  870. width: 40%;
  871. }
  872. .widget[data-columns='3'] {
  873. width: 60%;
  874. }
  875. .widget[data-columns='4'] {
  876. width: 80%;
  877. }
  878. .widget[data-columns='5'] {
  879. width: 100%;
  880. }
  881. }
  882. #widgets[data-columns='6'] {
  883. .widget[data-columns='1'] {
  884. width: 16.6%;
  885. }
  886. .widget[data-columns='2'] {
  887. width: 33.3%;
  888. }
  889. .widget[data-columns='3'] {
  890. width: 50%;
  891. }
  892. .widget[data-columns='4'] {
  893. width: 66.6%;
  894. }
  895. .widget[data-columns='5'] {
  896. width: 83.3%;
  897. }
  898. .widget[data-columns='6'] {
  899. width: 100%;
  900. }
  901. }
  902. #widgets[data-columns='7'] {
  903. .widget[data-columns='1'] {
  904. width: 14.28%;
  905. }
  906. .widget[data-columns='2'] {
  907. width: 28.57%;
  908. }
  909. .widget[data-columns='3'] {
  910. width: 42.85%;
  911. }
  912. .widget[data-columns='4'] {
  913. width: 57.14%;
  914. }
  915. .widget[data-columns='5'] {
  916. width: 71.42%;
  917. }
  918. .widget[data-columns='6'] {
  919. width: 85.71%;
  920. }
  921. .widget[data-columns='7'] {
  922. width: 100%;
  923. }
  924. }
  925. #widgets[data-columns='8'] {
  926. .widget[data-columns='1'] {
  927. width: 12.5%;
  928. }
  929. .widget[data-columns='2'] {
  930. width: 25%;
  931. }
  932. .widget[data-columns='3'] {
  933. width: 37.5%;
  934. }
  935. .widget[data-columns='4'] {
  936. width: 50%;
  937. }
  938. .widget[data-columns='5'] {
  939. width: 62.5%;
  940. }
  941. .widget[data-columns='6'] {
  942. width: 75%;
  943. }
  944. .widget[data-columns='7'] {
  945. width: 87.5%;
  946. }
  947. .widget[data-columns='8'] {
  948. width: 100%;
  949. }
  950. }
  951. #widgets[data-columns='9'] {
  952. .widget[data-columns='1'] {
  953. width: 11.11%;
  954. }
  955. .widget[data-columns='2'] {
  956. width: 22.22%;
  957. }
  958. .widget[data-columns='3'] {
  959. width: 33.33%;
  960. }
  961. .widget[data-columns='4'] {
  962. width: 44.44%;
  963. }
  964. .widget[data-columns='5'] {
  965. width: 55.55%;
  966. }
  967. .widget[data-columns='6'] {
  968. width: 66.66%;
  969. }
  970. .widget[data-columns='7'] {
  971. width: 77.77%;
  972. }
  973. .widget[data-columns='8'] {
  974. width: 88.88%;
  975. }
  976. .widget[data-columns='9'] {
  977. width: 100%;
  978. }
  979. }
  980. }
  981. label[for='mm_enable_mega_menu'] {
  982. font-size: 12px;
  983. }
  984. .menu_icon {
  985. .icon_selector {
  986. clear: both;
  987. >div {
  988. float: left;
  989. padding: 0 19px 19px 0;
  990. width: 24px;
  991. height: 24px;
  992. box-sizing: initial;
  993. }
  994. label {
  995. float: left;
  996. display: block;
  997. width: 24px;
  998. height: 24px;
  999. &:before {
  1000. width: 24px;
  1001. height: 24px;
  1002. display: inline-block;
  1003. content: attr(rel);
  1004. border: 1px solid $grey;
  1005. padding: 6px;
  1006. background: $light_grey;
  1007. color: $dark_grey;
  1008. }
  1009. }
  1010. input.radio {
  1011. &:empty {
  1012. margin-left: -9999px;
  1013. ~ {
  1014. label {
  1015. position: relative;
  1016. cursor: pointer;
  1017. -webkit-user-select: none;
  1018. -moz-user-select: none;
  1019. -ms-user-select: none;
  1020. user-select: none;
  1021. }
  1022. }
  1023. }
  1024. &:checked {
  1025. ~ {
  1026. label {
  1027. &:before {
  1028. border: 1px solid #0074a2;
  1029. color: #0074a2;
  1030. background: white;
  1031. }
  1032. color: $dark_grey;
  1033. }
  1034. }
  1035. }
  1036. &:hover {
  1037. &:checked {
  1038. ~ {
  1039. label {
  1040. &:before {
  1041. border: 1px solid #0074a2;
  1042. color: #0074a2;
  1043. background: white;
  1044. }
  1045. }
  1046. }
  1047. }
  1048. ~ {
  1049. label {
  1050. &:before {
  1051. color: #0074a2;
  1052. }
  1053. }
  1054. }
  1055. }
  1056. }
  1057. .dash {
  1058. label {
  1059. &:before {
  1060. font: 400 24px/1 dashicons;
  1061. }
  1062. }
  1063. }
  1064. }
  1065. }
  1066. table {
  1067. td {
  1068. padding-bottom: 10px;
  1069. }
  1070. td.mega-name {
  1071. width: 27%;
  1072. line-height: 2em;
  1073. vertical-align: top;
  1074. font-size: 12px;
  1075. .mega-description {
  1076. font-size: 0.9em;
  1077. color: $dark_grey;
  1078. line-height: 1.5em;
  1079. }
  1080. }
  1081. td.mega-value {
  1082. font-size: 12px;
  1083. select {
  1084. font-size: 0.9em;
  1085. height: 28px;
  1086. line-height: 28px;
  1087. }
  1088. textarea {
  1089. font-size: 0.9em;
  1090. height: 28px;
  1091. line-height: 28px;
  1092. }
  1093. input[type=text] {
  1094. font-size: 0.9em;
  1095. height: 28px;
  1096. line-height: 28px;
  1097. }
  1098. input[type=number] {
  1099. font-size: 0.9em;
  1100. height: 28px;
  1101. line-height: 28px;
  1102. }
  1103. .mega-description {
  1104. font-size: 0.9em;
  1105. color: $dark_grey;
  1106. line-height: 1.5em;
  1107. text-indent: 2px;
  1108. margin-top: 5px;
  1109. }
  1110. }
  1111. .mega-menu-item-align {
  1112. td.mega-value {
  1113. select {
  1114. float: left;
  1115. }
  1116. .mega-description {
  1117. float: left;
  1118. margin-left: 10px;
  1119. font-style: italic;
  1120. }
  1121. }
  1122. }
  1123. .mega-sub-menu-align {
  1124. td.mega-value {
  1125. select {
  1126. float: left;
  1127. margin-right: 10px;
  1128. }
  1129. .mega-description {
  1130. float: left;
  1131. margin-right: 10px;
  1132. }
  1133. }
  1134. }
  1135. input {
  1136. width: 70px;
  1137. margin-right: 20px;
  1138. }
  1139. label {
  1140. font-size: 0.9em;
  1141. }
  1142. input[type=checkbox] {
  1143. width: 16px;
  1144. height: 16px;
  1145. margin-right: 10px;
  1146. vertical-align: middle;
  1147. }
  1148. width: 100%;
  1149. border-collapse: collapse;
  1150. }
  1151. .general_settings {
  1152. table {
  1153. td {
  1154. padding-bottom: 5px;
  1155. }
  1156. }
  1157. }
  1158. form {
  1159. > h4.first {
  1160. margin: 0em 0 0.7em 0;
  1161. }
  1162. >h4 {
  1163. clear: both;
  1164. border-bottom: 1px solid $grey;
  1165. padding: 0 0 10px 0;
  1166. font-size: 1em;
  1167. margin: 1.33em 0 0.7em 0;
  1168. }
  1169. }
  1170. .mm_content {
  1171. >h4.first {
  1172. margin: 0em 0 0.7em 0;
  1173. }
  1174. >h4 {
  1175. clear: both;
  1176. border-bottom: 1px solid $grey;
  1177. padding: 0 0 10px 0;
  1178. font-size: 1em;
  1179. margin: 1.33em 0 0.7em 0;
  1180. }
  1181. }
  1182. img {
  1183. height: auto;
  1184. max-width: 100%;
  1185. }
  1186. div[id^=rommeled_image] {
  1187. .non-sortable {
  1188. display: block !important;
  1189. }
  1190. }
  1191. }
  1192. #cboxClose {
  1193. text-indent: 0;
  1194. background: none;
  1195. width: auto;
  1196. height: auto;
  1197. color: white;
  1198. right: -28px;
  1199. top: 2px;
  1200. &:before {
  1201. content: "\f335";
  1202. font: normal 24px/29px 'dashicons';
  1203. }
  1204. &:hover {
  1205. color: #0074a2;
  1206. }
  1207. }
  1208. &.megamenu_enabled {
  1209. .mm_launch {
  1210. background: $light_blue;
  1211. border-color: #0074a2;
  1212. }
  1213. .mm_launch.mm_disabled {
  1214. background: $dark_grey;
  1215. border-color: $text_grey;
  1216. }
  1217. .mm_prefix {
  1218. display: block;
  1219. font-size: 0.9em;
  1220. border-left: 3px solid $orange;
  1221. padding-left: 10px;
  1222. margin-top: 3px;
  1223. }
  1224. }
  1225. .mm_prefix {
  1226. display: none;
  1227. }
  1228. .mm_launch {
  1229. margin-left: 10px;
  1230. font-size: 0.8em;
  1231. cursor: pointer;
  1232. color: white;
  1233. display: inline-block;
  1234. width: auto;
  1235. font-weight: normal;
  1236. height: auto;
  1237. background: $dark_grey;
  1238. border-color: $text_grey;
  1239. border-width: 1px;
  1240. padding: 0 5px;
  1241. border-radius: 3px;
  1242. opacity: 0;
  1243. -webkit-transition: all 0.3s ease;
  1244. -moz-transition: all 0.3s ease;
  1245. -o-transition: all 0.3s ease;
  1246. -ms-transition: all 0.3s ease;
  1247. transition: all 0.3s ease;
  1248. z-index: 1;
  1249. position: relative;
  1250. &:before {
  1251. font-family: dashicons;
  1252. content: "\f111";
  1253. font-size: 10px;
  1254. margin-right: 2px;
  1255. display: inline-block;
  1256. vertical-align: bottom;
  1257. }
  1258. }
  1259. .menu-item-bar {
  1260. .menu-item-handle {
  1261. &:hover {
  1262. .mm_launch {
  1263. opacity: 1;
  1264. }
  1265. }
  1266. }
  1267. .dashicons-admin-generic {
  1268. &:before {
  1269. font-size: 1.2em;
  1270. margin-right: 1px;
  1271. height: auto;
  1272. }
  1273. }
  1274. }
  1275. .mega_menu_meta_box {
  1276. div#megamenu_accordion {
  1277. h3 {
  1278. padding: 0 0 10px 0;
  1279. margin: 0;
  1280. cursor: pointer;
  1281. outline: none;
  1282. float: left;
  1283. width: 100%;
  1284. color: $dark_grey;
  1285. font-size: 14px;
  1286. font-weight: normal;
  1287. border: 0;
  1288. &:hover {
  1289. color: $text_grey;
  1290. &::before {
  1291. color: $black;
  1292. }
  1293. }
  1294. &::before {
  1295. right: 0;
  1296. content: '\f139';
  1297. border: 0;
  1298. background: 0 0;
  1299. font: 400 20px/1 dashicons;
  1300. speak: none;
  1301. float: left;
  1302. padding: 0;
  1303. text-indent: 0;
  1304. text-align: center;
  1305. position: relative;
  1306. -webkit-font-smoothing: antialiased;
  1307. -moz-osx-font-smoothing: grayscale;
  1308. text-decoration: none !important;
  1309. margin-right: 6px;
  1310. }
  1311. }
  1312. h3.ui-state-active {
  1313. color: $text_grey;
  1314. &::before {
  1315. content: '\f140';
  1316. }
  1317. }
  1318. th {
  1319. &::before {
  1320. right: 0;
  1321. content: '\f139';
  1322. border: 0;
  1323. background: 0 0;
  1324. font: 400 20px/1 dashicons;
  1325. speak: none;
  1326. float: left;
  1327. padding: 0;
  1328. text-indent: 0;
  1329. text-align: center;
  1330. position: relative;
  1331. -webkit-font-smoothing: antialiased;
  1332. -moz-osx-font-smoothing: grayscale;
  1333. text-decoration: none !important;
  1334. margin-right: 6px;
  1335. }
  1336. }
  1337. }
  1338. div.accordion_content {
  1339. padding: 0 0 20px 0;
  1340. float: left;
  1341. border: 0;
  1342. width: 100%;
  1343. }
  1344. div {
  1345. table {
  1346. font-size: 0.9em;
  1347. width: 100%;
  1348. margin-bottom: 5px;
  1349. border-collapse: collapse;
  1350. select {
  1351. font-size: 0.9em;
  1352. max-width: 120px;
  1353. }
  1354. tr {
  1355. height: 29px;
  1356. vertical-align: middle;
  1357. }
  1358. th {
  1359. border-bottom: 1px solid $grey;
  1360. font-size: 1.1em;
  1361. }
  1362. td {
  1363. &:nth-child(2) {
  1364. text-align: right;
  1365. min-width: 150px;
  1366. }
  1367. }
  1368. }
  1369. }
  1370. th {
  1371. &::before {
  1372. content: '\f100';
  1373. }
  1374. }
  1375. th.settings {
  1376. &::before {
  1377. content: '\f111';
  1378. }
  1379. }
  1380. p.submit {
  1381. float: right;
  1382. text-align: right;
  1383. width: auto;
  1384. margin: 0 0 15px 0;
  1385. padding: 0;
  1386. }
  1387. .spinner {
  1388. float: right;
  1389. }
  1390. }
  1391. #nav-menu-meta {
  1392. .mega_menu_meta_box {
  1393. .accordion-section-content {
  1394. padding: 0 10px;
  1395. }
  1396. }
  1397. }
  1398. .menu-item-handle {
  1399. .item-title {
  1400. margin-right: 0;
  1401. }
  1402. }
  1403. }
  1404. .toplevel_page_maxmegamenu .notice,
  1405. .mega-menu_page_maxmegamenu_theme_editor .notice,
  1406. .toplevel_page_maxmegamenu div.updated,
  1407. .toplevel_page_maxmegamenu div.error {
  1408. margin-left: 0;
  1409. clear: both;
  1410. }
  1411. body[class*='_page_maxmegamenu_'],
  1412. body.toplevel_page_maxmegamenu {
  1413. .megamenu_outer_wrap {
  1414. display: inline-block;
  1415. width: 100%;
  1416. padding-right: 20px;
  1417. padding-top: 10px;
  1418. box-sizing: border-box;
  1419. }
  1420. *:focus {
  1421. box-shadow: 0 0 0;
  1422. }
  1423. .icon_dropdown {
  1424. .select2-choice > .select2-chosen {
  1425. line-height: 28px;
  1426. margin-right: 0px;
  1427. }
  1428. .select2-choice .select2-arrow {
  1429. display: none;
  1430. }
  1431. .select2-choice {
  1432. padding: 0 5px 0 5px;
  1433. height: 28px;
  1434. color: $grey;
  1435. }
  1436. .select2-chosen i:before {
  1437. line-height: 28px;
  1438. font-size: 16px;
  1439. color: $text_grey;
  1440. }
  1441. }
  1442. .tpx-select2-drop {
  1443. box-shadow: 0 0 0;
  1444. min-width: 150px;
  1445. }
  1446. .select2-results li {
  1447. float: left;
  1448. &:first-child {
  1449. float: none;
  1450. i {
  1451. display: none;
  1452. }
  1453. }
  1454. .select2-result-label {
  1455. font-size: 0.9em;
  1456. }
  1457. }
  1458. .icon_dropdown .select2-choice > .select2-chosen i,
  1459. .select2-result-label i {
  1460. display: inline-block;
  1461. width: 20px;
  1462. height: 20px;
  1463. font-size: 20px;
  1464. line-height: 1;
  1465. font-family: dashicons;
  1466. text-decoration: inherit;
  1467. font-weight: normal;
  1468. font-style: normal;
  1469. vertical-align: top;
  1470. text-align: center;
  1471. -webkit-transition: color .1s ease-in 0;
  1472. transition: color .1s ease-in 0;
  1473. -webkit-font-smoothing: antialiased;
  1474. -moz-osx-font-smoothing: grayscale;
  1475. }
  1476. .megamenu_wrap {
  1477. width: 100%;
  1478. float: left;
  1479. background: white;
  1480. }
  1481. .megamenu_left {
  1482. float: left;
  1483. width: 190px;
  1484. margin-left: -100%;
  1485. ul li a:hover,
  1486. ul li a.active {
  1487. border-left: 2px solid #0074a2;
  1488. color: #0074a2;
  1489. }
  1490. ul li a {
  1491. text-decoration: none;
  1492. color: $text_grey;
  1493. width: 100%;
  1494. display: block;
  1495. padding: 5px 0px 5px 17px;
  1496. box-sizing: border-box;
  1497. border-left: 2px solid white;
  1498. outline: 0;
  1499. }
  1500. ul li.error {
  1501. border-left: 3px solid $red;
  1502. }
  1503. ul li.mega_active {
  1504. font-weight: bold;
  1505. }
  1506. ul li.mega_active a:after {
  1507. right: 0;
  1508. content: '\f139';
  1509. border: 0;
  1510. background: 0 0;
  1511. font: 400 20px/1 dashicons;
  1512. speak: none;
  1513. float: right;
  1514. padding: 0;
  1515. text-indent: 0;
  1516. text-align: center;
  1517. position: relative;
  1518. -webkit-font-smoothing: antialiased;
  1519. -moz-osx-font-smoothing: grayscale;
  1520. text-decoration: none!important;
  1521. margin-right: 0;
  1522. }
  1523. }
  1524. h3.first {
  1525. margin-top: 0;
  1526. }
  1527. h3 {
  1528. clear: both;
  1529. font-size: 1.1em;
  1530. margin: 17px 0 5px 0;
  1531. text-indent: 1px;
  1532. border-bottom: 1px solid $grey;
  1533. padding: 0 0 10px 0;
  1534. }
  1535. h3 span {
  1536. margin-right: 10px;
  1537. }
  1538. a {
  1539. text-decoration: none;
  1540. }
  1541. .duplicate {
  1542. margin-left: 15px;
  1543. }
  1544. .megamenu_submit {
  1545. margin-bottom: 40px;
  1546. padding-top: 35px;
  1547. .mega_left,
  1548. .mega_right {
  1549. float: left;
  1550. width: 50%;
  1551. }
  1552. .spinner {
  1553. float: left;
  1554. }
  1555. p.submit {
  1556. margin: 0;
  1557. padding: 0;
  1558. float: left;
  1559. }
  1560. .mega_right {
  1561. text-align: right;
  1562. }
  1563. .mega_right a {
  1564. color: $red;
  1565. }
  1566. }
  1567. .megamenu_header {
  1568. background: white;
  1569. padding: 10px 17px;
  1570. border-bottom: 1px solid $mid_grey;
  1571. float: left;
  1572. width: 100%;
  1573. box-sizing: border-box;
  1574. .version {
  1575. font-style: italic;
  1576. color: $dark_grey;
  1577. margin-bottom: 15px;
  1578. }
  1579. }
  1580. .megamenu_header_top {
  1581. font-size: 0.9em;
  1582. display: block;
  1583. width: 100%;
  1584. height: 30px;
  1585. line-height: 30px;
  1586. margin-bottom: 10px;
  1587. box-sizing: border-box;
  1588. ul {
  1589. margin: 0;
  1590. float: right;
  1591. position: relative;
  1592. li {
  1593. display: inline-block;
  1594. margin: 0 0 0 14px;
  1595. line-height: 30px;
  1596. &.mega-highlight {
  1597. background: #35b1df;
  1598. border-radius: 5px;
  1599. a {
  1600. color: white;
  1601. line-height: 30px;
  1602. padding: 0 10px;
  1603. }
  1604. }
  1605. &.mega-star:before {
  1606. font: 400 14px/28px dashicons;
  1607. color: #ffb900;
  1608. margin-right: 4px;
  1609. content: "\f155";
  1610. speak: none;
  1611. padding: 0;
  1612. display: inline-block;
  1613. vertical-align: top;
  1614. -webkit-font-smoothing: antialiased;
  1615. -moz-osx-font-smoothing: grayscale;
  1616. }
  1617. }
  1618. }
  1619. }
  1620. .megamenu_wrap .megamenu_submit .saved {
  1621. background: transparent;
  1622. line-height: 28px;
  1623. margin: 0 0 0 5px;
  1624. float: left;
  1625. border-radius: 0;
  1626. color: #0074a2;
  1627. text-transform: uppercase;
  1628. font-weight: bold;
  1629. }
  1630. .megamenu_wrap .megamenu_submit .saved .dashicons {
  1631. color: #0074a2;
  1632. width: 26px;
  1633. line-height: 28px;
  1634. height: 28px;
  1635. }
  1636. .megamenu_wrap .success,
  1637. .megamenu_wrap .warning,
  1638. .megamenu_wrap .fail {
  1639. background: $white;
  1640. border-left: 4px solid $green;
  1641. border-top: 1px solid $mid_grey;
  1642. border-bottom: 1px solid $mid_grey;
  1643. border-right: 1px solid $mid_grey;
  1644. box-shadow: 0 1px 1px 0 rgba( 0, 0, 0, 0.1 );
  1645. padding: 10px;
  1646. margin: 5px 0 30px;
  1647. line-height: 22px;
  1648. clear: both;
  1649. }
  1650. .megamenu_wrap .fail {
  1651. border-left-color: $red;
  1652. }
  1653. .megamenu_wrap .warning {
  1654. border-left-color: #ffb900;
  1655. }
  1656. .mm-picker-container {
  1657. border-radius: 3px;
  1658. box-shadow: 0 1px 0 rgba(0,0,0,.08);
  1659. border: 1px solid #ccc;
  1660. font-size: 0.9em;
  1661. float: left;
  1662. .sp-replacer {
  1663. margin: 0;
  1664. float: left;
  1665. }
  1666. .sp-palette-container {
  1667. width: 40px;
  1668. }
  1669. .sp-replacer .sp-preview {
  1670. border: 0;
  1671. height: 26px;
  1672. width: 26px;
  1673. margin: 0;
  1674. }
  1675. input.mm_colorpicker {
  1676. float: left;
  1677. border: 0;
  1678. height: 23px;
  1679. box-shadow: 0 0 0;
  1680. margin: 0;
  1681. }
  1682. div.chosen-color {
  1683. background: #f7f7f7;
  1684. -webkit-border-radius: 0 2px 2px 0;
  1685. border-radius: 0 2px 2px 0;
  1686. border-left: 1px solid #ccc;
  1687. color: $text_grey;
  1688. font-size: 11px;
  1689. line-height: 26px;
  1690. padding: 0 6px;
  1691. text-align: center;
  1692. -webkit-box-shadow: inset 0 1px 0 $white;
  1693. box-shadow: inset 0 1px 0 $white;
  1694. float: left;
  1695. cursor: default;
  1696. }
  1697. }
  1698. .block .mm-picker-container {
  1699. float: right;
  1700. margin-right: 0;
  1701. }
  1702. .megamenu_right {
  1703. margin-left: 190px;
  1704. padding: 20px;
  1705. box-sizing: border-box;
  1706. border-left: 1px solid $mid_grey;
  1707. min-height: 400px;
  1708. .theme_selector {
  1709. margin-bottom: 20px;
  1710. select {
  1711. max-width: 500px;
  1712. }
  1713. }
  1714. h2.nav-tab-wrapper {
  1715. margin: 0;
  1716. a.nav-tab {
  1717. cursor: pointer;
  1718. }
  1719. a.nav-tab-active {
  1720. background: white;
  1721. position: relative;
  1722. z-index: 1;
  1723. border-bottom: 1px solid white;
  1724. }
  1725. }
  1726. h3.editing_theme {
  1727. margin: 0 0 30px 0;
  1728. padding: 0;
  1729. border: 0;
  1730. float: left;
  1731. width: 100%;
  1732. }
  1733. .menu_settings {
  1734. &.menu_settings_menu_themes {
  1735. td.mega-name {
  1736. padding-left: 10px;
  1737. font-size: 14px;
  1738. }
  1739. h5 {
  1740. clear: both;
  1741. font-size: 1.1em;
  1742. margin: 15px 0 0 10px;
  1743. padding: 0;
  1744. }
  1745. }
  1746. &.menu_settings_tools {
  1747. label {
  1748. clear: both;
  1749. width: 100%;
  1750. }
  1751. }
  1752. &.menu_settings_menu_locations {
  1753. .accordion-container {
  1754. border: 1px solid $grey;
  1755. h4 {
  1756. margin: 0;
  1757. }
  1758. .accordion-section-content {
  1759. padding-left: 10px;
  1760. padding-right: 10px;
  1761. }
  1762. }
  1763. .mega-assigned-menu {
  1764. float: right;
  1765. text-transform: uppercase;
  1766. font-weight: bold;
  1767. opacity: 0.7;
  1768. margin-right: 28px;
  1769. font-size: 0.8em;
  1770. &:before {
  1771. font: 400 16px/21px dashicons;
  1772. margin-right: 4px;
  1773. content: "\f333";
  1774. speak: none;
  1775. padding: 0;
  1776. display: inline-block;
  1777. vertical-align: top;
  1778. -webkit-font-smoothing: antialiased;
  1779. -moz-osx-font-smoothing: grayscale;
  1780. }
  1781. }
  1782. table .mega-value textarea {
  1783. height: 40px;
  1784. }
  1785. h5 {
  1786. font-size: 12px;
  1787. }
  1788. .accordion-section-content {
  1789. width: 100%;
  1790. box-sizing: border-box;
  1791. }
  1792. }
  1793. table {
  1794. width: 100%;
  1795. border-collapse: collapse;
  1796. label {
  1797. font-size: 0.9em;
  1798. float: left;
  1799. margin-right: 10px;
  1800. margin-bottom: 10px;
  1801. }
  1802. textarea,
  1803. input[type=text],
  1804. input[type=number],
  1805. select {
  1806. font-size: 0.9em;
  1807. height: 28px;
  1808. line-height: 28px;
  1809. vertical-align: top;
  1810. }
  1811. textarea {
  1812. width: 100%;
  1813. height: 150px;
  1814. font-family: monospace;
  1815. line-height: 1.5em;
  1816. margin-bottom: 10px;
  1817. }
  1818. input[type=number] {
  1819. height: auto;
  1820. line-height: 1.2em;
  1821. }
  1822. input[name=export] {
  1823. margin-top: 20px;
  1824. }
  1825. input[type=text] {
  1826. width: 70px;
  1827. }
  1828. input[type=submit] {
  1829. width: auto;
  1830. }
  1831. input[type=checkbox] {
  1832. width: 16px;
  1833. height: 16px;
  1834. vertical-align: middle;
  1835. }
  1836. input.mega-setting-panel_width,
  1837. input.mega-setting-panel_inner_width {
  1838. width: 120px;
  1839. }
  1840. input.mega-setting-title {
  1841. width: 100px;
  1842. }
  1843. .wide input[type=text] {
  1844. width: 300px;
  1845. }
  1846. .CodeMirror {
  1847. height: auto;
  1848. min-height: 150px;
  1849. border: 1px solid #aaa;
  1850. }
  1851. .CodeMirror-scroll {
  1852. min-height: 150px;
  1853. }
  1854. tr:first-child td {
  1855. border-top: 0;
  1856. padding-top: 20px;
  1857. }
  1858. th {
  1859. text-align: left;
  1860. }
  1861. td {
  1862. position: relative;
  1863. padding-bottom: 25px;
  1864. padding-top: 15px;
  1865. border-top: 1px solid $mid_grey;
  1866. &.mega-name {
  1867. width: 33%;
  1868. line-height: 2em;
  1869. padding-right: 30px;
  1870. vertical-align: top;
  1871. }
  1872. &.mega-value {
  1873. padding-top: 10px;
  1874. .mega-description {
  1875. margin-top: 5px;
  1876. }
  1877. .mega-info {
  1878. clear: both;
  1879. margin-top: 15px;
  1880. display: block;
  1881. float: left;
  1882. font-size: 0.9em;
  1883. color: #aaa;
  1884. line-height: 20px;
  1885. width: 100%;
  1886. &:before {
  1887. font: 400 20px/1 dashicons;
  1888. content: "\f348";
  1889. speak: none;
  1890. padding: 0;
  1891. margin-right: 6px;
  1892. display: inline-block;
  1893. vertical-align: top;
  1894. -webkit-font-smoothing: antialiased;
  1895. -moz-osx-font-smoothing: grayscale;
  1896. }
  1897. }
  1898. }
  1899. &.mega-custom_css {
  1900. width: 100%;
  1901. margin-bottom: 0;
  1902. }
  1903. }
  1904. td.mega-value.mega-instances {
  1905. vertical-align: top;
  1906. table th,
  1907. table td {
  1908. font-weight: normal;
  1909. padding: 5px;
  1910. }
  1911. .mega-description {
  1912. padding-left: 5px;
  1913. }
  1914. }
  1915. td.mega-name .mega-description,
  1916. td.mega-value .mega-description {
  1917. font-size: 0.9em;
  1918. color: #777;
  1919. line-height: 1.5em;
  1920. }
  1921. ul.custom_styling_tips {
  1922. list-style-type: disc;
  1923. list-style-position: inside;
  1924. code {
  1925. margin: 10px 0 0 0;
  1926. font-size: 0.9em;
  1927. }
  1928. }
  1929. label.mega-error input {
  1930. border: 1px solid $red;
  1931. background: #FFDDDD;
  1932. }
  1933. label.mega-toggle_blocks {
  1934. width: 99%;
  1935. cursor: auto;
  1936. .mega-value {
  1937. padding-bottom: 0;
  1938. }
  1939. .mega-description {
  1940. float: left;
  1941. width: 100%;
  1942. margin-top: 20px;
  1943. }
  1944. .toggle-bar-designer {
  1945. .mega-blocks {
  1946. display: flex;
  1947. box-sizing: border-box;
  1948. }
  1949. .mega-blocks .mega-left,
  1950. .mega-blocks .mega-center,
  1951. .mega-blocks .mega-right {
  1952. box-sizing: border-box;
  1953. border: 1px solid #ccc;
  1954. background: #f7f7f7;
  1955. height: 60px;
  1956. padding: 10px;
  1957. margin-top: 15px;
  1958. display: flex;
  1959. flex-basis: 33.3333%;
  1960. }
  1961. .mega-blocks .mega-left {
  1962. border-right: 0px;
  1963. flex: 1;
  1964. }
  1965. .mega-blocks .mega-center {
  1966. border-left: 1px dashed #ccc;
  1967. border-right: 1px dashed #ccc;
  1968. justify-content: center;
  1969. }
  1970. .mega-blocks .mega-right {
  1971. border-left: 0px;
  1972. flex: 1;
  1973. justify-content: flex-end;
  1974. }
  1975. .mega-blocks .mega-right .block {
  1976. float: right;
  1977. margin: 0 0 0 5px;
  1978. }
  1979. .mega-blocks .block.mega-open .block-title {
  1980. border-bottom: 1px solid white;
  1981. border-radius: 3px 3px 0 0;
  1982. }
  1983. .mega-blocks .block .block-title {
  1984. padding: 0 10px;
  1985. display: inline-block;
  1986. height: 35px;
  1987. line-height: 35px;
  1988. font-size: 0.9em;
  1989. background: white;
  1990. color: $text_grey;
  1991. cursor: move;
  1992. border: 1px solid #ccc;
  1993. position: relative;
  1994. z-index: 2;
  1995. border-radius: 3px;
  1996. text-align: left;
  1997. box-sizing: border-box;
  1998. white-space: nowrap;
  1999. }
  2000. .mega-blocks .block.ui-sortable-helper {
  2001. width: auto !important;
  2002. }
  2003. .mega-blocks .block .block-title .dashicons {
  2004. line-height: 35px;
  2005. cursor: pointer;
  2006. font-size: 20px;
  2007. }
  2008. .mega-blocks .block .block-settings {
  2009. padding: 10px;
  2010. display: none;
  2011. width: 300px;
  2012. vertical-align: top;
  2013. background: white;
  2014. text-align: left;
  2015. color: #ccc;
  2016. position: absolute;
  2017. left: 0px;
  2018. top: 34px;
  2019. z-index: 1;
  2020. border: 1px solid #ccc;
  2021. }
  2022. .mega-blocks .mega-right .block .block-settings {
  2023. left: auto;
  2024. right: 0;
  2025. }
  2026. .mega-blocks .block h3 {
  2027. margin-top: 5px;
  2028. border-bottom: 1px solid #ccc;
  2029. padding-bottom: 10px;
  2030. }
  2031. .block-settings label {
  2032. width: 100%;
  2033. clear: both;
  2034. color: $text_grey;
  2035. font-size: 1em;
  2036. }
  2037. .block-settings label input,
  2038. .block-settings label select,
  2039. .block-settings label input,
  2040. .block-settings label .icon_dropdown {
  2041. float: right;
  2042. font-size: 0.9em;
  2043. }
  2044. .toggle-left {
  2045. border-right: 1px dashed #ccc;
  2046. }
  2047. .toggle-right {
  2048. border-left: 0px solid #ccc;
  2049. text-align: right;
  2050. }
  2051. .mega-blocks .block {
  2052. position: relative;
  2053. display: inline-block;
  2054. vertical-align: top;
  2055. margin: 0 5px 0 0;
  2056. input[type=text] {
  2057. width: 50%;
  2058. }
  2059. }
  2060. }
  2061. }
  2062. .mega-validation-message {
  2063. display: none;
  2064. clear: both;
  2065. font-size: 0.8em;
  2066. color: $red;
  2067. }
  2068. label span.mega-short-desc {
  2069. font-size: 0.8em;
  2070. text-transform: uppercase;
  2071. color: #aaa;
  2072. display: block;
  2073. margin: 0 0 2px 1px;
  2074. }
  2075. label.mega-copy_color {
  2076. margin-right: 3px;
  2077. span.mega-short-desc {
  2078. visibility: hidden;
  2079. }
  2080. span.dashicons {
  2081. opacity: 0.5;
  2082. margin-top: 6px;
  2083. font-size: 16px;
  2084. }
  2085. }
  2086. }
  2087. .row h5 {
  2088. margin: 0;
  2089. font-weight: normal;
  2090. float: left;
  2091. width: 250px;
  2092. font-size: 1em;
  2093. }
  2094. .megamenu_submit {
  2095. float: left;
  2096. width: 100%;
  2097. }
  2098. div.mega-tab-content {
  2099. position: relative;
  2100. top: -1px;
  2101. clear: both;
  2102. border: 1px solid #ccc;
  2103. float: left;
  2104. width: 100%;
  2105. padding: 0;
  2106. box-sizing: border-box;
  2107. &.mega-toggle-disabled {
  2108. .mega-toggle_blocks td:after,
  2109. .mega-toggle_bar_background td:after,
  2110. .mega-toggle_bar_height td:after,
  2111. .mega-mobile_menu_overlay td:after,
  2112. .mega-mobile_menu_force_width td:after {
  2113. background: $mid_grey;
  2114. display: block;
  2115. position: absolute;
  2116. top: 0;
  2117. left: 0;
  2118. height: 100%;
  2119. width: 100%;
  2120. content: "";
  2121. opacity: 0.5;
  2122. z-index: 9;
  2123. }
  2124. .mega-mobile_toggle_disabled {
  2125. display: table-row;
  2126. }
  2127. }
  2128. &.mega-mobile-disabled {
  2129. tr:not(.mega-responsive_breakpoint):not(.mega-responsive_breakpoint_disabled) td:after {
  2130. background: $mid_grey;
  2131. display: block;
  2132. position: absolute;
  2133. top: 0;
  2134. left: 0;
  2135. height: 100%;
  2136. width: 100%;
  2137. content: "";
  2138. opacity: 0.5;
  2139. z-index: 9;
  2140. }
  2141. .mega-responsive_breakpoint_disabled {
  2142. display: table-row;
  2143. }
  2144. .mega-mobile_toggle_disabled {
  2145. display: none;
  2146. }
  2147. }
  2148. .mega-responsive_breakpoint_disabled,
  2149. .mega-mobile_toggle_disabled {
  2150. display: none;
  2151. td {
  2152. padding-top: 10px;
  2153. padding-bottom: 10px;
  2154. border-top: 0;
  2155. }
  2156. h5 {
  2157. border: 1px solid #ccc;
  2158. padding: 10px;
  2159. box-sizing: border-box;
  2160. border-left: 3px solid $green;
  2161. font-size: 12px;
  2162. font-weight: normal;
  2163. margin: 0 10px;
  2164. }
  2165. }
  2166. }
  2167. }
  2168. .mega-description .fail {
  2169. margin: 20px 0 0 0;
  2170. color: $dark_grey;
  2171. }
  2172. }
  2173. .mega-delete {
  2174. margin-bottom: 15px;
  2175. cursor: pointer;
  2176. }
  2177. }
  2178. @keyframes "rotation" {
  2179. 0% {
  2180. -webkit-transform: rotate(0deg);
  2181. transform: rotate(0deg);
  2182. }
  2183. 100% {
  2184. -webkit-transform: rotate(359deg);
  2185. transform: rotate(359deg);
  2186. }
  2187. }