media-views.css 57 KB

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