base.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) Jupyter Development Team.
  3. | Distributed under the terms of the Modified BSD License.
  4. |----------------------------------------------------------------------------*/
  5. /* Override Blueprint's _reset.scss styles */
  6. html {
  7. box-sizing: unset;
  8. }
  9. *,
  10. *::before,
  11. *::after {
  12. box-sizing: unset;
  13. }
  14. body {
  15. color: unset;
  16. font-family: var(--jp-ui-font-family);
  17. }
  18. p {
  19. margin-top: unset;
  20. margin-bottom: unset;
  21. }
  22. small {
  23. font-size: unset;
  24. }
  25. strong {
  26. font-weight: unset;
  27. }
  28. /* Override Blueprint's _typography.scss styles */
  29. a {
  30. text-decoration: unset;
  31. color: unset;
  32. }
  33. a:hover {
  34. text-decoration: unset;
  35. color: unset;
  36. }
  37. /* Override Blueprint's _accessibility.scss styles */
  38. :focus {
  39. outline: unset;
  40. outline-offset: unset;
  41. -moz-outline-radius: unset;
  42. }
  43. /* Styles for ui-components */
  44. .jp-Button {
  45. border-radius: var(--jp-border-radius);
  46. padding: 0px 12px;
  47. font-size: var(--jp-ui-font-size1);
  48. text-transform: uppercase;
  49. }
  50. /* Use our own theme for hover styles */
  51. button.jp-Button.bp3-button.bp3-minimal:hover {
  52. background-color: var(--jp-layout-color2);
  53. }
  54. .jp-Button.minimal {
  55. color: unset !important;
  56. }
  57. .jp-Button.jp-ToolbarButtonComponent {
  58. text-transform: none;
  59. }
  60. .jp-InputGroup input {
  61. box-sizing: border-box;
  62. border-radius: 0;
  63. background-color: transparent;
  64. color: var(--jp-ui-font-color0);
  65. box-shadow: inset 0 0 0 var(--jp-border-width) var(--jp-input-border-color);
  66. }
  67. .jp-InputGroup input:focus {
  68. box-shadow: inset 0 0 0 var(--jp-border-width)
  69. var(--jp-input-active-box-shadow-color),
  70. inset 0 0 0 3px var(--jp-input-active-box-shadow-color);
  71. }
  72. .jp-InputGroup input::placeholder,
  73. input::placeholder {
  74. color: var(--jp-ui-font-color3);
  75. }
  76. .jp-Icon {
  77. color: var(--jp-layout-color4);
  78. }
  79. .jp-InputGroupAction {
  80. padding: 6px;
  81. }
  82. .jp-HTMLSelect.bp3-html-select.bp3-minimal select {
  83. height: 24;
  84. font-size: var(--jp-ui-font-size1);
  85. line-height: 14px;
  86. border-radius: 0;
  87. display: block;
  88. color: var(--jp-ui-font-color0);
  89. }
  90. /* Use our own theme for hover styles */
  91. .jp-HTMLSelect.bp3-html-select.bp3-minimal select:hover {
  92. color: var(--jp-ui-font-color0);
  93. background-color: var(--jp-layout-color2);
  94. }
  95. select {
  96. box-sizing: border-box;
  97. }