dialog.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. .jp-Dialog-header {
  55. flex: 0 0 auto;
  56. padding-bottom: 12px;
  57. font-size: var(--jp-ui-font-size3);
  58. font-weight: 400;
  59. color: var(--jp-ui-font-color0);
  60. }
  61. .jp-Dialog-body {
  62. display: flex;
  63. flex-direction: column;
  64. flex: 1 1 auto;
  65. font-size: var(--jp-ui-font-size1);
  66. background: var(--jp-layout-color1);
  67. overflow: auto;
  68. }
  69. .jp-Dialog-footer {
  70. display: flex;
  71. flex-direction: row;
  72. justify-content: flex-end;
  73. flex: 0 0 auto;
  74. margin-left: -12px;
  75. margin-right: -12px;
  76. padding: 12px;
  77. }
  78. .jp-Dialog-title {
  79. overflow: hidden;
  80. white-space: nowrap;
  81. text-overflow: ellipsis;
  82. }
  83. .jp-Dialog-body > .jp-select-wrapper {
  84. width: 100%;
  85. }
  86. .jp-Dialog-body > button {
  87. padding: 0px 16px;
  88. }
  89. .jp-Dialog-body > label {
  90. line-height: 1.4;
  91. color: var(--jp-ui-font-color0);
  92. }
  93. .jp-Dialog-button.jp-mod-styled:not(:last-child) {
  94. margin-right: 12px;
  95. }