dialog.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 24px 12px 24px;
  28. min-width: 300px;
  29. min-height: 150px;
  30. max-width: 1000px;
  31. max-height: 500px;
  32. box-sizing: border-box;
  33. box-shadow: var(--jp-elevation-z20);
  34. word-wrap: break-word;
  35. border-radius: var(--jp-border-radius);
  36. /* This is needed so that all font sizing of children done in ems is
  37. * relative to this base size */
  38. font-size: var(--jp-ui-font-size1);
  39. color: var(--jp-ui-font-color1);
  40. resize: both;
  41. }
  42. .jp-Dialog-content.jp-Dialog-content-small {
  43. max-width: 500px;
  44. }
  45. .jp-Dialog-button {
  46. overflow: visible;
  47. }
  48. button.jp-Dialog-button:focus {
  49. outline: 1px solid var(--jp-brand-color1);
  50. outline-offset: 4px;
  51. -moz-outline-radius: 0px;
  52. }
  53. button.jp-Dialog-button:focus::-moz-focus-inner {
  54. border: 0;
  55. }
  56. button.jp-Dialog-button.jp-mod-styled.jp-mod-accept:focus,
  57. button.jp-Dialog-button.jp-mod-styled.jp-mod-warn:focus,
  58. button.jp-Dialog-button.jp-mod-styled.jp-mod-reject:focus {
  59. outline-offset: 4px;
  60. -moz-outline-radius: 0px;
  61. }
  62. button.jp-Dialog-button.jp-mod-styled.jp-mod-accept:focus {
  63. outline: 1px solid var(--md-blue-700);
  64. }
  65. button.jp-Dialog-button.jp-mod-styled.jp-mod-warn:focus {
  66. outline: 1px solid var(--md-red-600);
  67. }
  68. button.jp-Dialog-button.jp-mod-styled.jp-mod-reject:focus {
  69. outline: 1px solid var(--md-grey-700);
  70. }
  71. button.jp-Dialog-close-button {
  72. padding: 0;
  73. height: 100%;
  74. min-width: unset;
  75. min-height: unset;
  76. }
  77. .jp-Dialog-header {
  78. display: flex;
  79. justify-content: space-between;
  80. flex: 0 0 auto;
  81. padding-bottom: 12px;
  82. font-size: var(--jp-ui-font-size3);
  83. font-weight: 400;
  84. color: var(--jp-ui-font-color0);
  85. }
  86. .jp-Dialog-body {
  87. display: flex;
  88. flex-direction: column;
  89. flex: 1 1 auto;
  90. font-size: var(--jp-ui-font-size1);
  91. background: var(--jp-layout-color1);
  92. overflow: auto;
  93. }
  94. .jp-Dialog-footer {
  95. display: flex;
  96. flex-direction: row;
  97. justify-content: flex-end;
  98. flex: 0 0 auto;
  99. margin-left: -12px;
  100. margin-right: -12px;
  101. padding: 12px;
  102. }
  103. .jp-Dialog-title {
  104. overflow: hidden;
  105. white-space: nowrap;
  106. text-overflow: ellipsis;
  107. }
  108. .jp-Dialog-body > .jp-select-wrapper {
  109. width: 100%;
  110. }
  111. .jp-Dialog-body > button {
  112. padding: 0px 16px;
  113. }
  114. .jp-Dialog-body > label {
  115. line-height: 1.4;
  116. color: var(--jp-ui-font-color0);
  117. }
  118. .jp-Dialog-button.jp-mod-styled:not(:last-child) {
  119. margin-right: 12px;
  120. }