quickedit.css

Same filename in this branch
  1. 9 core/themes/seven/css/components/quickedit.css
Same filename and directory in other branches
  1. 8.9.x core/themes/seven/css/components/quickedit.css
  2. 8.9.x core/themes/claro/css/components/quickedit.css

Override Quick Edit's entity toolbar style on the Drupal front-end.

I.e. loaded by Quick Edit on the front-end, despite this being a back-end theme.

File

core/themes/claro/css/components/quickedit.css

View source
  1. /*
  2. * DO NOT EDIT THIS FILE.
  3. * See the following change record for more information,
  4. * https://www.drupal.org/node/3084859
  5. * @preserve
  6. */
  7. /**
  8. * @file
  9. * Override Quick Edit's entity toolbar style on the Drupal front-end.
  10. *
  11. * I.e. loaded by Quick Edit on the front-end, despite this being a back-end theme.
  12. */
  13. /**
  14. * The Claro style guide prescribes softer corners.
  15. */
  16. .quickedit-toolbar-container > .quickedit-toolbar-content,
  17. .quickedit-toolbar-container > .quickedit-toolbar-lining {
  18. border-radius: 0.25rem;
  19. }
  20. .quickedit-button {
  21. border-radius: 0.1875rem;
  22. }
  23. /**
  24. * Entity toolbar's "save" button must be styled like a Claro primary button.
  25. */
  26. .quickedit-button.action-save,
  27. .quickedit-button.action-saving {
  28. margin-top: 2px;
  29. color: #fff;
  30. border-color: #1e5c90;
  31. background-image: linear-gradient(to bottom, #007bc6, #0071b8);
  32. text-shadow: 0 1px hsla(0, 0%, 0%, 0.5);
  33. font-weight: 700;
  34. -webkit-font-smoothing: antialiased;
  35. }
  36. .quickedit-button.action-save:hover,
  37. .quickedit-button.action-save:focus,
  38. .quickedit-button.action-saving:hover,
  39. .quickedit-button.action-saving:focus {
  40. color: #fff;
  41. border-color: #1e5c90;
  42. background-color: #2369a6;
  43. background-image: linear-gradient(to bottom, #0c97ed, #1f86c7);
  44. }
  45. .quickedit-button.action-save:hover,
  46. .quickedit-button.action-save:focus,
  47. .quickedit-button.action-saving:hover,
  48. .quickedit-button.action-saving:focus {
  49. box-shadow: 0 1px 2px hsla(203, 10%, 10%, 0.25);
  50. }
  51. .quickedit-button.action-save:active,
  52. .quickedit-button.action-saving:active {
  53. border-color: #144b78;
  54. background-image: linear-gradient(to bottom, #08639b, #0071b8);
  55. box-shadow: inset 0 1px 3px hsla(0, 0%, 0%, 0.2);
  56. }
  57. /**
  58. * The entity toolbar's "save" button's top margin shifts both buttons 2px down,
  59. * so we must compensate for that to achieve vertically centered positioning.
  60. */
  61. .quickedit .icon-close:before {
  62. top: 0.5rem;
  63. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.