PageRenderTime 59ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 1ms

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

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