buttons.css 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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(--jp-brand-color1);
  17. color: white;
  18. border: 1px solid var(--jp-brand-color1);
  19. }
  20. button.jp-mod-styled.jp-mod-reject {
  21. background: var(--md-grey-500);
  22. margin-right: 12px;
  23. border: 1px solid var(--md-grey-500);
  24. color: white;
  25. }
  26. button.jp-mod-styled.jp-mod-warn {
  27. background: var(--jp-error-color1);
  28. color: white;
  29. border: 1px solid var(--jp-error-color1);
  30. }
  31. .jp-Button-flat {
  32. text-decoration: none;
  33. padding: var(--jp-flat-button-padding);
  34. color: var(--jp-warn-color1);
  35. font-weight: 500;
  36. background-color: transparent;
  37. height: var(--jp-private-running-shutdown-button-height);
  38. line-height: var(--jp-private-running-shutdown-button-height);
  39. transition: background-color 0.1s ease;
  40. border-radius: 2px;
  41. }
  42. .jp-Button-flat:hover {
  43. background-color: rgba(153,153,153,.1);
  44. }
  45. .jp-Button-flat:focus {
  46. border: none;
  47. box-shadow: none;
  48. background-color: rgba(153,153,153,.2);
  49. }