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.

301 lines
4.8 KiB

9 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
9 years ago
10 years ago
10 years ago
9 years ago
9 years ago
10 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
9 years ago
10 years ago
  1. /*!
  2. * # Semantic UI 2.0.0 - Popup
  3. * http://github.com/semantic-org/semantic-ui/
  4. *
  5. *
  6. * Copyright 2015 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. /* Fixes content being squished when inline (moz only) */
  20. min-width: -webkit-min-content;
  21. min-width: -moz-min-content;
  22. min-width: min-content;
  23. z-index: 1900;
  24. border: 1px solid #cccccc;
  25. max-width: 250px;
  26. background-color: #ffffff;
  27. padding: 0.833em 1em;
  28. font-weight: normal;
  29. font-style: normal;
  30. color: rgba(0, 0, 0, 0.87);
  31. border-radius: 0.285714rem;
  32. box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  33. }
  34. .ui.popup > .header {
  35. padding: 0em;
  36. font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
  37. font-size: 1.125em;
  38. line-height: 1.2;
  39. font-weight: bold;
  40. }
  41. .ui.popup > .header + .content {
  42. padding-top: 0.5em;
  43. }
  44. .ui.popup:before {
  45. position: absolute;
  46. content: '';
  47. width: 0.75em;
  48. height: 0.75em;
  49. background: #ffffff;
  50. -webkit-transform: rotate(45deg);
  51. -ms-transform: rotate(45deg);
  52. transform: rotate(45deg);
  53. z-index: 2;
  54. box-shadow: 1px 1px 0px 0px #b3b3b3;
  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. /*--------------
  78. Pointer
  79. ---------------*/
  80. /*--- Below ---*/
  81. .ui.bottom.center.popup:before {
  82. margin-left: -0.325em;
  83. top: -0.325em;
  84. left: 50%;
  85. right: auto;
  86. bottom: auto;
  87. box-shadow: -1px -1px 0px 0px #b3b3b3;
  88. }
  89. .ui.bottom.left.popup {
  90. margin-left: 0em;
  91. }
  92. .ui.bottom.left.popup:before {
  93. top: -0.325em;
  94. left: 1em;
  95. right: auto;
  96. bottom: auto;
  97. margin-left: 0em;
  98. box-shadow: -1px -1px 0px 0px #b3b3b3;
  99. }
  100. .ui.bottom.right.popup {
  101. margin-right: 0em;
  102. }
  103. .ui.bottom.right.popup:before {
  104. top: -0.325em;
  105. right: 1em;
  106. bottom: auto;
  107. left: auto;
  108. margin-left: 0em;
  109. box-shadow: -1px -1px 0px 0px #b3b3b3;
  110. }
  111. /*--- Above ---*/
  112. .ui.top.center.popup:before {
  113. top: auto;
  114. right: auto;
  115. bottom: -0.325em;
  116. left: 50%;
  117. margin-left: -0.325em;
  118. }
  119. .ui.top.left.popup {
  120. margin-left: 0em;
  121. }
  122. .ui.top.left.popup:before {
  123. bottom: -0.325em;
  124. left: 1em;
  125. top: auto;
  126. right: auto;
  127. margin-left: 0em;
  128. }
  129. .ui.top.right.popup {
  130. margin-right: 0em;
  131. }
  132. .ui.top.right.popup:before {
  133. bottom: -0.325em;
  134. right: 1em;
  135. top: auto;
  136. left: auto;
  137. margin-left: 0em;
  138. }
  139. /*--- Left Center ---*/
  140. .ui.left.center.popup:before {
  141. top: 50%;
  142. right: -0.325em;
  143. bottom: auto;
  144. left: auto;
  145. margin-top: -0.325em;
  146. box-shadow: 1px -1px 0px 0px #b3b3b3;
  147. }
  148. /*--- Right Center ---*/
  149. .ui.right.center.popup:before {
  150. top: 50%;
  151. left: -0.325em;
  152. bottom: auto;
  153. right: auto;
  154. margin-top: -0.325em;
  155. box-shadow: -1px 1px 0px 0px #b3b3b3;
  156. }
  157. /*******************************
  158. Coupling
  159. *******************************/
  160. /* Immediate Nested Grid */
  161. .ui.popup > .ui.grid:not(.padded) {
  162. width: -webkit-calc(100% + 1.75rem);
  163. width: calc(100% + 1.75rem);
  164. margin: -0.7rem -0.875rem;
  165. }
  166. /*******************************
  167. States
  168. *******************************/
  169. .ui.loading.popup {
  170. display: block;
  171. visibility: hidden;
  172. z-index: -1;
  173. }
  174. .ui.animating.popup,
  175. .ui.visible.popup {
  176. display: block;
  177. }
  178. /*******************************
  179. Variations
  180. *******************************/
  181. /*--------------
  182. Basic
  183. ---------------*/
  184. .ui.basic.popup:before {
  185. display: none;
  186. }
  187. /*--------------
  188. Wide
  189. ---------------*/
  190. .ui.wide.popup {
  191. max-width: 350px;
  192. }
  193. .ui[class*="very wide"].popup {
  194. max-width: 550px;
  195. }
  196. /*--------------
  197. Fluid
  198. ---------------*/
  199. .ui.fluid.popup {
  200. width: 100%;
  201. max-width: none;
  202. }
  203. /*--------------
  204. Colors
  205. ---------------*/
  206. /* Inverted colors */
  207. .ui.inverted.popup {
  208. background: #1b1c1d;
  209. color: #ffffff;
  210. border: none;
  211. box-shadow: none;
  212. }
  213. .ui.inverted.popup .header {
  214. background-color: none;
  215. color: #ffffff;
  216. }
  217. .ui.inverted.popup:before {
  218. background-color: #1b1c1d;
  219. box-shadow: none !important;
  220. }
  221. /*--------------
  222. Flowing
  223. ---------------*/
  224. .ui.flowing.popup {
  225. max-width: none;
  226. }
  227. /*--------------
  228. Sizes
  229. ---------------*/
  230. .ui.mini.popup {
  231. font-size: 0.71428571rem;
  232. }
  233. .ui.tiny.popup {
  234. font-size: 0.85714286rem;
  235. }
  236. .ui.small.popup {
  237. font-size: 0.92857143rem;
  238. }
  239. .ui.popup {
  240. font-size: 1rem;
  241. }
  242. .ui.large.popup {
  243. font-size: 1.14285714rem;
  244. }
  245. .ui.huge.popup {
  246. font-size: 1.42857143rem;
  247. }
  248. /*******************************
  249. Theme Overrides
  250. *******************************/
  251. /*******************************
  252. User Overrides
  253. *******************************/