widgets.css 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877
  1. /* General Widgets Styles */
  2. .widget {
  3. margin: 0 auto 10px;
  4. position: relative;
  5. box-sizing: border-box;
  6. }
  7. .widget.open {
  8. z-index: 99;
  9. }
  10. .widget.open:focus-within {
  11. z-index: 100;
  12. }
  13. .widget-top {
  14. font-size: 13px;
  15. font-weight: 600;
  16. background: #f6f7f7;
  17. }
  18. .widget-top .widget-action {
  19. border: 0;
  20. margin: 0;
  21. padding: 10px;
  22. background: none;
  23. cursor: pointer;
  24. }
  25. .widget-title h3,
  26. .widget-title h4 {
  27. margin: 0;
  28. padding: 15px;
  29. font-size: 1em;
  30. line-height: 1;
  31. overflow: hidden;
  32. white-space: nowrap;
  33. text-overflow: ellipsis;
  34. -webkit-user-select: none;
  35. user-select: none;
  36. }
  37. .widgets-holder-wrap .widget-inside {
  38. border-top: none;
  39. padding: 1px 15px 15px;
  40. line-height: 1.23076923;
  41. }
  42. .widget.widget-dirty .widget-control-close-wrapper {
  43. display: none;
  44. }
  45. .in-widget-title,
  46. #widgets-right a.widget-control-edit,
  47. #available-widgets .widget-description {
  48. color: #646970;
  49. }
  50. .deleting .widget-title,
  51. .deleting .widget-top .widget-action .toggle-indicator:before {
  52. color: #a7aaad;
  53. }
  54. /* Media Widgets */
  55. .wp-core-ui .media-widget-control.selected .placeholder,
  56. .wp-core-ui .media-widget-control.selected .not-selected,
  57. .wp-core-ui .media-widget-control .selected {
  58. display: none;
  59. }
  60. .media-widget-control.selected .selected {
  61. display: inline-block;
  62. }
  63. .media-widget-buttons {
  64. text-align: left;
  65. margin-top: 0;
  66. }
  67. .media-widget-control .media-widget-buttons .button {
  68. width: auto;
  69. height: auto;
  70. margin-top: 12px;
  71. white-space: normal;
  72. }
  73. .media-widget-buttons .button:first-child {
  74. margin-right: 8px;
  75. }
  76. .media-widget-control .attachment-media-view .button-add-media,
  77. .media-widget-control .placeholder {
  78. border: 1px dashed #c3c4c7;
  79. box-sizing: border-box;
  80. cursor: pointer;
  81. line-height: 1.6;
  82. padding: 9px 0;
  83. position: relative;
  84. text-align: center;
  85. width: 100%;
  86. }
  87. .media-widget-control .attachment-media-view .button-add-media {
  88. cursor: pointer;
  89. background-color: #f0f0f1;
  90. color: #2c3338;
  91. }
  92. .media-widget-control .attachment-media-view .button-add-media:hover {
  93. background-color: #fff;
  94. }
  95. .media-widget-control .attachment-media-view .button-add-media:focus {
  96. background-color: #fff;
  97. border-style: solid;
  98. border-color: #4f94d4;
  99. box-shadow: 0 0 3px rgba(34, 113, 177, 0.8);
  100. /* Only visible in Windows High Contrast mode */
  101. outline: 2px solid transparent;
  102. outline-offset: -2px;
  103. }
  104. .media-widget-control .media-widget-preview {
  105. background: transparent;
  106. text-align: center;
  107. }
  108. .media-widget-control .media-widget-preview .notice {
  109. text-align: initial;
  110. }
  111. .media-frame .media-widget-embed-notice p code,
  112. .media-widget-control .notice p code {
  113. padding: 0 3px 0 0;
  114. }
  115. .media-frame .media-widget-embed-notice {
  116. margin-top: 16px;
  117. }
  118. .media-widget-control .media-widget-preview img {
  119. max-width: 100%;
  120. vertical-align: middle;
  121. background-image: linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7), linear-gradient(45deg, #c3c4c7 25%, transparent 25%, transparent 75%, #c3c4c7 75%, #c3c4c7);
  122. background-position: 0 0, 10px 10px;
  123. background-size: 20px 20px;
  124. }
  125. .media-widget-control .media-widget-preview .wp-video-shortcode {
  126. background: #000;
  127. }
  128. .media-frame.media-widget .media-toolbar-secondary {
  129. min-width: 300px;
  130. }
  131. .media-frame.media-widget .image-details .embed-media-settings .setting.align,
  132. .media-frame.media-widget .attachment-display-settings .setting.align,
  133. .media-frame.media-widget .embed-media-settings .setting.align,
  134. .media-frame.media-widget .embed-media-settings .legend-inline,
  135. .media-frame.media-widget .embed-link-settings .setting.link-text,
  136. .media-frame.media-widget .replace-attachment,
  137. .media-frame.media-widget .checkbox-setting.autoplay {
  138. display: none;
  139. }
  140. .media-widget-video-preview {
  141. width: 100%;
  142. }
  143. .media-widget-video-link {
  144. display: inline-block;
  145. min-height: 132px;
  146. width: 100%;
  147. background: #000;
  148. }
  149. .media-widget-video-link .dashicons {
  150. font: normal 60px/1 'dashicons';
  151. position: relative;
  152. width: 100%;
  153. top: -90px;
  154. color: #fff;
  155. text-decoration: none;
  156. }
  157. .media-widget-video-link.no-poster .dashicons {
  158. top: 30px;
  159. }
  160. .media-frame #embed-url-field.invalid,
  161. .media-widget-image-link > .link:invalid {
  162. border: 1px solid #d63638;
  163. }
  164. .media-widget-image-link {
  165. margin: 1em 0;
  166. }
  167. .media-widget-gallery-preview {
  168. display: flex;
  169. justify-content: flex-start;
  170. flex-wrap: wrap;
  171. margin: -1.79104477%;
  172. }
  173. .media-widget-preview.media_gallery,
  174. .media-widget-preview.media_image {
  175. cursor: pointer;
  176. }
  177. .media-widget-preview .placeholder {
  178. background: #f0f0f1;
  179. }
  180. .media-widget-gallery-preview .gallery-item {
  181. box-sizing: border-box;
  182. width: 50%;
  183. margin: 0;
  184. background: transparent;
  185. }
  186. .media-widget-gallery-preview .gallery-item .gallery-icon {
  187. margin: 4.5%;
  188. }
  189. /*
  190. * Use targeted nth-last-child selectors to control the size of each image
  191. * based on how many gallery items are present in the grid.
  192. * See: https://alistapart.com/article/quantity-queries-for-css
  193. */
  194. .media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child,
  195. .media-widget-gallery-preview .gallery-item:nth-last-child(3):first-child ~ .gallery-item,
  196. .media-widget-gallery-preview .gallery-item:nth-last-child(n+5),
  197. .media-widget-gallery-preview .gallery-item:nth-last-child(n+5) ~ .gallery-item,
  198. .media-widget-gallery-preview .gallery-item:nth-last-child(n+6),
  199. .media-widget-gallery-preview .gallery-item:nth-last-child(n+6) ~ .gallery-item {
  200. max-width: 33.33%;
  201. }
  202. .media-widget-gallery-preview .gallery-item img {
  203. height: auto;
  204. vertical-align: bottom;
  205. }
  206. .media-widget-gallery-preview .gallery-icon {
  207. position: relative;
  208. }
  209. .media-widget-gallery-preview .gallery-icon-placeholder {
  210. position: absolute;
  211. top: 0;
  212. bottom: 0;
  213. width: 100%;
  214. box-sizing: border-box;
  215. display: flex;
  216. align-items: center;
  217. justify-content: center;
  218. background-color: rgba(0, 0, 0, 0.5);
  219. }
  220. .media-widget-gallery-preview .gallery-icon-placeholder-text {
  221. font-weight: 600;
  222. font-size: 2em;
  223. color: #fff;
  224. }
  225. /* Widget Dragging Helpers */
  226. .widget.ui-draggable-dragging {
  227. min-width: 100%;
  228. }
  229. .widget.ui-sortable-helper {
  230. opacity: 0.8;
  231. }
  232. .widget-placeholder {
  233. border: 1px dashed #c3c4c7;
  234. margin: 0 auto 10px;
  235. height: 45px;
  236. width: 100%;
  237. box-sizing: border-box;
  238. }
  239. #widgets-right .widget-placeholder {
  240. margin-top: 0;
  241. }
  242. #widgets-right .closed .widget-placeholder {
  243. height: 0;
  244. border: 0;
  245. margin-top: -10px;
  246. }
  247. /* Widget Sidebars */
  248. .sidebar-name {
  249. position: relative;
  250. box-sizing: border-box;
  251. }
  252. .js .sidebar-name {
  253. cursor: pointer;
  254. }
  255. .sidebar-name .handlediv {
  256. float: right;
  257. width: 38px;
  258. height: 38px;
  259. border: 0;
  260. margin: 0;
  261. padding: 8px;
  262. background: none;
  263. cursor: pointer;
  264. outline: none;
  265. }
  266. #widgets-right .sidebar-name .handlediv {
  267. margin: 5px 3px 0 0;
  268. }
  269. .sidebar-name .handlediv:focus {
  270. box-shadow: none;
  271. /* Only visible in Windows High Contrast mode */
  272. outline: 1px solid transparent;
  273. }
  274. #widgets-left .sidebar-name .toggle-indicator {
  275. display: none;
  276. }
  277. #widgets-left .widgets-holder-wrap.closed .sidebar-name .toggle-indicator,
  278. #widgets-left .sidebar-name:hover .toggle-indicator,
  279. #widgets-left .sidebar-name .handlediv:focus .toggle-indicator {
  280. display: block;
  281. }
  282. .sidebar-name .toggle-indicator:before {
  283. padding: 1px 2px 1px 0;
  284. border-radius: 50%;
  285. }
  286. .sidebar-name .handlediv:focus .toggle-indicator:before {
  287. box-shadow:
  288. 0 0 0 1px #4f94d4,
  289. 0 0 2px 1px rgba(79, 148, 212, 0.8);
  290. }
  291. .sidebar-name h2,
  292. .sidebar-name h3 {
  293. margin: 0;
  294. padding: 8px 10px;
  295. overflow: hidden;
  296. white-space: normal;
  297. line-height: 1.5;
  298. }
  299. .widgets-holder-wrap .description {
  300. padding: 0 0 15px;
  301. margin: 0;
  302. font-style: normal;
  303. color: #646970;
  304. }
  305. .widget-holder .description,
  306. .inactive-sidebar .description {
  307. color: #50575e;
  308. }
  309. #widgets-right .widgets-holder-wrap .description {
  310. padding-left: 7px;
  311. padding-right: 7px;
  312. }
  313. /* Widgets 2-col Layout */
  314. div.widget-liquid-left {
  315. margin: 0;
  316. width: 38%;
  317. float: left;
  318. }
  319. div.widget-liquid-right {
  320. float: right;
  321. width: 58%;
  322. }
  323. /* Widgets Left - Available Widgets */
  324. div#widgets-left {
  325. padding-top: 12px;
  326. }
  327. div#widgets-left .closed .sidebar-name,
  328. div#widgets-left .inactive-sidebar.closed .sidebar-name {
  329. margin-bottom: 10px;
  330. }
  331. div#widgets-left .sidebar-name h2,
  332. div#widgets-left .sidebar-name h3 {
  333. padding: 10px 0;
  334. margin: 0 10px 0 0;
  335. }
  336. #widgets-left .widgets-holder-wrap,
  337. div#widgets-left .widget-holder {
  338. background: transparent;
  339. border: none;
  340. }
  341. #widgets-left .widgets-holder-wrap {
  342. border: none;
  343. box-shadow: none;
  344. }
  345. #available-widgets .widget {
  346. margin: 0;
  347. }
  348. #available-widgets .widget:nth-child(odd) {
  349. clear: both;
  350. }
  351. #available-widgets .widget .widget-description {
  352. display: block;
  353. padding: 10px 15px;
  354. font-size: 12px;
  355. overflow-wrap: break-word;
  356. word-wrap: break-word;
  357. -ms-word-break: break-all;
  358. word-break: break-word;
  359. -webkit-hyphens: auto;
  360. hyphens: auto;
  361. }
  362. #available-widgets #widget-list {
  363. position: relative;
  364. }
  365. /* Inactive Sidebars */
  366. #widgets-left .inactive-sidebar {
  367. clear: both;
  368. width: 100%;
  369. background: transparent;
  370. padding: 0;
  371. margin: 0 0 20px;
  372. border: none;
  373. box-shadow: none;
  374. }
  375. #widgets-left .inactive-sidebar.first {
  376. margin-top: 40px;
  377. }
  378. /* Not sure what this is for... */
  379. div#widgets-left .inactive-sidebar .widget.expanded {
  380. left: auto;
  381. }
  382. .widget-title-action {
  383. float: right;
  384. position: relative;
  385. }
  386. div#widgets-left .inactive-sidebar .widgets-sortables {
  387. min-height: 42px;
  388. padding: 0;
  389. background: transparent;
  390. margin: 0;
  391. position: relative;
  392. }
  393. /* Widgets Right */
  394. div#widgets-right .sidebars-column-1,
  395. div#widgets-right .sidebars-column-2 {
  396. max-width: 450px;
  397. }
  398. div#widgets-right .widgets-holder-wrap {
  399. margin: 10px 0 0;
  400. }
  401. div#widgets-right .sidebar-description {
  402. min-height: 20px;
  403. margin-top: -5px;
  404. }
  405. div#widgets-right .sidebar-name h2,
  406. div#widgets-right .sidebar-name h3 {
  407. padding: 15px 15px 15px 7px;
  408. }
  409. div#widgets-right .widget-top {
  410. padding: 0;
  411. }
  412. div#widgets-right .widgets-sortables {
  413. padding: 0 8px;
  414. margin-bottom: 9px;
  415. position: relative;
  416. min-height: 123px;
  417. }
  418. div#widgets-right .closed .widgets-sortables {
  419. min-height: 0;
  420. margin-bottom: 0;
  421. }
  422. .sidebar-name .spinner,
  423. .remove-inactive-widgets .spinner {
  424. float: none;
  425. position: relative;
  426. top: -2px;
  427. margin: -5px 5px;
  428. }
  429. .sidebar-name .spinner {
  430. position: absolute;
  431. top: 18px;
  432. right: 30px;
  433. }
  434. /* Dragging a widget over a closed sidebar */
  435. #widgets-right .widgets-holder-wrap.widget-hover {
  436. border-color: #787c82;
  437. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  438. }
  439. /* Accessibility Mode */
  440. .widget-access-link {
  441. float: right;
  442. margin: -5px 0 10px 10px;
  443. }
  444. .widgets_access #widgets-left .widget .widget-top {
  445. cursor: auto;
  446. }
  447. .widgets_access #wpwrap .widgets-holder-wrap.closed .sidebar-description,
  448. .widgets_access #wpwrap .widgets-holder-wrap.closed .widget,
  449. .widgets_access #wpwrap .widget-control-edit {
  450. display: block;
  451. }
  452. .widgets_access #widgets-left .widget .widget-top:hover,
  453. .widgets_access #widgets-right .widget .widget-top:hover {
  454. border-color: #dcdcde;
  455. }
  456. #available-widgets .widget-control-edit .edit,
  457. #available-widgets .widget-action .edit,
  458. #widgets-left .inactive-sidebar .widget-control-edit .add,
  459. #widgets-left .inactive-sidebar .widget-action .add,
  460. #widgets-right .widget-control-edit .add,
  461. #widgets-right .widget-action .add {
  462. display: none;
  463. }
  464. .widget-control-edit {
  465. display: block;
  466. color: #646970;
  467. background: #f0f0f1;
  468. padding: 0 15px;
  469. line-height: 3.30769230;
  470. border-left: 1px solid #dcdcde;
  471. }
  472. #widgets-left .widget-control-edit:hover,
  473. #widgets-right .widget-control-edit:hover {
  474. color: #fff;
  475. background: #3c434a;
  476. border-left: 0;
  477. outline: 1px solid #3c434a;
  478. }
  479. .widgets-holder-wrap .sidebar-name,
  480. .widgets-holder-wrap .sidebar-description {
  481. -webkit-user-select: none;
  482. user-select: none;
  483. }
  484. .editwidget {
  485. margin: 0 auto;
  486. }
  487. .editwidget .widget-inside {
  488. display: block;
  489. padding: 0 15px;
  490. }
  491. .editwidget .widget-control-actions {
  492. margin-top: 20px;
  493. }
  494. .js .widgets-holder-wrap.closed .widget,
  495. .js .widgets-holder-wrap.closed .sidebar-description,
  496. .js .widgets-holder-wrap.closed .remove-inactive-widgets,
  497. .js .widgets-holder-wrap.closed .description,
  498. .js .closed br.clear {
  499. display: none;
  500. }
  501. .js .widgets-holder-wrap.closed .widget.ui-sortable-helper {
  502. display: block;
  503. }
  504. /* Hide Widget Settings by Default */
  505. .widget-inside,
  506. .widget-description {
  507. display: none;
  508. }
  509. .widget-inside {
  510. background: #fff;
  511. }
  512. .widget-inside select {
  513. max-width: 100%;
  514. }
  515. /* Dragging widgets over the available widget area show's a "Deactivate" message */
  516. #removing-widget {
  517. display: none;
  518. font-weight: 400;
  519. padding-left: 15px;
  520. font-size: 12px;
  521. line-height: 1;
  522. color: #000;
  523. }
  524. .js #removing-widget {
  525. color: #72aee6;
  526. }
  527. .widget-control-noform,
  528. #access-off,
  529. .widgets_access .widget-action,
  530. .widgets_access .handlediv,
  531. .widgets_access #access-on,
  532. .widgets_access .widget-holder .description,
  533. .no-js .widget-holder .description {
  534. display: none;
  535. }
  536. .widgets_access .widget-holder,
  537. .widgets_access #widget-list {
  538. padding-top: 10px;
  539. }
  540. .widgets_access #access-off {
  541. display: inline;
  542. }
  543. .widgets_access .sidebar-name,
  544. .widgets_access .widget .widget-top {
  545. cursor: default;
  546. }
  547. /* Widgets Area Chooser */
  548. .widget-liquid-left #widgets-left.chooser #available-widgets .widget,
  549. .widget-liquid-left #widgets-left.chooser .inactive-sidebar {
  550. transition: opacity 0.1s linear;
  551. }
  552. .widget-liquid-left #widgets-left.chooser #available-widgets .widget,
  553. .widget-liquid-left #widgets-left.chooser .inactive-sidebar {
  554. /* -webkit-filter: blur(1px); */
  555. opacity: 0.2;
  556. pointer-events: none;
  557. }
  558. .widget-liquid-left #widgets-left.chooser #available-widgets .widget-in-question {
  559. /* -webkit-filter: none; */
  560. opacity: 1;
  561. pointer-events: auto;
  562. }
  563. .widgets-chooser ul,
  564. #widgets-left .widget-in-question .widget-top,
  565. #available-widgets .widget-top:hover,
  566. div#widgets-right .widget-top:hover,
  567. #widgets-left .widget-top:hover {
  568. border-color: #8c8f94;
  569. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  570. }
  571. .widgets-chooser ul.widgets-chooser-sidebars {
  572. margin: 0;
  573. list-style-type: none;
  574. max-height: 300px;
  575. overflow: auto;
  576. }
  577. .widgets-chooser {
  578. display: none;
  579. }
  580. .widgets-chooser ul {
  581. border: 1px solid #c3c4c7;
  582. }
  583. .widgets-chooser li {
  584. border-bottom: 1px solid #c3c4c7;
  585. background: #fff;
  586. margin: 0;
  587. position: relative;
  588. }
  589. .widgets-chooser .widgets-chooser-button {
  590. width: 100%;
  591. padding: 10px 15px 10px 35px;
  592. background: transparent;
  593. border: 0;
  594. box-sizing: border-box;
  595. text-align: left;
  596. cursor: pointer;
  597. transition: background 0.2s ease-in-out;
  598. }
  599. /* @todo looks like these hover/focus states are overridden by .widgets-chooser-selected */
  600. .widgets-chooser .widgets-chooser-button:hover,
  601. .widgets-chooser .widgets-chooser-button:focus {
  602. outline: none;
  603. text-decoration: underline;
  604. }
  605. .widgets-chooser li:last-child {
  606. border: none;
  607. }
  608. .widgets-chooser .widgets-chooser-selected .widgets-chooser-button {
  609. background: #2271b1;
  610. color: #fff;
  611. }
  612. .widgets-chooser .widgets-chooser-selected:before {
  613. content: "\f147";
  614. display: block;
  615. -webkit-font-smoothing: antialiased;
  616. font: normal 26px/1 dashicons;
  617. color: #fff;
  618. position: absolute;
  619. top: 7px;
  620. left: 5px;
  621. }
  622. .widgets-chooser .widgets-chooser-actions {
  623. padding: 10px 0 12px;
  624. text-align: center;
  625. }
  626. #available-widgets .widget .widget-top {
  627. cursor: pointer;
  628. }
  629. #available-widgets .widget.ui-draggable-dragging .widget-top {
  630. cursor: move;
  631. }
  632. /* =Specific widget styling
  633. -------------------------------------------------------------- */
  634. .text-widget-fields {
  635. position: relative;
  636. }
  637. .text-widget-fields [hidden] {
  638. display: none;
  639. }
  640. .text-widget-fields .wp-pointer.wp-pointer-top {
  641. position: absolute;
  642. z-index: 3;
  643. top: 100px;
  644. right: 10px;
  645. left: 10px;
  646. }
  647. .text-widget-fields .wp-pointer .wp-pointer-arrow {
  648. left: auto;
  649. right: 15px;
  650. }
  651. .text-widget-fields .wp-pointer .wp-pointer-buttons {
  652. line-height: 1.4;
  653. }
  654. .custom-html-widget-fields > p > .CodeMirror {
  655. border: 1px solid #dcdcde;
  656. }
  657. .custom-html-widget-fields code {
  658. padding-top: 1px;
  659. padding-bottom: 1px;
  660. }
  661. ul.CodeMirror-hints {
  662. z-index: 101; /* Due to z-index 100 set on .widget.open */
  663. }
  664. .widget-control-actions .custom-html-widget-save-button.button.validation-blocked {
  665. cursor: not-allowed;
  666. }
  667. /* =Media Queries
  668. -------------------------------------------------------------- */
  669. @media screen and (max-width: 782px) {
  670. .widgets-holder-wrap .widget-inside input[type="checkbox"],
  671. .widgets-holder-wrap .widget-inside input[type="radio"],
  672. .editwidget .widget-inside input[type="checkbox"], /* Selectors for the "accessibility mode" page. */
  673. .editwidget .widget-inside input[type="radio"] {
  674. margin: 0.25rem 0.25rem 0.25rem 0;
  675. }
  676. }
  677. @media screen and (max-width: 480px) {
  678. div.widget-liquid-left {
  679. width: 100%;
  680. float: none;
  681. border-right: none;
  682. padding-right: 0;
  683. }
  684. #widgets-left .sidebar-name {
  685. margin-right: 0;
  686. }
  687. #widgets-left #available-widgets .widget-top {
  688. margin-right: 0;
  689. }
  690. #widgets-left .inactive-sidebar .widgets-sortables {
  691. margin-right: 0;
  692. }
  693. div.widget-liquid-right {
  694. width: 100%;
  695. float: none;
  696. }
  697. div.widget {
  698. max-width: 480px;
  699. }
  700. .widget-access-link {
  701. float: none;
  702. margin: 15px 0 0;
  703. }
  704. }
  705. @media screen and (max-width: 320px) {
  706. div.widget {
  707. max-width: 320px;
  708. }
  709. }
  710. @media only screen and (min-width: 1250px) {
  711. #widgets-left #available-widgets .widget {
  712. width: 49%;
  713. float: left;
  714. }
  715. .widget.ui-draggable-dragging {
  716. min-width: 49%;
  717. }
  718. #widgets-left #available-widgets .widget:nth-child(even) {
  719. float: right;
  720. }
  721. #widgets-right .sidebars-column-1,
  722. #widgets-right .sidebars-column-2 {
  723. float: left;
  724. width: 49%;
  725. }
  726. #widgets-right .sidebars-column-1 {
  727. margin-right: 2%;
  728. }
  729. #widgets-right.single-sidebar .sidebars-column-1,
  730. #widgets-right.single-sidebar .sidebars-column-2 {
  731. float: none;
  732. width: 100%;
  733. margin: 0;
  734. }
  735. }