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.

272 lines
4.3 KiB

10 years ago
  1. /*
  2. * # Semantic UI
  3. * git://github.com/Semantic-Org/Semantic-UI.git
  4. *
  5. *
  6. * Copyright 2014 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 #cccccc;
  21. max-width: 250px;
  22. background-color: #ffffff;
  23. padding: 0.8em 1em;
  24. font-weight: normal;
  25. font-style: normal;
  26. color: rgba(0, 0, 0, 0.8);
  27. border-radius: 0.2857rem;
  28. box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  29. }
  30. .ui.popup > .header {
  31. padding: 0em;
  32. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  33. font-size: 1.125em;
  34. line-height: 1.2;
  35. font-weight: bold;
  36. }
  37. .ui.popup > .header + .content {
  38. padding-top: 0.5em;
  39. }
  40. .ui.popup:before {
  41. position: absolute;
  42. content: '';
  43. width: 0.75em;
  44. height: 0.75em;
  45. background: #ffffff;
  46. -webkit-transform: rotate(45deg);
  47. -ms-transform: rotate(45deg);
  48. transform: rotate(45deg);
  49. z-index: 2;
  50. box-shadow: 1px 1px 0px 0px #b3b3b3;
  51. }
  52. /*******************************
  53. Types
  54. *******************************/
  55. /*--------------
  56. Spacing
  57. ---------------*/
  58. .ui.popup {
  59. margin: 0em;
  60. }
  61. .ui.popup.bottom {
  62. margin: 0.75em 0em 0em;
  63. }
  64. .ui.popup.top {
  65. margin: 0em 0em 0.75em;
  66. }
  67. .ui.popup.left.center {
  68. margin: 0em 0.75em 0em 0em;
  69. }
  70. .ui.popup.right.center {
  71. margin: 0em 0em 0em 0.75em;
  72. }
  73. /*--------------
  74. Pointer
  75. ---------------*/
  76. /*--- Below ---*/
  77. .ui.bottom.center.popup:before {
  78. margin-left: -0.325em;
  79. top: -0.325em;
  80. left: 50%;
  81. right: auto;
  82. bottom: auto;
  83. box-shadow: -1px -1px 0px 0px #b3b3b3;
  84. }
  85. .ui.bottom.left.popup {
  86. margin-left: 0em;
  87. }
  88. .ui.bottom.left.popup:before {
  89. top: -0.325em;
  90. left: 1em;
  91. right: auto;
  92. bottom: auto;
  93. margin-left: 0em;
  94. box-shadow: -1px -1px 0px 0px #b3b3b3;
  95. }
  96. .ui.bottom.right.popup {
  97. margin-right: 0em;
  98. }
  99. .ui.bottom.right.popup:before {
  100. top: -0.325em;
  101. right: 1em;
  102. bottom: auto;
  103. left: auto;
  104. margin-left: 0em;
  105. box-shadow: -1px -1px 0px 0px #b3b3b3;
  106. }
  107. /*--- Above ---*/
  108. .ui.top.center.popup:before {
  109. top: auto;
  110. right: auto;
  111. bottom: -0.325em;
  112. left: 50%;
  113. margin-left: -0.325em;
  114. }
  115. .ui.top.left.popup {
  116. margin-left: 0em;
  117. }
  118. .ui.top.left.popup:before {
  119. bottom: -0.325em;
  120. left: 1em;
  121. top: auto;
  122. right: auto;
  123. margin-left: 0em;
  124. }
  125. .ui.top.right.popup {
  126. margin-right: 0em;
  127. }
  128. .ui.top.right.popup:before {
  129. bottom: -0.325em;
  130. right: 1em;
  131. top: auto;
  132. left: auto;
  133. margin-left: 0em;
  134. }
  135. /*--- Left Center ---*/
  136. .ui.left.center.popup:before {
  137. top: 50%;
  138. right: -0.325em;
  139. bottom: auto;
  140. left: auto;
  141. margin-top: -0.325em;
  142. box-shadow: 1px -1px 0px 0px #b3b3b3;
  143. }
  144. /*--- Right Center ---*/
  145. .ui.right.center.popup:before {
  146. top: 50%;
  147. left: -0.325em;
  148. bottom: auto;
  149. right: auto;
  150. margin-top: -0.325em;
  151. box-shadow: -1px 1px 0px 0px #b3b3b3;
  152. }
  153. /*******************************
  154. States
  155. *******************************/
  156. .ui.loading.popup {
  157. display: block;
  158. visibility: hidden;
  159. z-index: -1;
  160. }
  161. .ui.animating.popup,
  162. .ui.visible.popup {
  163. display: block;
  164. }
  165. /*******************************
  166. Variations
  167. *******************************/
  168. /*--------------
  169. Wide
  170. ---------------*/
  171. .ui.wide.popup {
  172. width: 350px;
  173. max-width: 350px;
  174. }
  175. .ui[class*="very wide"].popup {
  176. width: 550px;
  177. max-width: 550px;
  178. }
  179. /*--------------
  180. Fluid
  181. ---------------*/
  182. .ui.fluid.popup {
  183. width: 100%;
  184. max-width: 99999px;
  185. }
  186. /*--------------
  187. Colors
  188. ---------------*/
  189. /* Inverted colors */
  190. .ui.inverted.popup {
  191. background: #1b1c1d;
  192. color: #ffffff;
  193. border: none;
  194. box-shadow: none;
  195. }
  196. .ui.inverted.popup .header {
  197. background-color: none;
  198. color: #ffffff;
  199. }
  200. .ui.inverted.popup:before {
  201. background-color: #1b1c1d;
  202. box-shadow: none;
  203. }
  204. /*--------------
  205. Flowing
  206. ---------------*/
  207. .ui.flowing.popup {
  208. max-width: 9999px;
  209. }
  210. /*--------------
  211. Sizes
  212. ---------------*/
  213. .ui.small.popup {
  214. font-size: 0.8rem;
  215. }
  216. .ui.popup {
  217. font-size: 0.875rem;
  218. }
  219. .ui.large.popup {
  220. font-size: 1rem;
  221. }
  222. .ui.huge.popup {
  223. font-size: 1.1rem;
  224. }
  225. /*******************************
  226. Theme Overrides
  227. *******************************/
  228. /*******************************
  229. User Overrides
  230. *******************************/