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.

2967 lines
56 KiB

1 year ago
  1. /**
  2. * Base Styles
  3. */
  4. .media-modal * {
  5. box-sizing: content-box;
  6. }
  7. .media-modal input,
  8. .media-modal select,
  9. .media-modal textarea {
  10. box-sizing: border-box;
  11. }
  12. .media-modal,
  13. .media-frame {
  14. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  15. font-size: 12px;
  16. -webkit-overflow-scrolling: touch;
  17. }
  18. .media-modal legend {
  19. padding: 0;
  20. font-size: 13px;
  21. }
  22. .media-modal label {
  23. font-size: 13px;
  24. }
  25. .media-modal .legend-inline {
  26. position: absolute;
  27. transform: translate(-100%, 50%);
  28. margin-left: -1%;
  29. line-height: 1.2;
  30. }
  31. .media-frame a {
  32. border-bottom: none;
  33. color: #2271b1;
  34. }
  35. .media-frame a:hover,
  36. .media-frame a:active {
  37. color: #135e96;
  38. }
  39. .media-frame a:focus {
  40. box-shadow:
  41. 0 0 0 1px #4f94d4,
  42. 0 0 2px 1px rgba(79, 148, 212, 0.8);
  43. color: #043959;
  44. /* Only visible in Windows High Contrast mode */
  45. outline: 1px solid transparent;
  46. }
  47. .media-frame a.button {
  48. color: #2c3338;
  49. }
  50. .media-frame a.button:hover {
  51. color: #1d2327;
  52. }
  53. .media-frame a.button-primary,
  54. .media-frame a.button-primary:hover {
  55. color: #fff;
  56. }
  57. .media-frame input,
  58. .media-frame textarea {
  59. padding: 6px 8px;
  60. }
  61. .media-frame select,
  62. .wp-admin .media-frame select {
  63. min-height: 30px;
  64. vertical-align: middle;
  65. }
  66. .media-frame input[type="text"],
  67. .media-frame input[type="password"],
  68. .media-frame input[type="color"],
  69. .media-frame input[type="date"],
  70. .media-frame input[type="datetime"],
  71. .media-frame input[type="datetime-local"],
  72. .media-frame input[type="email"],
  73. .media-frame input[type="month"],
  74. .media-frame input[type="number"],
  75. .media-frame input[type="search"],
  76. .media-frame input[type="tel"],
  77. .media-frame input[type="time"],
  78. .media-frame input[type="url"],
  79. .media-frame input[type="week"],
  80. .media-frame textarea,
  81. .media-frame select {
  82. box-shadow: 0 0 0 transparent;
  83. border-radius: 4px;
  84. border: 1px solid #8c8f94;
  85. background-color: #fff;
  86. color: #2c3338;
  87. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  88. font-size: 13px;
  89. line-height: 1.38461538;
  90. }
  91. .media-frame input[type="text"],
  92. .media-frame input[type="password"],
  93. .media-frame input[type="date"],
  94. .media-frame input[type="datetime"],
  95. .media-frame input[type="datetime-local"],
  96. .media-frame input[type="email"],
  97. .media-frame input[type="month"],
  98. .media-frame input[type="number"],
  99. .media-frame input[type="search"],
  100. .media-frame input[type="tel"],
  101. .media-frame input[type="time"],
  102. .media-frame input[type="url"],
  103. .media-frame input[type="week"] {
  104. padding: 0 8px;
  105. /* inherits font size 13px */
  106. line-height: 2.15384615; /* 28px */
  107. }
  108. /* Search field in the Media Library toolbar */
  109. .media-frame.mode-grid .wp-filter input[type="search"] {
  110. font-size: 14px;
  111. line-height: 2;
  112. }
  113. .media-frame input[type="text"]:focus,
  114. .media-frame input[type="password"]:focus,
  115. .media-frame input[type="number"]:focus,
  116. .media-frame input[type="search"]:focus,
  117. .media-frame input[type="email"]:focus,
  118. .media-frame input[type="url"]:focus,
  119. .media-frame textarea:focus,
  120. .media-frame select:focus {
  121. border-color: #3582c4;
  122. box-shadow: 0 0 0 1px #3582c4;
  123. outline: 2px solid transparent;
  124. }
  125. .media-frame input:disabled,
  126. .media-frame textarea:disabled,
  127. .media-frame input[readonly],
  128. .media-frame textarea[readonly] {
  129. background-color: #f0f0f1;
  130. }
  131. .media-frame input[type="search"] {
  132. -webkit-appearance: textfield;
  133. }
  134. .media-frame ::-webkit-input-placeholder {
  135. color: #646970;
  136. }
  137. .media-frame ::-moz-placeholder {
  138. color: #646970;
  139. opacity: 1;
  140. }
  141. .media-frame :-ms-input-placeholder {
  142. color: #646970;
  143. }
  144. /*
  145. * In some cases there's the need of higher specificity,
  146. * for example higher than `.media-embed .setting`.
  147. */
  148. .media-frame .hidden,
  149. .media-frame .setting.hidden {
  150. display: none;
  151. }
  152. /*!
  153. * jQuery UI Draggable/Sortable 1.11.4
  154. * http://jqueryui.com
  155. *
  156. * Copyright jQuery Foundation and other contributors
  157. * Released under the MIT license.
  158. * http://jquery.org/license
  159. */
  160. .ui-draggable-handle,
  161. .ui-sortable-handle {
  162. touch-action: none;
  163. }
  164. /**
  165. * Modal
  166. */
  167. .media-modal {
  168. position: fixed;
  169. top: 30px;
  170. left: 30px;
  171. right: 30px;
  172. bottom: 30px;
  173. z-index: 160000;
  174. }
  175. .wp-customizer .media-modal {
  176. z-index: 560000;
  177. }
  178. .media-modal-backdrop {
  179. position: fixed;
  180. top: 0;
  181. left: 0;
  182. right: 0;
  183. bottom: 0;
  184. min-height: 360px;
  185. background: #000;
  186. opacity: 0.7;
  187. z-index: 159900;
  188. }
  189. .wp-customizer .media-modal-backdrop {
  190. z-index: 559900;
  191. }
  192. .media-modal-close {
  193. position: absolute;
  194. top: 0;
  195. right: 0;
  196. width: 50px;
  197. height: 50px;
  198. margin: 0;
  199. padding: 0;
  200. border: 1px solid transparent;
  201. background: none;
  202. color: #646970;
  203. z-index: 1000;
  204. cursor: pointer;
  205. outline: none;
  206. transition: color .1s ease-in-out, background .1s ease-in-out;
  207. }
  208. .media-modal-close:hover,
  209. .media-modal-close:active {
  210. color: #135e96;
  211. }
  212. .media-modal-close:focus {
  213. color: #135e96;
  214. border-color: #4f94d4;
  215. box-shadow: 0 0 3px rgba(34, 113, 177, 0.8);
  216. /* Only visible in Windows High Contrast mode */
  217. outline: 2px solid transparent;
  218. }
  219. .media-modal-close span.media-modal-icon {
  220. background-image: none;
  221. }
  222. .media-modal-close .media-modal-icon:before {
  223. content: "\f158";
  224. font: normal 20px/1 dashicons;
  225. speak: never;
  226. vertical-align: middle;
  227. -webkit-font-smoothing: antialiased;
  228. -moz-osx-font-smoothing: grayscale;
  229. }
  230. .media-modal-content {
  231. position: absolute;
  232. top: 0;
  233. left: 0;
  234. right: 0;
  235. bottom: 0;
  236. overflow: auto;
  237. min-height: 300px;
  238. box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
  239. background: #fff;
  240. -webkit-font-smoothing: subpixel-antialiased;
  241. }
  242. .media-modal-content .media-frame select.attachment-filters {
  243. margin-top: 32px;
  244. margin-right: 2%;
  245. width: 42%;
  246. width: calc(48% - 12px);
  247. }
  248. /* higher specificity */
  249. .wp-core-ui .media-modal-icon {
  250. background-image: url(../images/uploader-icons.png);
  251. background-repeat: no-repeat;
  252. }
  253. /**
  254. * Toolbar
  255. */
  256. .media-toolbar {
  257. position: absolute;
  258. top: 0;
  259. left: 0;
  260. right: 0;
  261. z-index: 100;
  262. height: 60px;
  263. padding: 0 16px;
  264. border: 0 solid #dcdcde;
  265. overflow: hidden;
  266. }
  267. .media-frame-toolbar .media-toolbar {
  268. top: auto;
  269. bottom: -47px;
  270. height: auto;
  271. overflow: visible;
  272. border-top: 1px solid #dcdcde;
  273. }
  274. .media-toolbar-primary {
  275. float: right;
  276. height: 100%;
  277. position: relative;
  278. }
  279. .media-toolbar-secondary {
  280. float: left;
  281. height: 100%;
  282. }
  283. .media-toolbar-primary > .media-button,
  284. .media-toolbar-primary > .media-button-group {
  285. margin-left: 10px;
  286. float: left;
  287. margin-top: 15px;
  288. }
  289. .media-toolbar-secondary > .media-button,
  290. .media-toolbar-secondary > .media-button-group {
  291. margin-right: 10px;
  292. margin-top: 15px;
  293. }
  294. /**
  295. * Sidebar
  296. */
  297. .media-sidebar {
  298. position: absolute;
  299. top: 0;
  300. right: 0;
  301. bottom: 0;
  302. width: 267px;
  303. padding: 0 16px;
  304. z-index: 75;
  305. background: #f6f7f7;
  306. border-left: 1px solid #dcdcde;
  307. overflow: auto;
  308. -webkit-overflow-scrolling: touch;
  309. }
  310. /*
  311. * Implementation of bottom padding in overflow content differs across browsers.
  312. * We need a different method. See https://github.com/w3c/csswg-drafts/issues/129
  313. */
  314. .media-sidebar::after {
  315. content: "";
  316. display: flex;
  317. clear: both;
  318. height: 24px;
  319. }
  320. .hide-toolbar .media-sidebar {
  321. bottom: 0;
  322. }
  323. .media-sidebar h2,
  324. .image-details .media-embed h2 {
  325. position: relative;
  326. font-weight: 600;
  327. text-transform: uppercase;
  328. font-size: 12px;
  329. color: #646970;
  330. margin: 24px 0 8px;
  331. }
  332. .media-sidebar .setting,
  333. .attachment-details .setting {
  334. display: block;
  335. float: left;
  336. width: 100%;
  337. margin: 0 0 10px;
  338. }
  339. .media-sidebar .collection-settings .setting {
  340. margin: 1px 0;
  341. }
  342. .media-sidebar .setting.has-description,
  343. .attachment-details .setting.has-description {
  344. margin-bottom: 5px;
  345. }
  346. .media-sidebar .setting .link-to-custom {
  347. margin: 3px 2px 0;
  348. }
  349. .media-sidebar .setting span, /* Back-compat for pre-5.3 */
  350. .attachment-details .setting span, /* Back-compat for pre-5.3 */
  351. .media-sidebar .setting .name,
  352. .media-sidebar .setting .value,
  353. .attachment-details .setting .name {
  354. min-width: 30%;
  355. margin-right: 4%;
  356. font-size: 12px;
  357. text-align: right;
  358. word-wrap: break-word;
  359. }
  360. .media-sidebar .setting .name {
  361. max-width: 80px;
  362. }
  363. .media-sidebar .setting .value {
  364. text-align: left;
  365. }
  366. .media-sidebar .setting select {
  367. max-width: 65%;
  368. }
  369. .media-sidebar .setting input[type="checkbox"],
  370. .media-sidebar .field input[type="checkbox"],
  371. .media-sidebar .setting input[type="radio"],
  372. .media-sidebar .field input[type="radio"],
  373. .attachment-details .setting input[type="checkbox"],
  374. .attachment-details .field input[type="checkbox"],
  375. .attachment-details .setting input[type="radio"],
  376. .attachment-details .field input[type="radio"] {
  377. float: none;
  378. margin: 8px 3px 0;
  379. padding: 0;
  380. }
  381. .media-sidebar .setting span, /* Back-compat for pre-5.3 */
  382. .attachment-details .setting span, /* Back-compat for pre-5.3 */
  383. .media-sidebar .setting .name,
  384. .media-sidebar .setting .value,
  385. .media-sidebar .checkbox-label-inline,
  386. .attachment-details .setting .name,
  387. .attachment-details .setting .value,
  388. .compat-item label span {
  389. float: left;
  390. min-height: 22px;
  391. padding-top: 8px;
  392. line-height: 1.33333333;
  393. font-weight: 400;
  394. color: #646970;
  395. }
  396. .media-sidebar .checkbox-label-inline {
  397. font-size: 12px;
  398. }
  399. .media-sidebar .copy-to-clipboard-container,
  400. .attachment-details .copy-to-clipboard-container {
  401. flex-wrap: wrap;
  402. margin-top: 10px;
  403. margin-left: calc( 35% - 1px );
  404. padding-top: 10px;
  405. }
  406. /* Needs high specificity. */
  407. .attachment-details .attachment-info .copy-to-clipboard-container {
  408. float: none;
  409. }
  410. .media-sidebar .copy-to-clipboard-container .success,
  411. .attachment-details .copy-to-clipboard-container .success {
  412. padding: 0;
  413. min-height: 0;
  414. line-height: 2.18181818;
  415. text-align: left;
  416. color: #008a20;
  417. }
  418. .compat-item label span {
  419. text-align: right;
  420. }
  421. .media-sidebar .setting input[type="text"],
  422. .media-sidebar .setting input[type="password"],
  423. .media-sidebar .setting input[type="email"],
  424. .media-sidebar .setting input[type="number"],
  425. .media-sidebar .setting input[type="search"],
  426. .media-sidebar .setting input[type="tel"],
  427. .media-sidebar .setting input[type="url"],
  428. .media-sidebar .setting textarea,
  429. .media-sidebar .setting .value,
  430. .attachment-details .setting input[type="text"],
  431. .attachment-details .setting input[type="password"],
  432. .attachment-details .setting input[type="email"],
  433. .attachment-details .setting input[type="number"],
  434. .attachment-details .setting input[type="search"],
  435. .attachment-details .setting input[type="tel"],
  436. .attachment-details .setting input[type="url"],
  437. .attachment-details .setting textarea,
  438. .attachment-details .setting .value,
  439. .attachment-details .setting + .description {
  440. box-sizing: border-box;
  441. margin: 1px;
  442. width: 65%;
  443. float: right;
  444. }
  445. .media-sidebar .setting .value,
  446. .attachment-details .setting .value,
  447. .attachment-details .setting + .description {
  448. margin: 0 1px;
  449. text-align: left;
  450. }
  451. .attachment-details .setting + .description {
  452. clear: both;
  453. font-size: 12px;
  454. font-style: normal;
  455. margin-bottom: 10px;
  456. }
  457. .media-sidebar .setting textarea,
  458. .attachment-details .setting textarea,
  459. .compat-item .field textarea {
  460. height: 62px;
  461. resize: vertical;
  462. }
  463. .media-sidebar .alt-text textarea,
  464. .attachment-details .alt-text textarea,
  465. .compat-item .alt-text textarea,
  466. .alt-text textarea {
  467. height: 50px;
  468. }
  469. .compat-item {
  470. float: left;
  471. width: 100%;
  472. overflow: hidden;
  473. }
  474. .compat-item table {
  475. width: 100%;
  476. table-layout: fixed;
  477. border-spacing: 0;
  478. border: 0;
  479. }
  480. .compat-item tr {
  481. padding: 2px 0;
  482. display: block;
  483. overflow: hidden;
  484. }
  485. .compat-item .label,
  486. .compat-item .field {
  487. display: block;
  488. margin: 0;
  489. padding: 0;
  490. }
  491. .compat-item .label {
  492. min-width: 30%;
  493. margin-right: 4%;
  494. float: left;
  495. text-align: right;
  496. }
  497. .compat-item .label span {
  498. display: block;
  499. width: 100%;
  500. }
  501. .compat-item .field {
  502. float: right;
  503. width: 65%;
  504. margin: 1px;
  505. }
  506. .compat-item .field input[type="text"],
  507. .compat-item .field input[type="password"],
  508. .compat-item .field input[type="email"],
  509. .compat-item .field input[type="number"],
  510. .compat-item .field input[type="search"],
  511. .compat-item .field input[type="tel"],
  512. .compat-item .field input[type="url"],
  513. .compat-item .field textarea {
  514. width: 100%;
  515. margin: 0;
  516. box-sizing: border-box;
  517. }
  518. .sidebar-for-errors .attachment-details,
  519. .sidebar-for-errors .compat-item,
  520. .sidebar-for-errors .media-sidebar .media-progress-bar,
  521. .sidebar-for-errors .upload-details {
  522. display: none !important;
  523. }
  524. /**
  525. * Menu
  526. */
  527. .media-menu {
  528. position: absolute;
  529. top: 0;
  530. left: 0;
  531. right: 0;
  532. bottom: 0;
  533. margin: 0;
  534. padding: 50px 0 10px;
  535. background: #f6f7f7;
  536. border-right-width: 1px;
  537. border-right-style: solid;
  538. border-right-color: #c3c4c7;
  539. -webkit-user-select: none;
  540. user-select: none;
  541. }
  542. .media-menu .media-menu-item {
  543. display: block;
  544. box-sizing: border-box;
  545. width: 100%;
  546. position: relative;
  547. border: 0;
  548. margin: 0;
  549. padding: 8px 20px;
  550. font-size: 14px;
  551. line-height: 1.28571428;
  552. background: transparent;
  553. color: #2271b1;
  554. text-align: left;
  555. text-decoration: none;
  556. cursor: pointer;
  557. }
  558. .media-menu .media-menu-item:hover {
  559. background: rgba(0, 0, 0, 0.04);
  560. }
  561. .media-menu .media-menu-item:active {
  562. color: #2271b1;
  563. outline: none;
  564. }
  565. .media-menu .active,
  566. .media-menu .active:hover {
  567. color: #1d2327;
  568. font-weight: 600;
  569. }
  570. .media-menu .media-menu-item:focus {
  571. box-shadow:
  572. 0 0 0 1px #4f94d4,
  573. 0 0 2px 1px rgba(79, 148, 212, 0.8);
  574. color: #043959;
  575. /* Only visible in Windows High Contrast mode */
  576. outline: 1px solid transparent;
  577. }
  578. .media-menu .separator {
  579. height: 0;
  580. margin: 12px 20px;
  581. padding: 0;
  582. border-top: 1px solid #dcdcde;
  583. }
  584. /**
  585. * Menu
  586. */
  587. .media-router {
  588. position: relative;
  589. padding: 0 6px;
  590. margin: 0;
  591. clear: both;
  592. }
  593. .media-router .media-menu-item {
  594. position: relative;
  595. float: left;
  596. border: 0;
  597. margin: 0;
  598. padding: 8px 10px 9px;
  599. height: 18px;
  600. line-height: 1.28571428;
  601. font-size: 14px;
  602. text-decoration: none;
  603. background: transparent;
  604. cursor: pointer;
  605. transition: none;
  606. }
  607. .media-router .media-menu-item:last-child {
  608. border-right: 0;
  609. }
  610. .media-router .media-menu-item:hover,
  611. .media-router .media-menu-item:active {
  612. color: #2271b1;
  613. }
  614. .media-router .active,
  615. .media-router .active:hover {
  616. color: #1d2327;
  617. }
  618. .media-router .media-menu-item:focus {
  619. box-shadow:
  620. 0 0 0 1px #4f94d4,
  621. 0 0 2px 1px rgba(79, 148, 212, 0.8);
  622. color: #043959;
  623. /* Only visible in Windows High Contrast mode */
  624. outline: 1px solid transparent;
  625. }
  626. .media-router .active,
  627. .media-router .media-menu-item.active:last-child {
  628. margin: -1px -1px 0;
  629. background: #fff;
  630. border: 1px solid #dcdcde;
  631. border-bottom: none;
  632. }
  633. .media-router .active:after {
  634. display: none;
  635. }
  636. /**
  637. * Frame
  638. */
  639. .media-frame {
  640. overflow: hidden;
  641. position: absolute;
  642. top: 0;
  643. left: 0;
  644. right: 0;
  645. bottom: 0;
  646. }
  647. .media-frame-menu {
  648. position: absolute;
  649. top: 0;
  650. left: 0;
  651. bottom: 0;
  652. width: 200px;
  653. z-index: 150;
  654. }
  655. .media-frame-title {
  656. position: absolute;
  657. top: 0;
  658. left: 200px;
  659. right: 0;
  660. height: 50px;
  661. z-index: 200;
  662. }
  663. .media-frame-router {
  664. position: absolute;
  665. top: 50px;
  666. left: 200px;
  667. right: 0;
  668. height: 36px;
  669. z-index: 200;
  670. }
  671. .media-frame-content {
  672. position: absolute;
  673. top: 84px;
  674. left: 200px;
  675. right: 0;
  676. bottom: 61px;
  677. height: auto;
  678. width: auto;
  679. margin: 0;
  680. overflow: auto;
  681. background: #fff;
  682. border-top: 1px solid #dcdcde;
  683. }
  684. .media-frame-toolbar {
  685. position: absolute;
  686. left: 200px;
  687. right: 0;
  688. z-index: 100;
  689. bottom: 60px;
  690. height: auto;
  691. }
  692. .media-frame.hide-menu .media-frame-title,
  693. .media-frame.hide-menu .media-frame-router,
  694. .media-frame.hide-menu .media-frame-toolbar,
  695. .media-frame.hide-menu .media-frame-content {
  696. left: 0;
  697. }
  698. .media-frame.hide-toolbar .media-frame-content {
  699. bottom: 0;
  700. }
  701. .media-frame.hide-router .media-frame-content {
  702. top: 50px;
  703. }
  704. .media-frame.hide-menu .media-frame-menu,
  705. .media-frame.hide-menu .media-frame-menu-heading,
  706. .media-frame.hide-router .media-frame-router,
  707. .media-frame.hide-toolbar .media-frame-toolbar {
  708. display: none;
  709. }
  710. .media-frame-title h1 {
  711. padding: 0 16px;
  712. font-size: 22px;
  713. line-height: 2.27272727;
  714. margin: 0;
  715. }
  716. .media-frame-menu-heading,
  717. .media-attachments-filter-heading {
  718. position: absolute;
  719. left: 20px;
  720. top: 22px;
  721. margin: 0;
  722. font-size: 13px;
  723. line-height: 1;
  724. /* Above the media-frame-menu. */
  725. z-index: 151;
  726. }
  727. .media-attachments-filter-heading {
  728. top: 10px;
  729. left: 16px;
  730. }
  731. .mode-grid .media-attachments-filter-heading {
  732. top: 0;
  733. left: -9999px;
  734. }
  735. .mode-grid .media-frame-actions-heading {
  736. display: none;
  737. }
  738. .wp-core-ui .button.media-frame-menu-toggle {
  739. display: none;
  740. }
  741. .media-frame-title .suggested-dimensions {
  742. font-size: 14px;
  743. float: right;
  744. margin-right: 20px;
  745. }
  746. .media-frame-content .crop-content {
  747. height: 100%;
  748. }
  749. .wp-customizer:not(.mobile) .media-frame-content .crop-content.site-icon {
  750. margin-right: 300px;
  751. }
  752. .media-frame-content .crop-content .crop-image {
  753. display: block;
  754. margin: auto;
  755. max-width: 100%;
  756. max-height: 100%;
  757. }
  758. .media-frame-content .crop-content .upload-errors {
  759. position: absolute;
  760. width: 300px;
  761. top: 50%;
  762. left: 50%;
  763. margin-left: -150px;
  764. margin-right: -150px;
  765. z-index: 600000;
  766. }
  767. /**
  768. * Iframes
  769. */
  770. .media-frame .media-iframe {
  771. overflow: hidden;
  772. }
  773. .media-frame .media-iframe,
  774. .media-frame .media-iframe iframe {
  775. height: 100%;
  776. width: 100%;
  777. border: 0;
  778. }
  779. /**
  780. * Attachment Browser Filters
  781. */
  782. .media-frame select.attachment-filters {
  783. margin-top: 11px;
  784. margin-right: 2%;
  785. max-width: 42%;
  786. max-width: calc(48% - 12px);
  787. }
  788. .media-frame select.attachment-filters:last-of-type {
  789. margin-right: 0;
  790. }
  791. /**
  792. * Search
  793. */
  794. .media-frame .search {
  795. margin: 32px 0 0;
  796. padding: 4px;
  797. font-size: 13px;
  798. color: #3c434a;
  799. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  800. -webkit-appearance: none;
  801. }
  802. .media-toolbar-primary .search {
  803. max-width: 100%;
  804. }
  805. .media-modal .media-frame .media-search-input-label {
  806. position: absolute;
  807. left: 0;
  808. top: 10px;
  809. margin: 0;
  810. line-height: 1;
  811. }
  812. /**
  813. * Attachments
  814. */
  815. .wp-core-ui .attachments {
  816. margin: 0;
  817. -webkit-overflow-scrolling: touch;
  818. }
  819. /**
  820. * Attachment
  821. */
  822. .wp-core-ui .attachment {
  823. position: relative;
  824. float: left;
  825. padding: 8px;
  826. margin: 0;
  827. color: #3c434a;
  828. cursor: pointer;
  829. list-style: none;
  830. text-align: center;
  831. -webkit-user-select: none;
  832. user-select: none;
  833. width: 25%;
  834. box-sizing: border-box;
  835. }
  836. .wp-core-ui .attachment:focus,
  837. .wp-core-ui .selected.attachment:focus,
  838. .wp-core-ui .attachment.details:focus {
  839. box-shadow:
  840. inset 0 0 2px 3px #fff,
  841. inset 0 0 0 7px #4f94d4;
  842. /* Only visible in Windows High Contrast mode */
  843. outline: 2px solid transparent;
  844. outline-offset: -6px;
  845. }
  846. .wp-core-ui .selected.attachment {
  847. box-shadow:
  848. inset 0 0 0 5px #fff,
  849. inset 0 0 0 7px #c3c4c7;
  850. }
  851. .wp-core-ui .attachment.details {
  852. box-shadow:
  853. inset 0 0 0 3px #fff,
  854. inset 0 0 0 7px #2271b1;
  855. }
  856. .wp-core-ui .attachment-preview {
  857. position: relative;
  858. box-shadow:
  859. inset 0 0 15px rgba(0, 0, 0, 0.1),
  860. inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  861. background: #f0f0f1;
  862. cursor: pointer;
  863. }
  864. .wp-core-ui .attachment-preview:before {
  865. content: "";
  866. display: block;
  867. padding-top: 100%;
  868. }
  869. .wp-core-ui .attachment .icon {
  870. margin: 0 auto;
  871. overflow: hidden;
  872. }
  873. .wp-core-ui .attachment .thumbnail {
  874. overflow: hidden;
  875. position: absolute;
  876. top: 0;
  877. right: 0;
  878. bottom: 0;
  879. left: 0;
  880. opacity: 1;
  881. transition: opacity .1s;
  882. }
  883. .wp-core-ui .attachment .portrait img {
  884. max-width: 100%;
  885. }
  886. .wp-core-ui .attachment .landscape img {
  887. max-height: 100%;
  888. }
  889. .wp-core-ui .attachment .thumbnail:after {
  890. content: "";
  891. display: block;
  892. position: absolute;
  893. top: 0;
  894. left: 0;
  895. right: 0;
  896. bottom: 0;
  897. box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  898. overflow: hidden;
  899. }
  900. .wp-core-ui .attachment .thumbnail img {
  901. top: 0;
  902. left: 0;
  903. }
  904. .wp-core-ui .attachment .thumbnail .centered {
  905. position: absolute;
  906. top: 0;
  907. left: 0;
  908. width: 100%;
  909. height: 100%;
  910. transform: translate( 50%, 50% );
  911. }
  912. .wp-core-ui .attachment .thumbnail .centered img {
  913. transform: translate( -50%, -50% );
  914. }
  915. .wp-core-ui .attachments-browser .attachment .thumbnail .centered img.icon {
  916. transform: translate( -50%, -70% );
  917. }
  918. .wp-core-ui .attachment .filename {
  919. position: absolute;
  920. left: 0;
  921. right: 0;
  922. bottom: 0;
  923. overflow: hidden;
  924. max-height: 100%;
  925. word-wrap: break-word;
  926. text-align: center;
  927. font-weight: 600;
  928. background: rgba(255, 255, 255, 0.8);
  929. box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  930. }
  931. .wp-core-ui .attachment .filename div {
  932. padding: 5px 10px;
  933. }
  934. .wp-core-ui .attachment .thumbnail img {
  935. position: absolute;
  936. }
  937. .wp-core-ui .attachment-close {
  938. display: block;
  939. position: absolute;
  940. top: 5px;
  941. right: 5px;
  942. height: 22px;
  943. width: 22px;
  944. padding: 0;
  945. background-color: #fff;
  946. background-position: -96px 4px;
  947. border-radius: 3px;
  948. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  949. transition: none;
  950. }
  951. .wp-core-ui .attachment-close:hover,
  952. .wp-core-ui .attachment-close:focus {
  953. background-position: -36px 4px;
  954. }
  955. .wp-core-ui .attachment .check {
  956. display: none;
  957. height: 24px;
  958. width: 24px;
  959. padding: 0;
  960. border: 0;
  961. position: absolute;
  962. z-index: 10;
  963. top: 0;
  964. right: 0;
  965. outline: none;
  966. background: #f0f0f1;
  967. cursor: pointer;
  968. box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(0, 0, 0, 0.15);
  969. }
  970. .wp-core-ui .attachment .check .media-modal-icon {
  971. display: block;
  972. background-position: -1px 0;
  973. height: 15px;
  974. width: 15px;
  975. margin: 5px;
  976. }
  977. .wp-core-ui .attachment .check:hover .media-modal-icon {
  978. background-position: -40px 0;
  979. }
  980. .wp-core-ui .attachment.selected .check {
  981. display: block;
  982. }
  983. .wp-core-ui .attachment.details .check,
  984. .wp-core-ui .attachment.selected .check:focus,
  985. .wp-core-ui .media-frame.mode-grid .attachment.selected .check {
  986. background-color: #2271b1;
  987. box-shadow:
  988. 0 0 0 1px #fff,
  989. 0 0 0 2px #2271b1;
  990. }
  991. .wp-core-ui .attachment.selected .check:focus {
  992. /* Only visible in Windows High Contrast mode */
  993. outline: 2px solid transparent;
  994. }
  995. .wp-core-ui .attachment.details .check .media-modal-icon,
  996. .wp-core-ui .media-frame.mode-grid .attachment.selected .check .media-modal-icon {
  997. background-position: -21px 0;
  998. }
  999. .wp-core-ui .attachment.details .check:hover .media-modal-icon,
  1000. .wp-core-ui .attachment.selected .check:focus .media-modal-icon,
  1001. .wp-core-ui .media-frame.mode-grid .attachment.selected .check:hover .media-modal-icon {
  1002. background-position: -60px 0;
  1003. }
  1004. .wp-core-ui .media-frame .attachment .describe {
  1005. position: relative;
  1006. display: block;
  1007. width: 100%;
  1008. margin: 0;
  1009. padding: 0 8px;
  1010. font-size: 12px;
  1011. border-radius: 0;
  1012. }
  1013. /**
  1014. * Attachments Browser
  1015. */
  1016. .media-frame .attachments-browser {
  1017. position: relative;
  1018. width: 100%;
  1019. height: 100%;
  1020. overflow: hidden;
  1021. }
  1022. .attachments-browser .media-toolbar {
  1023. right: 300px;
  1024. height: 72px;
  1025. background: #fff;
  1026. }
  1027. .attachments-browser.hide-sidebar .media-toolbar {
  1028. right: 0;
  1029. }
  1030. .attachments-browser .media-toolbar-primary > .media-button,
  1031. .attachments-browser .media-toolbar-primary > .media-button-group,
  1032. .attachments-browser .media-toolbar-secondary > .media-button,
  1033. .attachments-browser .media-toolbar-secondary > .media-button-group {
  1034. margin: 10px 0;
  1035. }
  1036. .attachments-browser .attachments {
  1037. padding: 2px 8px 8px;
  1038. }
  1039. .attachments-browser:not(.has-load-more) .attachments,
  1040. .attachments-browser.has-load-more .attachments-wrapper,
  1041. .attachments-browser .uploader-inline {
  1042. position: absolute;
  1043. top: 72px;
  1044. left: 0;
  1045. right: 300px;
  1046. bottom: 0;
  1047. overflow: auto;
  1048. outline: none;
  1049. }
  1050. .attachments-browser .uploader-inline.hidden {
  1051. display: none;
  1052. }
  1053. .attachments-browser .media-toolbar-primary {
  1054. max-width: 33%;
  1055. }
  1056. .mode-grid .attachments-browser .media-toolbar-primary {
  1057. display: flex;
  1058. align-items: center;
  1059. column-gap: .5rem;
  1060. }
  1061. .mode-grid .attachments-browser .media-toolbar-mode-select .media-toolbar-primary {
  1062. display: none;
  1063. }
  1064. .attachments-browser .media-toolbar-secondary {
  1065. max-width: 66%;
  1066. }
  1067. .uploader-inline .close {
  1068. background-color: transparent;
  1069. border: 0;
  1070. cursor: pointer;
  1071. height: 48px;
  1072. outline: none;
  1073. padding: 0;
  1074. position: absolute;
  1075. right: 2px;
  1076. text-align: center;
  1077. top: 2px;
  1078. width: 48px;
  1079. z-index: 1;
  1080. }
  1081. .uploader-inline .close:before {
  1082. font: normal 30px/1 dashicons !important;
  1083. color: #50575e;
  1084. display: inline-block;
  1085. content: "\f335";
  1086. font-weight: 300;
  1087. margin-top: 1px;
  1088. }
  1089. .uploader-inline .close:focus {
  1090. outline: 1px solid #4f94d4;
  1091. box-shadow: 0 0 3px rgba(34, 113, 177, 0.8);
  1092. }
  1093. .attachments-browser.hide-sidebar .attachments,
  1094. .attachments-browser.hide-sidebar .uploader-inline {
  1095. right: 0;
  1096. margin-right: 0;
  1097. }
  1098. .attachments-browser .instructions {
  1099. display: inline-block;
  1100. margin-top: 16px;
  1101. line-height: 1.38461538;
  1102. font-size: 13px;
  1103. color: #646970;
  1104. }
  1105. .attachments-browser .no-media {
  1106. padding: 2em 0 0 2em;
  1107. }
  1108. .more-loaded .attachment:not(.found-media) {
  1109. background: #dcdcde;
  1110. }
  1111. .load-more-wrapper {
  1112. clear: both;
  1113. display: flex;
  1114. flex-wrap: wrap;
  1115. align-items: center;
  1116. justify-content: center;
  1117. padding: 1em 0;
  1118. }
  1119. .load-more-wrapper .load-more-count {
  1120. min-width: 100%;
  1121. margin: 0 0 1em;
  1122. text-align: center;
  1123. }
  1124. .load-more-wrapper .load-more {
  1125. margin: 0;
  1126. }
  1127. /* Needs high specificity. */
  1128. .media-frame .load-more-wrapper .load-more + .spinner {
  1129. float: none;
  1130. margin: 0 -30px 0 10px;
  1131. }
  1132. /* Reset spinner margin when the button is hidden to avoid horizontal scrollbar. */
  1133. .media-frame .load-more-wrapper .load-more.hidden + .spinner {
  1134. margin: 0;
  1135. }
  1136. /* Force a new row within the flex container. */
  1137. .load-more-wrapper::after {
  1138. content: "";
  1139. min-width: 100%;
  1140. order: 1;
  1141. }
  1142. .load-more-wrapper .load-more-jump {
  1143. margin: 0 0 0 12px;
  1144. }
  1145. .attachment.new-media {
  1146. outline: 2px dotted #c3c4c7;
  1147. }
  1148. .load-more-wrapper {
  1149. clear: both;
  1150. display: flex;
  1151. flex-wrap: wrap;
  1152. align-items: center;
  1153. justify-content: center;
  1154. padding: 1em 0;
  1155. }
  1156. .load-more-wrapper .load-more-count {
  1157. min-width: 100%;
  1158. margin: 0 0 1em;
  1159. text-align: center;
  1160. }
  1161. .load-more-wrapper .load-more {
  1162. margin: 0;
  1163. }
  1164. /* Needs high specificity. */
  1165. .media-frame .load-more-wrapper .load-more + .spinner {
  1166. float: none;
  1167. margin: 0 -30px 0 10px;
  1168. }
  1169. /* Reset spinner margin when the button is hidden to avoid horizontal scrollbar. */
  1170. .media-frame .load-more-wrapper .load-more.hidden + .spinner {
  1171. margin: 0;
  1172. }
  1173. /* Force a new row within the flex container. */
  1174. .load-more-wrapper::after {
  1175. content: "";
  1176. min-width: 100%;
  1177. order: 1;
  1178. }
  1179. .load-more-wrapper .load-more-jump {
  1180. margin: 0 0 0 12px;
  1181. }
  1182. /**
  1183. * Progress Bar
  1184. */
  1185. .media-progress-bar {
  1186. position: relative;
  1187. height: 10px;
  1188. width: 70%;
  1189. margin: 10px auto;
  1190. border-radius: 10px;
  1191. background: #dcdcde;
  1192. background: rgba(0, 0, 0, 0.1);
  1193. }
  1194. .media-progress-bar div {
  1195. height: 10px;
  1196. min-width: 20px;
  1197. width: 0;
  1198. background: #2271b1;
  1199. border-radius: 10px;
  1200. transition: width 300ms;
  1201. }
  1202. .media-uploader-status .media-progress-bar {
  1203. display: none;
  1204. width: 100%;
  1205. }
  1206. .uploading.media-uploader-status .media-progress-bar {
  1207. display: block;
  1208. }
  1209. .attachment-preview .media-progress-bar {
  1210. position: absolute;
  1211. top: 50%;
  1212. left: 15%;
  1213. width: 70%;
  1214. margin: -5px 0 0;
  1215. }
  1216. .media-uploader-status {
  1217. position: relative;
  1218. margin: 0 auto;
  1219. padding-bottom: 10px;
  1220. max-width: 400px;
  1221. }
  1222. .uploader-inline .media-uploader-status h2 {
  1223. display: none;
  1224. }
  1225. .media-uploader-status .upload-details {
  1226. display: none;
  1227. font-size: 12px;
  1228. color: #646970;
  1229. }
  1230. .uploading.media-uploader-status .upload-details {
  1231. display: block;
  1232. }
  1233. .media-uploader-status .upload-detail-separator {
  1234. padding: 0 4px;
  1235. }
  1236. .media-uploader-status .upload-count {
  1237. color: #3c434a;
  1238. }
  1239. .media-uploader-status .upload-dismiss-errors,
  1240. .media-uploader-status .upload-errors {
  1241. display: none;
  1242. }
  1243. .errors.media-uploader-status .upload-dismiss-errors,
  1244. .errors.media-uploader-status .upload-errors {
  1245. display: block;
  1246. }
  1247. .media-uploader-status .upload-dismiss-errors {
  1248. transition: none;
  1249. text-decoration: none;
  1250. }
  1251. .upload-errors .upload-error {
  1252. padding: 12px;
  1253. margin-bottom: 12px;
  1254. background: #fff;
  1255. border-left: 4px solid #d63638;
  1256. box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
  1257. }
  1258. .uploader-inline .upload-errors .upload-error {
  1259. padding: 12px 30px;
  1260. background-color: #fcf0f1;
  1261. box-shadow: none;
  1262. }
  1263. .upload-errors .upload-error-filename {
  1264. font-weight: 600;
  1265. }
  1266. .upload-errors .upload-error-message {
  1267. display: block;
  1268. padding-top: 8px;
  1269. word-wrap: break-word;
  1270. }
  1271. /**
  1272. * Window and Editor uploaders used to display "drop zones"
  1273. */
  1274. .uploader-window,
  1275. .wp-editor-wrap .uploader-editor {
  1276. top: 0;
  1277. left: 0;
  1278. right: 0;
  1279. bottom: 0;
  1280. text-align: center;
  1281. display: none;
  1282. }
  1283. .uploader-window {
  1284. position: fixed;
  1285. z-index: 250000;
  1286. opacity: 0; /* Only the inline uploader is animated with JS, the editor one isn't */
  1287. transition: opacity 250ms;
  1288. }
  1289. .wp-editor-wrap .uploader-editor {
  1290. position: absolute;
  1291. z-index: 99998; /* under the toolbar */
  1292. background: rgba(140, 143, 148, 0.9);
  1293. }
  1294. .uploader-window,
  1295. .wp-editor-wrap .uploader-editor.droppable {
  1296. background: rgba(10, 75, 120, 0.9);
  1297. }
  1298. .uploader-window-content,
  1299. .wp-editor-wrap .uploader-editor-content {
  1300. position: absolute;
  1301. top: 10px;
  1302. left: 10px;
  1303. right: 10px;
  1304. bottom: 10px;
  1305. border: 1px dashed #fff;
  1306. }
  1307. /* uploader drop-zone title */
  1308. .uploader-window h1, /* Back-compat for pre-5.3 */
  1309. .uploader-window .uploader-editor-title,
  1310. .wp-editor-wrap .uploader-editor .uploader-editor-title {
  1311. position: absolute;
  1312. top: 50%;
  1313. left: 0;
  1314. right: 0;
  1315. transform: translateY(-50%);
  1316. font-size: 3em;
  1317. line-height: 1.3;
  1318. font-weight: 600;
  1319. color: #fff;
  1320. margin: 0;
  1321. padding: 0 10px;
  1322. }
  1323. .wp-editor-wrap .uploader-editor .uploader-editor-title {
  1324. display: none;
  1325. }
  1326. .wp-editor-wrap .uploader-editor.droppable .uploader-editor-title {
  1327. display: block;
  1328. }
  1329. .uploader-window .media-progress-bar {
  1330. margin-top: 20px;
  1331. max-width: 300px;
  1332. background: transparent;
  1333. border-color: #fff;
  1334. display: none;
  1335. }
  1336. .uploader-window .media-progress-bar div {
  1337. background: #fff;
  1338. }
  1339. .uploading .uploader-window .media-progress-bar {
  1340. display: block;
  1341. }
  1342. .media-frame .uploader-inline {
  1343. margin-bottom: 20px;
  1344. padding: 0;
  1345. text-align: center;
  1346. }
  1347. .uploader-inline-content {
  1348. position: absolute;
  1349. top: 30%;
  1350. left: 0;
  1351. right: 0;
  1352. }
  1353. .uploader-inline-content .upload-ui {
  1354. margin: 2em 0;
  1355. }
  1356. .uploader-inline-content .post-upload-ui {
  1357. margin-bottom: 2em;
  1358. }
  1359. .uploader-inline .has-upload-message .upload-ui {
  1360. margin: 0 0 4em;
  1361. }
  1362. .uploader-inline h2 {
  1363. font-size: 20px;
  1364. line-height: 1.4;
  1365. font-weight: 400;
  1366. margin: 0;
  1367. }
  1368. .uploader-inline .has-upload-message .upload-instructions {
  1369. font-size: 14px;
  1370. color: #3c434a;
  1371. font-weight: 400;
  1372. }
  1373. .uploader-inline .drop-instructions {
  1374. display: none;
  1375. }
  1376. .supports-drag-drop .uploader-inline .drop-instructions {
  1377. display: block;
  1378. }
  1379. .uploader-inline p {
  1380. margin: 0.5em 0;
  1381. }
  1382. .uploader-inline .media-progress-bar {
  1383. display: none;
  1384. }
  1385. .uploading.uploader-inline .media-progress-bar {
  1386. display: block;
  1387. }
  1388. .uploader-inline .browser {
  1389. display: inline-block !important;
  1390. }
  1391. /**
  1392. * Selection
  1393. */
  1394. .media-selection {
  1395. position: absolute;
  1396. top: 0;
  1397. left: 0;
  1398. right: 350px;
  1399. height: 60px;
  1400. padding: 0 0 0 16px;
  1401. overflow: hidden;
  1402. white-space: nowrap;
  1403. }
  1404. .media-selection .selection-info {
  1405. display: inline-block;
  1406. font-size: 12px;
  1407. height: 60px;
  1408. margin-right: 10px;
  1409. vertical-align: top;
  1410. }
  1411. .media-selection.empty,
  1412. .media-selection.editing {
  1413. display: none;
  1414. }
  1415. .media-selection.one .edit-selection {
  1416. display: none;
  1417. }
  1418. .media-selection .count {
  1419. display: block;
  1420. padding-top: 12px;
  1421. font-size: 14px;
  1422. line-height: 1.42857142;
  1423. font-weight: 600;
  1424. }
  1425. .media-selection .button-link {
  1426. float: left;
  1427. padding: 1px 8px;
  1428. margin: 1px 8px 1px -8px;
  1429. line-height: 1.4;
  1430. border-right: 1px solid #dcdcde;
  1431. color: #2271b1;
  1432. text-decoration: none;
  1433. }
  1434. .media-selection .button-link:hover,
  1435. .media-selection .button-link:focus {
  1436. color: #135e96;
  1437. }
  1438. .media-selection .button-link:last-child {
  1439. border-right: 0;
  1440. margin-right: 0;
  1441. }
  1442. .selection-info .clear-selection {
  1443. color: #d63638;
  1444. }
  1445. .selection-info .clear-selection:hover,
  1446. .selection-info .clear-selection:focus {
  1447. color: #d63638;
  1448. }
  1449. .media-selection .selection-view {
  1450. display: inline-block;
  1451. vertical-align: top;
  1452. }
  1453. .media-selection .attachments {
  1454. display: inline-block;
  1455. height: 48px;
  1456. margin: 6px;
  1457. padding: 0;
  1458. overflow: hidden;
  1459. vertical-align: top;
  1460. }
  1461. .media-selection .attachment {
  1462. width: 40px;
  1463. padding: 0;
  1464. margin: 4px;
  1465. }
  1466. .media-selection .attachment .thumbnail {
  1467. top: 0;
  1468. right: 0;
  1469. bottom: 0;
  1470. left: 0;
  1471. }
  1472. .media-selection .attachment .icon {
  1473. width: 50%;
  1474. }
  1475. .media-selection .attachment-preview {
  1476. box-shadow: none;
  1477. background: none;
  1478. }
  1479. .wp-core-ui .media-selection .attachment:focus,
  1480. .wp-core-ui .media-selection .selected.attachment:focus,
  1481. .wp-core-ui .media-selection .attachment.details:focus {
  1482. box-shadow:
  1483. 0 0 0 1px #fff,
  1484. 0 0 2px 3px #4f94d4;
  1485. /* Only visible in Windows High Contrast mode */
  1486. outline: 2px solid transparent;
  1487. }
  1488. .wp-core-ui .media-selection .selected.attachment {
  1489. box-shadow: none;
  1490. }
  1491. .wp-core-ui .media-selection .attachment.details {
  1492. box-shadow:
  1493. 0 0 0 1px #fff,
  1494. 0 0 0 3px #2271b1;
  1495. }
  1496. .media-selection:after {
  1497. content: "";
  1498. display: block;
  1499. position: absolute;
  1500. top: 0;
  1501. right: 0;
  1502. bottom: 0;
  1503. width: 25px;
  1504. background-image: linear-gradient(to left,#fff,rgba(255, 255, 255, 0));
  1505. }
  1506. .media-selection .attachment .filename {
  1507. display: none;
  1508. }
  1509. /**
  1510. * Spinner
  1511. */
  1512. .media-frame .spinner {
  1513. background: url(../images/spinner.gif) no-repeat;
  1514. background-size: 20px 20px;
  1515. float: right;
  1516. display: inline-block;
  1517. visibility: hidden;
  1518. opacity: 0.7;
  1519. filter: alpha(opacity=70);
  1520. width: 20px;
  1521. height: 20px;
  1522. margin: 0;
  1523. vertical-align: middle;
  1524. }
  1525. .media-frame.mode-grid .spinner {
  1526. margin: 0;
  1527. float: none;
  1528. vertical-align: middle;
  1529. }
  1530. .media-modal .media-toolbar .spinner {
  1531. float: none;
  1532. vertical-align: bottom;
  1533. margin: 0 0 5px 5px;
  1534. }
  1535. .media-frame .instructions + .spinner.is-active {
  1536. vertical-align: middle;
  1537. }
  1538. .media-frame .spinner.is-active {
  1539. visibility: visible;
  1540. }
  1541. /**
  1542. * Attachment Details
  1543. */
  1544. .attachment-details {
  1545. position: relative;
  1546. overflow: auto;
  1547. }
  1548. .attachment-details .settings-save-status {
  1549. float: right;
  1550. text-transform: none;
  1551. font-weight: 400;
  1552. }
  1553. .attachment-details .settings-save-status .spinner {
  1554. float: none;
  1555. margin-left: 5px;
  1556. }
  1557. .attachment-details .settings-save-status .saved {
  1558. display: none;
  1559. }
  1560. .attachment-details.save-waiting .settings-save-status .spinner {
  1561. visibility: visible;
  1562. }
  1563. .attachment-details.save-complete .settings-save-status .saved {
  1564. display: inline-block;
  1565. }
  1566. .attachment-info {
  1567. overflow: hidden;
  1568. min-height: 60px;
  1569. margin-bottom: 16px;
  1570. line-height: 1.5;
  1571. color: #646970;
  1572. border-bottom: 1px solid #dcdcde;
  1573. padding-bottom: 11px;
  1574. }
  1575. .attachment-info .wp-media-wrapper {
  1576. margin-bottom: 8px;
  1577. }
  1578. .attachment-info .wp-media-wrapper.wp-audio {
  1579. margin-top: 13px;
  1580. }
  1581. .attachment-info .filename {
  1582. font-weight: 600;
  1583. color: #3c434a;
  1584. word-wrap: break-word;
  1585. }
  1586. .attachment-info .thumbnail {
  1587. position: relative;
  1588. float: left;
  1589. max-width: 120px;
  1590. max-height: 120px;
  1591. margin-top: 5px;
  1592. margin-right: 10px;
  1593. margin-bottom: 5px;
  1594. }
  1595. .uploading .attachment-info .thumbnail {
  1596. width: 120px;
  1597. height: 80px;
  1598. box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
  1599. }
  1600. .uploading .attachment-info .media-progress-bar {
  1601. margin-top: 35px;
  1602. }
  1603. .attachment-info .thumbnail-image:after {
  1604. content: "";
  1605. display: block;
  1606. position: absolute;
  1607. top: 0;
  1608. left: 0;
  1609. right: 0;
  1610. bottom: 0;
  1611. box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  1612. overflow: hidden;
  1613. }
  1614. .attachment-info .thumbnail img {
  1615. display: block;
  1616. max-width: 120px;
  1617. max-height: 120px;
  1618. margin: 0 auto;
  1619. }
  1620. .attachment-info .details {
  1621. float: left;
  1622. font-size: 12px;
  1623. max-width: 100%;
  1624. }
  1625. .attachment-info .edit-attachment,
  1626. .attachment-info .delete-attachment,
  1627. .attachment-info .trash-attachment,
  1628. .attachment-info .untrash-attachment {
  1629. display: block;
  1630. text-decoration: none;
  1631. white-space: nowrap;
  1632. }
  1633. .attachment-details.needs-refresh .attachment-info .edit-attachment {
  1634. display: none;
  1635. }
  1636. .attachment-info .edit-attachment {
  1637. display: block;
  1638. }
  1639. .media-modal .delete-attachment,
  1640. .media-modal .trash-attachment,
  1641. .media-modal .untrash-attachment {
  1642. display: inline;
  1643. padding: 0;
  1644. color: #d63638;
  1645. }
  1646. .media-modal .delete-attachment:hover,
  1647. .media-modal .delete-attachment:focus,
  1648. .media-modal .trash-attachment:hover,
  1649. .media-modal .trash-attachment:focus,
  1650. .media-modal .untrash-attachment:hover,
  1651. .media-modal .untrash-attachment:focus {
  1652. color: #d63638;
  1653. }
  1654. /**
  1655. * Attachment Display Settings
  1656. */
  1657. .attachment-display-settings {
  1658. width: 100%;
  1659. float: left;
  1660. overflow: hidden;
  1661. }
  1662. .collection-settings {
  1663. overflow: hidden;
  1664. }
  1665. .collection-settings .setting input[type="checkbox"] {
  1666. float: left;
  1667. margin-right: 8px;
  1668. }
  1669. .collection-settings .setting span, /* Back-compat for pre-5.3 */
  1670. .collection-settings .setting .name {
  1671. min-width: inherit;
  1672. }
  1673. /**
  1674. * Image Editor
  1675. */
  1676. .media-modal .imgedit-wrap {
  1677. position: static;
  1678. }
  1679. .media-modal .imgedit-wrap .imgedit-panel-content {
  1680. padding: 16px 16px 0;
  1681. overflow: visible;
  1682. }
  1683. /*
  1684. * Implementation of bottom padding in overflow content differs across browsers.
  1685. * We need a different method. See https://github.com/w3c/csswg-drafts/issues/129
  1686. */
  1687. .media-modal .imgedit-wrap .imgedit-save-target {
  1688. margin: 8px 0 24px;
  1689. }
  1690. .media-modal .imgedit-group {
  1691. background: none;
  1692. border: none;
  1693. box-shadow: none;
  1694. margin: 0;
  1695. padding: 0;
  1696. position: relative; /* RTL fix, #WP29352 */
  1697. }
  1698. .media-modal .imgedit-group.imgedit-panel-active {
  1699. margin-bottom: 16px;
  1700. padding-bottom: 16px;
  1701. }
  1702. .media-modal .imgedit-group-top {
  1703. margin: 0;
  1704. }
  1705. .media-modal .imgedit-group-top h2,
  1706. .media-modal .imgedit-group-top h2 .button-link {
  1707. display: inline-block;
  1708. text-transform: uppercase;
  1709. font-size: 12px;
  1710. color: #646970;
  1711. margin: 0;
  1712. margin-top: 3px;
  1713. }
  1714. .media-modal .imgedit-group-top h2 a,
  1715. .media-modal .imgedit-group-top h2 .button-link {
  1716. text-decoration: none;
  1717. color: #646970;
  1718. }
  1719. /* higher specificity than media.css */
  1720. .wp-core-ui.media-modal .image-editor .imgedit-help-toggle,
  1721. .wp-core-ui.media-modal .image-editor .imgedit-help-toggle:hover,
  1722. .wp-core-ui.media-modal .image-editor .imgedit-help-toggle:active {
  1723. border: 1px solid transparent;
  1724. margin: 0;
  1725. padding: 0;
  1726. background: transparent;
  1727. color: #2271b1;
  1728. font-size: 20px;
  1729. line-height: 1;
  1730. cursor: pointer;
  1731. box-sizing: content-box;
  1732. box-shadow: none;
  1733. }
  1734. .wp-core-ui.media-modal .image-editor .imgedit-help-toggle:focus {
  1735. color: #2271b1;
  1736. border-color: #4f94d4;
  1737. box-shadow: 0 0 3px rgba(34, 113, 177, 0.8);
  1738. /* Only visible in Windows High Contrast mode */
  1739. outline: 2px solid transparent;
  1740. }
  1741. .wp-core-ui.media-modal .imgedit-group-top .dashicons-arrow-down.imgedit-help-toggle {
  1742. margin-top: -3px;
  1743. }
  1744. .wp-core-ui.media-modal .image-editor h3 .imgedit-help-toggle {
  1745. margin-top: -2px;
  1746. }
  1747. .media-modal .imgedit-help-toggled span.dashicons:before {
  1748. content: "\f142";
  1749. }
  1750. .media-modal .imgedit-thumbnail-preview {
  1751. margin: 10px 8px 0 0;
  1752. }
  1753. .imgedit-thumbnail-preview-caption {
  1754. display: block;
  1755. }
  1756. .media-modal .imgedit-wrap div.updated, /* Back-compat for pre-5.5 */
  1757. .media-modal .imgedit-wrap .notice {
  1758. margin: 0 16px;
  1759. }
  1760. /**
  1761. * Embed from URL and Image Details
  1762. */
  1763. .embed-url {
  1764. display: block;
  1765. position: relative;
  1766. padding: 16px;
  1767. margin: 0;
  1768. z-index: 250;
  1769. background: #fff;
  1770. font-size: 18px;
  1771. }
  1772. .media-frame .embed-url input {
  1773. font-size: 18px;
  1774. line-height: 1.22222222; /* 22px */
  1775. padding: 12px 40px 12px 14px; /* right padding to leave room for the spinner */
  1776. width: 100%;
  1777. min-width: 200px;
  1778. box-shadow: inset 2px 2px 4px -2px rgba(0, 0, 0, 0.1);
  1779. }
  1780. .media-frame .embed-url input::-ms-clear {
  1781. display: none; /* the "x" in IE 11 conflicts with the spinner */
  1782. }
  1783. .media-frame .embed-url .spinner {
  1784. position: absolute;
  1785. top: 32px;
  1786. right: 26px;
  1787. }
  1788. .media-frame .embed-loading .embed-url .spinner {
  1789. visibility: visible;
  1790. }
  1791. .embed-link-settings,
  1792. .embed-media-settings {
  1793. position: absolute;
  1794. top: 82px;
  1795. left: 0;
  1796. right: 0;
  1797. bottom: 0;
  1798. padding: 0 16px;
  1799. overflow: auto;
  1800. }
  1801. .media-embed .embed-link-settings .link-text {
  1802. margin-top: 0;
  1803. }
  1804. /*
  1805. * Implementation of bottom padding in overflow content differs across browsers.
  1806. * We need a different method. See https://github.com/w3c/csswg-drafts/issues/129
  1807. */
  1808. .embed-link-settings::after,
  1809. .embed-media-settings::after {
  1810. content: "";
  1811. display: flex;
  1812. clear: both;
  1813. height: 24px;
  1814. }
  1815. .media-embed .embed-link-settings {
  1816. /* avoid Firefox to give focus to the embed preview container parent */
  1817. overflow: visible;
  1818. }
  1819. .embed-preview img,
  1820. .embed-preview iframe,
  1821. .embed-preview embed,
  1822. .mejs-container video {
  1823. max-width: 100%;
  1824. vertical-align: middle;
  1825. }
  1826. .embed-preview a {
  1827. display: inline-block;
  1828. }
  1829. .embed-preview img {
  1830. display: block;
  1831. height: auto;
  1832. }
  1833. .mejs-container:focus {
  1834. outline: 1px solid #4f94d4;
  1835. box-shadow: 0 0 2px 1px rgba(79, 148, 212, 0.8);
  1836. }
  1837. .image-details .media-modal {
  1838. left: 140px;
  1839. right: 140px;
  1840. }
  1841. .image-details .media-frame-title,
  1842. .image-details .media-frame-content,
  1843. .image-details .media-frame-router {
  1844. left: 0;
  1845. }
  1846. .image-details .embed-media-settings {
  1847. top: 0;
  1848. overflow: visible;
  1849. padding: 0;
  1850. }
  1851. .image-details .embed-media-settings::after {
  1852. content: none;
  1853. }
  1854. .image-details .embed-media-settings,
  1855. .image-details .embed-media-settings div {
  1856. box-sizing: border-box;
  1857. }
  1858. .image-details .column-settings {
  1859. background: #f6f7f7;
  1860. border-right: 1px solid #dcdcde;
  1861. min-height: 100%;
  1862. width: 55%;
  1863. position: absolute;
  1864. top: 0;
  1865. left: 0;
  1866. }
  1867. .image-details .column-settings h2 {
  1868. margin: 20px;
  1869. padding-top: 20px;
  1870. border-top: 1px solid #dcdcde;
  1871. color: #1d2327;
  1872. }
  1873. .image-details .column-image {
  1874. width: 45%;
  1875. position: absolute;
  1876. left: 55%;
  1877. top: 0;
  1878. }
  1879. .image-details .image {
  1880. margin: 20px;
  1881. }
  1882. .image-details .image img {
  1883. max-width: 100%;
  1884. max-height: 500px;
  1885. }
  1886. .image-details .advanced-toggle {
  1887. padding: 0;
  1888. color: #646970;
  1889. text-transform: uppercase;
  1890. text-decoration: none;
  1891. }
  1892. .image-details .advanced-toggle:hover,
  1893. .image-details .advanced-toggle:active {
  1894. color: #646970;
  1895. }
  1896. .image-details .advanced-toggle:after {
  1897. font: normal 20px/1 dashicons;
  1898. speak: never;
  1899. vertical-align: top;
  1900. -webkit-font-smoothing: antialiased;
  1901. -moz-osx-font-smoothing: grayscale;
  1902. content: "\f140";
  1903. display: inline-block;
  1904. margin-top: -2px;
  1905. }
  1906. .image-details .advanced-visible .advanced-toggle:after {
  1907. content: "\f142";
  1908. }
  1909. .image-details .custom-size label, /* Back-compat for pre-5.3 */
  1910. .image-details .custom-size .custom-size-setting {
  1911. display: block;
  1912. float: left;
  1913. }
  1914. .image-details .custom-size .custom-size-setting label {
  1915. float: none;
  1916. }
  1917. .image-details .custom-size input {
  1918. width: 5em;
  1919. }
  1920. .image-details .custom-size .sep {
  1921. float: left;
  1922. margin: 26px 6px 0;
  1923. }
  1924. .image-details .custom-size .description {
  1925. margin-left: 0;
  1926. }
  1927. .media-embed .thumbnail {
  1928. max-width: 100%;
  1929. max-height: 200px;
  1930. position: relative;
  1931. float: left;
  1932. }
  1933. .media-embed .thumbnail img {
  1934. max-height: 200px;
  1935. display: block;
  1936. }
  1937. .media-embed .thumbnail:after {
  1938. content: "";
  1939. display: block;
  1940. position: absolute;
  1941. top: 0;
  1942. left: 0;
  1943. right: 0;
  1944. bottom: 0;
  1945. box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  1946. overflow: hidden;
  1947. }
  1948. .media-embed .setting,
  1949. .media-embed .setting-group {
  1950. width: 100%;
  1951. margin: 10px 0;
  1952. float: left;
  1953. display: block;
  1954. clear: both;
  1955. }
  1956. .media-embed .setting-group .setting:not(.checkbox-setting) {
  1957. margin: 0;
  1958. }
  1959. .media-embed .setting.has-description {
  1960. margin-bottom: 5px;
  1961. }
  1962. .media-embed .description {
  1963. clear: both;
  1964. font-style: normal;
  1965. }
  1966. .media-embed .content-track + .description {
  1967. line-height: 1.4;
  1968. /* The !important needs to override a high specificity selector from wp-medialement.css */
  1969. max-width: none !important;
  1970. }
  1971. .media-embed .remove-track {
  1972. margin-bottom: 10px;
  1973. }
  1974. .image-details .embed-media-settings .setting,
  1975. .image-details .embed-media-settings .setting-group {
  1976. float: none;
  1977. width: auto;
  1978. }
  1979. .image-details .actions {
  1980. margin: 10px 0;
  1981. }
  1982. .image-details .hidden {
  1983. display: none;
  1984. }
  1985. .media-embed .setting input[type="text"],
  1986. .media-embed .setting textarea,
  1987. .media-embed fieldset {
  1988. display: block;
  1989. width: 100%;
  1990. max-width: 400px;
  1991. }
  1992. .image-details .embed-media-settings .setting input[type="text"],
  1993. .image-details .embed-media-settings .setting textarea {
  1994. max-width: inherit;
  1995. width: 70%;
  1996. }
  1997. .image-details .embed-media-settings .setting input.link-to-custom,
  1998. .image-details .embed-media-settings .link-target,
  1999. .image-details .embed-media-settings .custom-size,
  2000. .image-details .embed-media-settings .setting-group,
  2001. .image-details .description {
  2002. margin-left: 27%;
  2003. width: 70%;
  2004. }
  2005. .image-details .description {
  2006. font-style: normal;
  2007. margin-top: 0;
  2008. }
  2009. .image-details .embed-media-settings .link-target {
  2010. margin-top: 16px;
  2011. }
  2012. .image-details .checkbox-label,
  2013. .audio-details .checkbox-label,
  2014. .video-details .checkbox-label {
  2015. vertical-align: baseline;
  2016. }
  2017. .media-embed .setting input.hidden,
  2018. .media-embed .setting textarea.hidden {
  2019. display: none;
  2020. }
  2021. .media-embed .setting span, /* Back-compat for pre-5.3 */
  2022. .media-embed .setting .name,
  2023. .media-embed .setting-group .name {
  2024. display: inline-block;
  2025. font-size: 13px;
  2026. line-height: 1.84615384;
  2027. color: #646970;
  2028. }
  2029. .media-embed .setting span {
  2030. display: block; /* Back-compat for pre-5.3 */
  2031. width: 200px; /* Back-compat for pre-5.3 */
  2032. }
  2033. .image-details .embed-media-settings .setting span, /* Back-compat for pre-5.3 */
  2034. .image-details .embed-media-settings .setting .name {
  2035. float: left;
  2036. width: 25%;
  2037. text-align: right;
  2038. margin: 8px 1% 0;
  2039. line-height: 1.1;
  2040. }
  2041. /* Buttons group in IE 11. */
  2042. .media-frame .setting-group .button-group,
  2043. .image-details .embed-media-settings .setting .button-group {
  2044. width: auto;
  2045. }
  2046. .media-embed-sidebar {
  2047. position: absolute;
  2048. top: 0;
  2049. left: 440px;
  2050. }
  2051. .advanced-section,
  2052. .link-settings {
  2053. margin-top: 10px;
  2054. }
  2055. /**
  2056. * Button groups fix: can be removed together with the Back-compat for pre-5.3
  2057. */
  2058. .media-frame .setting .button-group {
  2059. display: flex;
  2060. margin: 0 !important;
  2061. max-width: none !important;
  2062. }
  2063. /**
  2064. * Localization
  2065. */
  2066. .rtl .media-modal,
  2067. .rtl .media-frame,
  2068. .rtl .media-frame .search,
  2069. .rtl .media-frame input[type="text"],
  2070. .rtl .media-frame input[type="password"],
  2071. .rtl .media-frame input[type="number"],
  2072. .rtl .media-frame input[type="search"],
  2073. .rtl .media-frame input[type="email"],
  2074. .rtl .media-frame input[type="url"],
  2075. .rtl .media-frame input[type="tel"],
  2076. .rtl .media-frame textarea,
  2077. .rtl .media-frame select {
  2078. font-family: Tahoma, sans-serif;
  2079. }
  2080. :lang(he-il) .rtl .media-modal,
  2081. :lang(he-il) .rtl .media-frame,
  2082. :lang(he-il) .rtl .media-frame .search,
  2083. :lang(he-il) .rtl .media-frame input[type="text"],
  2084. :lang(he-il) .rtl .media-frame input[type="password"],
  2085. :lang(he-il) .rtl .media-frame input[type="number"],
  2086. :lang(he-il) .rtl .media-frame input[type="search"],
  2087. :lang(he-il) .rtl .media-frame input[type="email"],
  2088. :lang(he-il) .rtl .media-frame input[type="url"],
  2089. :lang(he-il) .rtl .media-frame textarea,
  2090. :lang(he-il) .rtl .media-frame select {
  2091. font-family: Arial, sans-serif;
  2092. }
  2093. /**
  2094. * Responsive layout
  2095. */
  2096. @media only screen and (max-width: 900px) {
  2097. .media-modal .media-frame-title {
  2098. height: 40px;
  2099. }
  2100. .media-modal .media-frame-title h1 {
  2101. line-height: 2.22222222;
  2102. font-size: 18px;
  2103. }
  2104. .media-modal-close {
  2105. width: 42px;
  2106. height: 42px;
  2107. }
  2108. /* Drop-down menu */
  2109. .media-frame .media-frame-title {
  2110. position: static;
  2111. padding: 0 44px;
  2112. text-align: center;
  2113. }
  2114. .media-frame:not(.hide-menu) .media-frame-router,
  2115. .media-frame:not(.hide-menu) .media-frame-content,
  2116. .media-frame:not(.hide-menu) .media-frame-toolbar {
  2117. left: 0;
  2118. }
  2119. .media-frame:not(.hide-menu) .media-frame-router {
  2120. /* 40 title + (40 - 6) menu toggle button + 6 spacing */
  2121. top: 80px;
  2122. }
  2123. .media-frame:not(.hide-menu) .media-frame-content {
  2124. /* 80 + room for the tabs */
  2125. top: 114px;
  2126. }
  2127. .media-frame.hide-router .media-frame-content {
  2128. top: 80px;
  2129. }
  2130. .media-frame:not(.hide-menu) .media-frame-menu {
  2131. position: static;
  2132. width: 0;
  2133. }
  2134. .media-frame:not(.hide-menu) .media-menu {
  2135. display: none;
  2136. width: auto;
  2137. max-width: 80%;
  2138. overflow: auto;
  2139. z-index: 2000;
  2140. top: 75px;
  2141. left: 50%;
  2142. transform: translateX(-50%);
  2143. right: auto;
  2144. bottom: auto;
  2145. padding: 5px 0;
  2146. border: 1px solid #c3c4c7;
  2147. }
  2148. .media-frame:not(.hide-menu) .media-menu.visible {
  2149. display: block;
  2150. }
  2151. .media-frame:not(.hide-menu) .media-menu > a {
  2152. padding: 12px 16px;
  2153. font-size: 16px;
  2154. }
  2155. .media-frame:not(.hide-menu) .media-menu .separator {
  2156. margin: 5px 10px;
  2157. }
  2158. /* Visually hide the menu heading keeping it available to assistive technologies. */
  2159. .media-frame-menu-heading {
  2160. clip: rect(1px, 1px, 1px, 1px);
  2161. -webkit-clip-path: inset(50%);
  2162. clip-path: inset(50%);
  2163. height: 1px;
  2164. overflow: hidden;
  2165. padding: 0;
  2166. width: 1px;
  2167. word-wrap: normal !important;
  2168. }
  2169. /* Reveal the menu toggle button. */
  2170. .wp-core-ui .media-frame:not(.hide-menu) .button.media-frame-menu-toggle {
  2171. display: inline-flex;
  2172. align-items: center;
  2173. position: absolute;
  2174. left: 50%;
  2175. transform: translateX(-50%);
  2176. margin: -6px 0 0;
  2177. padding: 0 2px 0 12px;
  2178. font-size: 0.875rem;
  2179. font-weight: 600;
  2180. text-decoration: none;
  2181. background: transparent;
  2182. /* Only for IE11 to vertically align text within the inline-flex button */
  2183. height: 0.1%;
  2184. /* Modern browsers */
  2185. min-height: 40px;
  2186. }
  2187. .wp-core-ui .button.media-frame-menu-toggle:hover,
  2188. .wp-core-ui .button.media-frame-menu-toggle:active {
  2189. background: transparent;
  2190. transform: none;
  2191. }
  2192. .wp-core-ui .button.media-frame-menu-toggle:focus {
  2193. /* Only visible in Windows High Contrast mode */
  2194. outline: 1px solid transparent;
  2195. }
  2196. /* End drop-down menu */
  2197. .media-sidebar {
  2198. width: 230px;
  2199. }
  2200. .attachments-browser .attachments,
  2201. .attachments-browser .uploader-inline,
  2202. .attachments-browser .media-toolbar,
  2203. .attachments-browser .attachments-wrapper,
  2204. .attachments-browser.has-load-more .attachments-wrapper {
  2205. right: 262px;
  2206. }
  2207. .attachments-browser .media-toolbar {
  2208. height: 82px;
  2209. }
  2210. .attachments-browser .attachments,
  2211. .attachments-browser .uploader-inline,
  2212. .media-frame-content .attachments-browser .attachments-wrapper {
  2213. top: 82px;
  2214. }
  2215. .media-sidebar .setting,
  2216. .attachment-details .setting {
  2217. margin: 6px 0;
  2218. }
  2219. .media-sidebar .setting input,
  2220. .media-sidebar .setting textarea,
  2221. .media-sidebar .setting .name,
  2222. .attachment-details .setting input,
  2223. .attachment-details .setting textarea,
  2224. .attachment-details .setting .name,
  2225. .compat-item label span {
  2226. float: none;
  2227. display: inline-block;
  2228. }
  2229. .media-sidebar .setting span, /* Back-compat for pre-5.3 */
  2230. .attachment-details .setting span, /* Back-compat for pre-5.3 */
  2231. .media-sidebar .checkbox-label-inline {
  2232. float: none;
  2233. }
  2234. .media-sidebar .setting .select-label-inline {
  2235. display: inline;
  2236. }
  2237. .media-sidebar .setting .name,
  2238. .media-sidebar .checkbox-label-inline,
  2239. .attachment-details .setting .name,
  2240. .compat-item label span {
  2241. text-align: inherit;
  2242. min-height: 16px;
  2243. margin: 0;
  2244. padding: 8px 2px 2px;
  2245. }
  2246. /* Needs high specificity. */
  2247. .media-sidebar .setting .copy-to-clipboard-container,
  2248. .attachment-details .attachment-info .copy-to-clipboard-container {
  2249. margin-left: 0;
  2250. padding-top: 0;
  2251. }
  2252. .media-sidebar .setting .copy-attachment-url,
  2253. .attachment-details .attachment-info .copy-attachment-url {
  2254. margin: 0 1px;
  2255. }
  2256. .media-sidebar .setting .value,
  2257. .attachment-details .setting .value {
  2258. float: none;
  2259. width: auto;
  2260. }
  2261. .media-sidebar .setting input[type="text"],
  2262. .media-sidebar .setting input[type="password"],
  2263. .media-sidebar .setting input[type="email"],
  2264. .media-sidebar .setting input[type="number"],
  2265. .media-sidebar .setting input[type="search"],
  2266. .media-sidebar .setting input[type="tel"],
  2267. .media-sidebar .setting input[type="url"],
  2268. .media-sidebar .setting textarea,
  2269. .media-sidebar .setting select,
  2270. .attachment-details .setting input[type="text"],
  2271. .attachment-details .setting input[type="password"],
  2272. .attachment-details .setting input[type="email"],
  2273. .attachment-details .setting input[type="number"],
  2274. .attachment-details .setting input[type="search"],
  2275. .attachment-details .setting input[type="tel"],
  2276. .attachment-details .setting input[type="url"],
  2277. .attachment-details .setting textarea,
  2278. .attachment-details .setting select,
  2279. .attachment-details .setting + .description {
  2280. float: none;
  2281. width: 98%;
  2282. max-width: none;
  2283. height: auto;
  2284. }
  2285. .media-frame .media-toolbar input[type="search"] {
  2286. line-height: 2.25; /* 36px */
  2287. }
  2288. .media-sidebar .setting select.columns,
  2289. .attachment-details .setting select.columns {
  2290. width: auto;
  2291. }
  2292. .media-frame input,
  2293. .media-frame textarea,
  2294. .media-frame .search {
  2295. padding: 3px 6px;
  2296. }
  2297. .wp-admin .media-frame select {
  2298. min-height: 40px;
  2299. font-size: 16px;
  2300. line-height: 1.625;
  2301. padding: 5px 24px 5px 8px;
  2302. }
  2303. .image-details .column-image {
  2304. width: 30%;
  2305. left: 70%;
  2306. }
  2307. .image-details .column-settings {
  2308. width: 70%;
  2309. }
  2310. .image-details .media-modal {
  2311. left: 30px;
  2312. right: 30px;
  2313. }
  2314. .image-details .embed-media-settings .setting,
  2315. .image-details .embed-media-settings .setting-group {
  2316. margin: 20px;
  2317. }
  2318. .image-details .embed-media-settings .setting span, /* Back-compat for pre-5.3 */
  2319. .image-details .embed-media-settings .setting .name {
  2320. float: none;
  2321. text-align: left;
  2322. width: 100%;
  2323. margin-bottom: 4px;
  2324. margin-left: 0;
  2325. }
  2326. .media-modal .legend-inline {
  2327. position: static;
  2328. transform: none;
  2329. margin-left: 0;
  2330. margin-bottom: 6px;
  2331. }
  2332. .image-details .embed-media-settings .setting-group .setting {
  2333. margin-bottom: 0;
  2334. }
  2335. .image-details .embed-media-settings .setting input.link-to-custom,
  2336. .image-details .embed-media-settings .setting input[type="text"],
  2337. .image-details .embed-media-settings .setting textarea {
  2338. width: 100%;
  2339. margin-left: 0;
  2340. }
  2341. .image-details .embed-media-settings .setting.has-description {
  2342. margin-bottom: 5px;
  2343. }
  2344. .image-details .description {
  2345. width: auto;
  2346. margin: 0 20px;
  2347. }
  2348. .image-details .embed-media-settings .custom-size {
  2349. margin-left: 20px;
  2350. }
  2351. .collection-settings .setting input[type="checkbox"] {
  2352. float: none;
  2353. margin-top: 0;
  2354. }
  2355. .media-selection {
  2356. min-width: 120px;
  2357. }
  2358. .media-selection:after {
  2359. background: none;
  2360. }
  2361. .media-selection .attachments {
  2362. display: none;
  2363. }
  2364. .media-modal .attachments-browser .media-toolbar .search {
  2365. max-width: 100%;
  2366. height: auto;
  2367. float: right;
  2368. }
  2369. .media-modal .attachments-browser .media-toolbar .attachment-filters {
  2370. height: auto;
  2371. }
  2372. /* Text inputs need to be 16px, or they force zooming on iOS */
  2373. .media-frame input[type="text"],
  2374. .media-frame input[type="password"],
  2375. .media-frame input[type="number"],
  2376. .media-frame input[type="search"],
  2377. .media-frame input[type="email"],
  2378. .media-frame input[type="url"],
  2379. .media-frame textarea,
  2380. .media-frame select {
  2381. font-size: 16px;
  2382. line-height: 1.5;
  2383. }
  2384. .media-frame .media-toolbar input[type="search"] {
  2385. line-height: 2.3755; /* 38px */
  2386. }
  2387. .media-modal .media-toolbar .spinner {
  2388. margin-bottom: 10px;
  2389. }
  2390. }
  2391. @media screen and (max-width: 782px) {
  2392. .imgedit-panel-content {
  2393. grid-template-columns: auto;
  2394. }
  2395. .media-frame-toolbar .media-toolbar {
  2396. bottom: -54px;
  2397. }
  2398. .mode-grid .attachments-browser .media-toolbar-primary {
  2399. display: flex;
  2400. }
  2401. .mode-grid .attachments-browser .media-toolbar-primary input[type="search"] {
  2402. width: 100%;
  2403. }
  2404. .media-sidebar .copy-to-clipboard-container .success,
  2405. .attachment-details .copy-to-clipboard-container .success {
  2406. font-size: 14px;
  2407. line-height: 2.71428571;
  2408. }
  2409. }
  2410. /* Responsive on portrait and landscape */
  2411. @media only screen and (max-width: 640px), screen and (max-height: 400px) {
  2412. /* Full-bleed modal */
  2413. .media-modal,
  2414. .image-details .media-modal {
  2415. position: fixed;
  2416. top: 0;
  2417. left: 0;
  2418. right: 0;
  2419. bottom: 0;
  2420. }
  2421. .media-modal-backdrop {
  2422. position: fixed;
  2423. }
  2424. .media-sidebar {
  2425. z-index: 1900;
  2426. max-width: 70%;
  2427. bottom: 120%;
  2428. box-sizing: border-box;
  2429. padding-bottom: 0;
  2430. }
  2431. .media-sidebar.visible {
  2432. bottom: 0;
  2433. }
  2434. .attachments-browser .attachments,
  2435. .attachments-browser .uploader-inline,
  2436. .attachments-browser .media-toolbar,
  2437. .media-frame-content .attachments-browser .attachments-wrapper {
  2438. right: 0;
  2439. }
  2440. .image-details .media-frame-title {
  2441. display: block;
  2442. top: 0;
  2443. font-size: 14px;
  2444. }
  2445. .image-details .column-image,
  2446. .image-details .column-settings {
  2447. width: 100%;
  2448. position: relative;
  2449. left: 0;
  2450. }
  2451. .image-details .column-settings {
  2452. padding: 4px 0;
  2453. }
  2454. /* Media tabs on the top */
  2455. .media-frame-content .media-toolbar .instructions {
  2456. display: none;
  2457. }
  2458. /* Change margin direction on load more button in responsive views. */
  2459. .load-more-wrapper .load-more-jump {
  2460. margin: 12px 0 0;
  2461. }
  2462. }
  2463. @media only screen and (min-width: 901px) and (max-height: 400px) {
  2464. .media-menu,
  2465. .media-frame:not(.hide-menu) .media-menu {
  2466. top: 0;
  2467. padding-top: 44px;
  2468. }
  2469. /* Change margin direction on load more button in responsive views. */
  2470. .load-more-wrapper .load-more-jump {
  2471. margin: 12px 0 0;
  2472. }
  2473. }
  2474. @media only screen and (max-width: 480px) {
  2475. .wp-core-ui.wp-customizer .media-button {
  2476. margin-top: 13px;
  2477. }
  2478. }
  2479. /**
  2480. * HiDPI Displays
  2481. */
  2482. @media print,
  2483. (-webkit-min-device-pixel-ratio: 1.25),
  2484. (min-resolution: 120dpi) {
  2485. .wp-core-ui .media-modal-icon {
  2486. background-image: url(../images/uploader-icons-2x.png);
  2487. background-size: 134px 15px;
  2488. }
  2489. .media-frame .spinner {
  2490. background-image: url(../images/spinner-2x.gif);
  2491. }
  2492. }
  2493. .media-frame-content[data-columns="1"] .attachment {
  2494. width: 100%;
  2495. }
  2496. .media-frame-content[data-columns="2"] .attachment {
  2497. width: 50%;
  2498. }
  2499. .media-frame-content[data-columns="3"] .attachment {
  2500. width: 33.33%;
  2501. }
  2502. .media-frame-content[data-columns="4"] .attachment {
  2503. width: 25%;
  2504. }
  2505. .media-frame-content[data-columns="5"] .attachment {
  2506. width: 20%;
  2507. }
  2508. .media-frame-content[data-columns="6"] .attachment {
  2509. width: 16.66%;
  2510. }
  2511. .media-frame-content[data-columns="7"] .attachment {
  2512. width: 14.28%;
  2513. }
  2514. .media-frame-content[data-columns="8"] .attachment {
  2515. width: 12.5%;
  2516. }
  2517. .media-frame-content[data-columns="9"] .attachment {
  2518. width: 11.11%;
  2519. }
  2520. .media-frame-content[data-columns="10"] .attachment {
  2521. width: 10%;
  2522. }
  2523. .media-frame-content[data-columns="11"] .attachment {
  2524. width: 9.09%;
  2525. }
  2526. .media-frame-content[data-columns="12"] .attachment {
  2527. width: 8.33%;
  2528. }