dialog.css 2.2 KB

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