buttons.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*-----------------------------------------------------------------------------
  2. | Variables
  3. |----------------------------------------------------------------------------*/
  4. :root {
  5. --jp-flat-button-height: 24px;
  6. --jp-flat-button-padding: 8px 12px;
  7. }
  8. /*-----------------------------------------------------------------------------
  9. | Copyright (c) Jupyter Development Team.
  10. | Distributed under the terms of the Modified BSD License.
  11. |----------------------------------------------------------------------------*/
  12. button {
  13. border-radius: var(--jp-border-radius);
  14. }
  15. button.jp-mod-styled.jp-mod-accept {
  16. background: var(--md-blue-500);
  17. border: 0;
  18. color: white;
  19. }
  20. button.jp-mod-styled.jp-mod-accept:hover {
  21. background: var(--md-blue-600);
  22. }
  23. button.jp-mod-styled.jp-mod-accept:active {
  24. background: var(--md-blue-700);
  25. }
  26. button.jp-mod-styled.jp-mod-reject {
  27. background: var(--md-grey-500);
  28. border: 0;
  29. color: white;
  30. }
  31. button.jp-mod-styled.jp-mod-reject:hover {
  32. background: var(--md-grey-600);
  33. }
  34. button.jp-mod-styled.jp-mod-reject:active {
  35. background: var(--md-grey-700);
  36. }
  37. button.jp-mod-styled.jp-mod-warn {
  38. background: var(--jp-error-color1);
  39. border: 0;
  40. color: white;
  41. }
  42. button.jp-mod-styled.jp-mod-warn:hover {
  43. background: var(--md-red-600);
  44. }
  45. button.jp-mod-styled.jp-mod-warn:active {
  46. background: var(--md-red-700);
  47. }
  48. .jp-Button-flat {
  49. text-decoration: none;
  50. padding: var(--jp-flat-button-padding);
  51. color: var(--jp-warn-color1);
  52. font-weight: 500;
  53. background-color: transparent;
  54. height: var(--jp-private-running-shutdown-button-height);
  55. line-height: var(--jp-private-running-shutdown-button-height);
  56. transition: background-color 0.1s ease;
  57. border-radius: 2px;
  58. }
  59. .jp-Button-flat:hover {
  60. background-color: rgba(153, 153, 153, 0.1);
  61. }
  62. .jp-Button-flat:focus {
  63. border: none;
  64. box-shadow: none;
  65. background-color: rgba(153, 153, 153, 0.2);
  66. }