settings_tray.toolbar.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * @file
  3. * Visual styling for the toolbar when Settings Tray module is enabled.
  4. */
  5. /* @todo Move this into toolbar when module is not experimental:
  6. * https://www.drupal.org/node/2784593.
  7. */
  8. /* Style the edit mode toolbar and tabs. */
  9. #toolbar-bar.js-settings-tray-edit-mode {
  10. background-color: #fff;
  11. }
  12. #toolbar-bar.js-settings-tray-edit-mode .toolbar-item {
  13. color: #999;
  14. }
  15. #toolbar-bar.js-settings-tray-edit-mode .toolbar-item .is-active {
  16. color: #333;
  17. }
  18. /* Style both the edit and editing states of the contextual links toggle tab. */
  19. .toolbar-icon-edit.toolbar-item {
  20. background-color: #0066a1;
  21. background-image: linear-gradient(to bottom, #0066a1, #005b98);
  22. color: #eee;
  23. text-shadow: 0 1px hsla(0, 0%, 0%, 0.5);
  24. font-weight: 700;
  25. -webkit-font-smoothing: antialiased;
  26. }
  27. .toolbar-icon-edit.toolbar-item.is-active {
  28. background-color: #0a7bc1;
  29. background-image: linear-gradient(to bottom, #0a7bc1, #0a6eb4);
  30. color: #fff;
  31. text-shadow: 0 1px hsla(0, 0%, 0%, 0.5);
  32. font-weight: 700;
  33. -webkit-font-smoothing: antialiased;
  34. }
  35. .toolbar-tab:hover > .toolbar-icon-edit,
  36. .toolbar-icon-edit:focus .toolbar-item {
  37. background-color: #0a7bc1;
  38. background-image: linear-gradient(to bottom, #0a7bc1, #0a6eb4);
  39. border-color: #1e5c90;
  40. color: #fff;
  41. outline: none;
  42. }
  43. .toolbar-icon.toolbar-icon-edit.toolbar-item:before,
  44. button.toolbar-icon.toolbar-icon-edit.toolbar-item:before {
  45. background-image: url(../../../../misc/icons/bebebe/pencil.svg);
  46. }
  47. .toolbar-icon.toolbar-icon-edit.toolbar-item:before:hover,
  48. button.toolbar-icon.toolbar-icon-edit.toolbar-item:before:focus {
  49. background-image: url(../../../../misc/icons/ffffff/pencil.svg);
  50. }
  51. .toolbar-icon.toolbar-icon-edit.toolbar-item:hover > .toolbar-icon-edit:before {
  52. background-image: url(../../../../misc/icons/ffffff/pencil.svg);
  53. }
  54. #toolbar-bar.button.toolbar-icon.toolbar-icon.toolbar-icon-edit:before {
  55. background-image: url(../../../../misc/icons/ffffff/pencil.svg);
  56. }
  57. #toolbar-bar.js-settings-tray-edit-mode button.toolbar-icon.toolbar-icon-edit.toolbar-item.is-active {
  58. color: #fff;
  59. }
  60. #toolbar-bar.js-settings-tray-edit-mode button.toolbar-icon.toolbar-icon-edit.toolbar-item.is-active:hover {
  61. background-image: linear-gradient(to bottom, #0a6fb4, #0a65aa);
  62. }