media.css 25 KB

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