/wp-admin/css/customize-widgets.css

https://gitlab.com/webteam/job_aag · CSS · 636 lines · 483 code · 104 blank · 49 comment · 0 complexity · 7cec3fb121b9608cfb8c6a089bdc1a78 MD5 · raw file

  1. .wp-full-overlay-sidebar {
  2. overflow: visible;
  3. }
  4. /**
  5. * Hide all sidebar sections by default, only show them (via JS) once the
  6. * preview loads and we know whether the sidebars are used in the template.
  7. */
  8. .control-section.control-section-sidebar,
  9. .customize-control-sidebar_widgets label,
  10. .customize-control-sidebar_widgets .hide-if-js {
  11. /* The link in .customize-control-sidebar_widgets .hide-if-js will fail if it ever gets used. */
  12. display: none;
  13. }
  14. .customize-control-widget_form .widget-top {
  15. -webkit-transition: opacity 0.5s;
  16. transition: opacity 0.5s;
  17. }
  18. .customize-control-widget_form:not(.widget-rendered) .widget-top {
  19. opacity: 0.5;
  20. }
  21. .customize-control-widget_form .widget-control-save {
  22. display: none;
  23. }
  24. .customize-control-widget_form .spinner {
  25. visibility: hidden;
  26. margin-top: 0;
  27. }
  28. .customize-control-widget_form.previewer-loading .spinner {
  29. visibility: visible;
  30. }
  31. .customize-control-widget_form.widget-form-disabled .widget-content {
  32. opacity: 0.7;
  33. pointer-events: none;
  34. -moz-user-select: none;
  35. -webkit-user-select: none;
  36. -ms-user-select: none;
  37. user-select: none;
  38. }
  39. .customize-control-widget_form .widget {
  40. margin-bottom: 0;
  41. }
  42. .customize-control-widget_form.wide-widget-control .widget-inside {
  43. position: fixed;
  44. left: 299px;
  45. top: 25%;
  46. border: 1px solid rgb(229, 229, 229);
  47. overflow: auto;
  48. }
  49. .customize-control-widget_form.wide-widget-control .widget-inside > .form {
  50. padding: 20px;
  51. }
  52. .customize-control-widget_form.wide-widget-control .widget-top {
  53. -webkit-transition: background-color 0.4s;
  54. transition: background-color 0.4s;
  55. }
  56. .customize-control-widget_form.wide-widget-control.expanding .widget-top,
  57. .customize-control-widget_form.wide-widget-control.expanded:not(.collapsing) .widget-top {
  58. background-color: rgb(227, 227, 227);
  59. }
  60. .widget-inside {
  61. padding: 1px 10px 10px 10px;
  62. border-top: none;
  63. line-height: 16px;
  64. }
  65. .widget-top {
  66. cursor: move;
  67. }
  68. .customize-control-widget_form.expanded a.widget-action:after {
  69. content: "\f142";
  70. }
  71. .customize-control-widget_form.wide-widget-control a.widget-action:after {
  72. content: "\f139";
  73. }
  74. .customize-control-widget_form.wide-widget-control.expanded a.widget-action:after {
  75. content: "\f141";
  76. }
  77. .widget-title-action {
  78. cursor: pointer;
  79. }
  80. .customize-control-widget_form .widget .customize-control-title {
  81. cursor: move;
  82. }
  83. .control-section.accordion-section.highlighted > .accordion-section-title,
  84. .customize-control-widget_form.highlighted {
  85. outline: none;
  86. -webkit-box-shadow: 0 0 2px rgba(30,140,190,0.8);
  87. box-shadow: 0 0 2px rgba(30,140,190,0.8);
  88. position: relative;
  89. z-index: 1;
  90. }
  91. #widget-customizer-control-templates {
  92. display: none;
  93. }
  94. /**
  95. * Widget reordering styles
  96. **/
  97. .reorder-toggle {
  98. float: right;
  99. padding: 5px 8px;
  100. text-decoration: none;
  101. cursor: pointer;
  102. outline: none;
  103. -webkit-user-select: none;
  104. -moz-user-select: none;
  105. -ms-user-select: none;
  106. user-select: none;
  107. }
  108. .reorder-toggle:focus {
  109. outline: 1px dotted;
  110. }
  111. .reorder-done,
  112. .reordering .reorder {
  113. display: none;
  114. }
  115. .reordering .reorder-done {
  116. display: block;
  117. color: #aa0000;
  118. }
  119. #customize-theme-controls .reordering .add-new-widget {
  120. opacity: 0.2;
  121. pointer-events: none;
  122. cursor: not-allowed;
  123. }
  124. #customize-theme-controls .widget-reorder-nav {
  125. display: none;
  126. float: right;
  127. background-color: #fafafa;
  128. }
  129. .widget-reorder-nav span {
  130. position: relative;
  131. overflow: hidden;
  132. float: left;
  133. display: block;
  134. width: 33px; /* was 42px for mobile */
  135. height: 43px;
  136. color: #82878c;
  137. text-indent: -9999px;
  138. cursor: pointer;
  139. outline: none;
  140. }
  141. .widget-reorder-nav span:before {
  142. display: inline-block;
  143. position: absolute;
  144. top: 0;
  145. right: 0;
  146. width: 100%;
  147. height: 100%;
  148. font: normal 20px/43px 'dashicons';
  149. text-align: center;
  150. text-indent: 0;
  151. -webkit-font-smoothing: antialiased;
  152. -moz-osx-font-smoothing: grayscale;
  153. }
  154. .widget-reorder-nav span:hover,
  155. .widget-reorder-nav span:focus {
  156. color: #444;
  157. background: #eee;
  158. }
  159. .move-widget:before {
  160. content: '\f504';
  161. }
  162. .move-widget-down:before {
  163. content: '\f347';
  164. }
  165. .move-widget-up:before {
  166. content: '\f343';
  167. }
  168. #customize-theme-controls .first-widget .move-widget-up,
  169. #customize-theme-controls .last-widget .move-widget-down {
  170. color: #d5d5d5;
  171. cursor: default;
  172. }
  173. #customize-theme-controls .move-widget-area {
  174. display: none;
  175. background: #fff;
  176. border: 1px solid #dedede;
  177. border-top: none;
  178. cursor: auto;
  179. }
  180. #customize-theme-controls .reordering .move-widget-area.active {
  181. display: block;
  182. }
  183. #customize-theme-controls .move-widget-area .description {
  184. margin: 0;
  185. padding: 15px 20px;
  186. font-weight: 400;
  187. }
  188. #customize-theme-controls .widget-area-select {
  189. margin: 0;
  190. padding: 0;
  191. list-style: none;
  192. }
  193. #customize-theme-controls .widget-area-select li {
  194. position: relative;
  195. margin: 0;
  196. padding: 13px 15px 15px 42px;
  197. color: #555;
  198. border-top: 1px solid #eee;
  199. cursor: pointer;
  200. -webkit-user-select: none;
  201. -moz-user-select: none;
  202. -ms-user-select: none;
  203. user-select: none;
  204. }
  205. #customize-theme-controls .widget-area-select li:before {
  206. display: none;
  207. content: '\f147';
  208. position: absolute;
  209. top: 12px;
  210. left: 10px;
  211. font: normal 20px/1 'dashicons';
  212. -webkit-font-smoothing: antialiased;
  213. -moz-osx-font-smoothing: grayscale;
  214. }
  215. #customize-theme-controls .widget-area-select li:last-child {
  216. border-bottom: 1px solid #eee;
  217. }
  218. #customize-theme-controls .widget-area-select .selected {
  219. color: #fff;
  220. text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  221. background: #00a0d2;
  222. }
  223. #customize-theme-controls .widget-area-select .selected:before {
  224. display: block;
  225. }
  226. #customize-theme-controls .move-widget-actions {
  227. text-align: right;
  228. padding: 12px;
  229. }
  230. #customize-theme-controls .reordering .widget-title-action {
  231. display: none;
  232. }
  233. #customize-theme-controls .reordering .widget-reorder-nav {
  234. display: block;
  235. }
  236. /**
  237. * Styles for new widget addition panel
  238. */
  239. .wp-full-overlay-main {
  240. right: auto; /* this overrides a right: 0; which causes the preview to resize, I'd rather have it go off screen at the normal size. */
  241. width: 100%;
  242. }
  243. #customize-theme-controls .add-new-widget {
  244. cursor: pointer;
  245. float: right;
  246. margin-left: 10px;
  247. -webkit-transition: all 0.2s;
  248. transition: all 0.2s;
  249. -webkit-user-select: none;
  250. -moz-user-select: none;
  251. -ms-user-select: none;
  252. user-select: none;
  253. outline: none;
  254. }
  255. .add-new-widget:before {
  256. content: "\f132";
  257. display: inline-block;
  258. position: relative;
  259. left: -2px;
  260. top: -1px;
  261. font: normal 20px/1 'dashicons';
  262. vertical-align: middle;
  263. -webkit-transition: all 0.2s;
  264. transition: all 0.2s;
  265. -webkit-font-smoothing: antialiased;
  266. -moz-osx-font-smoothing: grayscale;
  267. }
  268. body.adding-widget .add-new-widget,
  269. body.adding-widget .add-new-widget:hover {
  270. background: #eee;
  271. border-color: #999;
  272. color: #32373c;
  273. -webkit-box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
  274. box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);
  275. }
  276. body.adding-widget .add-new-widget:before {
  277. -webkit-transform: rotate(45deg);
  278. -ms-transform: rotate(45deg);
  279. transform: rotate(45deg);
  280. }
  281. #available-widgets .widget {
  282. position: static;
  283. }
  284. /* override widgets admin page rules in wp-admin/css/wp-admin.css */
  285. #widgets-left #available-widgets .widget {
  286. float: none !important;
  287. width: auto !important;
  288. }
  289. #available-widgets {
  290. position: absolute;
  291. overflow: auto;
  292. top: 0;
  293. bottom: 0;
  294. left: -301px;
  295. width: 300px;
  296. margin: 0;
  297. z-index: 1;
  298. background: #fff !important;
  299. -webkit-transition: all 0.2s;
  300. transition: all 0.2s;
  301. border-right: 1px solid #dddddd;
  302. }
  303. #available-widgets-list {
  304. top: 46px;
  305. position: absolute;
  306. overflow: auto;
  307. bottom: 0;
  308. width: 100%;
  309. }
  310. #available-widgets-filter {
  311. position: fixed;
  312. top: 0;
  313. z-index: 1;
  314. width: 300px;
  315. height: 46px;
  316. padding: 8px 17px 7px 13px;
  317. background: #eee;
  318. border-bottom: 1px solid #e4e4e4;
  319. -webkit-box-sizing: border-box;
  320. -moz-box-sizing: border-box;
  321. box-sizing: border-box;
  322. }
  323. #available-widgets-filter input {
  324. padding: 5px 10px 2px 10px;
  325. width: 100%;
  326. }
  327. #available-widgets .widget-tpl {
  328. position: relative;
  329. padding: 20px 15px 20px 60px;
  330. border-bottom: 1px solid #e4e4e4;
  331. cursor: pointer;
  332. display: none;
  333. }
  334. #available-widgets .widget-tpl:hover,
  335. #available-widgets .widget-tpl.selected {
  336. background: #fafafa;
  337. }
  338. #available-widgets .widget-top,
  339. #available-widgets .widget-top:hover {
  340. border: none;
  341. background: transparent;
  342. -webkit-box-shadow: none;
  343. box-shadow: none;
  344. }
  345. #available-widgets .widget-title h4 {
  346. padding: 0 0 5px;
  347. font-size: 14px;
  348. }
  349. #available-widgets .widget .widget-description {
  350. padding: 0;
  351. color: #777;
  352. }
  353. #customize-preview {
  354. -webkit-transition: all 0.2s;
  355. transition: all 0.2s;
  356. }
  357. body.adding-widget #available-widgets {
  358. left: 0;
  359. }
  360. body.adding-widget .wp-full-overlay-main {
  361. left: 300px;
  362. }
  363. body.adding-widget #customize-preview {
  364. opacity: 0.4;
  365. }
  366. /**
  367. * Widget Icon styling
  368. * No plurals in naming.
  369. * Ordered from lowest to highest specificity.
  370. **/
  371. #available-widgets .widget-title {
  372. position: relative;
  373. }
  374. #available-widgets .widget-title:before {
  375. content: "\f132";
  376. position: absolute;
  377. top: -3px;
  378. right: 100%;
  379. margin-right: 20px;
  380. width: 20px;
  381. height: 20px;
  382. color: #32373c;
  383. font: normal 20px/1 'dashicons';
  384. text-align: center;
  385. -webkit-box-sizing: border-box;
  386. -moz-box-sizing: border-box;
  387. box-sizing: border-box;
  388. -webkit-font-smoothing: antialiased;
  389. -moz-osx-font-smoothing: grayscale;
  390. }
  391. /* smiley */
  392. #available-widgets [class*="easy"] .widget-title:before { content: "\f328"; top: -4px; }
  393. /* star-filled */
  394. #available-widgets [class*="super"] .widget-title:before,
  395. #available-widgets [class*="like"] .widget-title:before { content: "\f155"; top: -4px; }
  396. /* wordpress */
  397. #available-widgets [class*="meta"] .widget-title:before { content: "\f120"; }
  398. /* archive-box */
  399. #available-widgets [class*="archives"] .widget-title:before { content: "\f480"; top: -4px; }
  400. /* category */
  401. #available-widgets [class*="categor"] .widget-title:before { content: "\f318"; top: -4px; }
  402. /* comments */
  403. #available-widgets [class*="comment"] .widget-title:before,
  404. #available-widgets [class*="testimonial"] .widget-title:before,
  405. #available-widgets [class*="chat"] .widget-title:before { content: "\f101"; }
  406. /* post */
  407. #available-widgets [class*="post"] .widget-title:before { content: "\f109"; }
  408. /* admin-page */
  409. #available-widgets [class*="page"] .widget-title:before { content: "\f105"; }
  410. /* text */
  411. #available-widgets [class*="text"] .widget-title:before { content: "\f478"; }
  412. /* links */
  413. #available-widgets [class*="link"] .widget-title:before { content: "\f103"; }
  414. /* search */
  415. #available-widgets [class*="search"] .widget-title:before { content: "\f179"; }
  416. /* menu */
  417. #available-widgets [class*="menu"] .widget-title:before,
  418. #available-widgets [class*="nav"] .widget-title:before { content: "\f333"; }
  419. /* tag-cloud */
  420. #available-widgets [class*="tag"] .widget-title:before { content: "\f479"; }
  421. /* rss */
  422. #available-widgets [class*="rss"] .widget-title:before { content: "\f303"; top: -6px; }
  423. /* calendar */
  424. #available-widgets [class*="event"] .widget-title:before,
  425. #available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; top: -4px;}
  426. /* format-image */
  427. #available-widgets [class*="image"] .widget-title:before,
  428. #available-widgets [class*="photo"] .widget-title:before,
  429. #available-widgets [class*="slide"] .widget-title:before,
  430. #available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; }
  431. /* format-gallery */
  432. #available-widgets [class*="album"] .widget-title:before,
  433. #available-widgets [class*="galler"] .widget-title:before { content: "\f161"; }
  434. /* format-video */
  435. #available-widgets [class*="video"] .widget-title:before,
  436. #available-widgets [class*="tube"] .widget-title:before { content: "\f126"; }
  437. /* format-audio */
  438. #available-widgets [class*="music"] .widget-title:before,
  439. #available-widgets [class*="radio"] .widget-title:before,
  440. #available-widgets [class*="audio"] .widget-title:before { content: "\f127"; }
  441. /* admin-users */
  442. #available-widgets [class*="login"] .widget-title:before,
  443. #available-widgets [class*="user"] .widget-title:before,
  444. #available-widgets [class*="member"] .widget-title:before,
  445. #available-widgets [class*="avatar"] .widget-title:before,
  446. #available-widgets [class*="subscriber"] .widget-title:before,
  447. #available-widgets [class*="profile"] .widget-title:before,
  448. #available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; }
  449. /* cart */
  450. #available-widgets [class*="commerce"] .widget-title:before,
  451. #available-widgets [class*="shop"] .widget-title:before,
  452. #available-widgets [class*="cart"] .widget-title:before { content: "\f174"; top: -4px; }
  453. /* shield */
  454. #available-widgets [class*="secur"] .widget-title:before,
  455. #available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; }
  456. /* chart-bar */
  457. #available-widgets [class*="analytic"] .widget-title:before,
  458. #available-widgets [class*="stat"] .widget-title:before,
  459. #available-widgets [class*="poll"] .widget-title:before { content: "\f185"; }
  460. /* feedback */
  461. #available-widgets [class*="form"] .widget-title:before { content: "\f175"; }
  462. /* email-alt */
  463. #available-widgets [class*="subscribe"] .widget-title:before,
  464. #available-widgets [class*="news"] .widget-title:before,
  465. #available-widgets [class*="contact"] .widget-title:before,
  466. #available-widgets [class*="mail"] .widget-title:before { content: "\f466"; }
  467. /* share */
  468. #available-widgets [class*="share"] .widget-title:before,
  469. #available-widgets [class*="socia"] .widget-title:before { content: "\f237"; }
  470. /* translation */
  471. #available-widgets [class*="lang"] .widget-title:before,
  472. #available-widgets [class*="translat"] .widget-title:before { content: "\f326"; }
  473. /* location-alt */
  474. #available-widgets [class*="locat"] .widget-title:before,
  475. #available-widgets [class*="map"] .widget-title:before { content: "\f231"; }
  476. /* download */
  477. #available-widgets [class*="download"] .widget-title:before { content: "\f316"; }
  478. /* cloud */
  479. #available-widgets [class*="weather"] .widget-title:before { content: "\f176"; top: -4px;}
  480. /* facebook */
  481. #available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; }
  482. /* twitter */
  483. #available-widgets [class*="tweet"] .widget-title:before,
  484. #available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; }
  485. @media screen and (max-height: 700px) and (min-width: 981px) {
  486. .customize-control {
  487. margin-bottom: 0;
  488. }
  489. .widget-top {
  490. -webkit-box-shadow: none;
  491. box-shadow: none;
  492. margin-top: -1px;
  493. }
  494. .widget-top:hover {
  495. position: relative;
  496. z-index: 1;
  497. }
  498. .last-widget {
  499. margin-bottom: 15px;
  500. }
  501. .widget-title h4 {
  502. padding: 13px 15px;
  503. }
  504. .widget-top a.widget-action:after {
  505. padding-top: 9px;
  506. }
  507. .widget-reorder-nav span {
  508. height: 39px;
  509. }
  510. .widget-reorder-nav span:before {
  511. line-height: 39px;
  512. }
  513. #customize-theme-controls .widget-area-select li {
  514. padding: 9px 15px 11px 42px;
  515. }
  516. #customize-theme-controls .widget-area-select li:before {
  517. top: 8px;
  518. }
  519. }
  520. @media screen and ( max-width: 640px ) {
  521. body.adding-widget div#available-widgets {
  522. top: 46px;
  523. left: 0;
  524. z-index: 10;
  525. width: 100%;
  526. }
  527. #available-widgets-filter {
  528. position: static;
  529. width: 100%;
  530. height: auto;
  531. }
  532. }