dialog.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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: 500px;
  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. }
  42. .jp-Dialog-header {
  43. flex: 0 0 auto;
  44. padding-bottom: 12px;
  45. font-size: var(--jp-ui-font-size3);
  46. font-weight: 400;
  47. color: var(--jp-ui-font-color0);
  48. }
  49. .jp-Dialog-body {
  50. display: flex;
  51. flex-direction: column;
  52. flex: 1 1 auto;
  53. font-size: var(--jp-ui-font-size1);
  54. background: var(--jp-layout-color1);
  55. overflow: auto;
  56. }
  57. .jp-Dialog-footer {
  58. display: flex;
  59. flex-direction: row;
  60. justify-content: flex-end;
  61. flex: 0 0 auto;
  62. margin-left: -12px;
  63. margin-right: -12px;
  64. padding: 12px;
  65. }
  66. .jp-Dialog-title {
  67. overflow: hidden;
  68. white-space: nowrap;
  69. text-overflow: ellipsis;
  70. }
  71. .jp-Dialog-body > .jp-select-wrapper {
  72. width: 100%;
  73. }
  74. .jp-Dialog-body > button {
  75. padding: 0px 16px;
  76. }
  77. .jp-Dialog-body > label {
  78. padding-top: 4px;
  79. padding-bottom: 8px;
  80. line-height: 1.4;
  81. color: var(--jp-ui-font-color0);
  82. }