Нет описания

style.css 29KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179
  1. /**
  2. * Colors
  3. */
  4. /**
  5. * Breakpoints & Media Queries
  6. */
  7. /**
  8. * SCSS Variables.
  9. *
  10. * Please use variables from this sheet to ensure consistency across the UI.
  11. * Don't add to this sheet unless you're pretty sure the value will be reused in many places.
  12. * For example, don't add rules to this sheet that affect block visuals. It's purely for UI.
  13. */
  14. /**
  15. * Colors
  16. */
  17. /**
  18. * Fonts & basic variables.
  19. */
  20. /**
  21. * Grid System.
  22. * https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/
  23. */
  24. /**
  25. * Dimensions.
  26. */
  27. /**
  28. * Shadows.
  29. */
  30. /**
  31. * Editor widths.
  32. */
  33. /**
  34. * Block & Editor UI.
  35. */
  36. /**
  37. * Block paddings.
  38. */
  39. /**
  40. * React Native specific.
  41. * These variables do not appear to be used anywhere else.
  42. */
  43. /**
  44. * Converts a hex value into the rgb equivalent.
  45. *
  46. * @param {string} hex - the hexadecimal value to convert
  47. * @return {string} comma separated rgb values
  48. */
  49. /**
  50. * Breakpoint mixins
  51. */
  52. /**
  53. * Long content fade mixin
  54. *
  55. * Creates a fading overlay to signify that the content is longer
  56. * than the space allows.
  57. */
  58. /**
  59. * Focus styles.
  60. */
  61. /**
  62. * Applies editor left position to the selector passed as argument
  63. */
  64. /**
  65. * Styles that are reused verbatim in a few places
  66. */
  67. /**
  68. * Allows users to opt-out of animations via OS-level preferences.
  69. */
  70. /**
  71. * Reset default styles for JavaScript UI based pages.
  72. * This is a WP-admin agnostic reset
  73. */
  74. /**
  75. * Reset the WP Admin page styles for Gutenberg-like pages.
  76. */
  77. :root {
  78. --wp-admin-theme-color: #007cba;
  79. --wp-admin-theme-color--rgb: 0, 124, 186;
  80. --wp-admin-theme-color-darker-10: #006ba1;
  81. --wp-admin-theme-color-darker-10--rgb: 0, 107, 161;
  82. --wp-admin-theme-color-darker-20: #005a87;
  83. --wp-admin-theme-color-darker-20--rgb: 0, 90, 135;
  84. --wp-admin-border-width-focus: 2px;
  85. }
  86. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  87. :root {
  88. --wp-admin-border-width-focus: 1.5px;
  89. }
  90. }
  91. .components-panel__header.interface-complementary-area-header__small {
  92. background: #fff;
  93. padding-right: 4px;
  94. }
  95. .components-panel__header.interface-complementary-area-header__small .interface-complementary-area-header__small-title {
  96. overflow: hidden;
  97. text-overflow: ellipsis;
  98. white-space: nowrap;
  99. width: 100%;
  100. }
  101. @media (min-width: 782px) {
  102. .components-panel__header.interface-complementary-area-header__small {
  103. display: none;
  104. }
  105. }
  106. .interface-complementary-area-header {
  107. background: #fff;
  108. padding-right: 4px;
  109. }
  110. .interface-complementary-area-header .components-button.has-icon {
  111. display: none;
  112. margin-left: auto;
  113. }
  114. .interface-complementary-area-header .components-button.has-icon ~ .components-button {
  115. margin-left: 0;
  116. }
  117. @media (min-width: 782px) {
  118. .interface-complementary-area-header .components-button.has-icon {
  119. display: flex;
  120. }
  121. }
  122. @media (min-width: 782px) {
  123. .components-panel__header + .interface-complementary-area-header {
  124. margin-top: 0;
  125. }
  126. }
  127. .interface-complementary-area {
  128. background: #fff;
  129. color: #1e1e1e;
  130. }
  131. @media (min-width: 600px) {
  132. .interface-complementary-area {
  133. -webkit-overflow-scrolling: touch;
  134. }
  135. }
  136. @media (min-width: 782px) {
  137. .interface-complementary-area {
  138. width: 280px;
  139. }
  140. }
  141. .interface-complementary-area .components-panel {
  142. border: none;
  143. position: relative;
  144. z-index: 0;
  145. }
  146. .interface-complementary-area .components-panel__header {
  147. position: sticky;
  148. top: 0;
  149. z-index: 1;
  150. }
  151. .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs {
  152. top: 48px;
  153. }
  154. @media (min-width: 782px) {
  155. .interface-complementary-area .components-panel__header.edit-post-sidebar__panel-tabs {
  156. top: 0;
  157. }
  158. }
  159. .interface-complementary-area p {
  160. margin-top: 0;
  161. }
  162. .interface-complementary-area h2 {
  163. font-size: 13px;
  164. color: #1e1e1e;
  165. margin-bottom: 1.5em;
  166. }
  167. .interface-complementary-area h3 {
  168. font-size: 11px;
  169. text-transform: uppercase;
  170. font-weight: 500;
  171. color: #1e1e1e;
  172. margin-bottom: 1.5em;
  173. }
  174. .interface-complementary-area hr {
  175. border-top: none;
  176. border-bottom: 1px solid #f0f0f0;
  177. margin: 1.5em 0;
  178. }
  179. .interface-complementary-area div.components-toolbar-group,
  180. .interface-complementary-area div.components-toolbar {
  181. box-shadow: none;
  182. margin-bottom: 1.5em;
  183. }
  184. .interface-complementary-area div.components-toolbar-group:last-child,
  185. .interface-complementary-area div.components-toolbar:last-child {
  186. margin-bottom: 0;
  187. }
  188. .interface-complementary-area .block-editor-skip-to-selected-block:focus {
  189. top: auto;
  190. right: 10px;
  191. bottom: 10px;
  192. left: auto;
  193. }
  194. @media (min-width: 782px) {
  195. body.js.is-fullscreen-mode {
  196. margin-top: -32px;
  197. height: calc(100% + 32px);
  198. }
  199. body.js.is-fullscreen-mode #adminmenumain,
  200. body.js.is-fullscreen-mode #wpadminbar {
  201. display: none;
  202. }
  203. body.js.is-fullscreen-mode #wpcontent,
  204. body.js.is-fullscreen-mode #wpfooter {
  205. margin-left: 0;
  206. }
  207. }
  208. html.interface-interface-skeleton__html-container {
  209. position: fixed;
  210. width: 100%;
  211. }
  212. @media (min-width: 782px) {
  213. html.interface-interface-skeleton__html-container {
  214. position: initial;
  215. width: initial;
  216. }
  217. }
  218. .interface-interface-skeleton {
  219. display: flex;
  220. flex-direction: row;
  221. height: auto;
  222. max-height: 100%;
  223. position: fixed;
  224. top: 46px;
  225. left: 0;
  226. right: 0;
  227. bottom: 0;
  228. }
  229. @media (min-width: 783px) {
  230. .interface-interface-skeleton {
  231. top: 32px;
  232. }
  233. .is-fullscreen-mode .interface-interface-skeleton {
  234. top: 0;
  235. }
  236. }
  237. .interface-interface-skeleton__editor {
  238. display: flex;
  239. flex-direction: column;
  240. flex: 0 1 100%;
  241. overflow: hidden;
  242. }
  243. .interface-interface-skeleton {
  244. /* Set left position when auto-fold is not on the body element. */
  245. left: 0;
  246. }
  247. @media (min-width: 783px) {
  248. .interface-interface-skeleton {
  249. left: 160px;
  250. }
  251. }
  252. .auto-fold .interface-interface-skeleton {
  253. /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */
  254. }
  255. @media (min-width: 783px) {
  256. .auto-fold .interface-interface-skeleton {
  257. left: 36px;
  258. }
  259. }
  260. @media (min-width: 961px) {
  261. .auto-fold .interface-interface-skeleton {
  262. left: 160px;
  263. }
  264. }
  265. /* Sidebar manually collapsed. */
  266. .folded .interface-interface-skeleton {
  267. left: 0;
  268. }
  269. @media (min-width: 783px) {
  270. .folded .interface-interface-skeleton {
  271. left: 36px;
  272. }
  273. }
  274. body.is-fullscreen-mode .interface-interface-skeleton {
  275. left: 0 !important;
  276. }
  277. .interface-interface-skeleton__body {
  278. flex-grow: 1;
  279. display: flex;
  280. overflow: auto;
  281. overscroll-behavior-y: none;
  282. }
  283. @media (min-width: 782px) {
  284. .has-footer .interface-interface-skeleton__body {
  285. padding-bottom: 25px;
  286. }
  287. }
  288. .interface-interface-skeleton__content {
  289. flex-grow: 1;
  290. display: flex;
  291. flex-direction: column;
  292. overflow: auto;
  293. z-index: 20;
  294. }
  295. .interface-interface-skeleton__secondary-sidebar,
  296. .interface-interface-skeleton__sidebar {
  297. display: block;
  298. flex-shrink: 0;
  299. position: absolute;
  300. z-index: 100000;
  301. top: 0;
  302. right: 0;
  303. bottom: 0;
  304. left: 0;
  305. background: #fff;
  306. color: #1e1e1e;
  307. }
  308. @media (min-width: 782px) {
  309. .interface-interface-skeleton__secondary-sidebar,
  310. .interface-interface-skeleton__sidebar {
  311. position: relative !important;
  312. z-index: 90;
  313. width: auto;
  314. }
  315. }
  316. .interface-interface-skeleton__sidebar {
  317. overflow: auto;
  318. }
  319. @media (min-width: 782px) {
  320. .interface-interface-skeleton__sidebar {
  321. border-left: 1px solid #e0e0e0;
  322. }
  323. }
  324. @media (min-width: 782px) {
  325. .interface-interface-skeleton__secondary-sidebar {
  326. border-right: 1px solid #e0e0e0;
  327. }
  328. }
  329. .interface-interface-skeleton__header {
  330. flex-shrink: 0;
  331. height: auto;
  332. border-bottom: 1px solid #e0e0e0;
  333. z-index: 30;
  334. color: #1e1e1e;
  335. }
  336. .interface-interface-skeleton__footer {
  337. height: auto;
  338. flex-shrink: 0;
  339. border-top: 1px solid #e0e0e0;
  340. color: #1e1e1e;
  341. position: absolute;
  342. bottom: 0;
  343. left: 0;
  344. width: 100%;
  345. background-color: #fff;
  346. z-index: 90;
  347. display: none;
  348. }
  349. @media (min-width: 782px) {
  350. .interface-interface-skeleton__footer {
  351. display: flex;
  352. }
  353. }
  354. .interface-interface-skeleton__footer .block-editor-block-breadcrumb {
  355. z-index: 30;
  356. display: flex;
  357. background: #fff;
  358. height: 24px;
  359. align-items: center;
  360. font-size: 13px;
  361. padding: 0 18px;
  362. }
  363. .interface-interface-skeleton__actions {
  364. z-index: 100000;
  365. position: fixed !important;
  366. top: -9999em;
  367. bottom: auto;
  368. left: auto;
  369. right: 0;
  370. width: 280px;
  371. color: #1e1e1e;
  372. }
  373. .interface-interface-skeleton__actions:focus {
  374. top: auto;
  375. bottom: 0;
  376. }
  377. .interface-more-menu-dropdown {
  378. margin-left: -4px;
  379. }
  380. .interface-more-menu-dropdown .components-button {
  381. width: auto;
  382. padding: 0 2px;
  383. }
  384. @media (min-width: 600px) {
  385. .interface-more-menu-dropdown {
  386. margin-left: 0;
  387. }
  388. .interface-more-menu-dropdown .components-button {
  389. padding: 0 4px;
  390. }
  391. }
  392. .interface-more-menu-dropdown__content .components-popover__content {
  393. min-width: 280px;
  394. }
  395. @media (min-width: 480px) {
  396. .interface-more-menu-dropdown__content .components-popover__content {
  397. width: auto;
  398. max-width: 480px;
  399. }
  400. }
  401. .interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu {
  402. padding: 0;
  403. }
  404. .components-popover.interface-more-menu-dropdown__content {
  405. z-index: 99998;
  406. }
  407. .interface-pinned-items {
  408. display: flex;
  409. }
  410. .interface-pinned-items .components-button:not(:first-child) {
  411. display: none;
  412. }
  413. @media (min-width: 600px) {
  414. .interface-pinned-items .components-button:not(:first-child) {
  415. display: flex;
  416. }
  417. }
  418. .interface-pinned-items .components-button {
  419. margin-left: 4px;
  420. }
  421. .interface-pinned-items .components-button svg {
  422. max-width: 24px;
  423. max-height: 24px;
  424. }
  425. @media (min-width: 600px) {
  426. .interface-preferences-modal {
  427. width: calc(100% - 32px);
  428. height: calc(100% - 120px);
  429. }
  430. }
  431. @media (min-width: 782px) {
  432. .interface-preferences-modal {
  433. width: 750px;
  434. }
  435. }
  436. @media (min-width: 960px) {
  437. .interface-preferences-modal {
  438. height: 70%;
  439. }
  440. }
  441. @media (max-width: 781px) {
  442. .interface-preferences-modal .components-modal__content {
  443. padding: 0;
  444. }
  445. .interface-preferences-modal .components-modal__content::before {
  446. content: none;
  447. }
  448. }
  449. .interface-preferences__tabs .components-tab-panel__tabs {
  450. position: absolute;
  451. top: 84px;
  452. left: 16px;
  453. width: 160px;
  454. }
  455. .interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item {
  456. border-radius: 2px;
  457. font-weight: 400;
  458. }
  459. .interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active {
  460. background: #f0f0f0;
  461. box-shadow: none;
  462. font-weight: 500;
  463. }
  464. .interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled) {
  465. box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
  466. }
  467. .interface-preferences__tabs .components-tab-panel__tab-content {
  468. padding-left: 24px;
  469. margin-left: 160px;
  470. }
  471. @media (max-width: 781px) {
  472. .interface-preferences__provider {
  473. height: 100%;
  474. }
  475. }
  476. .interface-preferences-modal__section {
  477. margin: 0 0 2.5rem 0;
  478. }
  479. .interface-preferences-modal__section:last-child {
  480. margin: 0;
  481. }
  482. .interface-preferences-modal__section-title {
  483. font-size: 0.9rem;
  484. font-weight: 600;
  485. margin-top: 0;
  486. }
  487. .interface-preferences-modal__section-description {
  488. margin: -8px 0 8px 0;
  489. font-size: 12px;
  490. font-style: normal;
  491. color: #757575;
  492. }
  493. .interface-preferences-modal__option .components-base-control .components-base-control__field {
  494. align-items: center;
  495. display: flex;
  496. margin-bottom: 0;
  497. }
  498. .interface-preferences-modal__option .components-base-control .components-base-control__field > label {
  499. flex-grow: 1;
  500. padding: 0.6rem 0 0.6rem 10px;
  501. }
  502. .interface-preferences-modal__option .components-base-control__help {
  503. margin: -8px 0 8px 58px;
  504. font-size: 12px;
  505. font-style: normal;
  506. color: #757575;
  507. }
  508. .wp-block[data-type="core/widget-area"] {
  509. max-width: 700px;
  510. margin-left: auto;
  511. margin-right: auto;
  512. }
  513. .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title {
  514. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  515. margin: 0;
  516. height: 48px;
  517. position: relative;
  518. z-index: 1;
  519. background: #fff;
  520. transform: translateZ(0);
  521. }
  522. .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title:hover {
  523. background: #fff;
  524. }
  525. .wp-block[data-type="core/widget-area"] .block-list-appender.wp-block {
  526. width: initial;
  527. position: relative;
  528. }
  529. .wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block {
  530. max-width: 100%;
  531. }
  532. .wp-block[data-type="core/widget-area"] .components-panel__body.is-opened {
  533. padding: 0;
  534. }
  535. .blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper {
  536. margin: 0;
  537. padding: 0;
  538. }
  539. .blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper > .block-editor-block-list__layout {
  540. margin-top: -48px;
  541. padding: 72px 16px 16px;
  542. min-height: 32px;
  543. }
  544. .wp-block-widget-area__highlight-drop-zone {
  545. outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);
  546. }
  547. body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title,
  548. body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title * {
  549. pointer-events: none;
  550. }
  551. .edit-widgets-error-boundary {
  552. margin: auto;
  553. max-width: 780px;
  554. padding: 20px;
  555. margin-top: 60px;
  556. box-shadow: 0 10px 10px rgba(0, 0, 0, 0.25);
  557. }
  558. .edit-widgets-header {
  559. display: flex;
  560. align-items: center;
  561. justify-content: space-between;
  562. height: 60px;
  563. padding: 0 16px;
  564. overflow: auto;
  565. }
  566. @media (min-width: 600px) {
  567. .edit-widgets-header {
  568. overflow: visible;
  569. }
  570. }
  571. .edit-widgets-header__navigable-toolbar-wrapper {
  572. display: flex;
  573. align-items: center;
  574. justify-content: center;
  575. }
  576. .edit-widgets-header__title {
  577. font-size: 20px;
  578. padding: 0;
  579. margin: 0 20px 0 0;
  580. }
  581. .edit-widgets-header__actions {
  582. display: flex;
  583. }
  584. .edit-widgets-header__actions .components-button {
  585. margin-right: 4px;
  586. }
  587. @media (min-width: 600px) {
  588. .edit-widgets-header__actions .components-button {
  589. margin-right: 12px;
  590. }
  591. }
  592. .edit-widgets-header__actions .edit-widgets-more-menu .components-button,
  593. .edit-widgets-header__actions .interface-pinned-items .components-button {
  594. margin-right: 0;
  595. }
  596. .edit-widgets-header-toolbar {
  597. border: none;
  598. }
  599. .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon,
  600. .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon {
  601. height: 36px;
  602. min-width: 36px;
  603. padding: 6px;
  604. }
  605. .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
  606. .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
  607. background: #1e1e1e;
  608. }
  609. .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:disabled),
  610. .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:disabled) {
  611. box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
  612. outline: 1px solid transparent;
  613. }
  614. .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon::before,
  615. .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon::before {
  616. display: none;
  617. }
  618. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle {
  619. padding-left: 8px;
  620. padding-right: 8px;
  621. }
  622. @media (min-width: 600px) {
  623. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle {
  624. padding-left: 12px;
  625. padding-right: 12px;
  626. }
  627. }
  628. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle::after {
  629. content: none;
  630. }
  631. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg {
  632. transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
  633. }
  634. @media (prefers-reduced-motion: reduce) {
  635. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg {
  636. transition-duration: 0s;
  637. transition-delay: 0s;
  638. }
  639. }
  640. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg {
  641. transform: rotate(45deg);
  642. }
  643. .edit-widgets-keyboard-shortcut-help-modal__section {
  644. margin: 0 0 2rem 0;
  645. }
  646. .edit-widgets-keyboard-shortcut-help-modal__main-shortcuts .edit-widgets-keyboard-shortcut-help-modal__shortcut-list {
  647. margin-top: -25px;
  648. }
  649. .edit-widgets-keyboard-shortcut-help-modal__section-title {
  650. font-size: 0.9rem;
  651. font-weight: 600;
  652. }
  653. .edit-widgets-keyboard-shortcut-help-modal__shortcut {
  654. display: flex;
  655. align-items: baseline;
  656. padding: 0.6rem 0;
  657. border-top: 1px solid #ddd;
  658. margin-bottom: 0;
  659. }
  660. .edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child {
  661. border-bottom: 1px solid #ddd;
  662. }
  663. .edit-widgets-keyboard-shortcut-help-modal__shortcut:empty {
  664. display: none;
  665. }
  666. .edit-widgets-keyboard-shortcut-help-modal__shortcut-term {
  667. font-weight: 600;
  668. margin: 0 0 0 1rem;
  669. text-align: right;
  670. }
  671. .edit-widgets-keyboard-shortcut-help-modal__shortcut-description {
  672. flex: 1;
  673. margin: 0;
  674. flex-basis: auto;
  675. }
  676. .edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination {
  677. display: block;
  678. background: none;
  679. margin: 0;
  680. padding: 0;
  681. }
  682. .edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination + .edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination {
  683. margin-top: 10px;
  684. }
  685. .edit-widgets-keyboard-shortcut-help-modal__shortcut-key {
  686. padding: 0.25rem 0.5rem;
  687. border-radius: 8%;
  688. margin: 0 0.2rem 0 0.2rem;
  689. }
  690. .edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child {
  691. margin: 0 0 0 0.2rem;
  692. }
  693. .components-panel__header.edit-widgets-sidebar__panel-tabs {
  694. justify-content: flex-start;
  695. padding-left: 0;
  696. padding-right: 4px;
  697. border-top: 0;
  698. margin-top: 0;
  699. }
  700. .components-panel__header.edit-widgets-sidebar__panel-tabs ul {
  701. display: flex;
  702. }
  703. .components-panel__header.edit-widgets-sidebar__panel-tabs li {
  704. margin: 0;
  705. }
  706. .components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon {
  707. display: none;
  708. margin-left: auto;
  709. }
  710. @media (min-width: 782px) {
  711. .components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon {
  712. display: flex;
  713. }
  714. }
  715. .components-button.edit-widgets-sidebar__panel-tab {
  716. border-radius: 0;
  717. height: 49px;
  718. background: transparent;
  719. border: none;
  720. box-shadow: none;
  721. cursor: pointer;
  722. display: inline-block;
  723. padding: 3px 15px;
  724. margin-left: 0;
  725. font-weight: 400;
  726. color: #1e1e1e;
  727. }
  728. .components-button.edit-widgets-sidebar__panel-tab::after {
  729. content: attr(data-label);
  730. display: block;
  731. font-weight: 600;
  732. height: 0;
  733. overflow: hidden;
  734. speak: none;
  735. visibility: hidden;
  736. }
  737. .components-button.edit-widgets-sidebar__panel-tab.is-active {
  738. box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -4px 0 0 var(--wp-admin-theme-color);
  739. font-weight: 600;
  740. position: relative;
  741. }
  742. .components-button.edit-widgets-sidebar__panel-tab.is-active::before {
  743. content: "";
  744. position: absolute;
  745. top: 0;
  746. bottom: 1px;
  747. right: 0;
  748. left: 0;
  749. border-bottom: 4px solid transparent;
  750. }
  751. .components-button.edit-widgets-sidebar__panel-tab:focus {
  752. box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
  753. }
  754. .components-button.edit-widgets-sidebar__panel-tab.is-active:focus {
  755. box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -4px 0 0 var(--wp-admin-theme-color);
  756. }
  757. .edit-widgets-widget-areas__top-container {
  758. display: flex;
  759. padding: 16px;
  760. }
  761. .edit-widgets-widget-areas__top-container .block-editor-block-icon {
  762. margin-right: 16px;
  763. }
  764. .edit-widgets-notices__snackbar {
  765. position: fixed;
  766. right: 0;
  767. bottom: 20px;
  768. padding-left: 16px;
  769. padding-right: 16px;
  770. }
  771. .edit-widgets-notices__snackbar {
  772. /* Set left position when auto-fold is not on the body element. */
  773. left: 0;
  774. }
  775. @media (min-width: 783px) {
  776. .edit-widgets-notices__snackbar {
  777. left: 160px;
  778. }
  779. }
  780. .auto-fold .edit-widgets-notices__snackbar {
  781. /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */
  782. }
  783. @media (min-width: 783px) {
  784. .auto-fold .edit-widgets-notices__snackbar {
  785. left: 36px;
  786. }
  787. }
  788. @media (min-width: 961px) {
  789. .auto-fold .edit-widgets-notices__snackbar {
  790. left: 160px;
  791. }
  792. }
  793. /* Sidebar manually collapsed. */
  794. .folded .edit-widgets-notices__snackbar {
  795. left: 0;
  796. }
  797. @media (min-width: 783px) {
  798. .folded .edit-widgets-notices__snackbar {
  799. left: 36px;
  800. }
  801. }
  802. body.is-fullscreen-mode .edit-widgets-notices__snackbar {
  803. left: 0 !important;
  804. }
  805. .edit-widgets-notices__dismissible .components-notice,
  806. .edit-widgets-notices__pinned .components-notice {
  807. box-sizing: border-box;
  808. margin: 0;
  809. border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  810. padding: 0 12px;
  811. min-height: 60px;
  812. }
  813. .edit-widgets-notices__dismissible .components-notice .components-notice__dismiss,
  814. .edit-widgets-notices__pinned .components-notice .components-notice__dismiss {
  815. margin-top: 12px;
  816. }
  817. .edit-widgets-layout__inserter-panel {
  818. height: 100%;
  819. display: flex;
  820. flex-direction: column;
  821. }
  822. .edit-widgets-layout__inserter-panel .block-editor-inserter__menu {
  823. overflow: hidden;
  824. }
  825. .edit-widgets-layout__inserter-panel-header {
  826. padding-top: 8px;
  827. padding-right: 8px;
  828. display: flex;
  829. justify-content: flex-end;
  830. }
  831. .edit-widgets-layout__inserter-panel-content {
  832. height: calc(100% - 36px - 8px);
  833. }
  834. @media (min-width: 782px) {
  835. .edit-widgets-layout__inserter-panel-content {
  836. height: 100%;
  837. }
  838. }
  839. .edit-widgets-welcome-guide {
  840. width: 312px;
  841. }
  842. .edit-widgets-welcome-guide__image {
  843. background: #00a0d2;
  844. margin: 0 0 16px;
  845. }
  846. .edit-widgets-welcome-guide__image > img {
  847. display: block;
  848. max-width: 100%;
  849. -o-object-fit: cover;
  850. object-fit: cover;
  851. }
  852. .edit-widgets-welcome-guide__heading {
  853. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  854. font-size: 24px;
  855. line-height: 1.4;
  856. margin: 16px 0 16px 0;
  857. padding: 0 32px;
  858. }
  859. .edit-widgets-welcome-guide__text {
  860. font-size: 13px;
  861. line-height: 1.4;
  862. margin: 0 0 24px 0;
  863. padding: 0 32px;
  864. }
  865. .edit-widgets-welcome-guide__inserter-icon {
  866. margin: 0 4px;
  867. vertical-align: text-top;
  868. }
  869. .edit-widgets-block-editor {
  870. position: relative;
  871. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  872. display: flex;
  873. flex-direction: column;
  874. flex-grow: 1;
  875. }
  876. .edit-widgets-block-editor > div:last-of-type,
  877. .edit-widgets-block-editor .block-editor-writing-flow,
  878. .edit-widgets-block-editor .block-editor-writing-flow > div {
  879. display: flex;
  880. flex-direction: column;
  881. flex-grow: 1;
  882. }
  883. .edit-widgets-block-editor .edit-widgets-main-block-list {
  884. height: 100%;
  885. }
  886. .edit-widgets-block-editor .components-button {
  887. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  888. font-size: 13px;
  889. }
  890. .edit-widgets-block-editor .components-button.is-tertiary, .edit-widgets-block-editor .components-button.has-icon {
  891. padding: 6px;
  892. }
  893. .edit-widgets-editor__list-view-panel {
  894. height: 100%;
  895. display: flex;
  896. flex-direction: column;
  897. min-width: 350px;
  898. }
  899. .edit-widgets-editor__list-view-panel-content {
  900. height: calc(100% - 36px - 8px);
  901. overflow-y: auto;
  902. padding: 8px;
  903. }
  904. .edit-widgets-editor__list-view-panel-header {
  905. align-items: center;
  906. border-bottom: 1px solid #ddd;
  907. display: flex;
  908. justify-content: space-between;
  909. height: 48px;
  910. padding-left: 16px;
  911. padding-right: 4px;
  912. }
  913. html.wp-toolbar {
  914. background: #fff;
  915. }
  916. body.appearance_page_gutenberg-widgets,
  917. body.widgets-php {
  918. background: #fff;
  919. /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
  920. Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
  921. }
  922. body.appearance_page_gutenberg-widgets #wpcontent,
  923. body.widgets-php #wpcontent {
  924. padding-left: 0;
  925. }
  926. body.appearance_page_gutenberg-widgets #wpbody-content,
  927. body.widgets-php #wpbody-content {
  928. padding-bottom: 0;
  929. }
  930. body.appearance_page_gutenberg-widgets #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta),
  931. body.widgets-php #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta) {
  932. display: none;
  933. }
  934. body.appearance_page_gutenberg-widgets #wpfooter,
  935. body.widgets-php #wpfooter {
  936. display: none;
  937. }
  938. body.appearance_page_gutenberg-widgets .a11y-speak-region,
  939. body.widgets-php .a11y-speak-region {
  940. left: -1px;
  941. top: -1px;
  942. }
  943. body.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu::after,
  944. body.appearance_page_gutenberg-widgets ul#adminmenu > li.current > a.current::after,
  945. body.widgets-php ul#adminmenu a.wp-has-current-submenu::after,
  946. body.widgets-php ul#adminmenu > li.current > a.current::after {
  947. border-right-color: #fff;
  948. }
  949. body.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,
  950. body.widgets-php .media-frame select.attachment-filters:last-of-type {
  951. width: auto;
  952. max-width: 100%;
  953. }
  954. .blocks-widgets-container,
  955. .components-modal__frame {
  956. box-sizing: border-box;
  957. }
  958. .blocks-widgets-container *,
  959. .blocks-widgets-container *::before,
  960. .blocks-widgets-container *::after,
  961. .components-modal__frame *,
  962. .components-modal__frame *::before,
  963. .components-modal__frame *::after {
  964. box-sizing: inherit;
  965. }
  966. @media (min-width: 600px) {
  967. .blocks-widgets-container {
  968. position: absolute;
  969. top: 0;
  970. right: 0;
  971. bottom: 0;
  972. left: 0;
  973. min-height: calc(100vh - 46px);
  974. }
  975. }
  976. @media (min-width: 782px) {
  977. .blocks-widgets-container {
  978. min-height: calc(100vh - 32px);
  979. }
  980. }
  981. .blocks-widgets-container .interface-interface-skeleton__content {
  982. background-color: #f0f0f0;
  983. }
  984. .blocks-widgets-container .editor-styles-wrapper {
  985. max-width: 700px;
  986. margin: auto;
  987. }
  988. .edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item {
  989. display: none;
  990. }
  991. .widgets-php .notice {
  992. display: none !important;
  993. }
  994. body.admin-color-light {
  995. --wp-admin-theme-color: #0085ba;
  996. --wp-admin-theme-color--rgb: 0, 133, 186;
  997. --wp-admin-theme-color-darker-10: #0073a1;
  998. --wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
  999. --wp-admin-theme-color-darker-20: #006187;
  1000. --wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
  1001. --wp-admin-border-width-focus: 2px;
  1002. }
  1003. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1004. body.admin-color-light {
  1005. --wp-admin-border-width-focus: 1.5px;
  1006. }
  1007. }
  1008. body.admin-color-modern {
  1009. --wp-admin-theme-color: #3858e9;
  1010. --wp-admin-theme-color--rgb: 56, 88, 233;
  1011. --wp-admin-theme-color-darker-10: #2145e6;
  1012. --wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
  1013. --wp-admin-theme-color-darker-20: #183ad6;
  1014. --wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
  1015. --wp-admin-border-width-focus: 2px;
  1016. }
  1017. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1018. body.admin-color-modern {
  1019. --wp-admin-border-width-focus: 1.5px;
  1020. }
  1021. }
  1022. body.admin-color-blue {
  1023. --wp-admin-theme-color: #096484;
  1024. --wp-admin-theme-color--rgb: 9, 100, 132;
  1025. --wp-admin-theme-color-darker-10: #07526c;
  1026. --wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
  1027. --wp-admin-theme-color-darker-20: #064054;
  1028. --wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
  1029. --wp-admin-border-width-focus: 2px;
  1030. }
  1031. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1032. body.admin-color-blue {
  1033. --wp-admin-border-width-focus: 1.5px;
  1034. }
  1035. }
  1036. body.admin-color-coffee {
  1037. --wp-admin-theme-color: #46403c;
  1038. --wp-admin-theme-color--rgb: 70, 64, 60;
  1039. --wp-admin-theme-color-darker-10: #383330;
  1040. --wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
  1041. --wp-admin-theme-color-darker-20: #2b2724;
  1042. --wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
  1043. --wp-admin-border-width-focus: 2px;
  1044. }
  1045. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1046. body.admin-color-coffee {
  1047. --wp-admin-border-width-focus: 1.5px;
  1048. }
  1049. }
  1050. body.admin-color-ectoplasm {
  1051. --wp-admin-theme-color: #523f6d;
  1052. --wp-admin-theme-color--rgb: 82, 63, 109;
  1053. --wp-admin-theme-color-darker-10: #46365d;
  1054. --wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
  1055. --wp-admin-theme-color-darker-20: #3a2c4d;
  1056. --wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
  1057. --wp-admin-border-width-focus: 2px;
  1058. }
  1059. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1060. body.admin-color-ectoplasm {
  1061. --wp-admin-border-width-focus: 1.5px;
  1062. }
  1063. }
  1064. body.admin-color-midnight {
  1065. --wp-admin-theme-color: #e14d43;
  1066. --wp-admin-theme-color--rgb: 225, 77, 67;
  1067. --wp-admin-theme-color-darker-10: #dd382d;
  1068. --wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
  1069. --wp-admin-theme-color-darker-20: #d02c21;
  1070. --wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
  1071. --wp-admin-border-width-focus: 2px;
  1072. }
  1073. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1074. body.admin-color-midnight {
  1075. --wp-admin-border-width-focus: 1.5px;
  1076. }
  1077. }
  1078. body.admin-color-ocean {
  1079. --wp-admin-theme-color: #627c83;
  1080. --wp-admin-theme-color--rgb: 98, 124, 131;
  1081. --wp-admin-theme-color-darker-10: #576e74;
  1082. --wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
  1083. --wp-admin-theme-color-darker-20: #4c6066;
  1084. --wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
  1085. --wp-admin-border-width-focus: 2px;
  1086. }
  1087. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1088. body.admin-color-ocean {
  1089. --wp-admin-border-width-focus: 1.5px;
  1090. }
  1091. }
  1092. body.admin-color-sunrise {
  1093. --wp-admin-theme-color: #dd823b;
  1094. --wp-admin-theme-color--rgb: 221, 130, 59;
  1095. --wp-admin-theme-color-darker-10: #d97426;
  1096. --wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
  1097. --wp-admin-theme-color-darker-20: #c36922;
  1098. --wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
  1099. --wp-admin-border-width-focus: 2px;
  1100. }
  1101. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1102. body.admin-color-sunrise {
  1103. --wp-admin-border-width-focus: 1.5px;
  1104. }
  1105. }