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.

1439 lines
26 KiB

1 year ago
  1. /*------------------------------------------------------------------------------
  2. 14.0 - Media Screen
  3. ------------------------------------------------------------------------------*/
  4. .media-item .describe {
  5. border-collapse: collapse;
  6. width: 100%;
  7. border-top: 1px solid #dcdcde;
  8. clear: both;
  9. cursor: default;
  10. }
  11. .media-item.media-blank .describe {
  12. border: 0;
  13. }
  14. .media-item .describe th {
  15. vertical-align: top;
  16. text-align: left;
  17. padding: 5px 10px 10px;
  18. width: 140px;
  19. }
  20. .media-item .describe .align th {
  21. padding-top: 0;
  22. }
  23. .media-item .media-item-info tr {
  24. background-color: transparent;
  25. }
  26. .media-item .describe td {
  27. padding: 0 8px 8px 0;
  28. vertical-align: top;
  29. }
  30. .media-item thead.media-item-info td {
  31. padding: 4px 10px 0;
  32. }
  33. .media-item .media-item-info .A1B1 {
  34. padding: 0 0 0 10px;
  35. }
  36. .media-item td.savesend {
  37. padding-bottom: 15px;
  38. }
  39. .media-item .thumbnail {
  40. max-height: 128px;
  41. max-width: 128px;
  42. }
  43. .media-list-subtitle {
  44. display: block;
  45. }
  46. .media-list-title {
  47. display: block;
  48. }
  49. #wpbody-content #async-upload-wrap a {
  50. display: none;
  51. }
  52. .media-upload-form {
  53. margin-top: 20px;
  54. }
  55. .media-upload-form td label {
  56. margin-right: 6px;
  57. margin-left: 2px;
  58. }
  59. .media-upload-form .align .field label {
  60. display: inline;
  61. padding: 0 0 0 23px;
  62. margin: 0 1em 0 3px;
  63. font-weight: 600;
  64. }
  65. .media-upload-form tr.image-size label {
  66. margin: 0 0 0 5px;
  67. font-weight: 600;
  68. }
  69. .media-upload-form th.label label {
  70. font-weight: 600;
  71. margin: 0.5em;
  72. font-size: 13px;
  73. }
  74. .media-upload-form th.label label span {
  75. padding: 0 5px;
  76. }
  77. .media-item .describe input[type="text"],
  78. .media-item .describe textarea {
  79. width: 460px;
  80. }
  81. .media-item .describe p.help {
  82. margin: 0;
  83. padding: 0 0 0 5px;
  84. }
  85. .describe-toggle-on,
  86. .describe-toggle-off {
  87. display: block;
  88. line-height: 2.76923076;
  89. float: right;
  90. margin-right: 10px;
  91. }
  92. .media-item-wrapper {
  93. display: grid;
  94. grid-template-columns: 1fr 1fr;
  95. }
  96. .media-item .attachment-tools {
  97. display: flex;
  98. justify-content: flex-end;
  99. align-items: center;
  100. }
  101. .media-item .edit-attachment {
  102. padding: 14px 0;
  103. display: block;
  104. margin-right: 10px;
  105. }
  106. .media-item .edit-attachment.copy-to-clipboard-container {
  107. display: flex;
  108. margin-top: 0;
  109. }
  110. .media-item-copy-container .success {
  111. line-height: 0;
  112. }
  113. .media-item button .copy-attachment-url {
  114. margin-top: 14px;
  115. }
  116. .media-item .copy-to-clipboard-container {
  117. margin-top: 7px;
  118. }
  119. .media-item .describe-toggle-off,
  120. .media-item.open .describe-toggle-on {
  121. display: none;
  122. }
  123. .media-item.open .describe-toggle-off {
  124. display: block;
  125. }
  126. .media-upload-form .media-item {
  127. min-height: 70px;
  128. margin-bottom: 1px;
  129. position: relative;
  130. width: 100%;
  131. background: #fff;
  132. }
  133. .media-upload-form .media-item,
  134. .media-upload-form .media-item .error {
  135. box-shadow: 0 1px 0 #dcdcde;
  136. }
  137. #media-items:empty {
  138. border: 0 none;
  139. }
  140. .media-item .filename {
  141. padding: 14px 0;
  142. overflow: hidden;
  143. margin-left: 6px;
  144. }
  145. .media-item .pinkynail {
  146. float: left;
  147. margin: 0 10px 0 0;
  148. max-height: 70px;
  149. max-width: 70px;
  150. }
  151. .media-item .startopen,
  152. .media-item .startclosed {
  153. display: none;
  154. }
  155. .media-item .original {
  156. position: relative;
  157. min-height: 34px;
  158. }
  159. .media-item .progress {
  160. float: right;
  161. height: 22px;
  162. margin: 7px 6px;
  163. width: 200px;
  164. line-height: 2em;
  165. padding: 0;
  166. overflow: hidden;
  167. border-radius: 22px;
  168. background: #dcdcde;
  169. box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  170. }
  171. .media-item .bar {
  172. z-index: 9;
  173. width: 0;
  174. height: 100%;
  175. margin-top: -22px;
  176. border-radius: 22px;
  177. background-color: #2271b1;
  178. box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
  179. }
  180. .media-item .progress .percent {
  181. z-index: 10;
  182. position: relative;
  183. width: 200px;
  184. padding: 0;
  185. color: #fff;
  186. text-align: center;
  187. line-height: 22px;
  188. font-weight: 400;
  189. text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  190. }
  191. .upload-php .fixed .column-parent {
  192. width: 15%;
  193. }
  194. .js .html-uploader #plupload-upload-ui {
  195. display: none;
  196. }
  197. .js .html-uploader #html-upload-ui {
  198. display: block;
  199. }
  200. #html-upload-ui #async-upload {
  201. font-size: 1em;
  202. }
  203. .media-upload-form .media-item.error,
  204. .media-upload-form .media-item .error {
  205. width: auto;
  206. margin: 0 0 1px;
  207. }
  208. .media-upload-form .media-item .error {
  209. padding: 10px 0 10px 14px;
  210. min-height: 50px;
  211. }
  212. .media-item .error-div button.dismiss {
  213. float: right;
  214. margin: 0 10px 0 15px;
  215. }
  216. /*------------------------------------------------------------------------------
  217. 14.1 - Media Library
  218. ------------------------------------------------------------------------------*/
  219. .find-box {
  220. background-color: #fff;
  221. box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  222. width: 600px;
  223. overflow: hidden;
  224. margin-left: -300px;
  225. position: fixed;
  226. top: 30px;
  227. bottom: 30px;
  228. left: 50%;
  229. z-index: 100105;
  230. }
  231. .find-box-head {
  232. background: #fff;
  233. border-bottom: 1px solid #dcdcde;
  234. height: 36px;
  235. font-size: 18px;
  236. font-weight: 600;
  237. line-height: 2;
  238. padding: 0 36px 0 16px;
  239. position: absolute;
  240. top: 0;
  241. left: 0;
  242. right: 0;
  243. }
  244. .find-box-inside {
  245. overflow: auto;
  246. padding: 16px;
  247. background-color: #fff;
  248. position: absolute;
  249. top: 37px;
  250. bottom: 45px;
  251. overflow-y: scroll;
  252. width: 100%;
  253. box-sizing: border-box;
  254. }
  255. .find-box-search {
  256. padding-bottom: 16px;
  257. }
  258. .find-box-search .spinner {
  259. float: none;
  260. left: 105px;
  261. position: absolute;
  262. }
  263. .find-box-search,
  264. #find-posts-response {
  265. position: relative; /* RTL fix, #WP28010 */
  266. }
  267. #find-posts-input,
  268. #find-posts-search {
  269. float: left;
  270. }
  271. #find-posts-input {
  272. width: 140px;
  273. height: 28px;
  274. margin: 0 4px 0 0;
  275. }
  276. .widefat .found-radio {
  277. padding-right: 0;
  278. width: 16px;
  279. }
  280. #find-posts-close {
  281. width: 36px;
  282. height: 36px;
  283. border: none;
  284. padding: 0;
  285. position: absolute;
  286. top: 0;
  287. right: 0;
  288. cursor: pointer;
  289. text-align: center;
  290. background: none;
  291. color: #646970;
  292. }
  293. #find-posts-close:hover,
  294. #find-posts-close:focus {
  295. color: #135e96;
  296. }
  297. #find-posts-close:focus {
  298. box-shadow:
  299. 0 0 0 1px #4f94d4,
  300. 0 0 2px 1px rgba(79, 148, 212, 0.8);
  301. /* Only visible in Windows High Contrast mode */
  302. outline: 2px solid transparent;
  303. outline-offset: -2px;
  304. }
  305. #find-posts-close:before {
  306. font: normal 20px/36px dashicons;
  307. vertical-align: top;
  308. speak: never;
  309. -webkit-font-smoothing: antialiased;
  310. -moz-osx-font-smoothing: grayscale;
  311. content: "\f158";
  312. }
  313. .find-box-buttons {
  314. padding: 8px 16px;
  315. background: #fff;
  316. border-top: 1px solid #dcdcde;
  317. position: absolute;
  318. bottom: 0;
  319. left: 0;
  320. right: 0;
  321. }
  322. @media screen and (max-width: 782px) {
  323. .find-box-inside {
  324. bottom: 57px;
  325. }
  326. }
  327. @media screen and (max-width: 660px) {
  328. .find-box {
  329. top: 0;
  330. bottom: 0;
  331. left: 0;
  332. right: 0;
  333. margin: 0;
  334. width: 100%;
  335. }
  336. }
  337. .ui-find-overlay {
  338. position: fixed;
  339. top: 0;
  340. left: 0;
  341. right: 0;
  342. bottom: 0;
  343. background: #000;
  344. opacity: 0.7;
  345. filter: alpha(opacity=70);
  346. z-index: 100100;
  347. }
  348. .drag-drop #drag-drop-area {
  349. border: 4px dashed #c3c4c7;
  350. height: 200px;
  351. }
  352. .drag-drop .drag-drop-inside {
  353. margin: 60px auto 0;
  354. width: 250px;
  355. }
  356. .drag-drop-inside p {
  357. font-size: 14px;
  358. margin: 5px 0;
  359. display: none;
  360. }
  361. .drag-drop .drag-drop-inside p {
  362. text-align: center;
  363. }
  364. .drag-drop-inside p.drag-drop-info {
  365. font-size: 20px;
  366. }
  367. .drag-drop .drag-drop-inside p,
  368. .drag-drop-inside p.drag-drop-buttons {
  369. display: block;
  370. }
  371. /*
  372. #drag-drop-area:-moz-drag-over {
  373. border-color: #83b4d8;
  374. }
  375. border color while dragging a file over the uploader drop area */
  376. .drag-drop.drag-over #drag-drop-area {
  377. border-color: #9ec2e6;
  378. }
  379. #plupload-upload-ui {
  380. position: relative;
  381. }
  382. /**
  383. * Media Library grid view
  384. */
  385. .media-frame.mode-grid,
  386. .media-frame.mode-grid .media-frame-content,
  387. .media-frame.mode-grid .attachments-browser:not(.has-load-more) .attachments,
  388. .media-frame.mode-grid .attachments-browser.has-load-more .attachments-wrapper,
  389. .media-frame.mode-grid .uploader-inline-content {
  390. position: static;
  391. }
  392. /* Regions we don't use at all */
  393. .media-frame.mode-grid .media-frame-title,
  394. .media-frame.mode-grid .media-frame-router,
  395. .media-frame.mode-grid .media-frame-menu {
  396. display: none;
  397. }
  398. .media-frame.mode-grid .media-frame-content {
  399. background-color: transparent;
  400. border: none;
  401. }
  402. .upload-php .mode-grid .media-sidebar {
  403. position: relative;
  404. width: auto;
  405. margin-top: 12px;
  406. padding: 0 16px;
  407. border-left: 4px solid #d63638;
  408. box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
  409. background-color: #fff;
  410. }
  411. .upload-php .mode-grid .hide-sidebar .media-sidebar {
  412. display: none;
  413. }
  414. .upload-php .mode-grid .media-sidebar .media-uploader-status {
  415. border-bottom: none;
  416. padding-bottom: 0;
  417. max-width: 100%;
  418. }
  419. .upload-php .mode-grid .media-sidebar .upload-error {
  420. margin: 12px 0;
  421. padding: 4px 0 0;
  422. border: none;
  423. box-shadow: none;
  424. background: none;
  425. }
  426. .upload-php .mode-grid .media-sidebar .media-uploader-status.errors h2 {
  427. display: none;
  428. }
  429. .media-frame.mode-grid .uploader-inline {
  430. position: relative;
  431. top: auto;
  432. right: auto;
  433. left: auto;
  434. bottom: auto;
  435. padding-top: 0;
  436. margin-top: 20px;
  437. border: 4px dashed #c3c4c7;
  438. }
  439. .media-frame.mode-select .attachments-browser.fixed:not(.has-load-more) .attachments,
  440. .media-frame.mode-select .attachments-browser.has-load-more.fixed .attachments-wrapper {
  441. position: relative;
  442. top: 94px; /* prevent jumping up when the toolbar becomes fixed */
  443. padding-bottom: 94px; /* offset for above so the bottom doesn't get cut off */
  444. }
  445. .media-frame.mode-grid .attachment:focus,
  446. .media-frame.mode-grid .selected.attachment:focus,
  447. .media-frame.mode-grid .attachment.details:focus {
  448. box-shadow:
  449. inset 0 0 2px 3px #f0f0f1,
  450. inset 0 0 0 7px #4f94d4;
  451. /* Only visible in Windows High Contrast mode */
  452. outline: 2px solid transparent;
  453. outline-offset: -6px;
  454. }
  455. .media-frame.mode-grid .selected.attachment {
  456. box-shadow:
  457. inset 0 0 0 5px #f0f0f1,
  458. inset 0 0 0 7px #c3c4c7;
  459. }
  460. .media-frame.mode-grid .attachment.details {
  461. box-shadow:
  462. inset 0 0 0 3px #f0f0f1,
  463. inset 0 0 0 7px #4f94d4;
  464. }
  465. .media-frame.mode-grid.mode-select .attachment .thumbnail {
  466. opacity: 0.65;
  467. }
  468. .media-frame.mode-select .attachment.selected .thumbnail {
  469. opacity: 1;
  470. }
  471. .media-frame.mode-grid .media-toolbar {
  472. margin-bottom: 15px;
  473. height: auto;
  474. }
  475. .media-frame.mode-grid .media-toolbar select {
  476. margin: 0 10px 0 0;
  477. }
  478. .media-frame.mode-grid.mode-edit .media-toolbar-secondary > .select-mode-toggle-button {
  479. margin: 0 8px 0 0;
  480. vertical-align: middle;
  481. }
  482. .media-frame.mode-grid .attachments-browser .bulk-select {
  483. display: inline-block;
  484. margin: 0 10px 0 0;
  485. }
  486. .media-frame.mode-grid .search {
  487. margin-top: 0;
  488. }
  489. .media-frame-content .media-search-input-label {
  490. margin: 0 .2em 0 0;
  491. vertical-align: baseline;
  492. }
  493. .media-frame.mode-grid .media-search-input-label {
  494. position: static;
  495. margin: 0 .5em 0 0;
  496. }
  497. .attachments-browser .media-toolbar-secondary > .media-button {
  498. margin-right: 10px;
  499. }
  500. .media-frame.mode-select .attachments-browser.fixed .media-toolbar {
  501. position: fixed;
  502. top: 32px;
  503. left: auto;
  504. right: 20px;
  505. margin-top: 0;
  506. }
  507. .media-frame.mode-grid .attachments-browser {
  508. padding: 0;
  509. }
  510. .media-frame.mode-grid .attachments-browser .attachments {
  511. padding: 2px;
  512. }
  513. .media-frame.mode-grid .attachments-browser .no-media {
  514. color: #646970; /* same as no plugins and no themes */
  515. font-size: 18px;
  516. font-style: normal;
  517. margin: 0;
  518. padding: 100px 0 0;
  519. text-align: center;
  520. }
  521. /**
  522. * Attachment details modal
  523. */
  524. .edit-attachment-frame {
  525. display: block;
  526. height: 100%;
  527. width: 100%;
  528. }
  529. .edit-attachment-frame .edit-media-header {
  530. overflow: hidden;
  531. }
  532. .upload-php .media-modal-close .media-modal-icon:before {
  533. content: "\f335";
  534. font-size: 22px;
  535. }
  536. .upload-php .media-modal-close,
  537. .edit-attachment-frame .edit-media-header .left,
  538. .edit-attachment-frame .edit-media-header .right {
  539. cursor: pointer;
  540. color: #787c82;
  541. background-color: transparent;
  542. height: 50px;
  543. width: 50px;
  544. padding: 0;
  545. position: absolute;
  546. text-align: center;
  547. border: 0;
  548. border-left: 1px solid #dcdcde;
  549. transition: color .1s ease-in-out, background .1s ease-in-out;
  550. }
  551. .upload-php .media-modal-close {
  552. top: 0;
  553. right: 0;
  554. }
  555. .edit-attachment-frame .edit-media-header .left {
  556. right: 102px;
  557. }
  558. .edit-attachment-frame .edit-media-header .right {
  559. right: 51px;
  560. }
  561. .edit-attachment-frame .media-frame-title {
  562. left: 0;
  563. right: 150px; /* leave space for prev/next/close */
  564. }
  565. .edit-attachment-frame .edit-media-header .right:before,
  566. .edit-attachment-frame .edit-media-header .left:before {
  567. font: normal 20px/50px dashicons !important;
  568. display: inline;
  569. font-weight: 300;
  570. }
  571. .upload-php .media-modal-close:hover,
  572. .upload-php .media-modal-close:focus,
  573. .edit-attachment-frame .edit-media-header .left:hover,
  574. .edit-attachment-frame .edit-media-header .right:hover,
  575. .edit-attachment-frame .edit-media-header .left:focus,
  576. .edit-attachment-frame .edit-media-header .right:focus {
  577. background: #dcdcde;
  578. border-color: #c3c4c7;
  579. color: #000;
  580. outline: none;
  581. box-shadow: none;
  582. }
  583. .upload-php .media-modal-close:focus,
  584. .edit-attachment-frame .edit-media-header .left:focus,
  585. .edit-attachment-frame .edit-media-header .right:focus {
  586. /* Only visible in Windows High Contrast mode */
  587. outline: 2px solid transparent;
  588. outline-offset: -2px;
  589. }
  590. .upload-php .media-modal-close:focus .media-modal-icon:before,
  591. .upload-php .media-modal-close:hover .media-modal-icon:before {
  592. color: #000;
  593. }
  594. .edit-attachment-frame .edit-media-header .left:before {
  595. content: "\f341";
  596. }
  597. .edit-attachment-frame .edit-media-header .right:before {
  598. content: "\f345";
  599. }
  600. .edit-attachment-frame .edit-media-header [disabled],
  601. .edit-attachment-frame .edit-media-header [disabled]:hover {
  602. color: #c3c4c7;
  603. background: inherit;
  604. cursor: default;
  605. }
  606. .edit-attachment-frame .media-frame-content,
  607. .edit-attachment-frame .media-frame-router {
  608. left: 0;
  609. }
  610. .edit-attachment-frame .media-frame-content {
  611. border-bottom: none;
  612. bottom: 0;
  613. top: 50px;
  614. }
  615. .edit-attachment-frame .attachment-details {
  616. position: absolute;
  617. overflow: auto;
  618. top: 0;
  619. bottom: 0;
  620. right: 0;
  621. left: 0;
  622. box-shadow: inset 0 4px 4px -4px rgba(0, 0, 0, 0.1);
  623. }
  624. .edit-attachment-frame .attachment-media-view {
  625. float: left;
  626. width: 65%;
  627. height: 100%;
  628. }
  629. .edit-attachment-frame .attachment-media-view .thumbnail {
  630. box-sizing: border-box;
  631. padding: 16px;
  632. height: 100%;
  633. }
  634. .edit-attachment-frame .attachment-media-view .details-image {
  635. display: block;
  636. margin: 0 auto 16px;
  637. max-width: 100%;
  638. max-height: 90%;
  639. max-height: calc( 100% - 42px ); /* leave space for actions underneath */
  640. 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);
  641. background-position: 0 0, 10px 10px;
  642. background-size: 20px 20px;
  643. }
  644. .edit-attachment-frame .attachment-media-view .details-image.icon {
  645. background: none;
  646. }
  647. .edit-attachment-frame .attachment-media-view .attachment-actions {
  648. text-align: center;
  649. }
  650. .edit-attachment-frame .wp-media-wrapper {
  651. margin-bottom: 12px;
  652. }
  653. .edit-attachment-frame input,
  654. .edit-attachment-frame textarea {
  655. padding: 4px 8px;
  656. line-height: 1.42857143;
  657. }
  658. .edit-attachment-frame .attachment-info {
  659. overflow: auto;
  660. box-sizing: border-box;
  661. margin-bottom: 0;
  662. padding: 12px 16px 0;
  663. width: 35%;
  664. height: 100%;
  665. box-shadow: inset 0 4px 4px -4px rgba(0, 0, 0, 0.1);
  666. border-bottom: 0;
  667. border-left: 1px solid #dcdcde;
  668. background: #f6f7f7;
  669. }
  670. .edit-attachment-frame .attachment-info .details,
  671. .edit-attachment-frame .attachment-info .settings {
  672. position: relative; /* RTL fix, #WP29352 */
  673. overflow: hidden;
  674. float: none;
  675. margin-bottom: 15px;
  676. padding-bottom: 15px;
  677. border-bottom: 1px solid #dcdcde;
  678. }
  679. .edit-attachment-frame .attachment-info .filename {
  680. font-weight: 400;
  681. color: #646970;
  682. }
  683. .edit-attachment-frame .attachment-info .thumbnail {
  684. margin-bottom: 12px;
  685. }
  686. .attachment-info .actions {
  687. margin-bottom: 16px;
  688. }
  689. .attachment-info .actions a {
  690. display: inline;
  691. text-decoration: none;
  692. }
  693. .copy-to-clipboard-container {
  694. display: flex;
  695. align-items: center;
  696. margin-top: 8px;
  697. clear: both;
  698. }
  699. .copy-to-clipboard-container .copy-attachment-url {
  700. white-space: normal;
  701. }
  702. .copy-to-clipboard-container .success {
  703. color: #008a20;
  704. margin-left: 8px;
  705. }
  706. /*------------------------------------------------------------------------------
  707. 14.2 - Image Editor
  708. ------------------------------------------------------------------------------*/
  709. .wp_attachment_details .attachment-alt-text {
  710. margin-bottom: 5px;
  711. }
  712. .wp_attachment_details #attachment_alt {
  713. max-width: 500px;
  714. height: 3.28571428em;
  715. }
  716. .wp_attachment_details .attachment-alt-text-description {
  717. margin-top: 5px;
  718. }
  719. .wp_attachment_details label[for="content"] {
  720. font-size: 13px;
  721. line-height: 1.5;
  722. margin: 1em 0;
  723. }
  724. .wp_attachment_details #attachment_caption {
  725. height: 4em;
  726. }
  727. .describe .image-editor {
  728. vertical-align: top;
  729. }
  730. .imgedit-wrap {
  731. position: relative;
  732. padding-top: 10px;
  733. }
  734. .image-editor p,
  735. .image-editor fieldset {
  736. margin: 8px 0;
  737. }
  738. .image-editor legend {
  739. margin-bottom: 5px;
  740. }
  741. .describe .imgedit-wrap .image-editor {
  742. padding: 0 5px;
  743. }
  744. .wp_attachment_holder div.updated {
  745. margin-top: 0;
  746. }
  747. .wp_attachment_holder .imgedit-wrap > div {
  748. height: auto;
  749. }
  750. .imgedit-panel-content {
  751. display: flex;
  752. flex-wrap: wrap;
  753. gap: 20px;
  754. margin-bottom: 20px;
  755. }
  756. .imgedit-settings {
  757. max-width: 400px; /* Prevent reflow when help info is expanded. */
  758. }
  759. .imgedit-group-controls > * {
  760. display: none;
  761. }
  762. .imgedit-panel-active .imgedit-group-controls > * {
  763. display: block;
  764. }
  765. .wp_attachment_holder .imgedit-wrap .image-editor {
  766. float: right;
  767. width: 250px;
  768. }
  769. .image-editor input {
  770. margin-top: 0;
  771. vertical-align: middle;
  772. }
  773. .imgedit-wait {
  774. position: absolute;
  775. top: 0;
  776. bottom: 0;
  777. width: 100%;
  778. background: #fff;
  779. opacity: 0.7;
  780. filter: alpha(opacity=70);
  781. display: none;
  782. }
  783. .imgedit-wait:before {
  784. content: "";
  785. display: block;
  786. width: 20px;
  787. height: 20px;
  788. position: absolute;
  789. left: 50%;
  790. top: 50%;
  791. margin: -10px 0 0 -10px;
  792. background: transparent url(../images/spinner.gif) no-repeat center;
  793. background-size: 20px 20px;
  794. transform: translateZ(0);
  795. }
  796. .no-float {
  797. float: none;
  798. }
  799. .media-disabled,
  800. .image-editor .disabled {
  801. /* WCAG 1.4.3 Text or images of text that are part of an inactive user
  802. interface component ... have no contrast requirement. */
  803. color: #a7aaad;
  804. }
  805. .A1B1 {
  806. overflow: hidden;
  807. }
  808. .wp_attachment_image .button,
  809. .A1B1 .button {
  810. float: left;
  811. }
  812. .no-js .wp_attachment_image .button {
  813. display: none;
  814. }
  815. .wp_attachment_image .spinner,
  816. .A1B1 .spinner {
  817. float: left;
  818. }
  819. .imgedit-menu .note-no-rotate {
  820. clear: both;
  821. margin: 0;
  822. padding: 1em 0 0;
  823. }
  824. .image-editor .imgedit-menu .button {
  825. display: inline-block;
  826. width: auto;
  827. min-height: 28px;
  828. font-size: 13px;
  829. line-height: 2;
  830. padding: 0 10px;
  831. }
  832. .imgedit-menu .button:after,
  833. .imgedit-menu .button:before {
  834. font: normal 16px/1 dashicons;
  835. margin-right: 8px;
  836. speak: never;
  837. vertical-align: middle;
  838. position: relative;
  839. top: -2px;
  840. -webkit-font-smoothing: antialiased;
  841. -moz-osx-font-smoothing: grayscale;
  842. }
  843. .imgedit-menu .imgedit-rotate.button:after {
  844. content: '\f140';
  845. margin-left: 2px;
  846. margin-right: 0;
  847. }
  848. .imgedit-menu .imgedit-rotate.button[aria-expanded="true"]:after {
  849. content: '\f142';
  850. }
  851. .imgedit-menu .button.disabled {
  852. color: #a7aaad;
  853. border-color: #dcdcde;
  854. background: #f6f7f7;
  855. box-shadow: none;
  856. text-shadow: 0 1px 0 #fff;
  857. cursor: default;
  858. transform: none;
  859. }
  860. .imgedit-crop:before {
  861. content: "\f165";
  862. }
  863. .imgedit-scale:before {
  864. content: "\f211";
  865. }
  866. .imgedit-rotate:before {
  867. content: "\f167";
  868. }
  869. .imgedit-undo:before {
  870. content: "\f171";
  871. }
  872. .imgedit-redo:before {
  873. content: "\f172";
  874. }
  875. .imgedit-crop-wrap {
  876. position: relative;
  877. }
  878. .imgedit-crop-wrap img {
  879. 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);
  880. background-position: 0 0, 10px 10px;
  881. background-size: 20px 20px;
  882. }
  883. .imgedit-crop-wrap {
  884. padding: 20px;
  885. 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);
  886. background-position: 0 0, 10px 10px;
  887. background-size: 20px 20px;
  888. }
  889. .imgedit-crop {
  890. margin: 0 8px 0 0;
  891. }
  892. .imgedit-rotate {
  893. margin: 0 8px 0 3px;
  894. }
  895. .imgedit-undo {
  896. margin: 0 3px;
  897. }
  898. .imgedit-redo {
  899. margin: 0 8px 0 3px;
  900. }
  901. .imgedit-thumbnail-preview-group {
  902. display: flex;
  903. flex-wrap: wrap;
  904. column-gap: 10px;
  905. }
  906. .imgedit-thumbnail-preview {
  907. margin: 10px 8px 0 0;
  908. }
  909. .imgedit-thumbnail-preview-caption {
  910. display: block;
  911. }
  912. #poststuff .imgedit-group-top h2 {
  913. display: inline-block;
  914. margin: 0;
  915. padding: 0;
  916. font-size: 14px;
  917. line-height: 1.4;
  918. }
  919. #poststuff .imgedit-group-top .button-link {
  920. text-decoration: none;
  921. color: #1d2327;
  922. }
  923. .imgedit-applyto .imgedit-label {
  924. display: block;
  925. padding: .5em 0 0;
  926. }
  927. .imgedit-popup-menu,
  928. .imgedit-help {
  929. display: none;
  930. padding-bottom: 8px;
  931. }
  932. .imgedit-panel-tools > .imgedit-menu {
  933. display: flex;
  934. column-gap: 4px;
  935. align-items: start;
  936. flex-wrap: wrap;
  937. }
  938. .imgedit-popup-menu {
  939. width: calc( 100% - 20px );
  940. position: absolute;
  941. background: #fff;
  942. padding: 10px;
  943. box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  944. }
  945. .image-editor .imgedit-menu .imgedit-popup-menu button {
  946. display: block;
  947. margin: 2px 0;
  948. width: 100%;
  949. white-space: break-spaces;
  950. line-height: 1.5;
  951. padding-top: 3px;
  952. padding-bottom: 2px;
  953. }
  954. .imgedit-rotate-menu-container {
  955. position: relative;
  956. }
  957. .imgedit-help.imgedit-restore {
  958. padding-bottom: 0;
  959. }
  960. /* higher specificity than buttons */
  961. .image-editor .imgedit-settings .imgedit-help-toggle,
  962. .image-editor .imgedit-settings .imgedit-help-toggle:hover,
  963. .image-editor .imgedit-settings .imgedit-help-toggle:active {
  964. border: 1px solid transparent;
  965. margin: -1px 0 0 -1px;
  966. padding: 0;
  967. background: transparent;
  968. color: #2271b1;
  969. font-size: 20px;
  970. line-height: 1;
  971. cursor: pointer;
  972. box-sizing: content-box;
  973. box-shadow: none;
  974. }
  975. .image-editor .imgedit-settings .imgedit-help-toggle:focus {
  976. color: #2271b1;
  977. border-color: #4f94d4;
  978. box-shadow: 0 0 3px rgba(34, 113, 177, 0.8);
  979. /* Only visible in Windows High Contrast mode */
  980. outline: 2px solid transparent;
  981. }
  982. .form-table td.imgedit-response {
  983. padding: 0;
  984. }
  985. .imgedit-submit-btn {
  986. margin-left: 20px;
  987. }
  988. .imgedit-wrap .nowrap {
  989. white-space: nowrap;
  990. font-size: 12px;
  991. line-height: inherit;
  992. }
  993. span.imgedit-scale-warn {
  994. display: flex;
  995. align-items: center;
  996. margin: 4px;
  997. gap: 4px;
  998. color: #b32d2e;
  999. font-style: normal;
  1000. visibility: hidden;
  1001. vertical-align: middle;
  1002. }
  1003. .imgedit-save-target {
  1004. margin: 8px 0;
  1005. }
  1006. .imgedit-save-target legend {
  1007. font-weight: 600;
  1008. }
  1009. .imgedit-group {
  1010. margin-bottom: 20px;
  1011. }
  1012. .image-editor .imgedit-original-dimensions {
  1013. display: inline-block;
  1014. }
  1015. .image-editor .imgedit-scale-controls input[type="text"],
  1016. .image-editor .imgedit-crop-ratio input[type="text"],
  1017. .image-editor .imgedit-crop-sel input[type="text"],
  1018. .image-editor .imgedit-scale-controls input[type="number"],
  1019. .image-editor .imgedit-crop-ratio input[type="number"],
  1020. .image-editor .imgedit-crop-sel input[type="number"] {
  1021. width: 80px;
  1022. font-size: 14px;
  1023. padding: 0 8px;
  1024. }
  1025. .imgedit-separator {
  1026. display: inline-block;
  1027. width: 7px;
  1028. text-align: center;
  1029. font-size: 13px;
  1030. color: #3c434a;
  1031. }
  1032. .image-editor .imgedit-scale-button-wrapper {
  1033. margin-top: 0.3077em;
  1034. display: block;
  1035. }
  1036. .image-editor .imgedit-scale-controls .button {
  1037. margin-bottom: 0;
  1038. }
  1039. audio, video {
  1040. display: inline-block;
  1041. max-width: 100%;
  1042. }
  1043. .wp-core-ui .mejs-container {
  1044. width: 100%;
  1045. max-width: 100%;
  1046. }
  1047. .wp-core-ui .mejs-container * {
  1048. box-sizing: border-box;
  1049. }
  1050. .wp-core-ui .mejs-time {
  1051. box-sizing: content-box;
  1052. }
  1053. /* =Media Queries
  1054. -------------------------------------------------------------- */
  1055. /**
  1056. * HiDPI Displays
  1057. */
  1058. @media print,
  1059. (-webkit-min-device-pixel-ratio: 1.25),
  1060. (min-resolution: 120dpi) {
  1061. .imgedit-wait:before {
  1062. background-image: url(../images/spinner-2x.gif);
  1063. }
  1064. }
  1065. @media screen and (max-width: 782px) {
  1066. .edit-attachment-frame input,
  1067. .edit-attachment-frame textarea {
  1068. line-height: 1.5;
  1069. }
  1070. .wp_attachment_details label[for="content"] {
  1071. font-size: 14px;
  1072. line-height: 1.5;
  1073. }
  1074. .wp_attachment_details textarea {
  1075. line-height: 1.5;
  1076. }
  1077. .wp_attachment_details #attachment_alt {
  1078. height: 3.375em;
  1079. }
  1080. .media-upload-form .media-item.error,
  1081. .media-upload-form .media-item .error {
  1082. font-size: 13px;
  1083. line-height: 1.5;
  1084. }
  1085. .media-upload-form .media-item.error {
  1086. padding: 1px 10px;
  1087. }
  1088. .media-upload-form .media-item .error {
  1089. padding: 10px 0 10px 12px;
  1090. }
  1091. .image-editor .imgedit-scale input[type="text"],
  1092. .image-editor .imgedit-crop-ratio input[type="text"],
  1093. .image-editor .imgedit-crop-sel input[type="text"] {
  1094. font-size: 16px;
  1095. padding: 6px 10px;
  1096. }
  1097. .wp_attachment_holder .imgedit-wrap .imgedit-panel-content,
  1098. .wp_attachment_holder .imgedit-wrap .image-editor {
  1099. float: none;
  1100. width: auto;
  1101. max-width: none;
  1102. padding-bottom: 16px;
  1103. }
  1104. .copy-to-clipboard-container .success {
  1105. font-size: 14px;
  1106. }
  1107. /* Restructure image editor on narrow viewports. */
  1108. .imgedit-crop-wrap img{
  1109. width: 100%;
  1110. }
  1111. .media-modal .imgedit-wrap .imgedit-panel-content,
  1112. .media-modal .imgedit-wrap .image-editor {
  1113. position: initial !important;
  1114. }
  1115. .media-modal .imgedit-wrap .image-editor {
  1116. box-sizing: border-box;
  1117. width: 100% !important;
  1118. }
  1119. .image-editor .imgedit-scale-button-wrapper {
  1120. display: inline-block;
  1121. }
  1122. }
  1123. @media only screen and (max-width: 600px) {
  1124. .media-item-wrapper {
  1125. grid-template-columns: 1fr;
  1126. }
  1127. }
  1128. /**
  1129. * Media queries for media grid.
  1130. */
  1131. @media only screen and (max-width: 1120px) {
  1132. /* override for media-views.css */
  1133. #wp-media-grid .wp-filter .attachment-filters {
  1134. max-width: 100%;
  1135. }
  1136. }
  1137. @media only screen and (max-width: 1000px) {
  1138. /* override for forms.css */
  1139. .wp-filter p.search-box {
  1140. float: none;
  1141. width: 100%;
  1142. margin-bottom: 20px;
  1143. display: flex;
  1144. }
  1145. }
  1146. @media only screen and (max-width: 782px) {
  1147. .media-frame.mode-select .attachments-browser.fixed .media-toolbar {
  1148. top: 46px;
  1149. right: 10px;
  1150. }
  1151. }
  1152. @media only screen and (max-width: 600px) {
  1153. .media-frame.mode-select .attachments-browser.fixed .media-toolbar {
  1154. top: 0;
  1155. }
  1156. }
  1157. @media only screen and (max-width: 480px) {
  1158. .edit-attachment-frame .media-frame-title {
  1159. right: 110px;
  1160. }
  1161. .upload-php .media-modal-close,
  1162. .edit-attachment-frame .edit-media-header .left,
  1163. .edit-attachment-frame .edit-media-header .right {
  1164. width: 40px;
  1165. height: 40px;
  1166. }
  1167. .edit-attachment-frame .edit-media-header .right:before,
  1168. .edit-attachment-frame .edit-media-header .left:before {
  1169. line-height: 40px !important;
  1170. }
  1171. .edit-attachment-frame .edit-media-header .left {
  1172. right: 82px;
  1173. }
  1174. .edit-attachment-frame .edit-media-header .right {
  1175. right: 41px;
  1176. }
  1177. .edit-attachment-frame .media-frame-content {
  1178. top: 40px;
  1179. }
  1180. .edit-attachment-frame .attachment-media-view {
  1181. float: none;
  1182. height: auto;
  1183. width: 100%;
  1184. }
  1185. .edit-attachment-frame .attachment-info {
  1186. height: auto;
  1187. width: 100%;
  1188. }
  1189. }
  1190. @media only screen and (max-width: 640px), screen and (max-height: 400px) {
  1191. .upload-php .mode-grid .media-sidebar{
  1192. max-width: 100%;
  1193. }
  1194. }