unpoly.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. [up-close] {
  2. cursor: pointer; }
  3. .up-insertion {
  4. display: inline-block; }
  5. .up-bounds {
  6. position: absolute; }
  7. [up-href] {
  8. cursor: pointer; }
  9. .up-modal {
  10. position: fixed;
  11. top: 0;
  12. left: 0;
  13. bottom: 0;
  14. right: 0;
  15. z-index: 10000;
  16. overflow-x: hidden; }
  17. .up-modal-backdrop {
  18. z-index: 11000;
  19. background-color: rgba(90, 90, 90, 0.4);
  20. position: absolute;
  21. top: 0;
  22. right: 0;
  23. bottom: 0;
  24. left: 0; }
  25. .up-modal-viewport {
  26. position: absolute;
  27. top: 0;
  28. left: 0;
  29. bottom: 0;
  30. right: 0;
  31. z-index: 12000;
  32. overflow-x: hidden;
  33. overflow-y: scroll;
  34. text-align: center;
  35. padding: 30px 10px; }
  36. .up-modal.up-modal-animating {
  37. overflow-y: scroll; }
  38. .up-modal.up-modal-animating .up-modal-viewport {
  39. overflow-y: hidden; }
  40. .up-modal-dialog {
  41. z-index: 13000;
  42. position: relative;
  43. box-sizing: border-box;
  44. max-width: 100%;
  45. display: inline-block;
  46. text-align: left; }
  47. .up-modal-content {
  48. z-index: 14000;
  49. padding: 20px;
  50. background-color: #fff;
  51. box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.3); }
  52. .up-modal-close {
  53. z-index: 15000;
  54. position: absolute;
  55. right: 0;
  56. top: 0;
  57. width: 36px;
  58. text-align: center;
  59. line-height: 36px;
  60. height: 36px;
  61. font-size: 34px;
  62. color: #666;
  63. cursor: pointer; }
  64. .up-modal[up-flavor='drawer'] .up-modal-viewport {
  65. text-align: left;
  66. padding: 0; }
  67. .up-modal[up-flavor='drawer'][up-position='right'] .up-modal-viewport {
  68. text-align: right; }
  69. .up-modal[up-flavor='drawer'] .up-modal-dialog {
  70. max-width: 350px; }
  71. .up-modal[up-flavor='drawer'] .up-modal-content {
  72. min-height: 100vh;
  73. box-sizing: border-box; }
  74. .up-popup {
  75. z-index: 20000;
  76. background-color: #fff;
  77. padding: 15px;
  78. box-shadow: 0 0 4px rgba(0, 0, 0, 0.3); }
  79. .up-toast {
  80. border-top: 3px solid #28b;
  81. background-color: white;
  82. color: #333;
  83. padding: 10px;
  84. font-family: monospace;
  85. font-size: 14px;
  86. line-height: 15px;
  87. position: fixed;
  88. left: 0;
  89. bottom: 0;
  90. right: 0;
  91. z-index: 99999999; }
  92. .up-toast-variable {
  93. font-weight: normal;
  94. color: gray; }
  95. .up-toast-actions {
  96. margin-top: 7px; }
  97. .up-toast-action {
  98. display: inline-block;
  99. word-spacing: -4px;
  100. text-decoration: underline;
  101. color: #28b;
  102. cursor: pointer; }
  103. .up-toast-action + .up-toast-action {
  104. margin-left: 12px; }
  105. .up-tooltip {
  106. z-index: 30000;
  107. position: relative; }
  108. .up-tooltip:after {
  109. content: "";
  110. position: absolute;
  111. display: block;
  112. width: 0;
  113. height: 0;
  114. border: 6px solid transparent; }
  115. .up-tooltip[up-position=top] {
  116. margin-bottom: 10px; }
  117. .up-tooltip[up-position=top]:after {
  118. border-top-color: #111;
  119. border-bottom-width: 0;
  120. bottom: -6px;
  121. left: 50%;
  122. margin-left: -6px; }
  123. .up-tooltip[up-position=left] {
  124. margin-right: 10px; }
  125. .up-tooltip[up-position=left]:after {
  126. border-left-color: #111;
  127. border-right-width: 0;
  128. right: -6px;
  129. top: 50%;
  130. margin-top: -6px; }
  131. .up-tooltip[up-position=right] {
  132. margin-left: 10px; }
  133. .up-tooltip[up-position=right]:after {
  134. border-right-color: #111;
  135. border-left-width: 0;
  136. left: -6px;
  137. top: 50%;
  138. margin-top: -6px; }
  139. .up-tooltip[up-position=bottom] {
  140. margin-top: 10px; }
  141. .up-tooltip[up-position=bottom]:after {
  142. border-bottom-color: #111;
  143. border-top-width: 0;
  144. top: -6px;
  145. left: 50%;
  146. margin-left: -6px; }
  147. .up-tooltip-content {
  148. background-color: #111;
  149. color: white;
  150. padding: 6px 9px;
  151. white-space: nowrap; }