dialog.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. /*-----------------------------------------------------------------------------
  2. | Copyright (c) 2014-2017, Jupyter Development Team.
  3. |
  4. | Distributed under the terms of the Modified BSD License.
  5. |----------------------------------------------------------------------------*/
  6. .jp-Dialog {
  7. position: absolute;
  8. z-index: 10000;
  9. display: flex;
  10. flex-direction: column;
  11. align-items: center;
  12. justify-content: center;
  13. top: 0px;
  14. left: 0px;
  15. margin: 0;
  16. padding: 0;
  17. width: 100%;
  18. height: 100%;
  19. background: var(--jp-dialog-background);
  20. }
  21. .jp-Dialog-content {
  22. display: flex;
  23. flex-direction: column;
  24. margin-left: auto;
  25. margin-right: auto;
  26. background: var(--jp-layout-color1);
  27. padding: 24px;
  28. padding-bottom: 12px;
  29. min-width: 300px;
  30. min-height: 150px;
  31. max-width: 1000px;
  32. max-height: 500px;
  33. box-sizing: border-box;
  34. box-shadow: var(--jp-elevation-z20);
  35. word-wrap: break-word;
  36. border-radius: var(--jp-border-radius);
  37. /* This is needed so that all font sizing of children done in ems is
  38. * relative to this base size */
  39. font-size: var(--jp-ui-font-size1);
  40. color: var(--jp-ui-font-color1);
  41. resize: both;
  42. }
  43. .jp-Dialog-button {
  44. overflow: visible;
  45. }
  46. button.jp-Dialog-button:focus {
  47. outline: 1px solid var(--jp-brand-color1);
  48. outline-offset: 4px;
  49. -moz-outline-radius: 0px;
  50. }
  51. button.jp-Dialog-button:focus::-moz-focus-inner {
  52. border: 0;
  53. }
  54. button.jp-Dialog-close-button {
  55. padding: 0;
  56. height: 100%;
  57. min-width: unset;
  58. min-height: unset;
  59. }
  60. .jp-Dialog-header {
  61. display: flex;
  62. justify-content: space-between;
  63. flex: 0 0 auto;
  64. padding-bottom: 12px;
  65. font-size: var(--jp-ui-font-size3);
  66. font-weight: 400;
  67. color: var(--jp-ui-font-color0);
  68. }
  69. .jp-Dialog-body {
  70. display: flex;
  71. flex-direction: column;
  72. flex: 1 1 auto;
  73. font-size: var(--jp-ui-font-size1);
  74. background: var(--jp-layout-color1);
  75. overflow: auto;
  76. }
  77. .jp-Dialog-footer {
  78. display: flex;
  79. flex-direction: row;
  80. justify-content: flex-end;
  81. flex: 0 0 auto;
  82. margin-left: -12px;
  83. margin-right: -12px;
  84. padding: 12px;
  85. }
  86. .jp-Dialog-title {
  87. overflow: hidden;
  88. white-space: nowrap;
  89. text-overflow: ellipsis;
  90. }
  91. .jp-Dialog-body > .jp-select-wrapper {
  92. width: 100%;
  93. }
  94. .jp-Dialog-body > button {
  95. padding: 0px 16px;
  96. }
  97. .jp-Dialog-body > label {
  98. line-height: 1.4;
  99. color: var(--jp-ui-font-color0);
  100. }
  101. .jp-Dialog-button.jp-mod-styled:not(:last-child) {
  102. margin-right: 12px;
  103. }