You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
3.3 KiB

  1. .ui.popup {
  2. display: none;
  3. position: absolute;
  4. top: 0;
  5. left: 0;
  6. z-index: 900;
  7. border: 1px solid rgba(0,0,0,.1);
  8. max-width: 250px;
  9. background-color: #FFF;
  10. padding: .8em 1.2em;
  11. font-size: .875rem;
  12. font-weight: 400;
  13. font-style: normal;
  14. color: rgba(0,0,0,.7);
  15. border-radius: .2em;
  16. -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1);
  17. box-shadow: 0 1px 2px rgba(0,0,0,.1);
  18. }
  19. .ui.popup .header {
  20. padding: 0 0 .5em;
  21. font-size: 1.125em;
  22. line-height: 1.2;
  23. font-weight: 700;
  24. }
  25. .ui.popup:before {
  26. position: absolute;
  27. content: "";
  28. width: .75em;
  29. height: .75rem;
  30. background-image: none;
  31. background-color: #FFF;
  32. -webkit-transform: rotate(45deg);
  33. -ms-transform: rotate(45deg);
  34. transform: rotate(45deg);
  35. z-index: 2;
  36. -webkit-box-sizing: border-box;
  37. -moz-box-sizing: border-box;
  38. -ms-box-sizing: border-box;
  39. box-sizing: border-box;
  40. -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,.1);
  41. box-shadow: 1px 1px 1px rgba(0,0,0,.1);
  42. }
  43. .ui.popup .ui.button {
  44. width: 100%;
  45. }
  46. .ui.popup {
  47. margin: 0;
  48. }
  49. .ui.popup.bottom {
  50. margin: .75em 0 0;
  51. }
  52. .ui.popup.top {
  53. margin: 0 0 .75em;
  54. }
  55. .ui.popup.left.center {
  56. margin: 0 0 0 .75em;
  57. }
  58. .ui.popup.right.center {
  59. margin: 0 .75em 0 0;
  60. }
  61. .ui.popup.center {
  62. margin-right: -1.25em;
  63. }
  64. .ui.bottom.center.popup:before {
  65. margin-right: -.4em;
  66. top: -.4em;
  67. right: 50%;
  68. left: auto;
  69. bottom: auto;
  70. -webkit-box-shadow: -1px -1px 1px rgba(0,0,0,.2);
  71. box-shadow: -1px -1px 1px rgba(0,0,0,.2);
  72. }
  73. .ui.bottom.left.popup {
  74. margin-left: -2em;
  75. }
  76. .ui.bottom.left.popup:before {
  77. top: -.4em;
  78. left: 1em;
  79. bottom: auto;
  80. right: auto;
  81. margin-right: 0;
  82. -webkit-box-shadow: -1px -1px 1px rgba(0,0,0,.2);
  83. box-shadow: -1px -1px 1px rgba(0,0,0,.2);
  84. }
  85. .ui.bottom.right.popup {
  86. margin-right: -2em;
  87. }
  88. .ui.bottom.right.popup:before {
  89. top: -.4em;
  90. right: 1em;
  91. left: auto;
  92. bottom: auto;
  93. margin-right: 0;
  94. -webkit-box-shadow: -1px -1px 1px rgba(0,0,0,.2);
  95. box-shadow: -1px -1px 1px rgba(0,0,0,.2);
  96. }
  97. .ui.top.center.popup:before {
  98. top: auto;
  99. left: auto;
  100. bottom: -.4em;
  101. right: 50%;
  102. margin-right: -.4em;
  103. }
  104. .ui.top.left.popup {
  105. margin-left: -2em;
  106. }
  107. .ui.top.left.popup:before {
  108. bottom: -.4em;
  109. left: 1em;
  110. top: auto;
  111. right: auto;
  112. margin-right: 0;
  113. }
  114. .ui.top.right.popup {
  115. margin-right: -2em;
  116. }
  117. .ui.top.right.popup:before {
  118. bottom: -.4em;
  119. right: 1em;
  120. top: auto;
  121. left: auto;
  122. margin-right: 0;
  123. }
  124. .ui.left.center.popup:before {
  125. top: 50%;
  126. left: -.35em;
  127. bottom: auto;
  128. right: auto;
  129. margin-top: -.4em;
  130. -webkit-box-shadow: 1px -1px 1px rgba(0,0,0,.2);
  131. box-shadow: 1px -1px 1px rgba(0,0,0,.2);
  132. }
  133. .ui.right.center.popup:before {
  134. top: 50%;
  135. right: -.35em;
  136. bottom: auto;
  137. left: auto;
  138. margin-top: -.4em;
  139. -webkit-box-shadow: -1px 1px 1px rgba(0,0,0,.2);
  140. box-shadow: -1px 1px 1px rgba(0,0,0,.2);
  141. }
  142. .ui.loading.popup {
  143. display: block;
  144. visibility: hidden;
  145. }
  146. .ui.active.popup {
  147. display: block;
  148. }
  149. .ui.small.popup {
  150. font-size: .75rem;
  151. }
  152. .ui.large.popup {
  153. font-size: 1rem;
  154. }
  155. .ui.inverted.popup {
  156. background-color: #333;
  157. border: 0;
  158. color: #FFF;
  159. -webkit-box-shadow: none;
  160. box-shadow: none;
  161. }
  162. .ui.inverted.popup .header {
  163. background-color: rgba(0,0,0,.2);
  164. color: #FFF;
  165. }
  166. .ui.inverted.popup:before {
  167. background-color: #333;
  168. -webkit-box-shadow: none;
  169. box-shadow: none;
  170. }