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

591 lines
11 KiB

  1. /* General Widgets Styles */
  2. .widget {
  3. margin: 0 auto 10px;
  4. position: relative;
  5. -webkit-box-sizing: border-box;
  6. -moz-box-sizing: border-box;
  7. box-sizing: border-box;
  8. }
  9. .widget-top {
  10. font-size: 13px;
  11. font-weight: 600;
  12. background: #f7f7f7;
  13. }
  14. .widget-top a.widget-action,
  15. .widget-top a.widget-action:hover {
  16. -webkit-box-shadow: none;
  17. box-shadow: none;
  18. outline: none;
  19. text-decoration: none;
  20. }
  21. .widget-title h3,
  22. .widget-title h4 {
  23. margin: 0;
  24. padding: 15px;
  25. font-size: 1em;
  26. line-height: 1;
  27. overflow: hidden;
  28. white-space: nowrap;
  29. text-overflow: ellipsis;
  30. -webkit-user-select: none;
  31. -moz-user-select: none;
  32. -ms-user-select: none;
  33. user-select: none;
  34. }
  35. .widgets-holder-wrap .widget-inside {
  36. border-top: none;
  37. padding: 1px 15px 15px 15px;
  38. line-height: 16px;
  39. }
  40. .in-widget-title,
  41. #widgets-right a.widget-control-edit,
  42. #available-widgets .widget-description {
  43. color: #666;
  44. }
  45. .deleting .widget-title,
  46. .deleting .widget-top a.widget-action:after {
  47. color: #a0a5aa;
  48. }
  49. /* Widget Dragging Helpers */
  50. .widget.ui-draggable-dragging {
  51. min-width: 100%;
  52. }
  53. .widget.ui-sortable-helper {
  54. opacity: 0.8;
  55. }
  56. .widget-placeholder {
  57. border: 1px dashed #b4b9be;
  58. margin: 0 auto 10px;
  59. height: 45px;
  60. width: 100%;
  61. -webkit-box-sizing: border-box;
  62. -moz-box-sizing: border-box;
  63. box-sizing: border-box;
  64. }
  65. #widgets-right .widget-placeholder {
  66. margin-top: 0;
  67. }
  68. #widgets-right .closed .widget-placeholder {
  69. height: 0;
  70. border: 0;
  71. margin-top: -10px;
  72. }
  73. /* Widget Sidebars */
  74. .sidebar-name {
  75. position: relative;
  76. -webkit-box-sizing: border-box;
  77. -moz-box-sizing: border-box;
  78. box-sizing: border-box;
  79. }
  80. .sidebar-name-arrow {
  81. position: absolute;
  82. top: 0;
  83. right: 0;
  84. bottom: 0;
  85. }
  86. .js .sidebar-name {
  87. cursor: pointer;
  88. }
  89. .sidebar-name h2,
  90. .sidebar-name h3 {
  91. margin: 0;
  92. padding: 8px 10px;
  93. overflow: hidden;
  94. white-space: nowrap;
  95. }
  96. .widgets-holder-wrap .description {
  97. padding: 0 0 15px;
  98. margin: 0;
  99. font-style: normal;
  100. color: #72777c;
  101. }
  102. .widget-holder .description,
  103. .inactive-sidebar .description {
  104. color: #555d66;
  105. }
  106. #widgets-right .widgets-holder-wrap .description {
  107. padding-left: 7px;
  108. padding-right: 7px;
  109. }
  110. /* Widgets 2-col Layout */
  111. div.widget-liquid-left {
  112. margin: 0;
  113. width: 38%;
  114. float: left;
  115. }
  116. div.widget-liquid-right {
  117. float: right;
  118. width: 58%;
  119. }
  120. /* Widgets Left - Available Widgets */
  121. div#widgets-left {
  122. padding-top: 12px;
  123. }
  124. div#widgets-left .closed .sidebar-name,
  125. div#widgets-left .inactive-sidebar.closed .sidebar-name {
  126. margin-bottom: 10px;
  127. }
  128. div#widgets-left .sidebar-name h2,
  129. div#widgets-left .sidebar-name h3 {
  130. padding: 10px 0;
  131. margin: 0 10px 0 0;
  132. }
  133. #widgets-left .sidebar-name .sidebar-name-arrow:before {
  134. padding: 9px;
  135. }
  136. #widgets-left .widgets-holder-wrap,
  137. div#widgets-left .widget-holder {
  138. background: transparent;
  139. border: none;
  140. }
  141. #widgets-left .widgets-holder-wrap {
  142. border: none;
  143. -webkit-box-shadow: none;
  144. box-shadow: none;
  145. }
  146. #available-widgets .widget-action {
  147. display: none;
  148. }
  149. #available-widgets .widget {
  150. margin: 0;
  151. }
  152. #available-widgets .widget:nth-child(odd) {
  153. clear: both;
  154. }
  155. #available-widgets .widget .widget-description {
  156. display: block;
  157. padding: 10px 15px;
  158. font-size: 12px;
  159. }
  160. #available-widgets #widget-list {
  161. position: relative;
  162. }
  163. /* Inactive Sidebars */
  164. #widgets-left .inactive-sidebar {
  165. clear: both;
  166. width: 100%;
  167. background: transparent;
  168. padding: 0;
  169. margin: 0 0 20px 0;
  170. border: none;
  171. -webkit-box-shadow: none;
  172. box-shadow: none;
  173. }
  174. #widgets-left .inactive-sidebar.first {
  175. margin-top: 40px;
  176. }
  177. /* Not sure what this is for... */
  178. div#widgets-left .inactive-sidebar .widget.expanded {
  179. left: auto;
  180. }
  181. .widget-title-action {
  182. float: right;
  183. position: relative;
  184. }
  185. div#widgets-left .inactive-sidebar .widgets-sortables {
  186. min-height: 42px;
  187. padding: 0;
  188. background: transparent;
  189. margin: 0;
  190. position: relative;
  191. }
  192. /* Widgets Right */
  193. div#widgets-right .sidebars-column-1,
  194. div#widgets-right .sidebars-column-2 {
  195. max-width: 450px;
  196. }
  197. div#widgets-right .widgets-holder-wrap {
  198. margin: 10px 0 0 0;
  199. }
  200. div#widgets-right .sidebar-description {
  201. min-height: 20px;
  202. margin-top: -5px;
  203. }
  204. div#widgets-right .sidebar-name h2,
  205. div#widgets-right .sidebar-name h3 {
  206. padding: 15px 7px;
  207. }
  208. div#widgets-right .sidebar-name .sidebar-name-arrow:before {
  209. top: 2px;
  210. }
  211. div#widgets-right .widget-top {
  212. padding: 0;
  213. }
  214. div#widgets-right .widgets-sortables {
  215. padding: 0 8px;
  216. margin-bottom: 9px;
  217. position: relative;
  218. min-height: 123px;
  219. }
  220. div#widgets-right .closed .widgets-sortables {
  221. min-height: 0;
  222. margin-bottom: 0;
  223. }
  224. .sidebar-name .spinner,
  225. .remove-inactive-widgets .spinner {
  226. float: none;
  227. position: relative;
  228. top: -2px;
  229. margin: -5px 5px;
  230. }
  231. /* Dragging a widget over a closed sidebar */
  232. #widgets-right .widgets-holder-wrap.widget-hover {
  233. border-color: #72777c;
  234. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  235. box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  236. }
  237. /* Accessibility Mode */
  238. .widgets_access #widgets-left .widget .widget-top {
  239. cursor: auto;
  240. }
  241. .widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description,
  242. .widgets_access #wpwrap .widgets-holder-wrap.closed .widget,
  243. .widgets_access #wpwrap .widget-control-edit {
  244. display: block;
  245. }
  246. .widgets_access #widgets-left .widget .widget-top:hover,
  247. .widgets_access #widgets-right .widget .widget-top:hover {
  248. border-color: #ddd;
  249. }
  250. #available-widgets .widget-control-edit .edit,
  251. #widgets-left .inactive-sidebar .widget-control-edit .add,
  252. #widgets-right .widget-control-edit .add {
  253. display: none;
  254. }
  255. .widget-control-edit {
  256. display: block;
  257. color: #666;
  258. background: #EEE;
  259. padding: 0 15px;
  260. line-height: 43px;
  261. border-left: 1px solid #DDD;
  262. }
  263. #widgets-left .widget-control-edit:hover,
  264. #widgets-right .widget-control-edit:hover {
  265. color: #fff;
  266. background: #444;
  267. border-left: 0;
  268. outline: 1px solid #444;
  269. }
  270. .widgets-holder-wrap .sidebar-name,
  271. .widgets-holder-wrap .sidebar-description {
  272. -webkit-user-select: none;
  273. -moz-user-select: none;
  274. -ms-user-select: none;
  275. user-select: none;
  276. }
  277. .editwidget {
  278. margin: 0 auto;
  279. }
  280. .editwidget .widget-inside {
  281. display: block;
  282. padding: 0 15px;
  283. }
  284. .editwidget .widget-control-actions {
  285. margin-top: 20px;
  286. }
  287. .js .widgets-holder-wrap.closed .widget,
  288. .js .widgets-holder-wrap.closed .sidebar-description,
  289. .js .widgets-holder-wrap.closed .remove-inactive-widgets,
  290. .js .widgets-holder-wrap.closed .description,
  291. .js .closed br.clear {
  292. display: none;
  293. }
  294. .js .widgets-holder-wrap.closed .widget.ui-sortable-helper {
  295. display: block;
  296. }
  297. /* Hide Widget Settings by Default */
  298. .widget-inside,
  299. .widget-description {
  300. display: none;
  301. }
  302. .widget-inside {
  303. background: #fff;
  304. }
  305. /* Dragging widgets over the available widget area show's a "Deactivate" message */
  306. #removing-widget {
  307. display: none;
  308. font-weight: 400;
  309. padding-left: 15px;
  310. font-size: 12px;
  311. line-height: 1;
  312. color: black;
  313. }
  314. .js #removing-widget {
  315. color: #00a0d2;
  316. }
  317. .widget-control-noform,
  318. #access-off,
  319. .widgets_access .widget-action,
  320. .widgets_access .sidebar-name-arrow,
  321. .widgets_access #access-on,
  322. .widgets_access .widget-holder .description,
  323. .no-js .widget-holder .description {
  324. display: none;
  325. }
  326. .widgets_access .widget-holder,
  327. .widgets_access #widget-list {
  328. padding-top: 10px;
  329. }
  330. .widgets_access #access-off {
  331. display: inline;
  332. }
  333. .widgets_access .sidebar-name,
  334. .widgets_access .widget .widget-top {
  335. cursor: default;
  336. }
  337. /* Widgets Area Chooser */
  338. .widget-liquid-left #widgets-left.chooser #available-widgets .widget,
  339. .widget-liquid-left #widgets-left.chooser .inactive-sidebar {
  340. -webkit-transition: opacity 0.1s linear;
  341. transition: opacity 0.1s linear;
  342. }
  343. .widget-liquid-left #widgets-left.chooser #available-widgets .widget,
  344. .widget-liquid-left #widgets-left.chooser .inactive-sidebar {
  345. /* -webkit-filter: blur(1px); */
  346. opacity: 0.2;
  347. pointer-events: none;
  348. }
  349. .widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question {
  350. /* -webkit-filter: none; */
  351. opacity: 1;
  352. pointer-events: auto;
  353. }
  354. .widgets-chooser ul,
  355. #widgets-left .widget-in-question .widget-top,
  356. #available-widgets .widget-top:hover,
  357. div#widgets-right .widget-top:hover,
  358. #widgets-left .widget-top:hover {
  359. border-color: #999;
  360. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  361. box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  362. }
  363. .widgets-chooser ul.widgets-chooser-sidebars {
  364. margin: 0;
  365. list-style-type: none;
  366. max-height: 300px;
  367. overflow: auto;
  368. }
  369. .widgets-chooser {
  370. display: none;
  371. }
  372. .widgets-chooser ul {
  373. border: 1px solid #ccc;
  374. }
  375. .widgets-chooser li {
  376. padding: 10px 15px 10px 35px;
  377. border-bottom: 1px solid #ccc;
  378. background: #fff;
  379. margin: 0;
  380. cursor: pointer;
  381. outline: none;
  382. position: relative;
  383. -webkit-transition: background 0.2s ease-in-out;
  384. transition: background 0.2s ease-in-out;
  385. }
  386. /* @todo looks like these hover/focus states are overridden by .widgets-chooser-selected */
  387. .widgets-chooser li:hover,
  388. .widgets-chooser li:focus {
  389. background: rgba(255,255,255,0.7);
  390. }
  391. .widgets-chooser li:focus:before {
  392. content: "\f147";
  393. display: block;
  394. -webkit-font-smoothing: antialiased;
  395. font: normal 26px/1 dashicons;
  396. color: #555d66;
  397. position: absolute;
  398. top: 7px;
  399. left: 5px;
  400. }
  401. .widgets-chooser li:last-child {
  402. border: none;
  403. }
  404. .widgets-chooser li.widgets-chooser-selected {
  405. background: #00a0d2;
  406. color: #fff;
  407. }
  408. .widgets-chooser li.widgets-chooser-selected:before,
  409. .widgets-chooser li.widgets-chooser-selected:focus:before {
  410. content: "\f147";
  411. display: block;
  412. -webkit-font-smoothing: antialiased;
  413. font: normal 26px/1 dashicons;
  414. color: #fff;
  415. position: absolute;
  416. top: 7px;
  417. left: 5px;
  418. }
  419. .widgets-chooser .widgets-chooser-actions {
  420. padding: 10px 0 12px 0;
  421. text-align: center;
  422. }
  423. .widgets-chooser button {
  424. margin-right: 5px;
  425. }
  426. #available-widgets .widget .widget-top {
  427. cursor: pointer;
  428. }
  429. #available-widgets .widget.ui-draggable-dragging .widget-top {
  430. cursor: move;
  431. }
  432. /* =Media Queries
  433. -------------------------------------------------------------- */
  434. @media screen and (max-width: 480px) {
  435. div.widget-liquid-left {
  436. width: 100%;
  437. float: none;
  438. border-right: none;
  439. padding-right: 0;
  440. }
  441. #widgets-left .sidebar-name {
  442. margin-right: 0;
  443. }
  444. #widgets-left #available-widgets .widget-top {
  445. margin-right: 0;
  446. }
  447. #widgets-left .inactive-sidebar .widgets-sortables {
  448. margin-right: 0;
  449. }
  450. div.widget-liquid-right {
  451. width: 100%;
  452. float: none;
  453. }
  454. div.widget {
  455. margin: 0 auto 10px !important;
  456. max-width: 480px;
  457. }
  458. }
  459. @media screen and (max-width: 320px) {
  460. div.widget {
  461. max-width: 320px;
  462. }
  463. }
  464. @media only screen and (min-width: 1250px) {
  465. #widgets-left #available-widgets .widget {
  466. width: 49%;
  467. float: left;
  468. }
  469. .widget.ui-draggable-dragging {
  470. min-width: 49%;
  471. }
  472. #widgets-left #available-widgets .widget:nth-child(even) {
  473. float: right;
  474. }
  475. #widgets-right .sidebars-column-1,
  476. #widgets-right .sidebars-column-2 {
  477. float: left;
  478. width: 49%;
  479. }
  480. #widgets-right .sidebars-column-1 {
  481. margin-right: 2%;
  482. }
  483. #widgets-right.single-sidebar .sidebars-column-1,
  484. #widgets-right.single-sidebar .sidebars-column-2 {
  485. float: none;
  486. width: 100%;
  487. margin: 0;
  488. }
  489. }