style.css 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167
  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:not(.components-base-control__help) {
  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. max-width: 480px;
  398. }
  399. }
  400. .interface-more-menu-dropdown__content .components-popover__content .components-dropdown-menu__menu {
  401. padding: 0;
  402. }
  403. .components-popover.interface-more-menu-dropdown__content {
  404. z-index: 99998;
  405. }
  406. .interface-pinned-items {
  407. display: flex;
  408. gap: 4px;
  409. margin-right: -4px;
  410. }
  411. .interface-pinned-items .components-button:not(:first-child) {
  412. display: none;
  413. }
  414. @media (min-width: 600px) {
  415. .interface-pinned-items .components-button:not(:first-child) {
  416. display: flex;
  417. }
  418. }
  419. .interface-pinned-items .components-button {
  420. margin: 0;
  421. }
  422. .interface-pinned-items .components-button svg {
  423. max-width: 24px;
  424. max-height: 24px;
  425. }
  426. @media (min-width: 600px) {
  427. .interface-preferences-modal {
  428. width: calc(100% - 32px);
  429. height: calc(100% - 120px);
  430. }
  431. }
  432. @media (min-width: 782px) {
  433. .interface-preferences-modal {
  434. width: 750px;
  435. }
  436. }
  437. @media (min-width: 960px) {
  438. .interface-preferences-modal {
  439. height: 70%;
  440. }
  441. }
  442. @media (max-width: 781px) {
  443. .interface-preferences-modal .components-modal__content {
  444. padding: 0;
  445. }
  446. }
  447. .interface-preferences__tabs .components-tab-panel__tabs {
  448. position: absolute;
  449. top: 84px;
  450. left: 16px;
  451. width: 160px;
  452. }
  453. .interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item {
  454. border-radius: 2px;
  455. font-weight: 400;
  456. }
  457. .interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item.is-active {
  458. background: #f0f0f0;
  459. box-shadow: none;
  460. font-weight: 500;
  461. }
  462. .interface-preferences__tabs .components-tab-panel__tabs .components-tab-panel__tabs-item:focus:not(:disabled) {
  463. box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
  464. }
  465. .interface-preferences__tabs .components-tab-panel__tab-content {
  466. padding-left: 24px;
  467. margin-left: 160px;
  468. }
  469. @media (max-width: 781px) {
  470. .interface-preferences__provider {
  471. height: 100%;
  472. }
  473. }
  474. .interface-preferences-modal__section {
  475. margin: 0 0 2.5rem 0;
  476. }
  477. .interface-preferences-modal__section:last-child {
  478. margin: 0;
  479. }
  480. .interface-preferences-modal__section-legend {
  481. margin-bottom: 8px;
  482. }
  483. .interface-preferences-modal__section-title {
  484. font-size: 0.9rem;
  485. font-weight: 600;
  486. margin-top: 0;
  487. }
  488. .interface-preferences-modal__section-description {
  489. margin: -8px 0 8px 0;
  490. font-size: 12px;
  491. font-style: normal;
  492. color: #757575;
  493. }
  494. .interface-preferences-modal__option + .interface-preferences-modal__option {
  495. margin-top: 16px;
  496. }
  497. .interface-preferences-modal__option .components-base-control__help {
  498. margin-top: 0;
  499. margin-left: 48px;
  500. }
  501. .wp-block[data-type="core/widget-area"] {
  502. max-width: 700px;
  503. margin-left: auto;
  504. margin-right: auto;
  505. }
  506. .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title {
  507. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  508. margin: 0;
  509. height: 48px;
  510. position: relative;
  511. z-index: 1;
  512. background: #fff;
  513. transform: translateZ(0);
  514. }
  515. .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title:hover {
  516. background: #fff;
  517. }
  518. .wp-block[data-type="core/widget-area"] .block-list-appender.wp-block {
  519. width: initial;
  520. position: relative;
  521. }
  522. .wp-block[data-type="core/widget-area"] .editor-styles-wrapper .wp-block.wp-block.wp-block.wp-block.wp-block {
  523. max-width: 100%;
  524. }
  525. .wp-block[data-type="core/widget-area"] .components-panel__body.is-opened {
  526. padding: 0;
  527. }
  528. .blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper {
  529. margin: 0;
  530. padding: 0;
  531. }
  532. .blocks-widgets-container .wp-block-widget-area__inner-blocks.editor-styles-wrapper > .block-editor-block-list__layout {
  533. margin-top: -48px;
  534. padding: 72px 16px 16px;
  535. min-height: 32px;
  536. }
  537. .wp-block-widget-area__highlight-drop-zone {
  538. outline: var(--wp-admin-border-width-focus) solid var(--wp-admin-theme-color);
  539. }
  540. body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title,
  541. body.is-dragging-components-draggable .wp-block[data-type="core/widget-area"] .components-panel__body > .components-panel__body-title * {
  542. pointer-events: none;
  543. }
  544. .edit-widgets-error-boundary {
  545. margin: auto;
  546. max-width: 780px;
  547. padding: 20px;
  548. margin-top: 60px;
  549. box-shadow: 0 10px 10px rgba(0, 0, 0, 0.25);
  550. }
  551. .edit-widgets-header {
  552. display: flex;
  553. align-items: center;
  554. justify-content: space-between;
  555. height: 60px;
  556. padding: 0 16px;
  557. overflow: auto;
  558. }
  559. @media (min-width: 600px) {
  560. .edit-widgets-header {
  561. overflow: visible;
  562. }
  563. }
  564. .edit-widgets-header__navigable-toolbar-wrapper {
  565. display: flex;
  566. align-items: center;
  567. justify-content: center;
  568. }
  569. .edit-widgets-header__title {
  570. font-size: 20px;
  571. padding: 0;
  572. margin: 0 20px 0 0;
  573. }
  574. .edit-widgets-header__actions {
  575. display: flex;
  576. align-items: center;
  577. gap: 4px;
  578. }
  579. @media (min-width: 600px) {
  580. .edit-widgets-header__actions {
  581. gap: 8px;
  582. }
  583. }
  584. .edit-widgets-header-toolbar {
  585. border: none;
  586. }
  587. .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon,
  588. .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon {
  589. height: 36px;
  590. min-width: 36px;
  591. padding: 6px;
  592. }
  593. .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon.is-pressed,
  594. .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon.is-pressed {
  595. background: #1e1e1e;
  596. }
  597. .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon:focus:not(:disabled),
  598. .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon:focus:not(:disabled) {
  599. box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 0 0 1px #fff;
  600. outline: 1px solid transparent;
  601. }
  602. .edit-widgets-header-toolbar > .components-button.has-icon.has-icon.has-icon::before,
  603. .edit-widgets-header-toolbar > .components-dropdown > .components-button.has-icon.has-icon::before {
  604. display: none;
  605. }
  606. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle {
  607. padding-left: 8px;
  608. padding-right: 8px;
  609. }
  610. @media (min-width: 600px) {
  611. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle {
  612. padding-left: 12px;
  613. padding-right: 12px;
  614. }
  615. }
  616. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle::after {
  617. content: none;
  618. }
  619. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg {
  620. transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
  621. }
  622. @media (prefers-reduced-motion: reduce) {
  623. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle svg {
  624. transition-duration: 0s;
  625. transition-delay: 0s;
  626. }
  627. }
  628. .edit-widgets-header-toolbar__inserter-toggle.edit-widgets-header-toolbar__inserter-toggle.is-pressed svg {
  629. transform: rotate(45deg);
  630. }
  631. .edit-widgets-keyboard-shortcut-help-modal__section {
  632. margin: 0 0 2rem 0;
  633. }
  634. .edit-widgets-keyboard-shortcut-help-modal__main-shortcuts .edit-widgets-keyboard-shortcut-help-modal__shortcut-list {
  635. margin-top: -25px;
  636. }
  637. .edit-widgets-keyboard-shortcut-help-modal__section-title {
  638. font-size: 0.9rem;
  639. font-weight: 600;
  640. }
  641. .edit-widgets-keyboard-shortcut-help-modal__shortcut {
  642. display: flex;
  643. align-items: baseline;
  644. padding: 0.6rem 0;
  645. border-top: 1px solid #ddd;
  646. margin-bottom: 0;
  647. }
  648. .edit-widgets-keyboard-shortcut-help-modal__shortcut:last-child {
  649. border-bottom: 1px solid #ddd;
  650. }
  651. .edit-widgets-keyboard-shortcut-help-modal__shortcut:empty {
  652. display: none;
  653. }
  654. .edit-widgets-keyboard-shortcut-help-modal__shortcut-term {
  655. font-weight: 600;
  656. margin: 0 0 0 1rem;
  657. text-align: right;
  658. }
  659. .edit-widgets-keyboard-shortcut-help-modal__shortcut-description {
  660. flex: 1;
  661. margin: 0;
  662. flex-basis: auto;
  663. }
  664. .edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination {
  665. display: block;
  666. background: none;
  667. margin: 0;
  668. padding: 0;
  669. }
  670. .edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination + .edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination {
  671. margin-top: 10px;
  672. }
  673. .edit-widgets-keyboard-shortcut-help-modal__shortcut-key {
  674. padding: 0.25rem 0.5rem;
  675. border-radius: 8%;
  676. margin: 0 0.2rem 0 0.2rem;
  677. }
  678. .edit-widgets-keyboard-shortcut-help-modal__shortcut-key:last-child {
  679. margin: 0 0 0 0.2rem;
  680. }
  681. .components-panel__header.edit-widgets-sidebar__panel-tabs {
  682. justify-content: flex-start;
  683. padding-left: 0;
  684. padding-right: 4px;
  685. border-top: 0;
  686. margin-top: 0;
  687. }
  688. .components-panel__header.edit-widgets-sidebar__panel-tabs ul {
  689. display: flex;
  690. }
  691. .components-panel__header.edit-widgets-sidebar__panel-tabs li {
  692. margin: 0;
  693. }
  694. .components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon {
  695. display: none;
  696. margin-left: auto;
  697. }
  698. @media (min-width: 782px) {
  699. .components-panel__header.edit-widgets-sidebar__panel-tabs .components-button.has-icon {
  700. display: flex;
  701. }
  702. }
  703. .components-button.edit-widgets-sidebar__panel-tab {
  704. border-radius: 0;
  705. height: 49px;
  706. background: transparent;
  707. border: none;
  708. box-shadow: none;
  709. cursor: pointer;
  710. display: inline-block;
  711. padding: 3px 15px;
  712. margin-left: 0;
  713. font-weight: 400;
  714. color: #1e1e1e;
  715. }
  716. .components-button.edit-widgets-sidebar__panel-tab::after {
  717. content: attr(data-label);
  718. display: block;
  719. font-weight: 600;
  720. height: 0;
  721. overflow: hidden;
  722. speak: none;
  723. visibility: hidden;
  724. }
  725. .components-button.edit-widgets-sidebar__panel-tab.is-active {
  726. box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) transparent, inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
  727. font-weight: 600;
  728. position: relative;
  729. }
  730. .components-button.edit-widgets-sidebar__panel-tab.is-active::before {
  731. content: "";
  732. position: absolute;
  733. top: 0;
  734. bottom: 1px;
  735. right: 0;
  736. left: 0;
  737. border-bottom: 1.5px solid transparent;
  738. }
  739. .components-button.edit-widgets-sidebar__panel-tab:focus {
  740. box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
  741. }
  742. .components-button.edit-widgets-sidebar__panel-tab.is-active:focus {
  743. box-shadow: inset 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color), inset 0 -1.5px 0 0 var(--wp-admin-theme-color);
  744. }
  745. .edit-widgets-widget-areas__top-container {
  746. display: flex;
  747. padding: 16px;
  748. }
  749. .edit-widgets-widget-areas__top-container .block-editor-block-icon {
  750. margin-right: 16px;
  751. }
  752. .edit-widgets-notices__snackbar {
  753. position: fixed;
  754. right: 0;
  755. bottom: 20px;
  756. padding-left: 16px;
  757. padding-right: 16px;
  758. }
  759. .edit-widgets-notices__snackbar {
  760. /* Set left position when auto-fold is not on the body element. */
  761. left: 0;
  762. }
  763. @media (min-width: 783px) {
  764. .edit-widgets-notices__snackbar {
  765. left: 160px;
  766. }
  767. }
  768. .auto-fold .edit-widgets-notices__snackbar {
  769. /* Auto fold is when on smaller breakpoints, nav menu auto collapses. */
  770. }
  771. @media (min-width: 783px) {
  772. .auto-fold .edit-widgets-notices__snackbar {
  773. left: 36px;
  774. }
  775. }
  776. @media (min-width: 961px) {
  777. .auto-fold .edit-widgets-notices__snackbar {
  778. left: 160px;
  779. }
  780. }
  781. /* Sidebar manually collapsed. */
  782. .folded .edit-widgets-notices__snackbar {
  783. left: 0;
  784. }
  785. @media (min-width: 783px) {
  786. .folded .edit-widgets-notices__snackbar {
  787. left: 36px;
  788. }
  789. }
  790. body.is-fullscreen-mode .edit-widgets-notices__snackbar {
  791. left: 0 !important;
  792. }
  793. .edit-widgets-notices__dismissible .components-notice,
  794. .edit-widgets-notices__pinned .components-notice {
  795. box-sizing: border-box;
  796. margin: 0;
  797. border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  798. padding: 0 12px;
  799. min-height: 60px;
  800. }
  801. .edit-widgets-notices__dismissible .components-notice .components-notice__dismiss,
  802. .edit-widgets-notices__pinned .components-notice .components-notice__dismiss {
  803. margin-top: 12px;
  804. }
  805. .edit-widgets-layout__inserter-panel {
  806. height: 100%;
  807. display: flex;
  808. flex-direction: column;
  809. }
  810. .edit-widgets-layout__inserter-panel .block-editor-inserter__menu {
  811. overflow: hidden;
  812. }
  813. .edit-widgets-layout__inserter-panel-header {
  814. padding-top: 8px;
  815. padding-right: 8px;
  816. display: flex;
  817. justify-content: flex-end;
  818. }
  819. .edit-widgets-layout__inserter-panel-content {
  820. height: calc(100% - 36px - 8px);
  821. }
  822. @media (min-width: 782px) {
  823. .edit-widgets-layout__inserter-panel-content {
  824. height: 100%;
  825. }
  826. }
  827. .edit-widgets-welcome-guide {
  828. width: 312px;
  829. }
  830. .edit-widgets-welcome-guide__image {
  831. background: #00a0d2;
  832. margin: 0 0 16px;
  833. }
  834. .edit-widgets-welcome-guide__image > img {
  835. display: block;
  836. max-width: 100%;
  837. object-fit: cover;
  838. }
  839. .edit-widgets-welcome-guide__heading {
  840. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  841. font-size: 24px;
  842. line-height: 1.4;
  843. margin: 16px 0 16px 0;
  844. padding: 0 32px;
  845. }
  846. .edit-widgets-welcome-guide__text {
  847. font-size: 13px;
  848. line-height: 1.4;
  849. margin: 0 0 24px 0;
  850. padding: 0 32px;
  851. }
  852. .edit-widgets-welcome-guide__inserter-icon {
  853. margin: 0 4px;
  854. vertical-align: text-top;
  855. }
  856. .edit-widgets-block-editor {
  857. position: relative;
  858. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  859. display: flex;
  860. flex-direction: column;
  861. flex-grow: 1;
  862. }
  863. .edit-widgets-block-editor > div:last-of-type,
  864. .edit-widgets-block-editor .block-editor-writing-flow,
  865. .edit-widgets-block-editor .block-editor-writing-flow > div {
  866. display: flex;
  867. flex-direction: column;
  868. flex-grow: 1;
  869. }
  870. .edit-widgets-block-editor .edit-widgets-main-block-list {
  871. height: 100%;
  872. }
  873. .edit-widgets-block-editor .components-button {
  874. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  875. font-size: 13px;
  876. }
  877. .edit-widgets-block-editor .components-button.is-tertiary, .edit-widgets-block-editor .components-button.has-icon {
  878. padding: 6px;
  879. }
  880. .edit-widgets-editor__list-view-panel {
  881. height: 100%;
  882. display: flex;
  883. flex-direction: column;
  884. min-width: 350px;
  885. }
  886. .edit-widgets-editor__list-view-panel-content {
  887. height: calc(100% - 36px - 8px);
  888. overflow-y: auto;
  889. padding: 8px;
  890. }
  891. .edit-widgets-editor__list-view-panel-header {
  892. align-items: center;
  893. border-bottom: 1px solid #ddd;
  894. display: flex;
  895. justify-content: space-between;
  896. height: 48px;
  897. padding-left: 16px;
  898. padding-right: 4px;
  899. }
  900. html.wp-toolbar {
  901. background: #fff;
  902. }
  903. body.appearance_page_gutenberg-widgets,
  904. body.widgets-php {
  905. background: #fff;
  906. /* We hide legacy notices in Gutenberg Based Pages, because they were not designed in a way that scaled well.
  907. Plugins can use Gutenberg notices if they need to pass on information to the user when they are editing. */
  908. }
  909. body.appearance_page_gutenberg-widgets #wpcontent,
  910. body.widgets-php #wpcontent {
  911. padding-left: 0;
  912. }
  913. body.appearance_page_gutenberg-widgets #wpbody-content,
  914. body.widgets-php #wpbody-content {
  915. padding-bottom: 0;
  916. }
  917. body.appearance_page_gutenberg-widgets #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta),
  918. body.widgets-php #wpbody-content > div:not(.blocks-widgets-container):not(#screen-meta) {
  919. display: none;
  920. }
  921. body.appearance_page_gutenberg-widgets #wpfooter,
  922. body.widgets-php #wpfooter {
  923. display: none;
  924. }
  925. body.appearance_page_gutenberg-widgets .a11y-speak-region,
  926. body.widgets-php .a11y-speak-region {
  927. left: -1px;
  928. top: -1px;
  929. }
  930. body.appearance_page_gutenberg-widgets ul#adminmenu a.wp-has-current-submenu::after,
  931. body.appearance_page_gutenberg-widgets ul#adminmenu > li.current > a.current::after,
  932. body.widgets-php ul#adminmenu a.wp-has-current-submenu::after,
  933. body.widgets-php ul#adminmenu > li.current > a.current::after {
  934. border-right-color: #fff;
  935. }
  936. body.appearance_page_gutenberg-widgets .media-frame select.attachment-filters:last-of-type,
  937. body.widgets-php .media-frame select.attachment-filters:last-of-type {
  938. width: auto;
  939. max-width: 100%;
  940. }
  941. .blocks-widgets-container,
  942. .components-modal__frame {
  943. box-sizing: border-box;
  944. }
  945. .blocks-widgets-container *,
  946. .blocks-widgets-container *::before,
  947. .blocks-widgets-container *::after,
  948. .components-modal__frame *,
  949. .components-modal__frame *::before,
  950. .components-modal__frame *::after {
  951. box-sizing: inherit;
  952. }
  953. @media (min-width: 600px) {
  954. .blocks-widgets-container {
  955. position: absolute;
  956. top: 0;
  957. right: 0;
  958. bottom: 0;
  959. left: 0;
  960. min-height: calc(100vh - 46px);
  961. }
  962. }
  963. @media (min-width: 782px) {
  964. .blocks-widgets-container {
  965. min-height: calc(100vh - 32px);
  966. }
  967. }
  968. .blocks-widgets-container .interface-interface-skeleton__content {
  969. background-color: #f0f0f0;
  970. }
  971. .blocks-widgets-container .editor-styles-wrapper {
  972. max-width: 700px;
  973. margin: auto;
  974. }
  975. .edit-widgets-sidebar .components-button.interface-complementary-area__pin-unpin-item {
  976. display: none;
  977. }
  978. .widgets-php .notice {
  979. display: none !important;
  980. }
  981. body.admin-color-light {
  982. --wp-admin-theme-color: #0085ba;
  983. --wp-admin-theme-color--rgb: 0, 133, 186;
  984. --wp-admin-theme-color-darker-10: #0073a1;
  985. --wp-admin-theme-color-darker-10--rgb: 0, 115, 161;
  986. --wp-admin-theme-color-darker-20: #006187;
  987. --wp-admin-theme-color-darker-20--rgb: 0, 97, 135;
  988. --wp-admin-border-width-focus: 2px;
  989. }
  990. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  991. body.admin-color-light {
  992. --wp-admin-border-width-focus: 1.5px;
  993. }
  994. }
  995. body.admin-color-modern {
  996. --wp-admin-theme-color: #3858e9;
  997. --wp-admin-theme-color--rgb: 56, 88, 233;
  998. --wp-admin-theme-color-darker-10: #2145e6;
  999. --wp-admin-theme-color-darker-10--rgb: 33, 69, 230;
  1000. --wp-admin-theme-color-darker-20: #183ad6;
  1001. --wp-admin-theme-color-darker-20--rgb: 24, 58, 214;
  1002. --wp-admin-border-width-focus: 2px;
  1003. }
  1004. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1005. body.admin-color-modern {
  1006. --wp-admin-border-width-focus: 1.5px;
  1007. }
  1008. }
  1009. body.admin-color-blue {
  1010. --wp-admin-theme-color: #096484;
  1011. --wp-admin-theme-color--rgb: 9, 100, 132;
  1012. --wp-admin-theme-color-darker-10: #07526c;
  1013. --wp-admin-theme-color-darker-10--rgb: 7, 82, 108;
  1014. --wp-admin-theme-color-darker-20: #064054;
  1015. --wp-admin-theme-color-darker-20--rgb: 6, 64, 84;
  1016. --wp-admin-border-width-focus: 2px;
  1017. }
  1018. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1019. body.admin-color-blue {
  1020. --wp-admin-border-width-focus: 1.5px;
  1021. }
  1022. }
  1023. body.admin-color-coffee {
  1024. --wp-admin-theme-color: #46403c;
  1025. --wp-admin-theme-color--rgb: 70, 64, 60;
  1026. --wp-admin-theme-color-darker-10: #383330;
  1027. --wp-admin-theme-color-darker-10--rgb: 56, 51, 48;
  1028. --wp-admin-theme-color-darker-20: #2b2724;
  1029. --wp-admin-theme-color-darker-20--rgb: 43, 39, 36;
  1030. --wp-admin-border-width-focus: 2px;
  1031. }
  1032. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1033. body.admin-color-coffee {
  1034. --wp-admin-border-width-focus: 1.5px;
  1035. }
  1036. }
  1037. body.admin-color-ectoplasm {
  1038. --wp-admin-theme-color: #523f6d;
  1039. --wp-admin-theme-color--rgb: 82, 63, 109;
  1040. --wp-admin-theme-color-darker-10: #46365d;
  1041. --wp-admin-theme-color-darker-10--rgb: 70, 54, 93;
  1042. --wp-admin-theme-color-darker-20: #3a2c4d;
  1043. --wp-admin-theme-color-darker-20--rgb: 58, 44, 77;
  1044. --wp-admin-border-width-focus: 2px;
  1045. }
  1046. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1047. body.admin-color-ectoplasm {
  1048. --wp-admin-border-width-focus: 1.5px;
  1049. }
  1050. }
  1051. body.admin-color-midnight {
  1052. --wp-admin-theme-color: #e14d43;
  1053. --wp-admin-theme-color--rgb: 225, 77, 67;
  1054. --wp-admin-theme-color-darker-10: #dd382d;
  1055. --wp-admin-theme-color-darker-10--rgb: 221, 56, 45;
  1056. --wp-admin-theme-color-darker-20: #d02c21;
  1057. --wp-admin-theme-color-darker-20--rgb: 208, 44, 33;
  1058. --wp-admin-border-width-focus: 2px;
  1059. }
  1060. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1061. body.admin-color-midnight {
  1062. --wp-admin-border-width-focus: 1.5px;
  1063. }
  1064. }
  1065. body.admin-color-ocean {
  1066. --wp-admin-theme-color: #627c83;
  1067. --wp-admin-theme-color--rgb: 98, 124, 131;
  1068. --wp-admin-theme-color-darker-10: #576e74;
  1069. --wp-admin-theme-color-darker-10--rgb: 87, 110, 116;
  1070. --wp-admin-theme-color-darker-20: #4c6066;
  1071. --wp-admin-theme-color-darker-20--rgb: 76, 96, 102;
  1072. --wp-admin-border-width-focus: 2px;
  1073. }
  1074. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1075. body.admin-color-ocean {
  1076. --wp-admin-border-width-focus: 1.5px;
  1077. }
  1078. }
  1079. body.admin-color-sunrise {
  1080. --wp-admin-theme-color: #dd823b;
  1081. --wp-admin-theme-color--rgb: 221, 130, 59;
  1082. --wp-admin-theme-color-darker-10: #d97426;
  1083. --wp-admin-theme-color-darker-10--rgb: 217, 116, 38;
  1084. --wp-admin-theme-color-darker-20: #c36922;
  1085. --wp-admin-theme-color-darker-20--rgb: 195, 105, 34;
  1086. --wp-admin-border-width-focus: 2px;
  1087. }
  1088. @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  1089. body.admin-color-sunrise {
  1090. --wp-admin-border-width-focus: 1.5px;
  1091. }
  1092. }