settings_tray.theme.css 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /**
  2. * @file
  3. * Visual styling for Settings Tray module.
  4. */
  5. /* @todo remove the @imports when we find a better way to load these styles last.
  6. * https://www.drupal.org/node/1945262.
  7. */
  8. /* Style the edit mode toolbar and tabs. */
  9. #toolbar-bar.js-settings-tray-edit-mode {
  10. background-image: linear-gradient(to bottom, #0a7bc1, #0a6eb4);
  11. }
  12. .js-settings-tray-edit-mode .toolbar-item:not(.toolbar-icon-edit) {
  13. color: #999;
  14. }
  15. .js-settings-tray-edit-mode .toolbar-item:not(.toolbar-icon-edit) .is-active {
  16. color: #333;
  17. }
  18. /* Style both the edit and editing states of the contextual links toggle tab. */
  19. .toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item,
  20. .toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item.is-active,
  21. .toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item:focus {
  22. background-color: #0066a1;
  23. background-image: linear-gradient(to bottom, #0066a1, #005b98);
  24. color: #eee;
  25. text-shadow: none;
  26. font-weight: bold;
  27. outline: none;
  28. }
  29. /* Make the hover of the inactive state the same as the active state. */
  30. .toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item:hover,
  31. .toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item.is-active {
  32. background-image: linear-gradient(to bottom, #0a7bc1, #0a6eb4);
  33. color: #fff;
  34. }
  35. /* Make the hover of the active state the same as the inactive state. */
  36. .toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item.is-active:hover {
  37. background-color: #0066a1;
  38. background-image: linear-gradient(to bottom, #0066a1, #005b98);
  39. color: #fff;
  40. }
  41. /* Make the inactive icon grey. */
  42. .toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item:before {
  43. background-image: url(../../../../misc/icons/bebebe/pencil.svg);
  44. }
  45. /* Make the active icon white. */
  46. .toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item.is-active:before {
  47. background-image: url(../../../../misc/icons/ffffff/pencil.svg);
  48. }
  49. .toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item:hover:before {
  50. background-image: url(../../../../misc/icons/ffffff/pencil.svg);
  51. }
  52. .toolbar-tab > .toolbar-icon.toolbar-icon-edit.toolbar-item:hover > .toolbar-icon-edit:before {
  53. background-image: url(../../../../misc/icons/ffffff/pencil.svg);
  54. }
  55. .toolbar-tab > .button.toolbar-icon.toolbar-icon.toolbar-icon-edit:before {
  56. background-image: url(../../../../misc/icons/ffffff/pencil.svg);
  57. }
  58. /* Style the editables while in edit mode. */
  59. .dialog-off-canvas-main-canvas.js-settings-tray-edit-mode .settings-tray-editable {
  60. outline: 1px dashed rgba(0, 0, 0, 0.5);
  61. box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7);
  62. }
  63. .dialog-off-canvas-main-canvas.js-settings-tray-edit-mode .settings-tray-editable:hover,
  64. .dialog-off-canvas-main-canvas.js-settings-tray-edit-mode .settings-tray-editable.settings-tray-active-editable {
  65. background-color: rgba(0, 0, 0, 0.2);
  66. }