editormd.dialog.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. @charset "UTF-8";
  2. #{$prefix}dialog {
  3. color: $color;
  4. position: fixed;
  5. z-index: 99999;
  6. display: none;
  7. @include border-radius(3px);
  8. @include box-shadow(0 0 10px rgba(0, 0, 0, 0.3));
  9. //@include user-select(none);
  10. background: #fff;
  11. font-size: 14px;
  12. }
  13. #{$prefix}dialog-container {
  14. position: relative;
  15. padding: 20px;
  16. line-height: 1.4;
  17. h1 {
  18. font-size: 24px;
  19. margin-bottom: 10px;
  20. .fa {
  21. color: #2C7EEA;
  22. padding-right: 5px;
  23. }
  24. small {
  25. padding-left: 5px;
  26. font-weight: normal;
  27. font-size: 12px;
  28. color: #999;
  29. }
  30. }
  31. select {
  32. color: #999;
  33. padding: 3px 8px;
  34. border: 1px solid $borderColor;
  35. }
  36. }
  37. #{$prefix}dialog-close {
  38. position: absolute;
  39. top: 12px;
  40. right: 15px;
  41. font-size: 18px;
  42. color: #ccc;
  43. @include transition(color 300ms ease-out);
  44. &:hover {
  45. color: #999;
  46. }
  47. }
  48. #{$prefix}dialog-header {
  49. padding: 11px 20px;
  50. border-bottom: 1px solid #eee;
  51. @include transition(background 300ms ease-out);
  52. &:hover {
  53. background: #f6f6f6;
  54. }
  55. }
  56. #{$prefix}dialog-title {
  57. font-size: 14px;
  58. }
  59. #{$prefix}dialog-footer {
  60. padding: 10px 0 0 0;
  61. text-align: right;
  62. }
  63. #{$prefix}dialog-info {
  64. width: 420px;
  65. h1 {
  66. font-weight: normal;
  67. }
  68. #{$prefix}dialog-container {
  69. padding: 20px 25px 25px;
  70. }
  71. #{$prefix}dialog-close {
  72. top: 10px;
  73. right: 10px;
  74. }
  75. p > a, .hover-link:hover {
  76. color: #2196F3;
  77. }
  78. .hover-link {
  79. color: #666;
  80. }
  81. a {
  82. .fa-external-link {
  83. display: none;
  84. }
  85. &:hover {
  86. color: #2196F3;
  87. .fa-external-link {
  88. display: inline-block;
  89. }
  90. }
  91. }
  92. }
  93. #{$prefix}mask,
  94. #{$prefix}container-mask,
  95. #{$prefix}dialog-mask {
  96. display: none;
  97. width: 100%;
  98. height: 100%;
  99. position: absolute;
  100. top: 0;
  101. left: 0;
  102. }
  103. #{$prefix}mask,
  104. #{$prefix}dialog-mask-bg {
  105. background: #fff;
  106. opacity: 0.5;
  107. filter: alpha(opacity=50);
  108. }
  109. #{$prefix}mask {
  110. position: fixed;
  111. background: #000;
  112. @include opacity(0.2);
  113. z-index: 99998;
  114. }
  115. #{$prefix}container-mask,
  116. #{$prefix}dialog-mask-con {
  117. background: url(../images/loading.gif) no-repeat center center;
  118. @include background-size(32px 32px);
  119. }
  120. #{$prefix}container-mask {
  121. z-index: 20;
  122. display: block;
  123. background-color: #fff;
  124. }
  125. @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) {
  126. #{$prefix}container-mask,
  127. #{$prefix}dialog-mask-con {
  128. background-image: url(../images/loading@2x.gif);
  129. }
  130. }
  131. @media only screen and (-webkit-min-device-pixel-ratio: 3), only screen and (min-device-pixel-ratio: 3) {
  132. #{$prefix}container-mask,
  133. #{$prefix}dialog-mask-con {
  134. background-image: url(../images/loading@3x.gif);
  135. }
  136. }
  137. #{$prefix}code-block-dialog,
  138. #{$prefix}preformatted-text-dialog {
  139. textarea {
  140. width: 100%;
  141. height: 400px;
  142. margin-bottom: 6px;
  143. overflow: auto;
  144. border: 1px solid #eee;
  145. background: #fff;
  146. padding: 15px;
  147. resize: none;
  148. }
  149. }
  150. #{$prefix}code-toolbar {
  151. color: #999;
  152. font-size: 14px;
  153. margin: -5px 0 10px;
  154. }