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.

240 lines
3.8 KiB

  1. /*
  2. * # Semantic - Popup
  3. * http://github.com/jlukic/semantic-ui/
  4. *
  5. *
  6. * Copyright 2013 Contributors
  7. * Released under the MIT license
  8. * http://opensource.org/licenses/MIT
  9. *
  10. */
  11. /*******************************
  12. Popup
  13. *******************************/
  14. .ui.popup {
  15. display: none;
  16. position: absolute;
  17. top: 0px;
  18. right: 0px;
  19. z-index: 900;
  20. border: 1px solid rgba(0, 0, 0, 0.1);
  21. max-width: 250px;
  22. background-color: #FFFFFF;
  23. padding: 0.8em 1.2em;
  24. font-size: 0.875rem;
  25. font-weight: normal;
  26. font-style: normal;
  27. color: rgba(0, 0, 0, 0.7);
  28. border-radius: 0.2em;
  29. box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
  30. }
  31. .ui.popup .header {
  32. padding: 0em 0em 0.5em;
  33. font-size: 1.125em;
  34. line-height: 1.2;
  35. font-weight: bold;
  36. }
  37. .ui.popup:before {
  38. position: absolute;
  39. content: "";
  40. width: 0.75em;
  41. height: 0.75rem;
  42. background-image: none;
  43. background-color: #FFFFFF;
  44. -webkit-transform: rotate(45deg);
  45. -ms-transform: rotate(45deg);
  46. transform: rotate(45deg);
  47. z-index: 2;
  48. -moz-box-sizing: border-box;
  49. -ms-box-sizing: border-box;
  50. box-sizing: border-box;
  51. box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
  52. }
  53. .ui.popup .ui.button {
  54. width: 100%;
  55. }
  56. /*******************************
  57. Types
  58. *******************************/
  59. /*--------------
  60. Spacing
  61. ---------------*/
  62. .ui.popup {
  63. margin: 0em;
  64. }
  65. .ui.popup.bottom {
  66. margin: 0.75em 0em 0em;
  67. }
  68. .ui.popup.top {
  69. margin: 0em 0em 0.75em;
  70. }
  71. .ui.popup.left.center {
  72. margin: 0em 0.75em 0em 0em;
  73. }
  74. .ui.popup.right.center {
  75. margin: 0em 0em 0em 0.75em;
  76. }
  77. .ui.popup.center {
  78. margin-left: -1.25em;
  79. }
  80. /*--------------
  81. Pointer
  82. ---------------*/
  83. /*--- Below ---*/
  84. .ui.bottom.center.popup:before {
  85. margin-left: -0.4em;
  86. top: -0.4em;
  87. left: 50%;
  88. right: auto;
  89. bottom: auto;
  90. box-shadow: -1px -1px 1px rgba(0, 0, 0, 0.2);
  91. }
  92. .ui.bottom.left.popup {
  93. margin-right: -2em;
  94. }
  95. .ui.bottom.left.popup:before {
  96. top: -0.4em;
  97. right: 1em;
  98. bottom: auto;
  99. left: auto;
  100. margin-left: 0em;
  101. box-shadow: -1px -1px 1px rgba(0, 0, 0, 0.2);
  102. }
  103. .ui.bottom.right.popup {
  104. margin-left: -2em;
  105. }
  106. .ui.bottom.right.popup:before {
  107. top: -0.4em;
  108. left: 1em;
  109. right: auto;
  110. bottom: auto;
  111. margin-left: 0em;
  112. box-shadow: -1px -1px 1px rgba(0, 0, 0, 0.2);
  113. }
  114. /*--- Above ---*/
  115. .ui.top.center.popup:before {
  116. top: auto;
  117. right: auto;
  118. bottom: -0.4em;
  119. left: 50%;
  120. margin-left: -0.4em;
  121. }
  122. .ui.top.left.popup {
  123. margin-right: -2em;
  124. }
  125. .ui.top.left.popup:before {
  126. bottom: -0.4em;
  127. right: 1em;
  128. top: auto;
  129. left: auto;
  130. margin-left: 0em;
  131. }
  132. .ui.top.right.popup {
  133. margin-left: -2em;
  134. }
  135. .ui.top.right.popup:before {
  136. bottom: -0.4em;
  137. left: 1em;
  138. top: auto;
  139. right: auto;
  140. margin-left: 0em;
  141. }
  142. /*--- Left Center ---*/
  143. .ui.left.center.popup:before {
  144. top: 50%;
  145. right: -0.35em;
  146. bottom: auto;
  147. left: auto;
  148. margin-top: -0.4em;
  149. box-shadow: 1px -1px 1px rgba(0, 0, 0, 0.2);
  150. }
  151. /*--- Right Center ---*/
  152. .ui.right.center.popup:before {
  153. top: 50%;
  154. left: -0.35em;
  155. bottom: auto;
  156. right: auto;
  157. margin-top: -0.4em;
  158. box-shadow: -1px 1px 1px rgba(0, 0, 0, 0.2);
  159. }
  160. /*******************************
  161. States
  162. *******************************/
  163. .ui.loading.popup {
  164. display: block;
  165. visibility: hidden;
  166. }
  167. .ui.active.popup {
  168. display: block;
  169. }
  170. /*******************************
  171. Variations
  172. *******************************/
  173. /*--------------
  174. Size
  175. ---------------*/
  176. .ui.small.popup {
  177. font-size: 0.75rem;
  178. }
  179. .ui.large.popup {
  180. font-size: 1rem;
  181. }
  182. /*--------------
  183. Colors
  184. ---------------*/
  185. /* Inverted colors */
  186. .ui.inverted.popup {
  187. background-color: #333333;
  188. border: none;
  189. color: #FFFFFF;
  190. box-shadow: none;
  191. }
  192. .ui.inverted.popup .header {
  193. background-color: rgba(0, 0, 0, 0.2);
  194. color: #FFFFFF;
  195. }
  196. .ui.inverted.popup:before {
  197. background-color: #333333;
  198. box-shadow: none;
  199. }