customize-widgets.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  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. .control-section.control-section-sidebar .accordion-section-content.ui-sortable {
  15. overflow: visible;
  16. }
  17. /* Note: widget-tops are more compact when (max-height: 700px) and (min-width: 981px). */
  18. .customize-control-widget_form .widget-top {
  19. background: #fff;
  20. -webkit-transition: opacity 0.5s;
  21. transition: opacity 0.5s;
  22. }
  23. .customize-control .widget-action {
  24. color: #72777c;
  25. }
  26. .customize-control .widget-top:hover .widget-action,
  27. .customize-control .widget-action:focus {
  28. color: #23282d;
  29. }
  30. .customize-control-widget_form:not(.widget-rendered) .widget-top {
  31. opacity: 0.5;
  32. }
  33. .customize-control-widget_form .widget-control-save {
  34. display: none;
  35. }
  36. .customize-control-widget_form .spinner {
  37. visibility: hidden;
  38. margin-top: 0;
  39. }
  40. .customize-control-widget_form.previewer-loading .spinner {
  41. visibility: visible;
  42. }
  43. .customize-control-widget_form.widget-form-disabled .widget-content {
  44. opacity: 0.7;
  45. pointer-events: none;
  46. -moz-user-select: none;
  47. -webkit-user-select: none;
  48. -ms-user-select: none;
  49. user-select: none;
  50. }
  51. .customize-control-widget_form .widget {
  52. margin-bottom: 0;
  53. }
  54. .customize-control-widget_form.wide-widget-control .widget-inside {
  55. position: fixed;
  56. left: 299px;
  57. top: 25%;
  58. border: 1px solid rgb(229, 229, 229);
  59. overflow: auto;
  60. }
  61. .customize-control-widget_form.wide-widget-control .widget-inside > .form {
  62. padding: 20px;
  63. }
  64. .customize-control-widget_form.wide-widget-control .widget-top {
  65. -webkit-transition: background-color 0.4s;
  66. transition: background-color 0.4s;
  67. }
  68. .customize-control-widget_form.wide-widget-control.expanding .widget-top,
  69. .customize-control-widget_form.wide-widget-control.expanded:not(.collapsing) .widget-top {
  70. background-color: rgb(227, 227, 227);
  71. }
  72. .widget-inside {
  73. padding: 1px 10px 10px 10px;
  74. border-top: none;
  75. line-height: 16px;
  76. }
  77. .customize-control-widget_form.expanded .widget-action .toggle-indicator:before {
  78. content: "\f142";
  79. }
  80. .customize-control-widget_form.wide-widget-control .widget-action .toggle-indicator:before {
  81. content: "\f139";
  82. }
  83. .customize-control-widget_form.wide-widget-control.expanded .widget-action .toggle-indicator:before {
  84. content: "\f141";
  85. }
  86. .widget-title-action {
  87. cursor: pointer;
  88. }
  89. .widget-top,
  90. .customize-control-widget_form .widget .customize-control-title {
  91. cursor: move;
  92. }
  93. .control-section.accordion-section.highlighted > .accordion-section-title,
  94. .customize-control-widget_form.highlighted {
  95. outline: none;
  96. -webkit-box-shadow: 0 0 2px rgba(30,140,190,0.8);
  97. box-shadow: 0 0 2px rgba(30,140,190,0.8);
  98. position: relative;
  99. z-index: 1;
  100. }
  101. #widget-customizer-control-templates {
  102. display: none;
  103. }
  104. /**
  105. * Widget reordering styles
  106. */
  107. #customize-theme-controls .widget-reorder-nav {
  108. display: none;
  109. float: right;
  110. background-color: #fafafa;
  111. }
  112. .move-widget:before {
  113. content: "\f504";
  114. }
  115. #customize-theme-controls .move-widget-area {
  116. display: none;
  117. background: #fff;
  118. border: 1px solid #ddd;
  119. border-top: none;
  120. cursor: auto;
  121. }
  122. #customize-theme-controls .reordering .move-widget-area.active {
  123. display: block;
  124. }
  125. #customize-theme-controls .move-widget-area .description {
  126. margin: 0;
  127. padding: 15px 20px;
  128. font-weight: 400;
  129. }
  130. #customize-theme-controls .widget-area-select {
  131. margin: 0;
  132. padding: 0;
  133. list-style: none;
  134. }
  135. #customize-theme-controls .widget-area-select li {
  136. position: relative;
  137. margin: 0;
  138. padding: 13px 15px 15px 42px;
  139. color: #555;
  140. border-top: 1px solid #eee;
  141. cursor: pointer;
  142. -webkit-user-select: none;
  143. -moz-user-select: none;
  144. -ms-user-select: none;
  145. user-select: none;
  146. }
  147. #customize-theme-controls .widget-area-select li:before {
  148. display: none;
  149. content: "\f147";
  150. position: absolute;
  151. top: 12px;
  152. left: 10px;
  153. font: normal 20px/1 dashicons;
  154. -webkit-font-smoothing: antialiased;
  155. -moz-osx-font-smoothing: grayscale;
  156. }
  157. #customize-theme-controls .widget-area-select li:last-child {
  158. border-bottom: 1px solid #eee;
  159. }
  160. #customize-theme-controls .widget-area-select .selected {
  161. color: #fff;
  162. text-shadow: 0 -1px 0 rgba(0,0,0,.4);
  163. background: #00a0d2;
  164. }
  165. #customize-theme-controls .widget-area-select .selected:before {
  166. display: block;
  167. }
  168. #customize-theme-controls .move-widget-actions {
  169. text-align: right;
  170. padding: 12px;
  171. }
  172. #customize-theme-controls .reordering .widget-title-action {
  173. display: none;
  174. }
  175. #customize-theme-controls .reordering .widget-reorder-nav {
  176. display: block;
  177. }
  178. /* Text Widget */
  179. .wp-customizer div.mce-inline-toolbar-grp,
  180. .wp-customizer div.mce-tooltip {
  181. z-index: 500100 !important;
  182. }
  183. .wp-customizer .ui-autocomplete.wplink-autocomplete {
  184. z-index: 500110; /* originally 100110, but z-index of .wp-full-overlay is 500000 */
  185. }
  186. .wp-customizer #wp-link-backdrop {
  187. z-index: 500100; /* originally 100100, but z-index of .wp-full-overlay is 500000 */
  188. }
  189. .wp-customizer #wp-link-wrap {
  190. z-index: 500105; /* originally 100105, but z-index of .wp-full-overlay is 500000 */
  191. }
  192. /**
  193. * Styles for new widget addition panel
  194. */
  195. /* override widgets admin page rules in wp-admin/css/widgets.css */
  196. #widgets-left #available-widgets .widget {
  197. float: none !important;
  198. width: auto !important;
  199. }
  200. .ios #available-widgets {
  201. -webkit-transition: left 0s;
  202. transition: left 0s;
  203. }
  204. #available-widgets .widget-tpl:hover,
  205. #available-widgets .widget-tpl.selected {
  206. background: #f3f3f5;
  207. border-bottom-color: #ccc;
  208. color: #0073aa;
  209. border-left: 4px solid #0073aa;
  210. }
  211. #customize-controls .widget-title h3 {
  212. font-size: 1em;
  213. }
  214. #available-widgets .widget-title h3 {
  215. padding: 0 0 5px;
  216. font-size: 14px;
  217. }
  218. #available-widgets .widget .widget-description {
  219. padding: 0;
  220. color: #72777c;
  221. }
  222. #customize-preview {
  223. -webkit-transition: all 0.2s;
  224. transition: all 0.2s;
  225. }
  226. body.adding-widget #available-widgets {
  227. left: 0;
  228. visibility: visible;
  229. }
  230. body.adding-widget .wp-full-overlay-main {
  231. left: 300px;
  232. }
  233. body.adding-widget #customize-preview {
  234. opacity: 0.4;
  235. }
  236. /**
  237. * Widget Icon styling
  238. * No plurals in naming.
  239. * Ordered from lowest to highest specificity.
  240. */
  241. #available-widgets .widget-title {
  242. position: relative;
  243. }
  244. #available-widgets .widget-title:before {
  245. content: "\f132";
  246. position: absolute;
  247. top: -3px;
  248. right: 100%;
  249. margin-right: 20px;
  250. width: 20px;
  251. height: 20px;
  252. color: #32373c;
  253. font: normal 20px/1 dashicons;
  254. text-align: center;
  255. -webkit-box-sizing: border-box;
  256. -moz-box-sizing: border-box;
  257. box-sizing: border-box;
  258. -webkit-font-smoothing: antialiased;
  259. -moz-osx-font-smoothing: grayscale;
  260. }
  261. /* smiley */
  262. #available-widgets [class*="easy"] .widget-title:before { content: "\f328"; top: -4px; }
  263. /* star-filled */
  264. #available-widgets [class*="super"] .widget-title:before,
  265. #available-widgets [class*="like"] .widget-title:before { content: "\f155"; top: -4px; }
  266. /* wordpress */
  267. #available-widgets [class*="meta"] .widget-title:before { content: "\f120"; }
  268. /* archive-box */
  269. #available-widgets [class*="archives"] .widget-title:before { content: "\f480"; top: -4px; }
  270. /* category */
  271. #available-widgets [class*="categor"] .widget-title:before { content: "\f318"; top: -4px; }
  272. /* comments */
  273. #available-widgets [class*="comment"] .widget-title:before,
  274. #available-widgets [class*="testimonial"] .widget-title:before,
  275. #available-widgets [class*="chat"] .widget-title:before { content: "\f101"; }
  276. /* post */
  277. #available-widgets [class*="post"] .widget-title:before { content: "\f109"; }
  278. /* admin-page */
  279. #available-widgets [class*="page"] .widget-title:before { content: "\f105"; }
  280. /* text */
  281. #available-widgets [class*="text"] .widget-title:before { content: "\f478"; }
  282. /* links */
  283. #available-widgets [class*="link"] .widget-title:before { content: "\f103"; }
  284. /* search */
  285. #available-widgets [class*="search"] .widget-title:before { content: "\f179"; }
  286. /* menu */
  287. #available-widgets [class*="menu"] .widget-title:before,
  288. #available-widgets [class*="nav"] .widget-title:before { content: "\f333"; }
  289. /* tag-cloud */
  290. #available-widgets [class*="tag"] .widget-title:before { content: "\f479"; }
  291. /* rss */
  292. #available-widgets [class*="rss"] .widget-title:before { content: "\f303"; top: -6px; }
  293. /* calendar */
  294. #available-widgets [class*="event"] .widget-title:before,
  295. #available-widgets [class*="calendar"] .widget-title:before { content: "\f145"; top: -4px;}
  296. /* format-image */
  297. #available-widgets [class*="image"] .widget-title:before,
  298. #available-widgets [class*="photo"] .widget-title:before,
  299. #available-widgets [class*="slide"] .widget-title:before,
  300. #available-widgets [class*="instagram"] .widget-title:before { content: "\f128"; }
  301. /* format-gallery */
  302. #available-widgets [class*="album"] .widget-title:before,
  303. #available-widgets [class*="galler"] .widget-title:before { content: "\f161"; }
  304. /* format-video */
  305. #available-widgets [class*="video"] .widget-title:before,
  306. #available-widgets [class*="tube"] .widget-title:before { content: "\f126"; }
  307. /* format-audio */
  308. #available-widgets [class*="music"] .widget-title:before,
  309. #available-widgets [class*="radio"] .widget-title:before,
  310. #available-widgets [class*="audio"] .widget-title:before { content: "\f127"; }
  311. /* admin-users */
  312. #available-widgets [class*="login"] .widget-title:before,
  313. #available-widgets [class*="user"] .widget-title:before,
  314. #available-widgets [class*="member"] .widget-title:before,
  315. #available-widgets [class*="avatar"] .widget-title:before,
  316. #available-widgets [class*="subscriber"] .widget-title:before,
  317. #available-widgets [class*="profile"] .widget-title:before,
  318. #available-widgets [class*="grofile"] .widget-title:before { content: "\f110"; }
  319. /* cart */
  320. #available-widgets [class*="commerce"] .widget-title:before,
  321. #available-widgets [class*="shop"] .widget-title:before,
  322. #available-widgets [class*="cart"] .widget-title:before { content: "\f174"; top: -4px; }
  323. /* shield */
  324. #available-widgets [class*="secur"] .widget-title:before,
  325. #available-widgets [class*="firewall"] .widget-title:before { content: "\f332"; }
  326. /* chart-bar */
  327. #available-widgets [class*="analytic"] .widget-title:before,
  328. #available-widgets [class*="stat"] .widget-title:before,
  329. #available-widgets [class*="poll"] .widget-title:before { content: "\f185"; }
  330. /* feedback */
  331. #available-widgets [class*="form"] .widget-title:before { content: "\f175"; }
  332. /* email-alt */
  333. #available-widgets [class*="subscribe"] .widget-title:before,
  334. #available-widgets [class*="news"] .widget-title:before,
  335. #available-widgets [class*="contact"] .widget-title:before,
  336. #available-widgets [class*="mail"] .widget-title:before { content: "\f466"; }
  337. /* share */
  338. #available-widgets [class*="share"] .widget-title:before,
  339. #available-widgets [class*="socia"] .widget-title:before { content: "\f237"; }
  340. /* translation */
  341. #available-widgets [class*="lang"] .widget-title:before,
  342. #available-widgets [class*="translat"] .widget-title:before { content: "\f326"; }
  343. /* location-alt */
  344. #available-widgets [class*="locat"] .widget-title:before,
  345. #available-widgets [class*="map"] .widget-title:before { content: "\f231"; }
  346. /* download */
  347. #available-widgets [class*="download"] .widget-title:before { content: "\f316"; }
  348. /* cloud */
  349. #available-widgets [class*="weather"] .widget-title:before { content: "\f176"; top: -4px;}
  350. /* facebook */
  351. #available-widgets [class*="facebook"] .widget-title:before { content: "\f304"; }
  352. /* twitter */
  353. #available-widgets [class*="tweet"] .widget-title:before,
  354. #available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; }
  355. @media screen and (max-height: 700px) and (min-width: 981px) {
  356. /* Compact widget-tops on smaller laptops, but not tablets. See ticket #27112#comment:4 */
  357. .customize-control-widget_form {
  358. margin-bottom: 0;
  359. }
  360. .widget-top {
  361. -webkit-box-shadow: none;
  362. box-shadow: none;
  363. margin-top: -1px;
  364. }
  365. .widget-top:hover {
  366. position: relative;
  367. z-index: 1;
  368. }
  369. .last-widget {
  370. margin-bottom: 15px;
  371. }
  372. .widget-title h3 {
  373. padding: 13px 15px;
  374. }
  375. .widget-top .widget-action {
  376. padding: 8px 10px;
  377. }
  378. .widget-reorder-nav span {
  379. height: 39px;
  380. }
  381. .widget-reorder-nav span:before {
  382. line-height: 39px;
  383. }
  384. /* Compact the move widget areas. */
  385. #customize-theme-controls .widget-area-select li {
  386. padding: 9px 15px 11px 42px;
  387. }
  388. #customize-theme-controls .widget-area-select li:before {
  389. top: 8px;
  390. }
  391. }